1 (edited by LiQUiD 29-10-2024 07:02:23)

Topic: Is there anyway to cut / trim video within advanced transcoding?

For example.

I'm trying to transcode a big file that's 1:30:00 but only want to transcode 27:08 - 27:18 (10secs of duration)

I tried lavfi commands with:

trim=start=00:00:27:08:end=00:27:18;

Before frame interpolation as well, but it seems to encode everything still.

Is there a way for me to tell FFMPEG to use the -ss (seek) so it doesn't have to reencode everything up until that point.

Thanks

EDIT:
I also noticed there is some command line arguments for the FFMPEG under additional transcoding settings. How does one format the -ss into that line

Re: Is there anyway to cut / trim video within advanced transcoding?

"trim=start=60:end=120" actually works
however you'll only get a converted _video_ (w/o audio)

Re: Is there anyway to cut / trim video within advanced transcoding?

Chainik wrote:

"trim=start=60:end=120" actually works
however you'll only get a converted _video_ (w/o audio)

The problem is longer videos, though.

Your example, only has to do first 60 secs, which is rather quick.

Try it with a mark of 1628 seconds (27mins08secs) and you'll see what I mean.
It takes forever because it's scrobbling/encoding/doing something in the background to that point).

I noticed there's command line arguments within advanced settings for the transcoder, but can't figure out how to use it with the FFMPEG -ss command (does nothing) apparently that will help because it doesn't reencode. Any insight would be helpful.

Re: Is there anyway to cut / trim video within advanced transcoding?

mpv_args --> --start=+60 --end=+120

Re: Is there anyway to cut / trim video within advanced transcoding?

Chainik wrote:

mpv_args --> --start=+60 --end=+120

Thank you, thank you, thank you.

This worked perfectly. Now I don't have to use a separate program to cut files.

I had a feeling it may not be using FFMPEG (from looking at the log file). When exactly would FFMPEG be used in transcode pipeline and how to tell?

Would it also be possible, to request a feature to set up profiles like the "lavfi" one does, but for mpv, below it under the "Encoder - Advanced" tab for easier tuning.

Again, thank you very much Chainik

Re: Is there anyway to cut / trim video within advanced transcoding?

> When exactly would FFMPEG be used in transcode pipeline

final tracks merging in case mkvmerge fails for some reason