code for converting raw image to jpeg image

David Viana davidkviana at gmail.com
Wed Nov 26 10:21:06 PST 2014


Hello Kyrylo V Polezhaiev and guys, I'm trying work with this method but it
doesn't work when my image has a different resolution of 640x480, and only
in gst-launch-1.0, at gst-launch-0.10 doesn't work.
Here it is ok:
gst-launch-1.0 -vvv filesrc location=/tmp/images/frame1.raw blocksize=614400
! video/x-raw,format=YUY2,width=640,height=480,framerate=1/1 ! jpegenc !
filesink location=/tmp/out.jpg

But, I capture other images with 800x600 in raw, when I try:
gst-launch-1.0 -vvv filesrc location=/tmp/images/frame2.raw blocksize=720000
! video/x-raw,format=YUY2,width=800,height=600,framerate=1/1 ! jpegenc !
filesink location=/tmp/out.jpg

The errors are:
0:00:00.028406272  6516      0x19975e0 ERROR                default
video-frame.c:149:gst_video_frame_map_id: invalid buffer size 614400 <
960000
0:00:00.028471267  6516      0x19975e0 WARN                 jpegenc
gstjpegenc.c:526:gst_jpegenc_handle_frame:<jpegenc0> invalid frame received
0:00:00.028505757  6516      0x19975e0 ERROR           videoencoder
gstvideoencoder.c:2009:gst_video_encoder_finish_frame:<jpegenc0> Output
state was not configured
0:00:00.028561810  6516      0x19975e0 WARN                 basesrc
gstbasesrc.c:2865:gst_base_src_loop:<filesrc0> error: Internal data flow
error.
0:00:00.028606561  6516      0x19975e0 WARN                 basesrc
gstbasesrc.c:2865:gst_base_src_loop:<filesrc0> error: streaming task paused,
reason error (-5)
ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal
data flow error.
Additional debug info:
gstbasesrc.c(2865): gst_base_src_loop ():
/GstPipeline:pipeline0/GstFileSrc:filesrc0:
streaming task paused, reason error (-5)

Any help me, please.
Thank you guys.



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/code-for-converting-raw-image-to-jpeg-image-tp4661629p4669693.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list