GNOME Bugzilla – Bug 660752
[decodebin2] can't parse mpeg4 tcp stream on client side
Last modified: 2012-09-24 09:24:32 UTC
Hi, using these pipelines: - for server: gst-launch -v videotestsrc ! \ video/x-raw-yuv,width=640,height=480,framerate=10/1 ! clockoverlay ! \ ffmpegcolorspace ! ffenc_mpeg4 ! multipartmux ! tcpserversink \ host=x.x.x.x port=5000 - for client: gst-launch -v tcpclientsrc host=x.x.x.x port=5000 ! multipartdemux \ ! decodebin2 ! xvimagesink It doesn't work, on the client there are just the following lines: 0:00:10.580064107 15854 0x1810140 WARN mpegvideoparse mpegvideoparse.c:246:mpegvideoparse_handle_sequence:<mpegvideoparse0> Width/height out of valid range [16, 4096] 0:00:12.080034791 15854 0x1810140 WARN mpegvideoparse mpegvideoparse.c:246:mpegvideoparse_handle_sequence:<mpegvideoparse0> Width/height out of valid range [16, 4096] If I use ffdec_mpeg4 instead of decodebin2 it's working. Regards Tibor
What are the caps on multipartdemux' srcpad?
And does it work if you manually plug mpeg4videoparse (note the 4)
with manually plugged mpeg4videoparse it's working: gst-launch -v tcpclientsrc host=10.30.0.80 port=5000 ! multipartdemux ! mpeg4videoparse ! ffdec_mpeg4 ! ffmpegcolorspace ! xvimagesink here is a GST_DEBUG=3 and -v log with decodebin2: http://pastebin.com/raw.php?i=gZtk2yp2 As I see the caps on multipartdemux's srcpad is only "video/mpeg".
(In reply to comment #3) > As I see the caps on multipartdemux's srcpad is only "video/mpeg". That's the problem then. decodebin2 will autoplug the first factory that matches this, which is mpegvideoparse. mpegvideoparse will only work with MPEG1/2 though. To fix this either set correct caps on the stream or don't set any caps at all and let the typefinder in decodebin2 do its job.
In the example pipelines I don't set any caps at all. How can I fix it?
You should be able to set the sink-caps property of decodebin2. The problem here probably is that multipart does not support to store all information needed from the caps.
imho it's still a gstreamer bug. if i can put together a proper pipeline while decodebin2 can't then it's a bug in multipart...
I don't know the MIME multipart standard but I'd guess that it's a limitation there.
So is this bug NOTGNOME then?
k. closing as NOTGNOME. Please reopen if this is not appropriate.