jhogsett / EMA-VFI-WebUI

Advanced AI-Based Video Renovation UI Using EMA-VFI & Real-ESRGAN
MIT License
64 stars 4 forks source link

Could you integrate video frame extraction? #87

Closed zelenooki87 closed 1 year ago

zelenooki87 commented 1 year ago

Please integrate ffmpeg video extraction and option to save intepolated frames as video. That will save my time very. thank you

jhogsett commented 1 year ago

Hi @zelenooki87 both features are already available:

MP4 to PNG Sequence

PNG Sequence to MP4

There are some other tools available on the Tools tab

zelenooki87 commented 1 year ago

yeah, I knew that. Would you consider to automate process....? just to insert video file and than convert to desired framerate, like nmkd did in Flowframes? and add prores option as export. With audio. Project is okay, ema vfi has great potential but please automate process for simpliffier use. thanks

jhogsett commented 1 year ago

I see. I think it would work like this:

I like it.

I'm working on something like this called Video Remixer (in final testing stage). It works like this:

If ones leaves out the scene choosing part of the feature, it's almost exactly what you're asking for. (I don't know much about prores, but if FFmpeg can output it, so can this tool.)

I plan to merge the pull request soon. The feature tab will be found on Tools, Split & Merge Frames, Video Remixer.

zelenooki87 commented 1 year ago

How should I set new video path on video remixer tab? In "Input a video to get started remixing": always getting error, frame interpolation on extracted folders working okay, but when I try to create new project, it wont let me says "error" always getting error,

jhogsett commented 1 year ago

It should be a full path to a video on the same server, like (in my case):

c:\content\videos\somevideo.mp4

What is the error? What is showing in the log viewer?

zelenooki87 commented 1 year ago

friend, problem in my case was environment conda, cause I used it for onother two github projects... i created new conda environment from scratch and everything is OK.

zelenooki87 commented 1 year ago

could you please change factor for saving videos to be smaller than 17? for lossless saving? thank you

jhogsett commented 1 year ago

You can alter that default value yourself in the config.yaml file, it's in the 'remixer_settings' section:

remixer_settings:
  minimum_crf: 17

Also, if you care to, you can save custom settings to your own .yaml file and pass it on the command line when starting up.

This is how I start mine:

>python webui.py --config_path "config-local.yaml"
zelenooki87 commented 1 year ago

Thank you, realy appreciate

jhogsett commented 1 year ago

@zelenooki87 you might find this feature useful https://github.com/jhogsett/EMA-VFI-WebUI/pull/97

It let's you output the remixed video with your own custom audio and video FFmpeg command-line options, so you are not limited to only MP4. I think this might help you, since you mentioned prores output. I have tested and been able to create MPG and WMV videos using it.