Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, I want to convert 6-channel audio file in AC3 compression to ogg. Since oggenc doesn't support AC3 input, I am trying first decompress it to PCM (wav).
Is there some program for Linux that can do this? It should also downsample it to 2 channels.
I'm not sure about it. I tried it, but it only plays the sound, didn't find a way to save it into file. Furthermore, in its man page, it says only supports 4 or 6 channels, and I need two. Third, even if I find a way it saves it into file, will it be wav, or raw pcm stream? It looks to me it would be the second.
Oggenc takes raw stream as input, you can just pipe the output of ac3dec to oggenc.
MPlayer is another option, it can certainly handle AC3.
Also, Avidemux2 (it's an excellent multimedia tool BTW) can do it for you.
but ac3dec starts playing the sound trough sound card and resulting ogg file is empty.
Then I tried
Code:
mr@main:~/video$ ac3dec -D newstream.raw stream.ac3
5.1 Mode 48.0 KHz 448 kbps Complete Main Audio Service
Using PCM device 'newstream.raw'
ALSA lib pcm.c:2143:(snd_pcm_open_noupdate) Unknown PCM newstream.raw
snd_pcm_open: No such file or directory
Output open failed
and as You can see it doesn't work.
Quote:
MPlayer is another option, it can certainly handle AC3.
It can play it, but not what I need. If You have concrete command line options for this, I would be gratefull to see them.
Quote:
Also, Avidemux2 (it's an excellent multimedia tool BTW) can do it for you.
I didn't try to much Avidemux, so I'll try what can be done.
I managed to get wav file with avidemux by selecting "Wav PCM" Audio and chosing Audio/Save from menu.
However, it doesn't output ogg-vorbis correctly. It looks like there is really much problems with embeding vorbis at the moment. In addition to what I already said, Avidemux crashed while I tried to make it output vorbis sound with video in avi file, both with stream copy and libavcodec recompression.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.