nstanger / process_podcast

Python script for processing and assembling a podcast from various input sources
0 stars 0 forks source link

Better error reporting #9

Open nstanger opened 8 years ago

nstanger commented 8 years ago

Issue by nstanger Monday Aug 15, 2016 at 10:31 GMT Originally opened as https://github.com/Otago-InfoSci-Database/Tools/issues/9


Especially for the parser.

nstanger commented 6 years ago

Also errors reported by ffmpeg don’t bubble up to the user. For example, if you try to create a .mp4 output using the default pcm_s16le audio codec, ffmpeg will fail with the error “Could not find tag for codec pcm_s16le in stream #0, codec not currently supported in container”. However this error is swallowed by process_podcast and not displayed, giving you just “ERROR: process_podcast: Failed to render final podcast”, which isn’t helpful.

Note that debug mode is no better: you have to run the generated ffmpeg command reported by --debug in order to see the error.

nstanger commented 6 years ago

Perhaps command-specific exceptions would be useful?