hwangbro

random ffmpeg stuff

Jan 27th, 2021 (edited)
499
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. horizontal stack
  2. ffmpeg -i input0 -i input1 -filter_complex hstack=inputs=2 -vsync 2 output
  3.  
  4. extract still frame
  5. ffmpeg -i input -ss 00:00:00.05 -frames:v 1 output.jpg
  6.  
  7. trim video
  8. ffmpeg -i input -ss <timestamp> -to <timestamp> -avoid_negative_ts make_zero output.mp4
  9.  
  10. map all video streams, 2nd audio stream only
  11. ffmpeg -i INPUT -map 0:v -map 0:a:2 OUTPUT
  12.  
  13. rescale bot output videos
  14. ffmpeg -y -i input.mp4 -vf scale=800:720:flags=neighbor output.mp4
Add Comment
Please, Sign In to add comment