Skip to content

Improve handling of non-zero ffmpeg responses#136

Open
xM8WVqaG wants to merge 1 commit intoamietn:masterfrom
xM8WVqaG:handle-ffmpeg-exceptions
Open

Improve handling of non-zero ffmpeg responses#136
xM8WVqaG wants to merge 1 commit intoamietn:masterfrom
xM8WVqaG:handle-ffmpeg-exceptions

Conversation

@xM8WVqaG
Copy link

Currently 'make_capture()' just drops the output from the ffmpeg CLI.

By switching to 'subprocess.run()' it is possible to handle non-zero exit codes from the ffmpeg CLI. This prints out the full ffmpeg command, exit code and the response from ffmpeg which should be enough for a tech-savvy user to debug.

Given this will nearly always be an issue with the ffmpeg installation or the file there isn't anything more vcsi can do in this situation.

This is implemented as an exception so that when run with '--ignore-errors' the file can be skipped.

Fixes: #104
Fixes: #103
Fixes: #86
Fixes: #82
Fixes: #75

Currently 'make_capture()' just drops the output from the ffmpeg CLI.

By switching to 'subprocess.run()' it is possible to handle non-zero
exit codes from the ffmpeg CLI. This prints out the full ffmpeg command,
exit code and the response from ffmpeg which should be enough for a
tech-savvy user to debug.

Given this will nearly always be an issue with the ffmpeg installation
or the file there isn't anything more vcsi can do in this situation.

This is implemented as an exception so that when run with
'--ignore-errors' the file can be skipped.

Fixes: amietn#104
Fixes: amietn#103
Fixes: amietn#86
Fixes: amietn#82
Fixes: amietn#75
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant