Log in

View Full Version : FFMPEG - Swapped fields converting a 59.94p MJPEG AVI to 25p HDV


SenorKaffee
24th June 2011, 21:28
I'm trying to convert a 59.94fps MJPEG AVIs to 25fps HDV M2TS. The source files are captured from a PS3 via VirtualDub using the Blackmagic MJPEG codec that came with the capture card drivers.

This is the command line used:
ffmpeg -i goddess_blog_mjpeg.avi -r 25 -vcodec mpeg2video -vcodec mpeg2video -b 25000k -acodec mp2 -ab 384k -f mpegts goddess_blog_hdv.m2ts

Example source: http://dl.dropbox.com/u/31960731/goddess_blog_mjpeg.avi (117 MB)
Example processed file: http://dl.dropbox.com/u/31960731/goddess_blog_hdv.m2ts (15 MB)

Problem is that FFMPEG somehow swaps the fields when it interprets the AVI. The VLC player does the same. VirtualDub shows the right field order, so does AviSynth with AVISource. Strange thing.

I already tried adding "top 0" or "top 1", but that does not seem to have an effect on the output. I'd use AviSynth, but there are a lot of files to convert and I can't write a script for each one.

Maybe someone has an idea what I'm doing wrong here?