After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 572413 - [jpegenc] crashes if no input format has been set
[jpegenc] crashes if no input format has been set
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
0.10.22
Other Linux
: Normal normal
: 0.10.15
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-02-19 13:58 UTC by tsing
Modified: 2009-02-25 12:52 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description tsing 2009-02-19 13:58:18 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 ?
Comment 1 Tim-Philipp Müller 2009-02-19 19:53:47 UTC
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.).

Comment 2 Tim-Philipp Müller 2009-02-25 12:52:23 UTC
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.