occivink / mpv-scripts

Various scripts for mpv
The Unlicense
420 stars 38 forks source link

No encoding, just clipping? #13

Closed ProinsiasC closed 6 years ago

ProinsiasC commented 6 years ago

I tried to modify the script so it would take a section of the video without re-encoding but I failed.

Any suggestions to modify the code to clip without encoding would be welcome.

This is not a an issue, thanks for the code :), more of a request

occivink commented 6 years ago

Yes this is supported, in fact there is a profile for that in the repo. Be aware that there are some pitfalls with copying streams: it's not possible to apply filters, and the beginning of the clip will be snapped to the next nearest keyframe.

ProinsiasC commented 6 years ago

Awesome, thank you