<div dir="ltr"><div><div><div><div>Thanks for the reply.<br><br></div>Since i dont known the correct format i am using GST_AUDIO_FORMAT_UNKNOWN but still i dont hear the audio. I also tried GST_AUDIO_FORMAT_S16LE (wiz default val) and other options but still audio is not heard.<br>
<br></div>I get the following critical warning:<br><br>GStreamer-CRITICAL **: gst_segment_to_running_time: assertion `segment->format == format' failed<br><br></div>Regards<br></div>Jyoti<br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Aug 22, 2013 at 3:49 PM, Tim-Philipp Müller <span dir="ltr"><<a href="mailto:t.i.m@zen.co.uk" target="_blank">t.i.m@zen.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Thu, 2013-08-22 at 15:28 +0530, jyoti kulkarni wrote:<br>
<br>
Hi,<br>
<div><div class="h5"><br>
> Some of the properties are removed from the audioparse element in<br>
> gstreamer 1.0<br>
><br>
> Like "endianness", "width", "depth" so how can we set these properties<br>
> for audio data.<br>
><br>
> Actually i want to play pcm data for which i need to set all the<br>
> properties for audioparse.<br>
><br>
> But now since these properties are removed i am not able to hear any<br>
> audio and simply get warning messages that these properties cannot be<br>
> set.<br>
><br>
> The same worked fine with gstreamer0.1 where i was able to set all the<br>
> properties and audio was playing fine.<br>
<br>
</div></div>Those are now all part of the "raw-format" property - so you only have<br>
to set one property instead of half a dozen:<br>
<br>
raw-format : Format of audio samples in raw stream<br>
flags: readable, writable<br>
Enum "GstAudioFormat" Default: 4, "s16"<br>
<br>
(0): unknown - GST_AUDIO_FORMAT_UNKNOWN<br>
(1): encoded - GST_AUDIO_FORMAT_ENCODED<br>
(2): s8 - GST_AUDIO_FORMAT_S8<br>
(3): u8 - GST_AUDIO_FORMAT_U8<br>
(4): s16le - GST_AUDIO_FORMAT_S16LE<br>
(5): s16be - GST_AUDIO_FORMAT_S16BE<br>
(6): u16le - GST_AUDIO_FORMAT_U16LE<br>
(7): u16be - GST_AUDIO_FORMAT_U16BE<br>
(8): s24-32le- GST_AUDIO_FORMAT_S24_32LE<br>
(9): s24-32be- GST_AUDIO_FORMAT_S24_32BE<br>
(10): u24-32le- GST_AUDIO_FORMAT_U24_32LE<br>
(11): u24-32be- GST_AUDIO_FORMAT_U24_32BE<br>
(12): s32le - GST_AUDIO_FORMAT_S32LE<br>
(13): s32be - GST_AUDIO_FORMAT_S32BE<br>
(14): u32le - GST_AUDIO_FORMAT_U32LE<br>
(15): u32be - GST_AUDIO_FORMAT_U32BE<br>
(16): s24le - GST_AUDIO_FORMAT_S24LE<br>
(17): s24be - GST_AUDIO_FORMAT_S24BE<br>
(18): u24le - GST_AUDIO_FORMAT_U24LE<br>
(19): u24be - GST_AUDIO_FORMAT_U24BE<br>
(20): s20le - GST_AUDIO_FORMAT_S20LE<br>
(21): s20be - GST_AUDIO_FORMAT_S20BE<br>
(22): u20le - GST_AUDIO_FORMAT_U20LE<br>
(23): u20be - GST_AUDIO_FORMAT_U20BE<br>
(24): s18le - GST_AUDIO_FORMAT_S18LE<br>
(25): s18be - GST_AUDIO_FORMAT_S18BE<br>
(26): u18le - GST_AUDIO_FORMAT_U18LE<br>
(27): u18be - GST_AUDIO_FORMAT_U18BE<br>
(28): f32le - GST_AUDIO_FORMAT_F32LE<br>
(29): f32be - GST_AUDIO_FORMAT_F32BE<br>
(30): f64le - GST_AUDIO_FORMAT_F64LE<br>
(31): f64be - GST_AUDIO_FORMAT_F64BE<br>
(4): s16 - GST_AUDIO_FORMAT_S16<br>
(6): u16 - GST_AUDIO_FORMAT_U16<br>
(8): s24-32 - GST_AUDIO_FORMAT_S24_32<br>
(10): u24-32 - GST_AUDIO_FORMAT_U24_32<br>
(12): s32 - GST_AUDIO_FORMAT_S32<br>
(14): u32 - GST_AUDIO_FORMAT_U32<br>
(16): s24 - GST_AUDIO_FORMAT_S24<br>
(18): u24 - GST_AUDIO_FORMAT_U24<br>
(20): s20 - GST_AUDIO_FORMAT_S20<br>
(22): u20 - GST_AUDIO_FORMAT_U20<br>
(24): s18 - GST_AUDIO_FORMAT_S18<br>
(26): u18 - GST_AUDIO_FORMAT_U18<br>
(28): f32 - GST_AUDIO_FORMAT_F32<br>
(30): f64 - GST_AUDIO_FORMAT_F64<br>
<br>
LE = little endian<br>
BE = big endian<br>
<br>
U = unsigned<br>
S = signed<br>
F = float/double<br>
<br>
Cheers<br>
-Tim<br>
<br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br></div>