Comments (5)
俺也一样
from video-subtitle-extractor.
俺也一样
from video-subtitle-extractor.
我在本地跑的,也是这样,提取失败。想的是把硬字幕从繁体转化为简体。
选择视频字幕的语言: 繁体中文
选择识别模式: 快速
成功打开视频:C:/Users/Administrator/Desktop/1.mp4
字幕区域:(842,1069,96,1824)
识别字幕语言:chinese_cht
识别模式:fast
使用GPU进行加速
帧数:34729.0,帧率:24.009362699715457
V4-ch_det_fast
V3-chinese_cht_rec_fast
【处理中】开启提取视频关键帧...
【处理中】开始提取字幕信息,此步骤可能花费较长时间,请耐心等待...
【结束】提取视频关键帧完毕...
【结束】完成字幕提取,生成原始字幕文件...
【处理中】开始生成字幕文件
Exception in thread Thread-3:
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\vse\Python\lib\threading.py", line 932, in _bootstrap_inner
self.run()
File "C:\Users\Administrator\Desktop\vse\Python\lib\threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\Administrator\Desktop\vse\resources\gui.py", line 316, in task
self.se.run()
File "C:\Users\Administrator\Desktop\vse\resources\backend\main.py", line 182, in run
self.generate_subtitle_file_vsf()
File "C:\Users\Administrator\Desktop\vse\resources\backend\main.py", line 595, in generate_subtitle_file_vsf
subs = pysrt.open(self.vsf_subtitle)
File "C:\Users\Administrator\Desktop\vse\Python\Lib\site-packages\pysrt\srtfile.py", line 151, in open
source_file, encoding = cls._open_unicode_file(path, claimed_encoding=encoding)
File "C:\Users\Administrator\Desktop\vse\Python\Lib\site-packages\pysrt\srtfile.py", line 292, in _open_unicode_file
encoding = claimed_encoding or cls._detect_encoding(path)
File "C:\Users\Administrator\Desktop\vse\Python\Lib\site-packages\pysrt\srtfile.py", line 279, in _detect_encoding
file_descriptor = open(path, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Administrator\Desktop\vse\resources\output\1\subtitle\raw_vsf.srt'
from video-subtitle-extractor.
I had the same issue, and solved the problem by copying the video I was interested in Google Drive then importing that to the project.
Locate the Google Drive button in the top left action buttons and click on that to install Google Drive in your project. Then add the following command to your notebook :
!mkdir /content/video-subtitle-extractor/input
!cp /content/drive/MyDrive/video.avi /content/video-subtitle-extractor/input/video.avi
Then you should be good to go, in my example the file was 600x400 file so I entered the following values :
/content/video-subtitle-extractor/input/video.avi
280 398 42 643
Hope it helps !
from video-subtitle-extractor.
I still have the same problem after copying videos to the input folder. It seems weirds.
from video-subtitle-extractor.
Related Issues (20)
- windows的gpu版本运行时GPU调用率很低,不超过10%,主要还是CPU工作 HOT 6
- Error: Google Colab (CUDNN error(9), CUDNN_STATUS_NOT_SUPPORTED.)
- 字幕识别率低 HOT 2
- 您好,请问多卡平行多个任务,怎么指定一个任务一个卡?谢谢! HOT 1
- 出现"字幕提取任务出错,请重试"请问应该怎么解决?
- 画面字幕只有 一个字的时候 总是被漏掉 HOT 1
- 为什么不支持A卡呢? HOT 2
- 批量提取视频字幕的时候写入路径报错
- 导出的字幕文件与原视频帧速率不同
- 打开窗口后,下面没有运行键…… HOT 2
- 老是提示:Unknown Metadata OBU type 6
- 能否增加对图片字幕的支持,如独立于视频文件存在的.sup或.sub(idx+sub)本身已是图片形式需要ocr,可略过截图过程 HOT 1
- 太慢了,如何提高速度啊 HOT 2
- please FIX this error HOT 2
- CPU版本后期占用降低
- 安装其他依赖时报错
- 安装过程报错安装不了 HOT 1
- Windows11系统闪退 HOT 1
- 大神想问问 如果增加 泰文 识别 谢谢万分感谢
- gpu-gui版本启动报错 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from video-subtitle-extractor.