IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Problem with decoding AAC with FAAD2 after encoding with NeroAacEnc, FAAD2 reports "Invalid number of channels"
polemon
post Jan 5 2011, 02:53
Post #1





Group: Members
Posts: 144
Joined: 1-April 09
Member No.: 68578



Hi, I created some files with neroAacEnc (version 1.5.4.0) on Linux and they work fine with mplayer.

But when I want to play them with MPD, FAAD2, the decoder used in MPD for AAC decoding, reports the following error:

CODE
decoder: audio_format=44100:16:2, seekable=false
faad: error decoding AAC stream: Invalid number of channels

The file is not played, and MPD skips all AAC files in the current playlist queue.

In case this is of any importance, I created the AAC files from WAV PCM files with no extra options, so all I used was defaults.

Had anybody a similar experience?
If so, how could I circumvent that problem, apart from recompiling MPD, since it needs loads of -devel packages, that I don't feel like installing...

Distro is Fedora 14.

This post has been edited by polemon: Jan 5 2011, 03:00


--------------------
-EOF-
Go to the top of the page
+Quote Post
kerem
post Dec 29 2011, 20:45
Post #2





Group: Members
Posts: 2
Joined: 29-December 11
Member No.: 96099



I had a similar problem. Well at least I got the same error and could not find much info on forums. I was trying to decode adts aac frames using faad2 2.5 which are encoded by faac. The error message I was getting was also "Invalid number of channels". When I checked NeAACDecOpen function in decoder.c file which creates the NeAACDecHandle, I noticed that it is by default not expecting adts frames.

CODE
hDecoder->config.downMatrix = 0;
hDecoder->adts_header_present = 0;
hDecoder->adif_header_present = 0;


When I changed that to 1 for adts, decoder started to work without any problems. Make sure you are initializing it properly.

This post has been edited by db1989: Dec 29 2011, 21:44
Reason for edit: deleting pointless full quote
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 30th August 2014 - 11:57