Mpv: Use mpv for cutting up videos

Created on 21 Jan 2017  路  4Comments  路  Source: mpv-player/mpv

I wanted to suggest a feature, with which mpv could be used to cut videos up.

Usually, I'd so it with ffmepg, like this this:

ffmpeg -i input.wmv -ss 00:00:30.0 -c copy -t 00:00:10.0 output.wmv

The problem is, that I always have to calculate how long the file would have to be (for -t), and since I already use mpv for finding out when to start and end the video, I thought one could add a feature, to do this automatically.

I'd imagine, this could be done, by, e.g. pressing a to set the beginning of the video, and then c to cut from the point set with a until now. Then the video could be cut (which wouldn't take long, if one only copies) into a separate file, just like with screenshots. One could now debate, whether the point in time when a was set gets forgotten after cutting the video, or if it's remembered, what happens if a specifies a moment after c, etc.

(In case this feature already exists, I apologize for suggesting it, but I couldn't find anything about it in the official documentation)

Most helpful comment

Guess I'll also plug my script which can also preserve some of the currently applied filters (crop in particular).

All 4 comments

Oh, my bad then.

Guess I'll also plug my script which can also preserve some of the currently applied filters (crop in particular).

Thanks a lot for the scripts.

Was this page helpful?
0 / 5 - 0 ratings