Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]-长视频字幕词库播放报错 #44

Closed
NirvanaWong opened this issue Jan 1, 2024 · 9 comments
Closed

[bug]-长视频字幕词库播放报错 #44

NirvanaWong opened this issue Jan 1, 2024 · 9 comments
Labels
bug Something isn't working

Comments

@NirvanaWong
Copy link

NirvanaWong commented Jan 1, 2024

为了更好些的利用美剧全集帮助背单词,通常需要将美剧等台词词库连接到正在背的专业词库中,但一个一个链接实在太慢,而且不利于文件管理。此时就需要将剧集合并后整成字幕词库,例如,我就将全集老友记合并为了一个时长89小时的超大视频,PotPlayer等播放器均能够正常播放)。然而,目前在Mujing生成的字幕词库中,似乎原视频超过24小时会就会在点击播放原文时报错("Text "80:52:52.000" could not be parsed Invalid value for Hour Of Day valid values 0-23: 80"。),导致播放器卡死。希望该问题能够得到解决,感谢开发者!#bug

@NirvanaWong NirvanaWong changed the title 关于字幕词库支持长视频的请求 [bug]-长视频字幕词库播放报错 Jan 1, 2024
@tangshimin tangshimin added the bug Something isn't working label Jan 1, 2024
@tangshimin
Copy link
Owner

修复了,如果顺利的话今天就会发布新版本

@tangshimin
Copy link
Owner

全集老友记合并后有多少个G?

@tangshimin
Copy link
Owner

其实可以不用合并视频的,如果视频是 MKV 格式的视频,可以选择多个视频一起生成一个词库,然后使用 菜单栏 > 词库 > 链接字幕词库 功能链接到专业词库。

@NirvanaWong
Copy link
Author

开发者您好!老友记10季合在一起共145G,时长共89小时。文件是MKV的,理论上是可以全部导入MuJing生成字幕的,但实际操作发现,直接从大量mkv文件生成字幕十分容易卡死或无法识别(尽管我电脑13th i9-13900K + MSI GeForce RTX 4090,已经算家用顶配)。。同时,我发现通过字幕文件.srt+视频的方式,处理速度十分快,且从不报错或卡死。因此我现在的操作是:

  1. 先用python将所有视频合并;
  2. 然后提取字幕.srt;
  3. 最后根据字幕+视频生成词库。

此方案除了合并环节需要一些时间之外,其他环节速度起飞,我十分推荐该方案!

@tangshimin
Copy link
Owner

mkv视频太多了确实很慢

@tangshimin
Copy link
Owner

试一下最新版,看还会不会报错

@NirvanaWong
Copy link
Author

经测试该问题依旧存在(如图),但应该没大问题,毕竟时长超过24小时的情况是非常少的。

image

@tangshimin
Copy link
Owner

这回应该可以了,下载地址:https://github.com/tangshimin/MuJing/releases

@NirvanaWong
Copy link
Author

感谢开发者!长视频播放已经实现,经多次测试,没有报错。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants