SageTV Community  

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

Notices

SageTV Software Discussion related to the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the SageTV software application should be posted here. (Check the descriptions of the other forums; all hardware related questions go in the Hardware Support forum, etc. And, post in the customizations forum instead if any customizations are active.)

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-29-2006, 12:50 PM
morfinx's Avatar
morfinx morfinx is offline
Sage Advanced User
 
Join Date: Sep 2006
Posts: 147
Significantly higher CPU utilization in SagePlayer vs WMP?

Seems like CPU utilization is much higher in SagePlayer vs WMP. I've compiled the following comparison:

Video: 300 Movie Trailer 1b
Format: 1080p / H.264
Decoder: PowerDVD H.264/AVC Decoder (w/ hardware acceleration)
Computer: See sig



Note after the first minute or so, the CPU utilization in SagePlayer got so high the video completely cut out while audio continued. At this point I cut off the playback. You can clearly see SagePlayer starts to get out of sync near the end of the minute. WMP successfully and smoothly played back the entire trailer but is not shown beyond the first minute in the comparison.

Anyone has any insights on this?
__________________
Athlon X2 4000 @ 2.5Ghz | Antec Veris Fusion v2 | Gigabyte GA-MA69GM-S2H | A-Data 2GB | Westinghouse LVM-37W1 37" LCD | 500GB Samsung | Hauppauge HVR-1800 | VBox DTA-150 | Logitech Harmony 520 | SageTV 6.2.10
Reply With Quote
  #2  
Old 12-29-2006, 01:09 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
What version of Sage? What version of Java? What third-party plugins? Did you run the test full-screen? With FSE? Drive-letter or UNC file paths? There's a lot of variables that could be affecting performance.
__________________
-- Greg
Reply With Quote
  #3  
Old 12-29-2006, 01:30 PM
morfinx's Avatar
morfinx morfinx is offline
Sage Advanced User
 
Join Date: Sep 2006
Posts: 147
Quote:
Originally Posted by GKusnick
What version of Sage? What version of Java? What third-party plugins? Did you run the test full-screen? With FSE? Drive-letter or UNC file paths? There's a lot of variables that could be affecting performance.
SageTV v6.0.19
Java 1.5.0_10 (Sun)
No 3rd party plugins
No FSE (causes problems so I don't use it)
Running off of the 300GB Seagate, drive E
I don't know what UNC file path is.

EDIT: 2nd comparison removed, found inaccuracies in my method
__________________
Athlon X2 4000 @ 2.5Ghz | Antec Veris Fusion v2 | Gigabyte GA-MA69GM-S2H | A-Data 2GB | Westinghouse LVM-37W1 37" LCD | 500GB Samsung | Hauppauge HVR-1800 | VBox DTA-150 | Logitech Harmony 520 | SageTV 6.2.10

Last edited by morfinx; 12-29-2006 at 10:32 PM.
Reply With Quote
  #4  
Old 12-29-2006, 01:37 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
UNC file paths are the kind that don't have drive letters, e.g. \\server\share\file. Some people have reported performance issues when Sage is configured with UNC paths to local drives.
__________________
-- Greg
Reply With Quote
  #5  
Old 12-29-2006, 01:48 PM
morfinx's Avatar
morfinx morfinx is offline
Sage Advanced User
 
Join Date: Sep 2006
Posts: 147
Quote:
Originally Posted by GKusnick
UNC file paths are the kind that don't have drive letters, e.g. \\server\share\file. Some people have reported performance issues when Sage is configured with UNC paths to local drives.
I see. All of my files are local.

Any other suggestions?
__________________
Athlon X2 4000 @ 2.5Ghz | Antec Veris Fusion v2 | Gigabyte GA-MA69GM-S2H | A-Data 2GB | Westinghouse LVM-37W1 37" LCD | 500GB Samsung | Hauppauge HVR-1800 | VBox DTA-150 | Logitech Harmony 520 | SageTV 6.2.10
Reply With Quote
  #6  
Old 12-29-2006, 10:17 PM
morfinx's Avatar
morfinx morfinx is offline
Sage Advanced User
 
Join Date: Sep 2006
Posts: 147
I found the problem. This is from SageTVPlayer (mplayer)'s command line output when I tried to play the video:

Quote:
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)

