Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem encoding audio on-the-fly to ac3 using mplayer
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
siskus
n00b
n00b


Joined: 19 Feb 2010
Posts: 1

PostPosted: Sat Feb 20, 2010 12:03 am    Post subject: Problem encoding audio on-the-fly to ac3 using mplayer Reply with quote

Hello,

I have got a problem with mplayer: I want do play a Movie which has a dts-audio track. Since my receiver only supports AC3-audio, I want to transcode the audio on the fly using -af lavcac3enc=1 with mplayer.

I googled and searched this forum about how to archive that. I found several examples on how to do that. But mplayer refuses to cooperate :-(

The command-line I use is:
mplayer -af lavcac3enc=1:640 -ac hwac3 -ao alsa:device=hw=1.0 file-with-dts-audio.mkv

I got an error saying that mplayer is unable to find a codec for the audio format number 0x2001 (which is dts).
I tried differend audio formats in combination with -af lavcac3enc. The error is the same, except that the audio format number changes.
Mplayer itself has support for dts enabled. Playing a file with dts-Audio plays fine (but only stereo) if I don't add additional switches to the command-line.

Playing a file which already got an AC3-track plays perfectly fine with:
mplayer -ac hwac3 -ao alsa:device=hw=1.0 file-with-ac3-audio.mkv

I don't know if this problem is gentoo specific. Please tell me if I should supply additional debug information in order to solve this problem.

Greetings siskus
Back to top
View user's profile Send private message
pianosaurus
l33t
l33t


Joined: 19 Apr 2004
Posts: 943
Location: Bash$

PostPosted: Sat Feb 20, 2010 12:50 pm    Post subject: Reply with quote

It seems to work here, though I don't have outputs to test it fully on this box. Before it croaks on missing outputs, I get this:
Code:
==========================================================================
Forced audio codec: hwac3
Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
No accelerated IMDCT transform found
hwac3: switched to AC3, 192000 bps, 48000 Hz
AUDIO: 48000 Hz, 2 ch, ac3, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF)
==========================================================================


I also have a52 and encode use flags, which is probably relevant.
_________________
PKA Cuber
Please add [SOLVED] to the subject of your original post when you feel that your problem is resolved.
Adopt an unanswered post
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum