[MPlayer-users] AVI MJPEG -> MPEG, I've got it

January Weiner 3 jweiner1 at ix.urz.uni-heidelberg.de
Fri Dec 13 16:06:03 CET 2002


Hello,
	recently I was reporting troubles with turning a short 9.87 fps MJPEG
AVI into something which could be easily viewed by people using default
installs of Quicktime Player or Windows Media Player.  I discovered now
that the simplest solution is to create an MPEG using mpeg_tools package
via mencoder to adjust the fps.

	Here's how it can be done:

1.  Adjust the fps (mpeg_tools can only accept specific fps values)...

	mencoder -ofps 25 -ovc copy mysz.avi

2.  Use the mpeg2enc to create the m1v file.
	lav2yuv test.avi | mpeg2enc -b 1152 -q 5 -o mysz.mpg

...and presto!  lav2yuv notably complains about some of the frames not
being JPEG files, but the result is none the less OK.  The files are, of
course, much larger then the corresponding avi files :-) but this is just
the trade-off.

My mistake before was to try to use the transcode package, which messes up
the output mpeg file (no idea whether I screwed up the installation or
whether it is just the way transcode behaves).

There is a nice MPEG howto available at

http://sourceforge.net/docman/display_doc.php?docid=3456&group_id=5776#ss6.5

Best regards,
j.


----)-\//-///-----------------------------------January-Weiner-3-------
Zoom! -what was that? That was your life, mate. Oh, that was
quick, do I get another? Sorry mate, that's your lot. [ Basil ]




More information about the MPlayer-users mailing list