Skip to content

Instantly share code, notes, and snippets.

@mpalet
Created February 12, 2019 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mpalet/2ae30d6b284f91248284bcb58ca020bd to your computer and use it in GitHub Desktop.
Save mpalet/2ae30d6b284f91248284bcb58ca020bd to your computer and use it in GitHub Desktop.
ffmpeg play side by side
ffmpeg -i "$f" -i "$f1" -filter_complex "[0:v]setpts=PTS-STARTPTS, yadif, pad=iw*2:ih[bg]; \
[1:v]setpts=PTS-STARTPTS[fg]; [bg][fg]overlay=w" -f matroska - | ffplay -
ffmpeg -i "$f" -i "$f1" -filter_complex "[0:v]setpts=PTS-STARTPTS[bg]; \
[1:v]setpts=PTS-STARTPTS[fg]; [bg][fg]blend=all_mode=difference" -f matroska - | ffplay -
ffmpeg -i "$f" -vcodec libx265 -crf 20 -x265-params "sao=0" -x265-params "aq-mode=3" -f matroska - | ffmpeg -i - -i "$f" -filter_complex "[0:v]setpts=PTS-STARTPTS[bg]; \
[1:v]setpts=PTS-STARTPTS[fg]; [bg][fg]blend=all_mode=difference" -f matroska - | ffplay -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment