File-Streaming not working. Incorrect DTS Timestamps

René Calles gstreamer at renevolution.com
Wed Apr 23 11:34:39 PDT 2014


So, how exactly does it fail? :) 

Oh, i missed to explain that :). So, the Pipeline starts PLAYBACK and everything looks fine from publishing point of view.
Anyway if i try to play the video it seems that there are some gaps in synchronization. It plays sometimes fine for about 5 seconds using ffplay or gstreamer playbin.
When changing the multiqueue to „normal“ queue it doesn’t even start playing. As actually talking about, could you point me to a resource which describes when to choose which queue type in the pipeline?

So far the best results i get using 

GST_DEBUG=4 gst-launch-1.0 -v \
  filesrc location="/Users/reneVolution/WayBackHome_720P25_H264_High31_AACLC_2_CH_44100.mp4" ! queue ! qtdemux name="dmux" \
  flvmux name="mux" streamable="true" ! queue ! rtmpsink location="rtmp://localhost/live/test live=1" \
  dmux.video_0 ! multiqueue name="mq" ! 'video/x-h264,width=1280,height=720,framerate=(fraction)25/1' ! h264parse config-interval=2 ! mux. \
  dmux.audio_0 ! mq. mq. ! "audio/mpeg,mpegversion=4,stream-format=raw" ! aacparse ! mux.


But it doesn’t play fine, after a few seconds an error message

ERROR: DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!
ERROR: HandleMetadata, error decoding meta data packet
ERROR: DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!
ERROR: DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!

is thrown.
If you look at the debug logs (try GST_DEBUG=6), do you see that all 
multiqueue pads are actually linked? Does it work better if you use 
normal queues instead of a multiqueue? Does it work better if you 
specify the exact pad names instead of letting gst-launch figure that 
out? There is a bug with gst-launch that will cause linking to fail in a 
few cases because it's choosing the wrong pads to link if you don't 
specify them yourself with element_name.pad_name. 

Specifing the pad names doesn’t seem to make a difference. 

But strange is that i’m able to find some issues with the multiqueue when grepping for „Could not"

