Hi!

Mark Heath wrote:


On 02/10/2005, at 6:35 PM, Frank Albrecht wrote:


Is it possible to use mencoder or ffmpeg for capturing for
mjpegtools? I couldn't figure out how to create an input
satifying lav2yuv/mpeg2.


Hopefully this is will answer what you are asking.

Mplayer and ffmpeg can both produce a yuv4mpeg stream which works nicely with mjpeg tools.

the command lines would be like this:

ffmpeg -i input_file.ext -f yuv4mpegpipe  outfile.yuv

you can replace outfile.yuv with - if you want to use standard out.


mplayer will only write to a file called stream.yuv, so if you want to pipe it, you have to use mkfifo. It messes up the interlacing field, it says that every file is progressive and the aspect field saying that the file is 0:0

mplayer -vo yuv4mpeg   input_file.ext

It's been my experience with mplayer 1.0pre7-3.3.5 and later (cvs) that interlacing isn't messed up. However, you must specify that the piped output should be interlaced. When piping to mpeg2enc, it detects when the input file is interlaced and encodes appropriately. My command line looks like:

mplayer -nosound -noframedrop -benchmark -vo yuv4mpeg:interlaced infile

If your source video is bottom-first, then change "interlaced" to "interlaced_bf".

Joe


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to