Avimux refused caps video/x-h264

William Salibrici bsalibrici at latticeinc.com
Tue Jul 12 19:52:37 UTC 2016


Hello,
The following rtpbin receiver pipeline works just fine for me. My receiver machine is windows 7, 64 bit and I'm using GStreamer 1.8.1 with your windows pre-built binaries. I receive an h264 video stream and display it and its associated mulaw audio stream and play it. The audio and video are synchronized and all is well here.
rtpbin name=rtpbin udpsrc address="192.168.1.101" port=5018
caps="application/x-rtp,media=video,clock-rate=90000,encoding-name=H264,payload=96" ! rtpbin.recv_rtp_sink_0 rtpbin. ! rtph264depay ! h264parse ! openh264dec ! videoconvert ! d3dvideosink udpsrc address="192.168.1.101" port=5020
caps="application/x-rtp,media=audio,clock-rate=8000,encoding-name=PCMU,payload=0" ! rtpbin.recv_rtp_sink_1 rtpbin. ! rtppcmudepay ! mulawdec ! directsoundsink

Next I'm attempting to use the following similar rtpbin receiver pipeline to mux the audio and video streams together to create a movie file and it fails with 'streaming task paused, reason not-negotiated (-4)'. As you can see, the front end of this pipeline [for each stream up to the queues] is identical to the one above that works ok. My rtpbin sender is sending identical data for both receiver pipelines using the same ports for audio and video.
rtpbin name=rtpbin udpsrc address="192.168.1.101" port=5018
caps="application/x-rtp,media=video,clock-rate=90000,encoding-name=H264,payload=96" ! rtpbin.recv_rtp_sink_0 rtpbin. ! rtph264depay ! h264parse ! queue ! mux. udpsrc address="192.168.1.101" port=5020
caps="application/x-rtp,media=audio,clock-rate=8000,encoding-name=PCMU,payload=0" ! rtpbin.recv_rtp_sink_1 rtpbin. ! rtppcmudepay ! queue ! mux. avimux name=mux ! filesink location=C:/my/movie.avi sync=true max-lateness=900000000

I have attached three [reasonably small] debug files as follows:
debug.log - obtained with 'set GST_DEBUG=2,*udp*:6,*avi*:6'.
test-normal.txt - screen capture for 'gst-launch-1.0 -e' of pipeline.
test-dash-v.txt - screen capture for 'gst-launch-1.0 -e -v' of pipeline [shows some caps info].

If you look at line 273 of the debug log, you will see the following:
'gst_avi_mux_vidsink_set_caps:<mux> refused caps video/x-h264, ...'

Using the inspect tool for avimux shows the following for an acceptable sink pad capability:

      video/x-h264

          stream-format: byte-stream

              alignment: au

                  width: [ 16, 4096 ]

                 height: [ 16, 4096 ]

              framerate: [ 0/1, 2147483647/1 ]

So it appears as though an acceptable sink capability is being rejected but I don't understand why. I might be tripping over something simple. Any ideas on what I could be doing wrong?
Thanks,
Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160712/48a08abb/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debug.log
Type: application/octet-stream
Size: 51649 bytes
Desc: debug.log
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160712/48a08abb/attachment-0001.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test-dash-v.txt
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160712/48a08abb/attachment-0002.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test-normal.txt
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160712/48a08abb/attachment-0003.txt>


More information about the gstreamer-devel mailing list