==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 48000 Hz, 2 ch, s16le, 256.0 kbit/16.67% (ratio: 32000->192000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
==========================================================================
It's not even using the Cyberlink decoder. I dug around mplayer's documentation, and supposingly you can import your own codec:

http://www.mplayerhq.hu/DOCS/HTML/en...importing.html
http://www.mplayerhq.hu/MPlayer/DOCS...odecs.conf.txt

But I've been messing around with it for a few hours and couldn't get it to work. Should I submit a tech support request?
__________________
Athlon X2 4000 @ 2.5Ghz | Antec Veris Fusion v2 | Gigabyte GA-MA69GM-S2H | A-Data 2GB | Westinghouse LVM-37W1 37" LCD | 500GB Samsung | Hauppauge HVR-1800 | VBox DTA-150 | Logitech Harmony 520 | SageTV 6.2.10
Reply With Quote
  #7  
Old 12-29-2006, 11:47 PM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
I am not sure this is a bug.. It looks like you're trying to play an mp4 not mpeg2. afaik, the decoder settings in sage are only for mpeg2 not mp4 files. That said..

I took a brief look at some other postings.. There was a way to specify decoders for other file types in version 5 but may be broken in 6? User Stephane seems to be on this as well. Might want to send a PM.

B
Reply With Quote
  #8  
Old 12-29-2006, 11:52 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Might want to try this (in the sage[client].properties file):
mplayer/use_for_all_mpeg4_playback=false
Reply With Quote
  #9  
Old 12-30-2006, 12:26 AM
morfinx's Avatar
morfinx morfinx is offline
Sage Advanced User
 
Join Date: Sep 2006
Posts: 147
Quote:
Originally Posted by bcjenkins
I am not sure this is a bug.. It looks like you're trying to play an mp4 not mpeg2. afaik, the decoder settings in sage are only for mpeg2 not mp4 files.
Right. My problem is that the SageTV player isn't using the prefered DirectShow filter (Cyberlink) to decode the h.264 file, but forcing ffdshow decoder, which is less efficient.


Quote:
Originally Posted by stanger89
Might want to try this (in the sage[client].properties file):
mplayer/use_for_all_mpeg4_playback=false
That's already set to false in sage.properties
__________________
Athlon X2 4000 @ 2.5Ghz | Antec Veris Fusion v2 | Gigabyte GA-MA69GM-S2H | A-Data 2GB | Westinghouse LVM-37W1 37" LCD | 500GB Samsung | Hauppauge HVR-1800 | VBox DTA-150 | Logitech Harmony 520 | SageTV 6.2.10
Reply With Quote
  #10  
Old 12-30-2006, 03:42 AM
morfinx's Avatar
morfinx morfinx is offline
Sage Advanced User
 
Join Date: Sep 2006
Posts: 147
I found a solution. Well, actually not really. I found that by setting "always_use_dshow_player=true" in SageClient.properties, it forces SageTV to use the default DirectShow Filters instead of launching SageTVPlayer. However, I'm only able to play one of my h.264 file this way, with slight sound artifacts. All my other h.264 files either come up blank with no audio, blank with screeching audio, or just crashing the system by the hands of SageTV MPEG Splitter (stvmcspmpeg.ax - what a MPEG 1/2 splitter doing with a H.264 file I dunno).

I'm so frustrated right now it's almost worth it just to get a faster CPU and call it a day
__________________
Athlon X2 4000 @ 2.5Ghz | Antec Veris Fusion v2 | Gigabyte GA-MA69GM-S2H | A-Data 2GB | Westinghouse LVM-37W1 37" LCD | 500GB Samsung | Hauppauge HVR-1800 | VBox DTA-150 | Logitech Harmony 520 | SageTV 6.2.10
Reply With Quote
  #11  
Old 12-30-2006, 07:45 AM
StephaneM's Avatar
StephaneM StephaneM is offline
Sage Icon
 
Join Date: Mar 2006
Location: France
Posts: 1,463
Quote:
Originally Posted by morfinx
I found a solution. Well, actually not really. I found that by setting "always_use_dshow_player=true" in SageClient.properties, it forces SageTV to use the default DirectShow Filters instead of launching SageTVPlayer.
always_use_dshow_player=true should not be used yet because the SageTV MPEG splitter is not able yet to expose H.264 videos. So when this setting is not enabled and SageTV try to play a MPEG with H.264 video, it will send it to SageTV Player for playback (the first release of SageTV beta 6 was not doing this)

All other H.264 containers should be handled by Directshow player when using mplayer/use_for_all_mpeg4_playback=false (and then the Haali Splitter might help for some of these videos).

Upcoming SageTV 6.1 should be better with H.264 videos (at least MEPG contained ones).

Regards,
Stéphane.
Reply With Quote
  #12  
Old 12-30-2006, 01:20 PM
morfinx's Avatar
morfinx morfinx is offline
Sage Advanced User
 
Join Date: Sep 2006
Posts: 147
Quote:
Originally Posted by StephaneM
always_use_dshow_player=true should not be used yet because the SageTV MPEG splitter is not able yet to expose H.264 videos. So when this setting is not enabled and SageTV try to play a MPEG with H.264 video, it will send it to SageTV Player for playback (the first release of SageTV beta 6 was not doing this)

All other H.264 containers should be handled by Directshow player when using mplayer/use_for_all_mpeg4_playback=false (and then the Haali Splitter might help for some of these videos).

Upcoming SageTV 6.1 should be better with H.264 videos (at least MEPG contained ones).

Regards,
Stéphane.
So you are saying SageTV 6.1 should be able to use the preferred DirectShow Filter (in my case Cyberlink) when playing H.264 videos without having to use SageTV Player?
__________________
Athlon X2 4000 @ 2.5Ghz | Antec Veris Fusion v2 | Gigabyte GA-MA69GM-S2H | A-Data 2GB | Westinghouse LVM-37W1 37" LCD | 500GB Samsung | Hauppauge HVR-1800 | VBox DTA-150 | Logitech Harmony 520 | SageTV 6.2.10
Reply With Quote
  #13  
Old 12-30-2006, 06:49 PM
StephaneM's Avatar
StephaneM StephaneM is offline
Sage Icon
 
Join Date: Mar 2006
Location: France
Posts: 1,463
Quote:
Originally Posted by morfinx
So you are saying SageTV 6.1 should be able to use the preferred DirectShow Filter (in my case Cyberlink) when playing H.264 videos without having to use SageTV Player?
Well, I read here during the beta phase right before 6.0 was released that they were working on H.264 for 6.1 so... as the H.264 TS playback is kinda not working, I guess we could say that this is what should be fixed (Too bad that in January I will not have access anymore to DVB-T H.264 broadcasts tests we have now in France).
Reply With Quote
  #14  
Old 01-01-2007, 06:50 PM
morfinx's Avatar
morfinx morfinx is offline
Sage Advanced User
 
Join Date: Sep 2006
Posts: 147
For people who might be following this thread, thanks to Stephane's help, I've came to the conclusion that currently SageTV's splitter can't correctly separate H.264 video stream from a Quicktime (.MOV) container, so it falls back on mplayer to handle them. This is what's causing all sorts of problems for me when I force dshow player in SageTV. Hopefully 6.1 will bring better H.264 handling.
__________________
Athlon X2 4000 @ 2.5Ghz | Antec Veris Fusion v2 | Gigabyte GA-MA69GM-S2H | A-Data 2GB | Westinghouse LVM-37W1 37" LCD | 500GB Samsung | Hauppauge HVR-1800 | VBox DTA-150 | Logitech Harmony 520 | SageTV 6.2.10
Reply With Quote
  #15  
Old 01-11-2007, 01:23 PM
Patilan Patilan is offline
Sage Advanced User
 
Join Date: Oct 2006
Location: Lake Forest, Illinois, USA
Posts: 237
Quote:
Originally Posted by StephaneM
Upcoming SageTV 6.1 should be better with H.264 videos (at least MEPG contained ones).
What is the source of this information?
Reply With Quote
  #16  
Old 01-11-2007, 08:04 PM
StephaneM's Avatar
StephaneM StephaneM is offline
Sage Icon
 
Join Date: Mar 2006
Location: France
Posts: 1,463
Quote:
Originally Posted by Patilan
What is the source of this information?
This is one of the beta tester from V6 that was told this by one SageTV dev. and this beta tester (I think it is Mark_SS) told us about it in the beta forum.

Regards,
Stéphane.
Reply With Quote
  #17  
Old 01-15-2007, 10:58 AM
Patilan Patilan is offline
Sage Advanced User
 
Join Date: Oct 2006
Location: Lake Forest, Illinois, USA
Posts: 237
Thanks.
Reply With Quote
  #18  
Old 03-07-2007, 10:16 PM
morfinx's Avatar
morfinx morfinx is offline
Sage Advanced User
 
Join Date: Sep 2006
Posts: 147
Sorry to dig up an old thread, but I'm happy to report that the H.264 playback problem has been solved in v6.1.4. Kinda.

Using the internal mplayer, the playback is still choppy. However by setting "always_use_dshow_player=true", now H.264 video plays correctly. So apparently SageTV Splitter is now able to correctly extract H.264 video streams. Although I've only tested it on videos in Quicktime containers (.MOV), I suspect other containers should work as well. Anyone else feel free to confirm this.
__________________
Athlon X2 4000 @ 2.5Ghz | Antec Veris Fusion v2 | Gigabyte GA-MA69GM-S2H | A-Data 2GB | Westinghouse LVM-37W1 37" LCD | 500GB Samsung | Hauppauge HVR-1800 | VBox DTA-150 | Logitech Harmony 520 | SageTV 6.2.10
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 01:47 AM.


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