Advertisement
intracube

ffmpeg -target bug

Aug 24th, 2012
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. This creates clean de-interlaced h264 video:
  2. ffmpeg -i 1080i.MTS -vf yadif=0,scale=720:576 -r 25 -c:v libx264 -crf 18 -preset fast -c:a ac3 -ac 2 -b:a 224k output1.mp4
  3.  
  4. **This creates badly de-interlaced video**:
  5. ffmpeg -i 1080i.MTS -vf yadif=0,scale=720:576 -r 25 -target pal-dvd output2.mpg
  6.  
  7. This creates clean de-interlaced mpeg2 video:
  8. ffmpeg -i 1080i.MTS -vf yadif=0,scale=720:576 -r 25 -c:v mpeg2video -b 8000k -c:a ac3 -ac 2 -b:a 224k output3.mpg
  9. - but this isn't compatible with dvdauthor
  10. dvdauthor errors:
  11. WARN: Skipping sector, waiting for first VOBU...
  12. WARN: Skipping sector, waiting for first VOBU...
  13. WARN: Skipping sector, waiting for first VOBU...
  14. ...
  15. ERR: SCR moves backwards, remultiplex input: 4563416160 < 4563429486
  16.  
  17. ----
  18.  
  19. From further tests, it appears that the '-target' option causes ffmpeg to rescale the video to DVD compliant res (720x576) _before_ the video filter chain. This obviously destroys the interlacing if the vertical input res != vertical output res - and stops yadif from working. If the above is true, ffmpeg '-target' option should resize the video after the filter chain.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement