MP3 + JPEG --> MP4 - what's wrong with this pipeline?

Tim-Philipp Müller t.i.m at zen.co.uk
Mon Mar 5 09:26:36 PST 2012


On Mon, 2012-03-05 at 17:56 +0100, Michael Niemand wrote:

> gst-launch filesrc location=audio.mp3 ! mp3parse ! mp4mux name=mux
> filesrc location=image.jpg ! jpegdec ! x264enc ! mux. ! filesink
> location=output.mp4

The problematic bit is "mux. ! filesink"

mux. means 'link the left element to a suitable pad on the element named
mux', so the ! after that doesn't make sense.

Try:

gst-launch filesrc location=audio.mp3 ! mp3parse ! mp4mux name=mux
filesink location=output.mp4  filesrc location=image.jpg ! jpegdec !
x264enc ! mux.

Cheers
 -Tim 





More information about the gstreamer-devel mailing list