Open milahu opened 4 months ago
Thank you for this bug report as well!
It looks like something like https://github.com/PyAV-Org/PyAV could be used to get the mappings supported by ffmpeg? Trying not to bring in another dependency
Or would it be preferable to add a configuration setting to define preferred formats per file extension along with defaults?
preferred formats per file extension
mkv and mka containers can contain any codec...
by default, it should preserve container and codec of the input if that is ambiguous (different input files) then just pick the first, or let the user set a codec
this error appears when i run
audalign.target_align
on mka files withdestination_path != None
problem: audalign calls
AudioSegment.export
withformat = "mka"
butmka
is the file extension, and the ffmpeg format ismatroska
pydub/audio_segment.py
related upstream issue https://github.com/jiaaro/pydub/issues/755 same problem with
m4a
extension, the ffmpeg format isipod
related upstream PR https://github.com/jiaaro/pydub/pull/793 this would allow us to pass
out_f="out.mka"
and let ffmpeg guess format from extension problem is, pydub is unmaintained https://github.com/jiaaro/pydub/issues/389 https://github.com/jiaaro/pydub/issues/444so... we could use ffprobe to get the format name