<p>Hi,<br>
I am actually reading a mp4 file and decoding it and writing the decoded buffer to a file as below:</p>
<p>gst-launch filesrc location=test.mp4 ! qtdemux name=d d.audio_00 ! avdec_aac ! appsink d.video_00 ! avdec_h264 ! appsink</p>
<p>Now i write these audio video buffers to a files audio.pcm and video.yuv using fwrite.</p>
<p>In my other application i use audio.pcm and video.yuv to play them as below using appsrc</p>
<p>appsrc ! audioparse ! alsasink appsrc ! videoparse ! xvimagesink and will set the properties for audio and videoparse.</p>
<p>i am able to see video but no audio.</p>
<p>below are the property values which were working in gstreamer0.1<br>
endiannes=1234<br>
width=16<br>
depth=16<br>
i had not set format property previously.</p>
<p>Thanks<br>
jyoti</p>
<div class="gmail_quote">On Aug 22, 2013 4:23 PM, "Tim-Philipp Müller" <<a href="mailto:t.i.m@zen.co.uk">t.i.m@zen.co.uk</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Thu, 2013-08-22 at 16:04 +0530, jyoti kulkarni wrote:<br>
<br>
> Since i dont known the correct format i am using<br>
> GST_AUDIO_FORMAT_UNKNOWN but still i dont hear the audio. I also tried<br>
> GST_AUDIO_FORMAT_S16LE (wiz default val) and other options but still<br>
> audio is not heard.<br>
<br>
If you tell us the previous settings for format, endianness, width,<br>
depth and signedness we can tell you the format..<br>
<br>
Cheers<br>
-Tim<br>
<br>
> I get the following critical warning:<br>
><br>
> GStreamer-CRITICAL **: gst_segment_to_running_time: assertion<br>
> `segment->format == format' failed<br>
><br>
><br>
> Regards<br>
><br>
> Jyoti<br>
><br>
><br>
><br>
> On Thu, Aug 22, 2013 at 3:49 PM, Tim-Philipp Müller <<a href="mailto:t.i.m@zen.co.uk">t.i.m@zen.co.uk</a>><br>
> wrote:<br>
> On Thu, 2013-08-22 at 15:28 +0530, jyoti kulkarni wrote:<br>
><br>
> Hi,<br>
><br>
> > Some of the properties are removed from the audioparse<br>
> element in<br>
> > gstreamer 1.0<br>
> ><br>
> > Like "endianness", "width", "depth" so how can we set these<br>
> properties<br>
> > for audio data.<br>
> ><br>
> > Actually i want to play pcm data for which i need to set<br>
> all the<br>
> > properties for audioparse.<br>
> ><br>
> > But now since these properties are removed i am not able to<br>
> hear any<br>
> > audio and simply get warning messages that these properties<br>
> cannot be<br>
> > set.<br>
> ><br>
> > The same worked fine with gstreamer0.1 where i was able to<br>
> set all the<br>
> > properties and audio was playing fine.<br>
><br>
><br>
> Those are now all part of the "raw-format" property - so you<br>
> 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,<br>
> "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>
><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>
<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>