Advertisement
intracube

ffmpeg formatting/image overlay

Jul 1st, 2012
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. - source is 720x576 16:9 (2.39:1 visible)
  2. - source gets formatted to remove letterbox bars and rescaled to 854x356 (square pixels):
  3. ffmpeg -i input.mpg -vf crop=720:432:0:70,scale=854:356,setsar=1:1 -c:v libx264 -crf 16 -c:a libmp3lame -b:a 128k output.mp4
  4.  
  5. - I want to overlay an image (copyright info, an 854x356 png with alpha) for the entire duration of the source video
  6.  
  7. --
  8.  
  9. Tried this without success:
  10. ffmpeg -i input.mpg -i copyright.png -vf crop=720:432:0:70,scale=854:356,setsar=1:1 -filter_complex 'overlay=0:0' -vcodec libx264 -preset slow -crf 16 -acodec libmp3lame -b:a 128k test.mp4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement