Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
14th October 2009, 15:35 | #1 | Link |
Registered User
Join Date: Oct 2009
Posts: 3
|
audio encoding with ffmpeg | sox | ffmpeg
Hi,
I have a problem to encode audio tracks in my encoding script. It uses ffmpeg to encode to aac and for 5.1 tracks also sox to get the channel order right. I have tested it on a couple of tv-series (longest was 45 min) and everything has worked great. But now I have tested it on some full featured movies and on every 5.1 audio track it hangs aroung 80MB (output file, bitrate: 128k) and I dont have a clue why. It doesnt give a error message neither quits, it just stops doing anything. The command for 5.1 looks like this: Code:
ffmpeg -i $input -async 1 -vsync 1 -v 0 -map $map -vn -sn -ac 6 -acodec pcm_s16le -ar $afreq -f wav - | \ sox -t raw -s -2 -c 6 -r $afreq - -t wav - remix -m 6 5 1 2 3 4 | \ ffmpeg -i - -ac 6 -v 0 -y -acodec libfaac -ab $audioquality $audiofile |
14th October 2009, 15:47 | #2 | Link |
Registered User
Join Date: Mar 2005
Location: Finland
Posts: 2,641
|
Does the same thing happen if you redirect WAV data from the first ffmpeg process or sox to a file? If not, what happens when you encode that file?
However, I'd recommend switching to neroAacEnc if you're on x86(-64). It's much better than FAAC. |
14th October 2009, 19:04 | #3 | Link |
Registered User
Join Date: Oct 2009
Posts: 3
|
I have testet ffmpeg | sox -> wav, no error. But when encoding the wav to aac I've got
Code:
[pcm_s16le @ 0x9970d60]invalid PCM packet.3kbits/s Error while decoding stream #0.0 Is nero really that much better? I thought the difference is only noticeable on bitrates below 128k. If I try it, do I still need sox for channel ordering or does nero do the work? Last edited by cameris; 14th October 2009 at 19:09. |
14th October 2009, 19:53 | #4 | Link | |||
Registered User
Join Date: Mar 2005
Location: Finland
Posts: 2,641
|
Quote:
Quote:
Also, while I haven't done a listening test myself, I'd guess that FAAC loses badly to both Lame and neroAACEnc at 128kbps stereo. Quote:
|
|||
15th October 2009, 13:26 | #6 | Link | |
Registered User
Join Date: Oct 2009
Posts: 3
|
Quote:
eventually my script is working . Many ... |
|
Tags |
5.1, audio, encoding, ffmpeg, sox |
Thread Tools | Search this Thread |
Display Modes | |
|
|