I have a DVD, if I play the .VOB file directly in VLC, with the option automatic set for deinterlace. Then the picture looks smooth. However, if I convert that .VOB to a .mp4 with:

ffmpeg -i out.vob converted.mp4

Then when I view the mp4 in VLC, by default, it looks like it's not interlaced and there are awful horizontal lines everywhere. If I change the option for deinterlace in VLC to on then the picture looks smooth...

It appears that some how when I am converting this, the interlacing is getting flipped or something? Because for whatever reason with VLC's automatic option, it seems to think a video that requires interlacing doesn't actually require it. Whereas with the .VOB it detected everything properly.

When I look at the .VOB metadata, I see:

Input #0, mpeg, from 'out.vob':
  Duration: 00:46:58.69, start: 3697.324300, bitrate: 6093 kb/s
  Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
  Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, smpte170m, bottom first), 720x480 [SAR 8:9 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc

And the metadata for the converted file:

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'converted.mp4':
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.76.100
  Duration: 00:46:58.82, start: 0.000000, bitrate: 1710 kb/s
  Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, smpte170m), 720x480 [SAR 8:9 DAR 4:3], 1573 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]

Is there some flag I should be setting when doing the conversion to preserve interlaced info?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.