scripts:ffmpeg:side_by_side_video

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

scripts:ffmpeg:side_by_side_video [2023-12-20 08:11] – created Tonyscripts:ffmpeg:side_by_side_video [2023-12-20 08:14] (current) Tony
Line 11: Line 11:
  
   ffmpeg -i original.mp4 -i modified.mkv -filter_complex "[1:v]scale=1920x1080:flags=lanczos+full_chroma_inp+full_chroma_int[v1];[0:v][v1]hstack=inputs=2[out]" -map "[out]" -map 1:a -map 0:a -c:a copy -c:v libx264 -crf 18 comparison.mkv   ffmpeg -i original.mp4 -i modified.mkv -filter_complex "[1:v]scale=1920x1080:flags=lanczos+full_chroma_inp+full_chroma_int[v1];[0:v][v1]hstack=inputs=2[out]" -map "[out]" -map 1:a -map 0:a -c:a copy -c:v libx264 -crf 18 comparison.mkv
 +
 +You can use hstack to stack them horizontally, vstack for vertical, or even make your own grid layouts by combining.
 +It will also handle more than 2 inputs. Fun!
  
  • scripts/ffmpeg/side_by_side_video.txt
  • Last modified: 2023-12-20 08:14
  • by Tony