question on audio/x-raw

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

question on audio/x-raw

Jerry Geis-2
On .10 we used audio/x-raw-int and depth=16

For 1.0 I see we changed to audio/x-raw (which I changed)
but depth=16 is no longer the option 

its like depth=S16LE etc.... 

Which one should I use?  I just want the 16bits ...  Shouldn't the machine know which to use from there? Intel hardware.

Thanks,

Jerry

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: question on audio/x-raw

Nicolas Dufresne-5
Le mercredi 05 juillet 2017 à 13:25 -0400, Jerry Geis a écrit :
> On .10 we used audio/x-raw-int and depth=16
>
> For 1.0 I see we changed to audio/x-raw (which I changed)
> but depth=16 is no longer the option 
>
> its like depth=S16LE etc.... 
>
> Which one should I use?  I just want the 16bits ...  Shouldn't the
> machine know which to use from there? Intel hardware.

If you can't answer this question, then don't set any caps filter and
let GStreamer negotiate the format for you.

regards,
Nicolas
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: question on audio/x-raw

Jerry Geis-2
In reply to this post by Jerry Geis-2
Hi Nicolas,

>If you can't answer this question, then don't set any caps filter and
>let GStreamer negotiate the format for you.

Thanks for your response... I actually have other parameters that I specify that I did not include, like
rate=8000,channels=1  
I need these values as I do not want stereo etc..

I desire the 16 bits. So I think I need to specify it in the command.
I would have thought support for depth=16 would have been left in - and the "endian" be chosen based on the machine architecture.
But that doesn't matter - The thing I dont know is if it is Signed (S16LE) or unsigned (U16LE) ? and LE for Intel machines... ( I think).

Which should it be? Thanks,

Jerry

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: question on audio/x-raw

Tim Müller
On Wed, 2017-07-05 at 15:17 -0400, Jerry Geis wrote:

Hi Jerry,

in 0.10 audio/x-raw-int caps needed an endianness field of either 1234 or 4321 in addition to width=16, depth=16 - which one was it in your case?

If you want "native endianness", then you can create the format string with

GST_AUDIO_NE(S16)

that will expand to either "S16LE" or "S16BE".

Cheers
-Tim
-- 
Tim Müller, Centricular Ltd - http://www.centricular.com

Join us at the GStreamer Conference!
21-22 October 2017 in Prague, Czech Republic

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel