Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: help with 3-channel FLAC convesion (Read 2699 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

help with 3-channel FLAC convesion

Hi guys!

I'm at a loss here. I have a 3-channel source I'd like to encode, but the default settings produce a 5-channel file with the extra 2 channel being silent. For some reason, inserting --channels=3 into the command line (C:\Program Files (x86)\foobar2000\flac.exe" --channels=3 -8 - -o filenamehere) makes the whole thing go 'Conversion failed: The encoder has terminated prematurely with code 1 (0x00000001); please re-check parameters'

Any ideas what I might be doing wrong?

 

Re: help with 3-channel FLAC convesion

Reply #1
What kind of channel config does your source have? I just tried encoding a three-channel source and the encoded FLAC had the same amount of channels. Didn't require any configuration.

Re: help with 3-channel FLAC convesion

Reply #2
I dunno. I guess it's fake 5-channel, then. Any command line arguments to mask the other two channels while encoding?

Re: help with 3-channel FLAC convesion

Reply #3
You don't have to guess, right click the source file and check the details tab of properties. It shows the number of channels and usually the channel configuration. If you want to strip some channels away you can use Matrix Mixer DSP.

Re: help with 3-channel FLAC convesion

Reply #4
Thanks a lot, Case!

Re: help with 3-channel FLAC convesion

Reply #5
Ah, well, now it turns out Channel Mixer DSP can't convert 3 to 5.1.

Re: help with 3-channel FLAC convesion

Reply #6
Why not keep the two empty channels?
I assume the 3ch audio is left, right and centre? FLAC won't tolerate anything but the standard SMPTE channel layouts by default. If you send it anything else it'll probably spit the dummy.

There's an undocumented command line option to prevent flac from being too stubborn to accept non-SMPTE layouts, although I often use ffmpeg for flac encoding and it'll accept other layouts by default.

For the official flac encoder:
--channel-map=none

That mightn't be your problem, but I thought I'd mention it, just in case.

Re: help with 3-channel FLAC convesion

Reply #7
Actually, playing a 3- and a fake 5-channel file sounds exactly the same: the two back channels are just silent. And that's the pity, I like to have a bit of front in the back.