0:00:00.150691000 62712 0x7f8f6150e400 DEBUG       GST_ELEMENT_PADS gstutils.c:1102:GstPad *gst_element_get_compatible_pad(GstElement *, GstPad *, GstCaps *):<mux> Could not find a compatible unlinked always pad to link to aacparse0:src, now checking request pads
0:00:00.153813000 62712 0x7f8f6150e400 INFO                 default gstutils.c:1889:gboolean gst_element_link_pads_filtered(GstElement *, const gchar *, GstElement *, const gchar *, GstCaps *): Could not link pads: dmux:video_0 - mq:(null)
0:00:00.154315000 62712 0x7f8f6150e400 DEBUG       GST_ELEMENT_PADS gstutils.c:1102:GstPad *gst_element_get_compatible_pad(GstElement *, GstPad *, GstCaps *):<mq> Could not find a compatible unlinked always pad to link to capsfilter0:sink, now checking request pads
0:00:00.154559000 62712 0x7f8f6150e400 INFO        GST_ELEMENT_PADS gstutils.c:1123:GstPad *gst_element_get_compatible_pad(GstElement *, GstPad *, GstCaps *):<mq> Could not find a compatible pad to link to capsfilter0:sink
0:00:00.155370000 62712 0x7f8f6150e400 INFO                 default gstutils.c:1874:gboolean gst_element_link_pads_filtered(GstElement *, const gchar *, GstElement *, const gchar *, GstCaps *): Could not link pads: mq:(null) - capsfilter:sink
0:00:00.155700000 62712 0x7f8f6150e400 DEBUG       GST_ELEMENT_PADS gstutils.c:1102:GstPad *gst_element_get_compatible_pad(GstElement *, GstPad *, GstCaps *):<mux> Could not find a compatible unlinked always pad to link to h264parse0:src, now checking request pads
0:00:00.156375000 62712 0x7f8f6150e400 INFO                 default gstutils.c:1889:gboolean gst_element_link_pads_filtered(GstElement *, const gchar *, GstElement *, const gchar *, GstCaps *): Could not link pads: dmux:audio_0 - mq:(null)
0:00:00.156781000 62712 0x7f8f6150e400 DEBUG       GST_ELEMENT_PADS gstutils.c:1102:GstPad *gst_element_get_compatible_pad(GstElement *, GstPad *, GstCaps *):<mq> Could not find a compatible unlinked always pad to link to capsfilter1:sink, now checking request pads
0:00:00.157003000 62712 0x7f8f6150e400 INFO        GST_ELEMENT_PADS gstutils.c:1123:GstPad *gst_element_get_compatible_pad(GstElement *, GstPad *, GstCaps *):<mq> Could not find a compatible pad to link to capsfilter1:sink
0:00:00.158244000 62712 0x7f8f6150e400 INFO                 default gstutils.c:1874:gboolean gst_element_link_pads_filtered(GstElement *, const gchar *, GstElement *, const gchar *, GstCaps *): Could not link pads: mq:(null) - capsfilter:sink
0:00:00.469011000 62712 0x7f8f618bf940 DEBUG       GST_ELEMENT_PADS gstutils.c:1102:GstPad *gst_element_get_compatible_pad(GstElement *, GstPad *, GstCaps *):<mq> Could not find a compatible unlinked always pad to link to dmux:video_0, now checking request pads
0:00:00.474279000 62712 0x7f8f618bf940 DEBUG       GST_ELEMENT_PADS gstutils.c:1102:GstPad *gst_element_get_compatible_pad(GstElement *, GstPad *, GstCaps *):<mq> Could not find a compatible unlinked always pad to link to capsfilter3:sink, now checking request pads
0:00:00.474536000 62712 0x7f8f618bf940 INFO        GST_ELEMENT_PADS gstutils.c:1123:GstPad *gst_element_get_compatible_pad(GstElement *, GstPad *, GstCaps *):<mq> Could not find a compatible pad to link to capsfilter3:sink
0:00:00.475854000 62712 0x7f8f618bf940 INFO                 default gstutils.c:1874:gboolean gst_element_link_pads_filtered(GstElement *, const gchar *, GstElement *, const gchar *, GstCaps *): Could not link pads: mq:(null) - capsfilter:sink
0:00:00.478337000 62712 0x7f8f618bf940 DEBUG       GST_ELEMENT_PADS gstutils.c:1102:GstPad *gst_element_get_compatible_pad(GstElement *, GstPad *, GstCaps *):<mq> Could not find a compatible unlinked always pad to link to capsfilter4:sink, now checking request pads
0:00:00.478588000 62712 0x7f8f618bf940 INFO        GST_ELEMENT_PADS gstutils.c:1123:GstPad *gst_element_get_compatible_pad(GstElement *, GstPad *, GstCaps *):<mq> Could not find a compatible pad to link to capsfilter4:sink
0:00:00.479920000 62712 0x7f8f618bf940 INFO                 default gstutils.c:1874:gboolean gst_element_link_pads_filtered(GstElement *, const gchar *, GstElement *, const gchar *, GstCaps *): Could not link pads: mq:(null) - capsfilter:sink
0:00:00.482039000 62712 0x7f8f618bf940 INFO                 default gstutils.c:1889:gboolean gst_element_link_pads_filtered(GstElement *, const gchar *, GstElement *, const gchar *, GstCaps *): Could not link pads: dmux:audio_0 - mq:(null)
0:00:00.482361000 62712 0x7f8f618bf940 DEBUG       GST_ELEMENT_PADS gstutils.c:1102:GstPad *gst_element_get_compatible_pad(GstElement *, GstPad *, GstCaps *):<mq> Could not find a compatible unlinked always pad to link to dmux:audio_0, now checking request pads

and when using queue:

0:00:00.170287000 62747 0x7fc681411c00 DEBUG       GST_ELEMENT_PADS gstutils.c:1102:GstPad *gst_element_get_compatible_pad(GstElement *, GstPad *, GstCaps *):<mux> Could not find a compatible unlinked always pad to link to aacparse0:src, now checking request pads
0:00:00.173323000 62747 0x7fc681411c00 INFO                 default gstutils.c:1889:gboolean gst_element_link_pads_filtered(GstElement *, const gchar *, GstElement *, const gchar *, GstCaps *): Could not link pads: dmux:video_0 - queue2:(null)
0:00:00.175498000 62747 0x7fc681411c00 DEBUG       GST_ELEMENT_PADS gstutils.c:1102:GstPad *gst_element_get_compatible_pad(GstElement *, GstPad *, GstCaps *):<mux> Could not find a compatible unlinked always pad to link to h264parse0:src, now checking request pads
0:00:00.176285000 62747 0x7fc681411c00 INFO                 default gstutils.c:1889:gboolean gst_element_link_pads_filtered(GstElement *, const gchar *, GstElement *, const gchar *, GstCaps *): Could not link pads: dmux:audio_0 - queue3:(null)
0:00:00.501436000 62747 0x7fc6820a02d0 INFO                 default gstutils.c:1889:gboolean gst_element_link_pads_filtered(GstElement *, const gchar *, GstElement *, const gchar *, GstCaps *): Could not link pads: dmux:audio_0 - queue3:(null)


What i don’t understand is if those links fail … how is it possible the pipeline reaches PLAYBACK state? :)

Thanks,
René



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140423/df639902/attachment.html>


More information about the gstreamer-devel mailing list