I think it should be possible to process audio-only files with ffmpeg_wrapper. For example, ffmpeg_wrapper_can_decode should return true for a mp3 file. I have attached a patch which makes ffmpeg_wrapper work better with audio-only files.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | audio2.patch | 3.6 KB | tobi20 |
| audio.patch | 2.34 KB | tobi20 |
Comments
Comment #1
tobi20 commentedI have created an improved patch. In addition to the first path, it adds an option 'Audio only preset' to the ffmpeg_wrapper_configuration_form. This flag can then be passed to the ffmpeg_wrapper_can_decode function as a second parameter. In case this is true, it is checked whether the audio part of the file can be decoded by ffmpeg_wrapper or not.
Background for this patch:
I wanted to create an audio sample gallery with the modules ffmpeg_wrapper/ffmpeg_converter. I then realized that several errors occured for audio only files (without video), e.g. division by zero in the _padded_size function. With my patch, these errors can be avoided.
Comment #2
torgospizza+1 Subscribing!
Comment #3
hongpong commentedsubscribing - i think still an issue?
related case #479972: ffmpeg_wrapper_can_decode() does not allow audio-only files to be decoded