Go to Post Could you post your code? It is hard to debug that which you cannot see... - Dusk Star [more]
Home
Go Back   Chief Delphi > Other > FIRST-related Organizations > The Blue Alliance
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 28-09-2008, 22:10
artdutra04's Avatar
artdutra04 artdutra04 is offline
VEX Robotics Engineer
AKA: Arthur Dutra IV; NERD #18
FRC #0148 (Robowranglers)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2002
Location: Greenville, TX
Posts: 3,077
artdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond repute
[TBA]: h.264 Video Analysis, and Improving TBATV Video Quality

In response to this earlier thread and some PMs, yesterday I spent some time analyzing the h.264 video codec for possible use on all of the video on The Blue Alliance, though more specifically in regards to the streaming video.

The reasons for choosing this video codec is the superior video quality, compatibility with iDevices (iTunes, iPhone, iPod, etc), and the fact that Flash 9 now has built-in support for h.264 video. The downside to this format is that it takes computer with quite some heft in the processing department to encode it at a reasonable speed (I was able to able to transcode at about 150% to 200% of playback speed at 70 to 80% CPU.)

For the following tests, I used this match*. All h.264 encoding was single pass, as the time increase spent doing a double-pass was not worth the minimal increase in quality/decrease in file size. The software used was Visual Hub, and the testing was one on 24" iMac, with 2.8 Ghz Core 2 Duo, 2 Gb 800Mhz DDR2 RAM, and NVIDIA 512mb 8800gs, running Mac OS X Leopard.

At the low end, encoding into h.264 streaming gives much better results over the Flash codec at a minimally higher file size. Here is a screenshot of the existing Flash streaming video versus the h.264 streaming video:



As you can see, on average a 0.5 to 1.0 Mb increase in file size, coupled with the h.264 codec, results in a huge increase in video quality. The native resolution of the video ends up being slightly higher, and the quality ends up being much improved. Under Flash, any of the text in the video is barely legible, whereas under h.264, the text legibility is much improved.

The video settings for the h.264 encoding (shown above) were 432x320px, 29.97 fps, ~300 kbps (variable), and with mp4a audio codec at 44 khz.

On the high quality (downloadable video) end, the difference in end file size and quality of the TBA downloaded WMV versus the h.264 is mimimal. However, since the h.264 was transcoded from the WMV, one cannot attempt to get a higher quality at the same bitrate, resolution, and file size. The only way to throughly test this would be to have an uncompressed original match to start with, of which I don't have any on this computer. (I have a lot on my home desktop, through...). These tests will remain until a further date to be evaluated, unless someone else in the CD community wants to volunteer.

What these results throughly show is that by transcoding the streaming video into the h.264 video codec (instead of the Flash codec), it results in a large increase in video quality and crispness with a minimal increase in file size. The final h.264 video remains playable with the Flash 9 video player used on TBATV. This higher quality video allows the user to see much more detail (including having the ability to read text from the video), without having to download the full-quality (approx 20mb) video, which can end up actually saving bandwidth on the TBA servers.


So, here is where I open this up to the thoughts and opinions of the CD community.

What would you think about converting all of the streaming video over to h.264? How many people out there have iPhones or iPod Touches (or other mobile devices) and would like to watch match video on them?


* I had to. Both of the teams I help mentor were on the same alliance, even though they lost 100-106. ;-)
__________________
Art Dutra IV
Robotics Engineer, VEX Robotics, Inc., a subsidiary of Innovation First International (IFI)
Robowranglers Team 148 | GUS Robotics Team 228 (Alumni) | Rho Beta Epsilon (Alumni) | @arthurdutra

世上无难事,只怕有心人.
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[TBA]: Los Angeles video Joe Ross Video Archives 17 15-04-2008 10:02
[TBA]: Minnesota Video Vikesrock Video Archives 2 31-03-2008 16:49
TBA Regional Video Posts BenB The Blue Alliance 4 25-02-2008 21:49
[VIDEO] TBA Match Archives Greg Marra General Forum 16 25-03-2007 12:21


All times are GMT -5. The time now is 03:44.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi