-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not export as m4a #755
Comments
You can use the |
Thank you!!! It worked well! |
May I ask how the problem was ultimately resolved |
I put
|
tks,but The CouldntDecodeError Traceback (most recent call last) Cell In[36], line 5, in match_target_amplitude(audio_path, audio_format, target_dBFS) File /opt/anaconda3/envs/solfeggio_env/lib/python3.10/site-packages/pydub/audio_segment.py:773, in AudioSegment.from_file(cls, file, format, codec, parameters, start_second, duration, **kwargs) CouldntDecodeError: Decoding failed. ffmpeg returned error code: 183 Output from ffmpeg/avlib: ffmpeg version 6.1.1 Copyright (c) 2000-2023 the FFmpeg developers |
similar error with ffmpeg 6.1.1
but it works when i remove
wrong fix: use format as output file extension
#output = NamedTemporaryFile(mode="w+b", delete=False)
output = NamedTemporaryFile(mode="w+b", delete=False, suffix=f".{format}")
###
conversion_command.extend([
#"-f", format, output.name, # output options (filename last)
output.name, # output options (filename last)
]) format != extension, see also What are all of the file extensions supported by FFmpeg |
Steps to reproduce
m4a
file.m4a
file.Expected behavior
Export an m4a file correctly
Actual behavior
The following error happens.
Your System configuration
The text was updated successfully, but these errors were encountered: