GNOME Bugzilla – Bug 684355
Unable to handle videos with odd width correctly
Last modified: 2021-05-25 17:32:39 UTC
Video created with: gst-launch-0.10 videotestsrc num-buffers=100 ! "video/x-raw-yuv,width=321,height=241" ! ffenc_mpeg4 ! mpeg4videoparse ! mp4mux ! filesink location=test-odd.mp4 Looks completely broken in latest GStreamer 0.10 release and git master, looks like using the wrong rowstride.
This commit fixes it for master (i.e. gst 1.0) http://cgit.freedesktop.org/~bilboed/clutter-gst/commit/?id=b8c0601b077eea62b14d26e55816f6e4c8290fff It depends on all other patches before it
Fixed in master (gstreamer 1.0) at least, not in the 1.6 branch (gstreamer 0.10) yet.
Note that there is a general problem with strides in clutter-gst (well, caused by cogl). Only strides that are rounded up to a integer multiple of width*bpp are supported here, not arbitrary strides (e.g. 16kb stride always, independent of width).
Ping?
Hi Sebastian, could indicate the command to generate the video with Gstreamer 1.0? I'm failing to find the correct syntax :/
There's no way with gst-launch to generate a stream with arbitrary strides currently. You'll have to write some code to do that. Or what do you want to do?
I managed to create a video with this : gst-launch-1.0 videotestsrc num-buffers=1000 ! "video/x-raw,width=321,height=241" ! avenc_mpeg4 ! mpeg4videoparse ! mp4mux ! filesink location=test-odd.mp4 Should that be enough to reproduce the problem? Or do I need something more specific?
Does it reproduce the problem? If it does the fix that Edward mentioned in comment 2 does not work. The problem I mention in comment 3 is not reproducible that easily as you can't produce arbitrary strides with videotestsrc. Would need some simple code around an appsrc that uses a stride that is much larger than width*bpp.
Sebastian, any chance you could provide a simple test case for this?
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new enhancement request ticket at https://gitlab.gnome.org/GNOME/clutter-gst/-/issues/ Thank you for your understanding and your help.