Skip to content
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

apply chanmask -> Error: -2209: setProperty: scda/icly #18

Closed
Selur opened this issue Oct 5, 2011 · 5 comments
Closed

apply chanmask -> Error: -2209: setProperty: scda/icly #18

Selur opened this issue Oct 5, 2011 · 5 comments

Comments

@Selur
Copy link

Selur commented Oct 5, 2011

since ffmpeg outputs wav channel orders (i.e. for 5.1: FL, FR, C, LFE, SL, SR) and qaac wants other channel orders (I assume aac channel order, i.e. for 5.1: FR, C, FL, SR, LFE, SL) I wanted to add a channel map using:

ffmpeg -threads 8 -v -10 -y -i "test_5-1.ac3" -acodec pcm_s16le -f wav - | qaac --raw-channels 6 --raw-rate 48
000 --chanmask 2,3,1,6,4,5 --cvbr 192 --adts --raw - -o "test_5-1.aac"
but I only get:
Error: -2209: setProperty: scda/icly

@Selur
Copy link
Author

Selur commented Oct 5, 2011

DOH used chanmask instead of chanmap :/

@Selur Selur closed this as completed Oct 5, 2011
@nu774
Copy link
Owner

nu774 commented Oct 6, 2011

(2011/10/06 4:39), Selur wrote:

since ffmpeg outputs wav channel orders (i.e. for 5.1: FL, FR, C, LFE, SL, SR) and qaac wants other channel orders (I assume aac channel order, i.e. for 5.1: FR, C, FL, SR, LFE, SL) I wanted to add a channel map using:

ffmpeg -threads 8 -v -10 -y -i "test_5-1.ac3" -acodec pcm_s16le -f wav - | qaac --raw-channels 6 --raw-rate 48
000 --chanmask 2,3,1,6,4,5 --cvbr 192 --adts --raw - -o "test_5-1.aac"
but I only get:
Error: -2209: setProperty: scda/icly

Hi,

No, qaac assumes inputs are in usual WAV/AC3 order.

If you want to swap channel orders, use --chanmap and not --chanmask.
However, in your case, --chanmap is not necessary.

You can use --chanmask to force channel mask, or to let qaac ignore the
channel mask in the source. If your source is FL FR C LFE SL SR and you
want to force FL FR C LFE BL BR, you can use --chanmask 0x3f.
When you want the channel mask in the source to be ignored, use
--chanmask 0.

Usually you won't need --chanmask, but when channel mask of your source
is different from what qaac accepts (it's described in the usage page),
you can use --chanmask.

You should know that --chanmask is not almighty. When you use
--chanmask, number of channel mast be the same with the source.
If your source has 6 channels and you specify --chanmask 0x3 (= L R
stereo), you might expect qaac will downmix to stereo. But it doesn't work.

@Selur
Copy link
Author

Selur commented Oct 6, 2011

No, qaac assumes inputs are in usual WAV/AC3 order.
that is strange, since I need to use " --chanmap 5,6,1,2,3,4" to get a correct channel order from my 5.1 test file
using:
ffmpeg -threads 8 -v -10 -y -i "Test-AC3-5.1.avi" -ac 6 -acodec pcm_s16le -f wav - | qaac --chanmap 5,6,1,2,3,4 --raw-channels 6 --raw-rate 48000 --cvbr 256 --adts --raw - -o "chanmap 5,6,1,2,3,4.aac"
without
ffmpeg -threads 8 -v -10 -y -i "Test-AC3-5.1.avi" -ac 6 -acodec pcm_s16le -f wav - | qaac --chanmap 5,6,1,2,3,4 --raw-channels 6 --raw-rate 48000 --cvbr 256 --adts --raw - -o "without.aac"

uploaded the input and both outputs to: http://www.multiupload.com/V3HKHQB7G9

@nu774
Copy link
Owner

nu774 commented Oct 6, 2011

Hi,

You tells ffmpeg to output in wave format by -f wav, while you tells
qaac to read input as raw pcm.

Therefore, ffmpeg output wave header before pcm data, and qaac treats
wave header as pcm data.
This is why the channel disorder happens.

(2011/10/06 9:59), Selur wrote:

No, qaac assumes inputs are in usual WAV/AC3 order.
that is strange, since I need to use " --chanmap 5,6,1,2,3,4" to get a correct channel order from my 5.1 test file
using:
ffmpeg -threads 8 -v -10 -y -i "Test-AC3-5.1.avi" -ac 6 -acodec pcm_s16le -f wav - | qaac --chanmap 5,6,1,2,3,4 --raw-channels 6 --raw-rate 48000 --cvbr 256 --adts --raw - -o "chanmap 5,6,1,2,3,4.aac"
without
ffmpeg -threads 8 -v -10 -y -i "Test-AC3-5.1.avi" -ac 6 -acodec pcm_s16le -f wav - | qaac --chanmap 5,6,1,2,3,4 --raw-channels 6 --raw-rate 48000 --cvbr 256 --adts --raw - -o "without.aac"

uploaded the input and both outputs to: http://www.multiupload.com/V3HKHQB7G9

@Selur
Copy link
Author

Selur commented Oct 6, 2011

doh, sorry,.. you are right,..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants