On Tue, 6 Jul 2004, Matto Marjanovic wrote:

mpeg2enc only knows what the stream header tells it --- pipe the output
of mplayer into "head -1" and you can see for yourself.  My guess is
that mplayer is indicating "Ip" for "progressive/non-interlaced".

You were right, MPlayer was generating a progressive datastream, because the MJPEG avi appears to be stored in progressive format. I don't understand why, it would make more sense if it was stored in interlaced format as it was captured from TV. But that doesn't matter, because you can have MPlayer output it in interlaced format anyway. If you say:


mplayer movie.avi -vo yuv4mpeg:interlaced

or

mplayer movie.avi -vo yuv4mpeg:interlaced_bf

if your source has bottom fields first, MPlayer will output an interlaced stream. These options of the yuv4mpeg output driver are not documented, but I found a CVS commit that adds this option.

So, although the captured avi is stored in progressive format, I can make MPlayer re-interpret it as being interlaced and output interlaced yuv4mpeg. I don't have access to a videocapture box rightnow, so I cannot test this interlaced output. Hopefully it will work.

Thanks a lot for the other technical info on interlaced datastreams, it's much more complicated than I thought.

>I don't want to use mjpegtools to feed the avi file to mpeg2enc because I
>need to do some processing that only MPlayer can do. That's why I have to
>feed MPlayer generated yuv4mpeg video streams to mpeg2enc.

Out of curiousity, what processing are you trying to do?  Maybe you'll
inspire someone to add a tool to the mjpegtools-box.

I am developing a simple Kommander GUI to capture video and burn it to DVD. It's just that I want to have a lot of processing possibilities at hand so that's why MPlayer is my weapon of choice. There is nothing specific that I miss about the MJPEG Tools. Also, I don't think that it should try to offer as many processing possibilities as MPlayer has.


Thanks for helping me out,

Dik


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to