[mythtv] mythtv-vid g450 directfb -- Some sucess!!

Peter Hartmann ascensiontech at gmail.com
Thu Aug 2 16:50:01 UTC 2007


Hey Daniel,
Thanks for getting back to me. (and thanks for all your hard work) Are
you saying that mythtv with directfb output needs more resources than
df_xine and mplayer with  -vo dfbmga:crtc2  ?   Those are perfectly
smooth.   Here's a typical usage from top:

PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
  4978 root      15   0  348m  79m  17m S  7.3  5.2   0:04.85 mythfrontend
  3099 peter     15   0  204m  74m  20m R  6.3  4.9   5:00.82 firefox-bin
  4561 root      15   0  223m  16m  10m S  1.7  1.1   0:06.59 mythbackend
 1424 root      15   0     0    0    0 S  0.7  0.0   0:30.70 lirc_pvr150


I think you may find this interesting...

2007-08-02 12:37:48.860 AFD: Opened codec 0x869aed0, id(MPEG2VIDEO) type(Video)
2007-08-02 12:37:48.860 AFD: Opened codec 0x869b230, id(MP2) type(Audio)
2007-08-02 12:37:48.923 Opening OSS audio device '/dev/dsp'.
2007-08-02 12:37:48.972 === WE ARE GOING TO LAYERCALLBACK
2007-08-02 12:37:48.973 === Checking for Matrox CRTC2 Layer
2007-08-02 12:37:48.973   === Not the right one, trying next...
2007-08-02 12:37:48.973 === WE ARE GOING TO LAYERCALLBACK
2007-08-02 12:37:48.973 === Checking for Matrox CRTC2 Layer
2007-08-02 12:37:48.973   === Not the right one, trying next...
2007-08-02 12:37:48.973 === WE ARE GOING TO LAYERCALLBACK
2007-08-02 12:37:48.973 === Checking for Matrox CRTC2 Layer
2007-08-02 12:37:48.973   === Found CORRECT LAYER
2007-08-02 12:37:48.973   === Calling GetDisplayLayer...
2007-08-02 12:37:48.974     === DFB_OK, Cancelling Enumeration :)
2007-08-02 12:37:48.974     === Testconfiguration skipped
2007-08-02 12:37:49.007 CreateBuffers
2007-08-02 12:37:50.521 TV: Changing from None to WatchingLiveTV
2007-08-02 12:37:50.532 Using realtime priority.
2007-08-02 12:37:50.549 Video timing method: DRM
2007-08-02 12:37:53.487 NVP: Timed out waiting for free video buffers.
2007-08-02 12:37:53.897 NVP: prebuffering pause
2007-08-02 12:37:56.461 NVP: Timed out waiting for free video buffers.
2007-08-02 12:37:57.089 NVP: prebuffering pause
2007-08-02 12:37:59.586 NVP: Timed out waiting for free video buffers.
2007-08-02 12:38:00.215 NVP: prebuffering pause
2007-08-02 12:38:02.755 NVP: Timed out waiting for free video buffers.
2007-08-02 12:38:03.401 NVP: prebuffering pause
2007-08-02 12:38:05.960 NVP: Timed out waiting for free video buffers.
2007-08-02 12:38:06.566 NVP: prebuffering pause
2007-08-02 12:38:09.092 NVP: Timed out waiting for free video buffers.
2007-08-02 12:38:09.741 NVP: prebuffering pause
2007-08-02 12:38:12.253 NVP: Timed out waiting for free video buffers.
2007-08-02 12:38:12.901 NVP: prebuffering pause
2007-08-02 12:38:15.371 NVP: Timed out waiting for free video buffers.
2007-08-02 12:38:16.027 NVP: prebuffering pause
2007-08-02 12:38:18.578 NVP: Timed out waiting for free video buffers.
2007-08-02 12:38:19.170 NVP: prebuffering pause
2007-08-02 12:38:21.913 NVP: Timed out waiting for free video buffers.
2007-08-02 12:38:22.345 NVP: prebuffering pause
2007-08-02 12:38:24.834 NVP: Timed out waiting for free video buffers.
2007-08-02 12:38:25.470 NVP: prebuffering pause

I'm looking into the possibility of the timeout as the problem.

Thanks again,
Peter




On 8/2/07, Daniel Kristjansson <danielk at cuymedia.net> wrote:
> On Wed, 2007-08-01 at 23:19 -0400, Peter Hartmann wrote:
> > I took Anssi Hannula's old patch to
> > libs/libmythtv/videoout_directfb.cpp and tried my best to make it fit
> > in the current svn for mythtv-vid.  (in a sort of monkey-see monkey-do
> > way....i'm not a  programmer).  It worked!!! (sort of)   The video
> > does indeed play on the tv instead of the opposite head.  see post :
> > http://www.gossamer-threads.com/lists/mythtv/users/279937
> >
> > But it's still choppy...REALLY choppy.  Like one frame per 10 seconds.
> > Can anybody help out?  Thanks!
>
> DirectFB is not an optimized path so you need a much more powerful
> computer and more memory to handle this than if you used XVideo.
> This explains the choppiness.
>
> DirectFB is really for building dedicated systems that don't have
> a real video card so you have to use a dumb framebuffer to get any
> video. When you use XVideo the video card does the color conversion
> and the scaling for you so it saves a lot of CPU cycles.
>
> -- Daniel
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>


More information about the mythtv-dev mailing list