scripts:ffmpeg:side_by_side_video
Differences
This shows you the differences between two versions of the page.
| |
| scripts:ffmpeg:side_by_side_video [2023-12-20 08:11] – created Tony | scripts:ffmpeg:side_by_side_video [2023-12-20 08:14] (current) – Tony |
|---|
| |
| 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.1703059904.txt · Last modified: by Tony