ffmpeg – save last 120 seconds of video file

ffmpeg -sseof -120 -i moviefile.MOV moviefile-last120.MOV

Example in real life:

Put the videos into a directory with nothing else in there.
Then run the following script from that directory:

for file in ls; do echo “$file”; ffmpeg -sseof -120 -i $file $file-last120.MOV; echo “00000”; done


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.