dain-ncnn-vulkan icon indicating copy to clipboard operation
dain-ncnn-vulkan copied to clipboard

Is it possible to pipe ffmpeg in?

Open Qwertie- opened this issue 3 years ago • 1 comments

The readme instructions involve dumping all frames on to the hard drive before running the tool over them. With other tools I have seen its possible to have ffmpeg piped in so the frames do not have to be stored which is pretty useful since they can easily take up hundreds of GB. Is there a way to do that here?

Qwertie- avatar Dec 04 '20 10:12 Qwertie-

@Qwertie- I have an idea, but it may or may not work - instead of extracting all frames at once, maybe you can try extracting certain frames within a range, let's say 1 second. Run that through dain-ncnn-vulkan, save the output into a video somehow, and then concatenate multiple video clips into your real output. With the same parameters for each of your clips, it should be doable to just concatenate the video without re-encoding. If your video has audio, I guess it will be major pain to re-sync it, but I never worked with that before so I might be wrong.

takase1121 avatar Dec 11 '20 09:12 takase1121