[mythtv] Mac OS X video: QuickTime implementation

Nigel Pearson nigel at ind.tansu.com.au
Mon Sep 6 23:46:44 EDT 2004


> Following Nigel's suggestion in videoout_quartz.cpp, I have made some 
> progress in using QuickTime instead of libavcodec to do YUV->RGB 
> conversion.

	Wow! I had just started work on adding window-safe
drawing code, and you have tamed "an unholy amalgamation"

[mental note - Must add Jeremiah to my Christmas card list]




	Slotted the code into my V0.15.1 working tree, changed the
method for PrepareFrame (the only API difference between CVS & 0.15),
and ran it, but got no image, a few seconds of stuttered sound,
and then a bus error :-(

	Will compile a debug version and get back to you.


> Known problems:
>
> - On my PowerBook G4 800, I have frequent "prebuffering pause" and 
> "A/V diverged" problems.

	I haven't seen any A/V diverged messages with v1, though if
I have a slow link to the backend (e.g. wireless), I get this:

Input #0, mpeg, from 
'myth://143.238.2.191:6543/1002_20040902084900_20040902090000.nuv':
   Stream #0.0: Video: mpeg2video, 720x576, 25.00 fps
   Stream #0.1: Audio: mp2, 48000 Hz, stereo, 256 kb/s
2004-09-07 12:22:01 Position map found
2004-09-07 12:22:04 VideoOutputQuartz::Init(width=720, height=576, 
aspect=1.77778, winid=22, winx=0, winy=0, winw=1024, winh=768, WId 
embedid=0)
2004-09-07 12:22:05 Over/underscan. V: 0, H: 0, XOff: 0, YOff: 0
2004-09-07 12:22:05 Image size. dispxoff 0, dispyoff: 96, dispwoff: 
1024, disphoff: 576
2004-09-07 12:22:05 Image size. imgx 0, imgy: 0, imgw: 720, imgh: 576
2004-09-07 12:22:06 Changing from None to WatchingPreRecorded
2004-09-07 12:22:06 waiting for prebuffer...
2004-09-07 12:22:06 prebuffer wait timed out..
2004-09-07 12:22:06 waiting for prebuffer...
'video_output' mean = '47423.41', std. dev. = '20033.40', fps = '21.09'
-374
'video_output' mean = '38201.95', std. dev. = '5407.39', fps = '26.18'
-197
'video_output' mean = '39613.69', std. dev. = '23673.29', fps = '25.24'
-172
2004-09-07 12:22:20 prebuffering pause
2004-09-07 12:22:20 waiting for prebuffer...
2004-09-07 12:22:20 prebuffer wait timed out..
2004-09-07 12:22:20 waiting for prebuffer...
2004-09-07 12:22:20 prebuffer wait timed out..
2004-09-07 12:22:20 waiting for prebuffer...
2004-09-07 12:22:20 prebuffer wait timed out..
2004-09-07 12:22:20 waiting for prebuffer...
'video_output' mean = '52110.44', std. dev. = '70531.40', fps = '19.19'
-124


	Behaviour is similar (slower fps and stuttering audio)
if I scale to full screen when the depth is set at millions.
Am wondering if it is something in the latest (CVS) NVP,
or if it is something to do with the QuickTime decompressor
not being very thread friendly.

--
Nigel Pearson, nigel at ind.tansu.com.au | "Reality is that which,
Telstra BI&D, Sydney, Australia       |  when you stop believing
Office: 8255 4222    Fax:  8255 3153  |  in it, doesn't go away."
Mobile: 0408 664435  Home: 9792 6998  |  Philip K. Dick - 'Valis'



More information about the mythtv-dev mailing list