Skip to content

ffmpeg minimum version check for error handling for VAD failures #196

@aaronrudkin

Description

@aaronrudkin

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions