Closed loshlee closed 2 years ago
Thanks, I see now what the problem is.
Your input has cover art, which is interpreted by ffmpeg as a video stream. By default, ffmpeg-normalize will copy over these input streams. If your output is a WAV file though, it can only contain exactly one audio stream, no cover art/video. This is what is causing the error.
Solution: Add the -vn
option to disable the video part.
An alternative could be to choose a different audio codec and output extension/container, like M4A.
OK, thanks. That one got by me. I wasn't having trouble with .mp3, .aac, or anything else, just .wav. I wrote an AppleScript app that makes it simple to run ffmpeg-normalize on a folder full of source files, either by choice or drop. I'm going to publish on my blog, and I'll probably make a fork and add it there, too. You're welcome to merge it if you think it could do your Mac users any good. Thanks again.
Happy to add a link to your tool! Feel free to send some info once you publish it.
Thanks. BTW, the easiest workaround I've found, I think, is simply to output to .aif, then to .wav.
Happy to add a link to your tool! Feel free to send some info once you publish it.
I added the article to the README.
Great! Thanks!
:warning: Please read this carefully! If you do not fill out this information, your bug report may be closed.
Expected behavior A clear and concise description of what you expected to happen. Execution of "ffmpeg-normalize" so that the default method is used to normalize an ".m4a" audio file and output to a ".wav" file in the default (but specified) "normalized" director. There appears to be no logistical issue with the command because a conversion using the following ffmpeg command executes successfully: ffmpeg -i ~/Desktop/caboodle/input\ files/MyTitle.m4a ~/Desktop/caboodle/input\ files/normalized/MyTitle.wav
Actual behavior What happened? Error for .wav file creation appeared in Terminal output: "Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument"
Command The exact command you were trying to run: ffmpeg-normalize ~/Desktop/caboodle/input\ files/MyTitle.m4a -o ~/Desktop/caboodle/input\ files/MyTitle.wav
Any output you get when running the command with the
--debug
flag:Environment (please complete the following information):