TNTwise / REAL-Video-Enhancer

Interpolate and Upscale easily on Linux/Windows.
GNU Affero General Public License v3.0
268 stars 19 forks source link

Average frame rate detection (work for variable fps also) Find all video files in the input directory using ffproble implementation #42

Open zelenooki87 opened 1 week ago

zelenooki87 commented 1 week ago

I tried the program on a few videos with a variable frame rate and the output audio and video are out of sync. I think it's better to determine the average frame rate. And for video detection, use ffprobe if you are inserting a batch function. Currently we are limited to only a few supported extensions, and although ffmpeg can process avi, 3gp when we rename them to, for example, mp4, the program detects them correctly. Look at the average frame rate logic and ffprobe for detection from these two scripts.

https://pastebin.com/bT4x9sGx https://pastebin.com/XdNZAKr3

TNTwise commented 1 week ago

Ill look into it, thanks.