YaoFANGUK / video-subtitle-extractor

视频硬字幕提取,生成srt文件。无需申请第三方API,本地实现文本识别。基于深度学习的视频字幕提取框架,包含字幕区域检测、字幕内容提取。A GUI tool for extracting hard-coded subtitle (hardsub) from videos and generating srt files.
Apache License 2.0
6.22k stars 682 forks source link

100x Speedup trick #340

Open hackeranmol opened 2 months ago

hackeranmol commented 2 months ago

100x Speedup by lowering the video fps! Why the hell developer does not implemented the functionliaty of lowering frame rate of video by this defualt. It would have save me so much time if i knew about this before

Before extracting the subtitles. Prepare the video by converting it using free video converter (https://www.any-video-converter.com/en8/for_video_free/) using following settings

image

Also i want to mention this issue to the developer @YaoFANGUK that v2 version is 10x slower than v1 version. I dont know if this is just for me. I have a nvidia 1650 8gb graphic card. Please ask other users about this issue to confirm it

hackeranmol commented 2 months ago

Forgive me for over exaggerating the numbers before :)

Real calculated number should be around 10x faster. Previously it took me 40-50 min to do a 2 hour 30 min video on my 1650. Now it only takes 4-5 min if i prepare the video before hand with a video comvertor using above settings

And i am using old v1 instead of v2. Because don't t know why but v2 version is 2x slower than the v1 on my laptop - Fx505dt