GNOME Bugzilla – Bug 572413
[jpegenc] crashes if no input format has been set
Last modified: 2009-02-25 12:52:23 UTC
when I tpyed this command: gst-launch filesrc location=111.jpg ! jpegdec ! filesink location=222 gst-launch filesrc location=222 ! jpegdenc ! filesink location=111bak.jpg I think with these commands,I can convert the jpeg file into YUV bitstream,and recover the YUV bitstream to the jpeg. but the error occur when I run with: gst-launch filesrc location=222 ! jpegdenc ! filesink location=111bak.jpg the reslut is segment default.Is there any error in my command ,or it is the bugs with the Gstreamer plugins ?
Both. GStreamer crashing is always a bug. It should error out correctly in this case. However, your pipeline is also wrong. You will need to use a rawvideoparse element if you want to read raw YUV frames from a file (make sure to set the right properties, format/width/height etc.).
Fixed in git: commit 1a2bd6c617dff728a93801d98aeb81d1c8bd5c07 Author: Tim-Philipp Müller <tim.muller@collabora.co.uk> Date: Thu Feb 19 20:14:10 2009 +0000 jpegenc: error out instead of crashing if no caps have been set Don't crash if we receive a buffer without caps. Fixes #572413.