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. |
28th July 2005, 16:24 | #1 | Link |
Guest
Posts: n/a
|
please, ac3 to aac & aac5.1 to spdif?
I read all the faq on doom and other forums but I still have no succesful results under Linux.
Hrere what I do: AC3 5.1 to AAC 5.1 I do: Rip the AC3 mplayer video.vob -dumpaudio -dumpfile audio.ac3 Covert the AC3 to 6 channel PCM a52dec audio.ac3 -o wavdolby > audio6.wav Covert PCM to AAC 5.1 faac -q 100 -I 5,6 -P -R 48000 -C 6 -X audio6.wav -o audio.aac Play the aac faad audio.aac -w | mplayer - ---> I got on SPDIF a stereo AAC that play 2 times faster?! instead of AAC 5.1 to the normal speed <---- How do I solve this dilemma? why mplayer doesn't read the aac directly? faad support is enabled Code:
$ mplayer audio.aac -ao faad MPlayer 1.0pre7-3.4.3-20050110 (C) 2000-2005 MPlayer Team CPU: Advanced Micro Devices Athlon 4 /Athlon MP/XP Palomino (Family: 6, Stepping: 2) Detected cache-line size is 64 bytes MMX2 supported but disabled CPUflags: MMX: 1 MMX2: 0 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 Compilato per CPU x86 con estensioni: MMX 3DNow 3DNowEx SSE 85 audio & 196 video codecs In riproduzione audio.aac Cache fill: 10.57% (886293 bytes) In uscita... (Fine del file) Any advice is welcome! Last edited by bugmenotwillyou; 28th July 2005 at 16:29. |
28th July 2005, 17:26 | #3 | Link |
Guest
Posts: n/a
|
Thanks for the reply
I have a Creative audigy2 and a Kenwood KRF-V5580D as receiver.. AC3 6ch works on it. It supports dolby digital, dolby pro logic II and DTS Is AAC written on when it is supported? Last edited by bugmenotwillyou; 28th July 2005 at 17:31. |
28th July 2005, 18:12 | #4 | Link |
Registered User
Join Date: Jul 2005
Posts: 24
|
Since AAC-support is pretty unusual, it would probably be advertised. I don't know if there even is such a thing as a aac capable AV reciever.
Your options are: 1) try to find a program that converts AAC to AC3 on the fly for Linux (not sure it exists) 2) use AC3 3) or connect your soundcard to your receiver with analog cables. You'll need a 3 3,5mm to 6 RCA cable (or 3 1 3,5 mm to 2 RCA cable) Should be availible in a RadioShack near you |
28th July 2005, 18:17 | #5 | Link |
Registered User
Join Date: Jun 2003
Location: Great Lakes, USA
Posts: 1,433
|
If
Code:
mplayer file.aac Mplayer will not pass raw AAC over SPDIF (only a few receivers support this anyway, as previously mentioned). AFAIK mplayer will only play AC3 or DTS raw over S/PDIF, using the -ac hwac3 or -ac hwdts switch. Mplayer might not be the best choice for audio-only playback. I recommend XMMS or amaroK as audio players, both of which have AAC plugins readily available.
__________________
KpeX Audio FAQs: General | BeSweet | SVCD/MP2 | MP3 | Vorbis | AC3 | DTS | AAC Linux Audio/Video FAQ |
28th July 2005, 18:55 | #6 | Link |
Guest
Posts: n/a
|
@GraDy
I found http://essej.net/ac3jack/, realtime Ac3 encoder but i have no idea how to pass an aac file (or better an aac in a matroska file) through it. 3).. I don't want analog cables @KpeX $ mplayer -ac help | grep faad MMX2 supported but disabled faad faad working FAAD AAC (MPEG2/MPEG4 Audio) decoder [libfaad2] I compiled it with all the codec i need, -ac hwac3 works with ac3, but aac files aren't read by mplayer (I tried a lot of options),.. This is the last: Code:
$ faad audio.aac -w | mplayer - -ac hwac3 *********** Ahead Software MPEG-4 AAC Decoder V2.0 ****************** Build: Jun 11 2005 Copyright 2002-2004: Ahead Software AG http://www.audiocoding.com Floating point version This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ************************************************************************** audio.aac file info: ADTS, 18.027 sec, 393 kbps, 48000 Hz --------------------- | Config: 5.1 Ch | WARNING: channels are reordered according to --------------------- MS defaults defined in WAVE_FORMAT_EXTENSIBLE | Ch | Position | --------------------- | 00 | Center front | | 01 | Left front | | 02 | Right front | | 03 | Left back | | 04 | Right back | | 05 | LFE | --------------------- MPlayer 1.0pre7-3.4.3-20050110 (C) 2000-2005 MPlayer Team CPU: Advanced Micro Devices Athlon 4 /Athlon MP/XP Palomino (Family: 6, Stepping : 2) Detected cache-line size is 64 bytes MMX2 supported but disabled CPUflags: MMX: 1 MMX2: 0 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 Compilato per CPU x86 con estensioni: MMX 3DNow 3DNowEx SSE 85 audio & 196 video codecs In riproduzione - Leggo da stdin... Win32 LoadLibrary failed to load: avisynth.dll, /usr/lib/win32/avisynth.dll, /us r/local/lib/win32/avisynth.dll Rilevato file audio! ========================================================================== Codec audio forzato: hwac3 Impossibile trovare il codec per il formato audio 0xFFFE! Leggi DOCS/it/codecs.html! ========================================================================== Audio: nessun suono!!! Video: no video!!! In uscita... (Fine del file) Probably the correct pipe to send is aac -> pcm -> ac3 -> hwac3 it seems a bit long but I have no other ideas. I hope to solve it with ac3jack but It is giving me some compilation problems and I didn't understand where to put the PCM/wav file in ac3jack?! Last edited by bugmenotwillyou; 28th July 2005 at 18:59. |
28th July 2005, 18:56 | #7 | Link | |
Life's clearer in 4K UHD
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,227
|
Quote:
A real shame...
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
|
|
28th July 2005, 19:10 | #9 | Link |
Life's clearer in 4K UHD
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,227
|
FFdshow has an option to transcode 6Ch AAC-LC/HE to 6Ch AC3 "on-the-fly" for passing via S/P-DIF.... But I've only ever tested it using WinXP.
Cheers
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
|
30th July 2005, 00:22 | #10 | Link |
Registered User
Join Date: Jul 2003
Location: In a house.
Posts: 663
|
When using mplayer from the cli, add "-ao alsa9:spdif" to the command to get S/PDIF output. You can also go into mplayer's preferences and change the audio output. Right click the mplayer window, select Preferences, and click on the Audio tab. You then see a choice of a bunch of output drivers. Select one and click Configure Driver. For example, select OSS and click Configure Driver. Click the Device popup and select /dev/dsp_ac3 for S/PDIF output. Or you could select ALSA and click Configure Driver. Click the Device popup and select iec958 for S/PDIF output. If these devices aren't listed, they haven't been setup correctly yet (normally).
|
1st August 2005, 10:04 | #11 | Link | ||
Guest
Posts: n/a
|
With -ao alsa9:spdif I got:
Quote:
Quote:
|
||
1st August 2005, 23:14 | #13 | Link |
Registered User
Join Date: Jul 2003
Location: In a house.
Posts: 663
|
If you have ALSA installed, it provides a backwards compatible OSS that doesn't have /dev/dsp_ac3. It's "real" OSS that has /dev/dsp_ac3.
I'd suggest going through the mplayer mail list archives for info on this. It might already have been discussed there. |
3rd August 2005, 05:23 | #14 | Link |
Registered User
Join Date: Jun 2003
Location: Great Lakes, USA
Posts: 1,433
|
Just to be clear:
1. If your alsa mixer settings are correct, the only CLI / config switch you should need is -ao alsa. 2. Mplayer will not (as it shouldn't) allow you to pass undecoded AAC over spdif. Mplayer will decode all audio except for AC3 or DTS with the appropriate -hwac3 or -hwdts switch. 3. To play aac over spdif it must be decoded and downmixed to 2 channels (spdif only supports 2 channel pcm). 4. AFAIK, There is no way using mplayer or any linux player to transcode to AC3 and pass over spdif on the fly. It might be possible with gstreamer, but it would be difficult at best.
__________________
KpeX Audio FAQs: General | BeSweet | SVCD/MP2 | MP3 | Vorbis | AC3 | DTS | AAC Linux Audio/Video FAQ |
3rd August 2005, 09:30 | #15 | Link | ||||
Guest
Posts: n/a
|
Quote:
Quote:
Quote:
pc -> AAC -> ac3 ->receiver Quote:
|
||||
2nd April 2007, 18:30 | #16 | Link | |
Registered User
Join Date: Mar 2007
Posts: 4
|
http://forum.doom9.org/showthread.ph...300#post424070
Quote:
|
|
2nd April 2007, 20:14 | #17 | Link |
Registered User
Join Date: Mar 2005
Location: Finland
Posts: 2,641
|
Yes. GStreamer is like DirectShow. I don't know how well the current ac3 encoding filters work with it, but there should be an encoder in the gst-ffmpeg plugin. Constructing a filter graph that uses it might be tricky though. Ac3jack is worth trying too.
|
|
|