[gst-devel] Convert mkv (mjpeg) to mpeg4

Tim-Philipp Müller t.i.m at zen.co.uk
Thu Jul 1 18:02:21 CEST 2010


On Thu, 2010-07-01 at 08:23 -0700, Wes Miller wrote:

> Is this a correct way to convert an mjpeg in a .mkv into an mpeg4 file?

"MPEG4" is a bit ambigious, it refers to video codecs as well as a
container format.

>      gst-launch filesrc location="xyz.mkv" ! matroskademux ! ffenc_mpeg4 !
> filesink location="xyz.mpg"

You should really put encoded video into a container format, such as
matroska (matroskamux), MP4/ISO/Quicktime (mp4mux) or, if you absolutely
have to, AVI (avimux).

Also, if your matroska files contain MJPEG, you will need a decoder
between matroskademux and ffenc_mpeg4. Encoders can usually not encode
straight from JPEG format.

Cheers
 -Tim







More information about the gstreamer-devel mailing list