Closed SolarGuy8 closed 8 months ago
The ffmpeg output shows that this file isn't MP3 format, it's AAC, which audiowaveform doesn't support.
@chrisn, could you please provide a list of supported codecs?
The documentation for the --input-filename
and --input-format
command line options describe the supported formats.
@chrisn, some of our tracks have mp3 extenstion, but codec:
codec_name=pcm_s16le
codec_long_name=PCM signed 16-bit little-endian
or
codec_name=aac
codec_long_name=AAC (Advanced Audio Coding)
it's also not OK? We should have codec_name=mp3
for this case?
And why audiowaveform doesn't throw an error in this case, but still tries to get the data and the process goes on forever? Interrupts only when I kill the instance myself
audiowaveform will behave unexpectedly if the actual formal of the audio doesn't agree with the file extension or the --input-format
option.
For formats that audiowaveform doesn't support, you could try converting using ffmpeg first, e.g:
ffmpeg -i test.mp4 -f wav - | audiowaveform --input-format wav --output-format json -b 8 > test.json
Codec name should be mp3
only? Not pcm_s16le
or aac
This is described in the documentation I linked to: wav
, mp3
, flac
, ogg
, opus
, raw
.
And why audiowaveform doesn't throw an error in this case, but still tries to get the data and the process goes on forever? Interrupts only when I kill the instance myself
This is something that could be improved, yes.
Okay, thank you! I really enjoy your library, thank you for your help!
Thanks! I appreciate your feedback.
Hi!
I have a problem with file, which almost down our production env. It's an MP3 file and my processing command:
audiowaveform -i 3a13529c-bad0-4278-a0ff-17cefda8168b.mp3 --pixels-per-second 1 --bits 8 --output-format json
The result:
Ffmpeg result:
Could you help me? Cause I really don't know what I should do with this problem