tmoroney / auto-subs

Generate subtitles using OpenAI Whisper in Davinci Resolve editing software.
MIT License
425 stars 22 forks source link

list index out of range #31

Open Hellish1ne opened 5 months ago

Hellish1ne commented 5 months ago

I have this problem when i try to generate the subs, it gives me an srt file but it doesn't do it automaticly and when i import it mysefl the presets on the text+ doesnt aply, srry if this is a super easy thing to fix, i don't know much about programing, ty for ur time c:

Using model -> [ small ] MarkIn: 86400 Rendering Audio for Transcription... Progress: 0 % Progress: 0 % Progress: 0 % Progress: 100 % Audio Rendering Complete! Transcribing Audio...

Transcribe: 0%| | 0/76.61 [00:00<?, ?sec/s]

Detected language: spanish

Transcribe: 0%| | 0/76.61 [00:06<?, ?sec/s] Transcribe: 35%|###4 | 26.58/76.61 [00:33<01:02, 1.24s/sec] Transcribe: 73%|#######3 | 55.94/76.61 [00:54<00:19, 1.07sec/s] Transcribe: 100%|##########| 76.61/76.61 [01:10<00:00, 1.15sec/s] Transcribe: 100%|##########| 76.61/76.61 [01:10<00:00, 1.09sec/s] Saved: C:\Users\cinde\AppData\Roaming\Blackmagic Design\DaVinci Resolve\Support\Fusion\Scripts\Utility\audio.srt Transcription Complete! Subtitles saved to -> [ C:\Users\cinde\AppData\Roaming\Blackmagic Design\DaVinci Resolve\Support\Fusion\Scripts\Utility\audio.srt ] Adjusting timestamps by 0:00:00 Found 73 subtitles in SRT file list index out of range

Vq-x commented 5 months ago

I am having this issue too...

Volynskyi-Kirill commented 4 months ago

the same

list index out of range invalid literal for int() with base 10: 'No subtitles' 'NoneType' object has no attribute 'GetTrackCount' 'NoneType' object has no attribute 'GetTrackCount' 'NoneType' object has no attribute 'GetTrackCount' 'NoneType' object has no attribute 'GetTrackCount' 'NoneType' object has no attribute 'GetTrackCount' 'NoneType' object has no attribute 'GetTrackCount' 'NoneType' object has no attribute 'GetTrackCount' 'NoneType' object has no attribute 'GetTrackCount' 'NoneType' object has no attribute 'GetTrackCount' 'NoneType' object has no attribute 'GetTrackCount' 'NoneType' object has no attribute 'GetTrackCount' 'NoneType' object has no attribute 'GetTrackCount' Track 2 does not exist - please select a valid track number ( 1 - 1 ) Using model -> [ small.en ] MarkIn: 86400 Rendering Audio for Transcription... Progress: 100 % Audio Rendering Complete! Transcribing Audio...

Transcribe: 0%| | 0/9.6 [00:00<?, ?sec/s] Transcribe: 100%|##########| 9.6/9.6 [00:13<00:00, 1.36s/sec] Transcribe: 100%|##########| 9.6/9.6 [00:13<00:00, 1.36s/sec] Saved: C:\Users\kitof\AppData\Roaming\Blackmagic Design\DaVinci Resolve\Support\Fusion\Scripts\Utility\audio.srt Transcription Complete! Subtitles saved to -> [ C:\Users\kitof\AppData\Roaming\Blackmagic Design\DaVinci Resolve\Support\Fusion\Scripts\Utility\audio.srt ] Adjusting timestamps by 0:00:00 Found 11 subtitles in SRT file list index out of range

samhitech commented 4 months ago

I have this problem when i try to generate the subs, it gives me an srt file but it doesn't do it automaticly and when i import it mysefl the presets on the text+ doesnt aply, srry if this is a super easy thing to fix, i don't know much about programing, ty for ur time c:

Using model -> [ small ] MarkIn: 86400 Rendering Audio for Transcription... Progress: 0 % Progress: 0 % Progress: 0 % Progress: 100 % Audio Rendering Complete! Transcribing Audio...

Transcribe: 0%| | 0/76.61 [00:00<?, ?sec/s]

Detected language: spanish

Transcribe: 0%| | 0/76.61 [00:06<?, ?sec/s] Transcribe: 35%|###4 | 26.58/76.61 [00:33<01:02, 1.24s/sec] Transcribe: 73%|#######3 | 55.94/76.61 [00:54<00:19, 1.07sec/s] Transcribe: 100%|##########| 76.61/76.61 [01:10<00:00, 1.15sec/s] Transcribe: 100%|##########| 76.61/76.61 [01:10<00:00, 1.09sec/s] Saved: C:\Users\cinde\AppData\Roaming\Blackmagic Design\DaVinci Resolve\Support\Fusion\Scripts\Utility\audio.srt Transcription Complete! Subtitles saved to -> [ C:\Users\cinde\AppData\Roaming\Blackmagic Design\DaVinci Resolve\Support\Fusion\Scripts\Utility\audio.srt ] Adjusting timestamps by 0:00:00 Found 73 subtitles in SRT file list index out of range

I faced the same issue, had to adjust the script to work for my case, might be the same bug. I fixed it in this pull request. https://github.com/tmoroney/auto-subs/pull/36