SageTV Community  

Go Back   SageTV Community > SageTV BETA Release Products > SageTV Beta Test Software
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Beta Test Software Discussion related to BETA Releases of the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. regarding SageTV Beta Releases should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-03-2006, 11:50 PM
tbonessc tbonessc is offline
Sage User
 
Join Date: Feb 2006
Posts: 42
AC3/5.1 SPDIF passthough not working for MPEG4 videos

On version 5 when I played mpg4 videos that had AC3 audio Sage would pass the 5.1 sound to my receiver through SPDIF just fine.
In version 6 it is only passing stereo, is there something I need to do to set this up again?
HD recordings and DVD both pass 5.1 fine in the new release, this is just limited to mpeg4 so far.
For HD and DVD I have Sage set to use the Nvidia Audio decoder.

I checked the AVI's in Windows Media Player, the 5.1 sound is passing correctly via SPDIF using AC3Filter.
Reply With Quote
  #2  
Old 10-04-2006, 12:29 PM
Zladotimov Zladotimov is offline
Sage User
 
Join Date: Mar 2006
Posts: 26
That's because v6 now uses MPlayer for playing video media, which has internal codecs for most popular streams, including AC3. That also means that whatever codec you select in the menu, won't get used during playback.
You can force mplayer to use your own codec by changing the appropriate settings in the sage.properties file:
mplayer/use_for_all_mpeg4_playback=false
You can also set mplayer to redirect the AC3 stream to spdif by adding the following to the properties file:
extra_mplayer_args=-afm hwac3 On my system this completely screws up video playback, so I used the first option.
There is no mention anywhere in the manual on how mplayer can be configured through the properties file..

Last edited by Zladotimov; 10-04-2006 at 12:41 PM.
Reply With Quote
  #3  
Old 10-04-2006, 01:42 PM
tbonessc tbonessc is offline
Sage User
 
Join Date: Feb 2006
Posts: 42
Thanks. I'll give those options a try.
Reply With Quote
  #4  
Old 10-05-2006, 08:03 AM
tbonessc tbonessc is offline
Sage User
 
Join Date: Feb 2006
Posts: 42
Well I had to use mplayer/use_for_all_mpeg4_playback=false as well, but it works again.
extra_mplayer_args=-afm hwac3 had no sound at all.
Reply With Quote
  #5  
Old 10-08-2006, 01:22 PM
JDizzy JDizzy is offline
Sage Advanced User
 
Join Date: Apr 2006
Location: O'side CA
Posts: 151
No SPDIF passthrough / No Picture

Quote:
Originally Posted by tbonessc
Well I had to use mplayer/use_for_all_mpeg4_playback=false as well, but it works again.
I too had issues and had to change this setting.
I not only was getting no passthrough, but also ws getting no picture.

This fixed it for me
JD
Reply With Quote
  #6  
Old 10-19-2006, 07:33 AM
drpixel drpixel is offline
Sage User
 
Join Date: Dec 2004
Posts: 12
If you are trying to playback MPEG4 files with AAC audio, -afm hwac3 will not work, as it will simply pass thru an AC3 signal. What you really need to have happen is for something to transcode the AAC to AC3. FFDShow and AC3Filter v1.0 and higher do this, but mplayer does not.

My solution was to get a sound card that encodes 6 channel audio to 5.1 on the fly. This feature is called Dolby Digital Live and can be found on several higher end sound cards. I have the AuzenTech HDA X-Plosion 7.1 DTS Connect, which also encodes in DTS. This will take anything 6 channel and output it properly.

Another thing you'll need to do to get 6 channel sound to work with mplayer is to add '-channels 6' to the extra_mplayer_args setting. Be sure to remove the '-afm hwac3' flag when you do and set 'mplayer/use_for_all_mpeg4_playback=true'

Hope this helps
Reply With Quote
  #7  
Old 10-23-2006, 10:49 PM
jamesnw jamesnw is offline
Sage User
 
