diff options
-rw-r--r-- | ffmpeg.md | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -17,6 +17,15 @@ Works for audio, too. # -1 means to automatically preserve aspect ratio ffmpeg -i in.mp4 -filter:v scale=720:-1 out.mp4 +## Audio/video delay + + ffmpeg -i "$input" -itsoffset <offset in seconds> -i "$input" -map 1:v -map 0:a -c:a copy -c:v libx264 "$output" + +For reverse offset, swap 1 and 0. + +Basically, take the input once with an offset, once without. Take the audio from +one of them, video from the other. + ## Rotate # 90 degrees clockwise |