I did an OS upgrade on my Synology NAS. This overrode something in my path settings such that ffmpeg4, rather than ffmpeg7, was the default binary aliased to ffmpeg. That's not your problem, and I got it solved. But until I did, every attempt to use ffmpeg gave me this error
|
if len(media_bstring) == 0: |
|
raise ValueError( |
|
"Unable to detect speech. " |
|
"Perhaps try specifying a different stream / track, or a different vad." |
|
) |
The error is a reasonable one in hindsight, but it took me a while to figure out that the problem was actually downstream with the ffmpeg binary, not ffsubsync.
My sense is that if there's a minimum ffmpeg version that supports the VAD stuff, then it'd probably be good to either, in advance of running the script or in response to this error, verifying that the ffmpeg binary meets the minimum version requirement. I'd probably insert the check into the ffmpeg_bin_path function here
|
def ffmpeg_bin_path(bin_name, gui_mode, ffmpeg_resources_path=None): |
Thanks. ffsubsync is great!
I did an OS upgrade on my Synology NAS. This overrode something in my path settings such that ffmpeg4, rather than ffmpeg7, was the default binary aliased to ffmpeg. That's not your problem, and I got it solved. But until I did, every attempt to use ffmpeg gave me this error
ffsubsync/ffsubsync/speech_transformers.py
Lines 430 to 434 in bafd232
The error is a reasonable one in hindsight, but it took me a while to figure out that the problem was actually downstream with the ffmpeg binary, not ffsubsync.
My sense is that if there's a minimum ffmpeg version that supports the VAD stuff, then it'd probably be good to either, in advance of running the script or in response to this error, verifying that the ffmpeg binary meets the minimum version requirement. I'd probably insert the check into the
ffmpeg_bin_pathfunction hereffsubsync/ffsubsync/ffmpeg_utils.py
Line 69 in bafd232
Thanks.
ffsubsyncis great!