Join Date: Sep 2006
Posts: 23
I have been trying to play a mkv file (Matroska) and had no problems with the video output. The audio, however, was being decoded in software rather than being sent as an AC3 stream to my A/V receiver. I turned mplayer debugging levels on using the extra_mplayer_args=-msglevel all\=9 option in Sage.properties to determine what the problem was. Apparently mplayer is used to play Matroska files regardless of the mplayer/use_for_all_mpeg4_playback=false setting. This probably makes sense since Mastroka is not the mpeg4 container. Anyways, since I am forced to use mplayer I added the option that was suggested above extra_mplayer_args=-afm hwac3 which enables hardware DTS and AC3 pass-through. I ended up losing all sound output at this point as some of you have mentioned before. The issue turned out to be the mplayer/audio_renderer=dsound option. According to the SageTV log file, mplayer could not open my audio device when I configured the extra "-afm hwac3" option. After fiddling around with a standalone copy of mplayer I determined that the audio renderer "win32" (which is WaveOut rather than DirectSound) worked properly. Once I configured mplayer/audio_renderer=win32 in Sage.properties the AC3 stream was properly passed over the S/PDIF interface and my world is now a little bit better

In short, try these two settings:

Code:
extra_mplayer_args=-afm hwac3
mplayer/audio_renderer=win32
Good luck!
Reply With Quote
  #8  
Old 10-24-2006, 03:35 PM
ToxMox's Avatar
ToxMox ToxMox is offline
Sage Icon
 
Join Date: Oct 2003
Location: NJ
Posts: 1,980
Hey thanks jamesnw I was having the same problem with mkv files in Sage and your solution worked like a champ!
Reply With Quote
  #9  
Old 04-21-2007, 06:04 PM
camus camus is offline
Sage Aficionado
 
Join Date: Jun 2006
Posts: 357
Ditto on the thanks jamesnw. :cheers:
__________________
AMD Athlon 3000 |1GB Memory | eVGA 7600GS | 80GB, 300GB and 500GB SATAII | HDHomerun |Hauppage PVR-150 | SageMC 16x9 | Windows XP Pro.
Reply With Quote
  #10  
Old 10-31-2007, 03:22 PM
Justintoxicated Justintoxicated is offline
Sage User
 
Join Date: Oct 2007
Posts: 70
Quote:
Originally Posted by jamesnw View Post
I have been trying to play a mkv file (Matroska) and had no problems with the video output. The audio, however, was being decoded in software rather than being sent as an AC3 stream to my A/V receiver. I turned mplayer debugging levels on using the extra_mplayer_args=-msglevel all\=9 option in Sage.properties to determine what the problem was. Apparently mplayer is used to play Matroska files regardless of the mplayer/use_for_all_mpeg4_playback=false setting. This probably makes sense since Mastroka is not the mpeg4 container. Anyways, since I am forced to use mplayer I added the option that was suggested above extra_mplayer_args=-afm hwac3 which enables hardware DTS and AC3 pass-through. I ended up losing all sound output at this point as some of you have mentioned before. The issue turned out to be the mplayer/audio_renderer=dsound option. According to the SageTV log file, mplayer could not open my audio device when I configured the extra "-afm hwac3" option. After fiddling around with a standalone copy of mplayer I determined that the audio renderer "win32" (which is WaveOut rather than DirectSound) worked properly. Once I configured mplayer/audio_renderer=win32 in Sage.properties the AC3 stream was properly passed over the S/PDIF interface and my world is now a little bit better

In short, try these two settings:

Code:
extra_mplayer_args=-afm hwac3
mplayer/audio_renderer=win32
Good luck!
jamesnw, Kind of hard to follow what exactly I need to change to get mkv files to have 5.1 sound, but not pass through SPDIF. I'm using the analog output on my Sb X-fi card. I am however only getting 3.1 surround when playing mkv files back and not 5.1 like I do in VLC player. Which setting exactly do I need to change? I want my x-fi card to decode the sound and output analog signal to my Logitec Z5500's

Do I not use the first line and simply use this second one?
mplayer/audio_renderer=win32

??????????
Reply With Quote
  #11  
Old 01-22-2008, 08:56 PM
jamesnw jamesnw is offline
Sage User
 
Join Date: Sep 2006
Posts: 23
I think the latest version of SageTV fixes most of the issues with mkv. Check out the change list for it.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 03:57 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.