Re: [mythtv-users] XvMC in preview?

2005-05-15 Thread Daniel Kristjansson
On Sat, 2005-05-14 at 18:24 -0500, Michael Carland wrote:
 Howdy.
 
 I'm running .18 with XvMC (EPIA), mpeg2 all the way through. When I 
 watch live TV, cpu usage is about 15-20%, and all is well. Live TV in 
 the EPG and prerecorded TV is the same.
 
 But when I am seeing a video preview under Watch Recordings, cpu is 
 about 95%, and the preview is very skittery. I assume this is because 
 the preview video is not using XvMC?

MythTV uses software decoding for the preview. It used to be accelerated
but a lot of users had problems because their drivers did not support
scaling XVideo to such a small window. The scaling could be more
efficient, we do color conversion then scale. We could do this in one
pass, and we could deinterlace by just ignoring the even lines. Also,
using accelerated playback could be made an option for the preview.
No one has had the time and/or inclination to do this yet.

If you want a stab at the code, here is where to look:
  programs/mythfrontend/playbackbox.cpp

I recently put up the doxygen documentation for MythTV here:
  http://www.cuymedia.net/
It is still very much a work in progress, but if you want to
learn about the code, one of the best ways is to document it :)

-- Daniel

___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] XvMC in preview?

2005-05-14 Thread Michael Carland
On May 14, 2005, at 7:22 PM, Örn Einar Hansen wrote:
Þann Sunnudagur 15 maí 2005 01:24 skrifaði Michael Carland:
Howdy.
I'm running .18 with XvMC (EPIA), mpeg2 all the way through. When I
watch live TV, cpu usage is about 15-20%, and all is well. Live TV in
the EPG and prerecorded TV is the same.
But when I am seeing a video preview under Watch Recordings, cpu is
about 95%, and the preview is very skittery. I assume this is because
the preview video is not using XvMC?
Is this true? Is there another solution? If it is true, is there a
technical reason the preview doesn't use XvMC, or has it just not been
done yet, and is something I could look into fixing?
  Did you remember to modify the mplayer playback command, to 
include '-vo
xvmc -vc ffmpeg12mc ?
I may be misunderstanding what you are suggesting, but I think you are 
referring to MythVideo video playback, which is working fine for me. I 
am talking about the small preview window of the recorded programs. 
Even here, the actual playback is fine, it is only the preview that 
chews through cpu and looks poor. Media Library-Watch Recordings.

Turning on CPU friendly preview of recordings helps, as it then only 
uses 60% cpu. But since all other display of video only uses 20%, and 
this is the only display that has tearing and uses 95% (or 60%) cpu, 
I'm thinking the preview is not using XvMC like the others.

-Michael
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] XvMC in preview?

2005-05-14 Thread Howard Cokl

--- Michael Carland [EMAIL PROTECTED] wrote:
 
 On May 14, 2005, at 7:22 PM, Örn Einar Hansen wrote:
 
  Þann Sunnudagur 15 maí 2005 01:24 skrifaði Michael
 Carland:
  Howdy.
 
  I'm running .18 with XvMC (EPIA), mpeg2 all the
 way through. When I
  watch live TV, cpu usage is about 15-20%, and all
 is well. Live TV in
  the EPG and prerecorded TV is the same.
 
  But when I am seeing a video preview under Watch
 Recordings, cpu is
  about 95%, and the preview is very skittery. I
 assume this is because
  the preview video is not using XvMC?
 
  Is this true? Is there another solution? If it is
 true, is there a
  technical reason the preview doesn't use XvMC, or
 has it just not been
  done yet, and is something I could look into
 fixing?
 
Did you remember to modify the mplayer
 playback command, to 
  include '-vo
  xvmc -vc ffmpeg12mc ?
 
 I may be misunderstanding what you are suggesting,
 but I think you are 
 referring to MythVideo video playback, which is
 working fine for me. I 
 am talking about the small preview window of the
 recorded programs. 
 Even here, the actual playback is fine, it is only
 the preview that 
 chews through cpu and looks poor. Media
 Library-Watch Recordings.
 
 Turning on CPU friendly preview of recordings
 helps, as it then only 
 uses 60% cpu. But since all other display of video
 only uses 20%, and 
 this is the only display that has tearing and uses
 95% (or 60%) cpu, 
 I'm thinking the preview is not using XvMC like the
 others.
 
 -Michael
I'm not one of the dev guys, just a (l)user but it
seems to me that what you are describing is perfectly
natural.  The main screen is displaying the recorded
OSD and generating a preview which it has to scale
down to fit in a small size, the CPU load is more
because it is doing more things at the same time.

Howard
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] XvMC in preview?

2005-05-14 Thread Michael Carland
On May 14, 2005, at 7:57 PM, Howard Cokl wrote:
--- Michael Carland [EMAIL PROTECTED] wrote:
I may be misunderstanding what you are suggesting,
but I think you are
referring to MythVideo video playback, which is
working fine for me. I
am talking about the small preview window of the
recorded programs.
Even here, the actual playback is fine, it is only
the preview that
chews through cpu and looks poor. Media
Library-Watch Recordings.
Turning on CPU friendly preview of recordings
helps, as it then only
uses 60% cpu. But since all other display of video
only uses 20%, and
this is the only display that has tearing and uses
95% (or 60%) cpu,
I'm thinking the preview is not using XvMC like the
others.
-Michael
I'm not one of the dev guys, just a (l)user but it
seems to me that what you are describing is perfectly
natural.  The main screen is displaying the recorded
OSD and generating a preview which it has to scale
down to fit in a small size, the CPU load is more
because it is doing more things at the same time.
Howard
I would have thought the same thing, except that the live TV in the EPG 
is scaled and inserted into an OSD, and that uses the same 20% cpu for 
me. So I would assume that displaying an mpeg2 preview on an OSD would 
be no different. But looking at the code, I got lost, and realized that 
it would take me a lot of studying to get up to speed. So if I was 
doing something stupid causing it not to work, or if it can't work for 
some technical reason, I'd find some simpler thing to try and tweak 
first, that had a lower learning curve.

-Michael
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] XvMC in preview?

2005-05-14 Thread George Nassas
On 14-May-05, at 7:24 PM, Michael Carland wrote:
But when I am seeing a video preview under Watch Recordings, cpu is 
about 95%, and the preview is very skittery. I assume this is because 
the preview video is not using XvMC?
That's right. This came up a while ago and there was a reason why the 
preview doesn't use XvMC but I don't remember it. A quick search of the 
dev and users archives didn't turn up anything either but for sure it 
was discussed within the last six months.

- George
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users