Capturing jpegs from an h264 stream

Tim-Philipp Müller t.i.m at zen.co.uk
Fri Jun 7 02:14:21 PDT 2013


On Fri, 2013-06-07 at 10:39 +0200, Mailing List SVR wrote:

Hi,

> I don't have a Raspeberry PI, I only tested your file on desktop pc and 
> this pipeline works fine (7 jpgs are produced):

That's a good idea :)

> cat /tmp/testvideo.h264 | gst-launch-0.10 -v fdsrc fd=0 ! h264parse ! 
> ffdec_h264 ! videorate ! video/x-raw-yuv,framerate=1/1 ! jpegenc ! 
> multifilesink location=/tmp/img_%04d.jpg
> 
> I was not able to have the same works in 1.0 (pipeline runs but no jpeg 
> are produced) so there is a regression somewhere in 1.0 or simply I'm 
> doing something wrong converting the above pipeline to 1.0,

This works fine for me (with 1.0.x at least, there seems to be a bit of
an issue with this in git master / 1.1.x though):

cat /home/tpm/rpi/hello_pi/hello_video/test.h264 | gst-launch-1.0
fdsrc ! video/x-h264,framerate=25/1,stream-format=byte-stream !
h264parse ! avdec_h264 ! videorate ! video/x-raw,framerate=1/1 !
videoconvert ! jpegenc ! multifilesink location=/tmp/img_%04d.jpg

Cheers
 -Tim



More information about the gstreamer-devel mailing list