On 12/8/06, <b class="gmail_sendername">marius schebella</b> &lt;<a href="mailto:marius.schebella@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">marius.schebella@gmail.com</a>&gt; wrote:<div>


<span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>I want to use Gem to synchronize several linux machines playing high<br>resolution videos 1440x1080 or 1920x1080. any comments on that???<br><br></blockquote><div><br>I do a lot of HD work using GEM on the Mac now and here is what I find most effective:
<br><br>1) Lossy intra-frame but not inter-frame codec.&nbsp; JPEG based ones including DVCPRO_HD are the ones to use.&nbsp; Data rate will be around 100Mbit which standard SATA drives easily handle.&nbsp; The codec needs a ton of SIMD code and multiple threads for decompression.
<br><br>2) Decompression to the appropriate video color space.&nbsp; 4:2:2 YCbCr (YUV) is the way to go.&nbsp; Conversions to RGB on the CPU are going to kill any efficiency.&nbsp; YCbCr textures are half the memory size of RGB ones too.
<br><br>3) Support for YCbCr textures in the OpenGL drivers.&nbsp; Upload as YCbCr and let the hardware convert the colorspace.<br><br>4) DMA texturing path with no extra caching and memory copies of the texture data.&nbsp; By default the driver keeps one or more copies and the routines to make the copies are often slow.&nbsp; Also, the card may keep copies too but that is less of a problem.
<br><br>For #1 libavcodec has some fairly efficient paths for MJPEG and MPEG2 - the former is probably the faster of the two although try I frame only MPEG2.&nbsp; The libavcodec will also deliver #2 but you are out of luck for #3 because ATI/Nvidia don't have any support for YCbCr on Linux or Windows so neither #2 or #3 work.&nbsp; Finally, #4 doesn't seem to be possible using the usual ATI or Nvidia drivers although there is supposedly a way to do fast texturing on Nvidia, but I haven't gotten it to work yet.
<br><br>That 1 out of 4 score is what keeps most of my paying work on the Mac for now.&nbsp; I am working on getting Windows up to speed which could have the byproduct of making Linux faster too since the GL drivers are pretty much the same for Nvidia.
<br><br>&nbsp;<br><br></div>
</div>
<br>