Open novocaine opened 5 years ago
I have worked around this using AudioSegment.from_file_using_temporary_files
, but I'm not sure if I'm supposed to be relying on that?
Been encountering the same issue and your work-around saved me....thanks but what is the difference between "from_file" vs "from_file_using_temporary_files"?
if you look at the code, from_file_using_temporary_files
is an undocumented method that passes the file to ffmpeg using a temporary file, rather than passing it via stdin
Steps to reproduce
Attempt to open the attached file using pydub.
This is because the underlying ffmpeg call fails if you process this file via a pipe:
however if you pass it as a file, its fine
I think this is because ffmpeg simply doesn't work for all files using piped input, e.g. see this https://lists.ffmpeg.org/pipermail/ffmpeg-user/2012-November/011084.html
Expected behavior
pydub processes my attached file
Actual behavior
pydub can't process the attached file
Your System configuration
Is there an audio file you can include to help us reproduce?
2036ffa83b6905796a9046ac8b22137135d9fe38_875ac0e8-08ff-4713-8289-6e12dd1cdd95.mp3.zip