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

cannot convert with ffmpeg #2

Open
ROBERT-MCDOWELL opened this issue Jun 21, 2024 · 0 comments
Open

cannot convert with ffmpeg #2

ROBERT-MCDOWELL opened this issue Jun 21, 2024 · 0 comments

Comments

@ROBERT-MCDOWELL
Copy link

here is the log:
whisper_init_state: kv cross size = 147.46 MB
whisper_init_state: compute buffer (conv) = 25.61 MB
whisper_init_state: compute buffer (encode) = 170.28 MB
whisper_init_state: compute buffer (cross) = 7.85 MB
whisper_init_state: compute buffer (decode) = 98.32 MB
Converting video to audio.
Couldn't get video.
module 'ffmpeg' has no attribute 'input'
Couldn't convert video to audio.
'NoneType' object has no attribute 'output'
Video converted to audio.
Captioning audio.
Couldn't transcribe audio.
temporary_audio.wav
Traceback (most recent call last):
File "/usr/local/bin/gptsubtitler", line 8, in
sys.exit(main())
^^^^^^
File "/usr/local/lib64/python3.12/site-packages/gptsubtitler/cli.py", line 26, in main
Transcriber.transcribe(
File "/usr/local/lib64/python3.12/site-packages/gptsubtitler/transcriber.py", line 128, in transcribe
srt_content = Transcriber.generate_srt_file(transcript, supress_output=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib64/python3.12/site-packages/gptsubtitler/transcriber.py", line 156, in generate_srt_file
for count, line in enumerate(transcript):
^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable

any idea? thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant