raw mpeg to mjpeg transcoding using the gstreamer plugin
Mohammed Sameer
msameer at foolab.org
Thu May 2 11:19:28 PDT 2013
On Thu, May 02, 2013 at 05:34:27PM +0000, Kalkere, Giridhara(IE10) wrote:
[...]
> I am working on a multimedia project where I wanted to convert the raw
> mpeg4 stream into mjpeg images.
[...]
> For some reason I want to convert them into bunch of images. (if I have
> recorded for 1 min @10FPS = 600 jpeg images)
[...]
> 1. gst-launch filesrc location="/mnt/sd/365.m4v" ! decodebin !
> ffenc_mjpeg ! filesink location="/mnt/sd/1.jpeg"
You should use this:
gst-launch-0.10 filesrc location=videofile0.mp4 ! decodebin ! ffenc_mjpeg ! multifilesink location="%05d.jpg"
multifilesink saves every GstBuffer it receives into its own separate file while filesink
saves everything in 1 file.
Your pipeline encodes all images and just dumps them into a single file thus it was broken.
Cheers,
--
GPG-Key: 0xA3FD0DF7 - 9F73 032E EAC9 F7AD 951F 280E CB66 8E29 A3FD 0DF7
Debian User and Developer.
Homepage: www.foolab.org
More information about the gstreamer-devel
mailing list