video2x icon indicating copy to clipboard operation
video2x copied to clipboard

Allow exporting just the muxed frames

Open Inrixia opened this issue 5 years ago • 4 comments

Description

When up-scaling I usually get video2x to just output the muxed frames into a video container to encode using a separate process than the ffmpeg pipeline built into video2x. However there is no option as far as I can tell to stop video2x from attempting to encode and do stream merging, I have just been setting ffmpeg to mux instead of encode but its still a lot of unnecessary IO and I get constant errors with the stream merging stages resulting in the inability to batch process things.

Is there a way or could you make it possible to only output the "intermediate.mkv" file to the output directory and stop there?

Inrixia avatar Aug 20 '20 11:08 Inrixia

You could change the stream merging options and choose what to copy: image

k4yt3x avatar Aug 20 '20 23:08 k4yt3x

That still doesn't let you disable it completely however. I've unchecked every box there and it still attempts to do it. Plus the previous ffmpeg "encoding step" will also run regardless of settings.

What I'm talking about is an option to only output the intermediate.mkv file and not do the encoding and stream merging steps at all

Inrixia avatar Aug 21 '20 01:08 Inrixia

The final "stream migration" should run regardless of your mapping settings. The intermediate video that contains only the frames muxed into a video is in a fixed video and container format (libx264 in MKV). The final step is required to convert that into whatever you specify it to output (libx265, MP4, etc.).

k4yt3x avatar Sep 01 '20 06:09 k4yt3x

Yea if you actually want all the encoding and muxing to be done by ffmpeg which I don't. I want to be able to take the muxed images in a mkv container and encode it into a format using a process seperate from video2x/ffmpeg, the muxing etc required to create a full video with all audio/subs streams would ofc be manual. But with the current setup to do this you basically have to set ffmpeg to just copy the streams 3 times which when one 20min episode is around 100GB takes forever and is completely pointless.

Ideally just some sort of config option where you can have the upscaling process rename/move the intermediate.mkv file (which just contains the muxed pngs) to the output and then stop there would be great. That way I can encode using a much better process than what ffmpeg can do, without having to wait hours for 100GB to copy over and over

Inrixia avatar Sep 01 '20 07:09 Inrixia