Giter VIP home page Giter VIP logo

Comments (5)

codernew007 avatar codernew007 commented on June 14, 2024 1

俺也一样

from video-subtitle-extractor.

YaoFANGUK avatar YaoFANGUK commented on June 14, 2024 1

俺也一样

from video-subtitle-extractor.

zzp198 avatar zzp198 commented on June 14, 2024

我在本地跑的,也是这样,提取失败。想的是把硬字幕从繁体转化为简体。

选择视频字幕的语言: 繁体中文
选择识别模式: 快速
成功打开视频: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.

clementmoine avatar clementmoine commented on June 14, 2024

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.

thhung avatar thhung commented on June 14, 2024

I still have the same problem after copying videos to the input folder. It seems weirds.

from video-subtitle-extractor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.