Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Continuing processing an existing video with "skip_first_frames" #344

Open
martineliascz opened this issue Dec 22, 2024 · 2 comments
Open

Comments

@martineliascz
Copy link

Hi @AustinMroz I have a question regarding the "skip_first_frames" functionality in the VHS plugin.

Is it possible to use this option to skip the initial frames and continue processing or merging an already existing video file (e.g., resuming work on the same file after an interruption, such as a power outage)? Specifically, I want to avoid creating a new file and instead modify or continue processing the previously created one.

Thank you for your help!

@AustinMroz
Copy link
Collaborator

There is no existing functionality to append to an existing video file, no. In the case of a power outage specifically, there's a good chance that has incomplete data at the end that would make appending impossible and require.

If the number of frames you are working with is on the moderate end (<500ish), you can use the partial file as an input to a load video as bellow, but this will probably be very heavy on RAM usage.
image

Your best option is likely to use skip_first_frames past the part you do have to produce a second output video and combine the two video files manually.

@martineliascz
Copy link
Author

Thank you so much for the clarification! I ended up going with option #2 by leveraging MediaInfo and FFmpeg binaries. It worked really well and was fast - processing a 5-minute video took only about a second.

Would it be possible to add a toggle/feature that checks the input (source) video frames and compares them to the output? If the output has fewer frames than the source, it could continue processing automatically. I primarily use VHS nodes for 8K video upscaling in the cloud via API and also ComfyUI-to-Python-Extension, and such a feature would be incredibly helpful!

Wishing you a Happy Christmas Holidays! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants