HOWTO: H.264 YouTube videos in mediatomb (no more transcoding for PS3!)

Published: 2009-01-23
As you probably know (and as explained on Wikipedia), YouTube supports several video formats. Until then, mediatomb could only stream standard videos based on the H.263 video codec, which required on-the-fly transcoding to be properly played on the Playstation 3. I showed you how to do this in this previous super-popular article ;)

But hey, things have changed and as of revision 1998, mediatomb now supports the H.264 format, which is natively played by the PS3. This means that we no longer need to transcode YouTube videos :)

First of all, you need to check what revision you have:

ubuntu% cd src/mediatomb
ubuntu% svn info
Path: .
URL: https://svn.mediatomb.cc/svnroot/mediatomb/trunk/mediatomb
Repository Root: https://svn.mediatomb.cc/svnroot/mediatomb
Repository UUID: f010a08f-7000-0410-b1fc-cb24403df210
Revision: 2018
Node Kind: directory
Schedule: normal
Last Changed Author: jin_eld
Last Changed Rev: 2018
Last Changed Date: 2009-01-22 19:42:33 +0100 (Thu, 22 Jan 2009)

I'm all set, but if you have a revision older than 1998, you need to update your sources ('svn update') and rebuild mediatomb.

Then, all it takes is changing the YouTube configuration in ~/.mediatomb/config.xml, from:



to:

format="mp4" hd="no" refresh="28800" update-at-start="yes" purge-after="604800" racy-content="exclude">

Although the videos will now be based on the H.264 codec, they will still have the .flv extension, so you also need to remove any transcoding profile for flv files, i.e. something similar to:



Now, restart mediatomb and browse your playlists. As you can see, the videos now appear as AVC (which is another name for H.264):

Video illustration
This is confirmed by displaying the file properties during streaming: 128 Kbit/s stereo AAC audio and H.264 video :)

Video illustration
Enjoy!

About the Author

Julien Simon is the Chief Evangelist at Arcee AI , specializing in Small Language Models and enterprise AI solutions. Recognized as the #1 AI Evangelist globally by AI Magazine in 2021, he brings over 30 years of technology leadership experience to his role.

With 650+ speaking engagements worldwide and 350+ technical blog posts, Julien is a leading voice in practical AI implementation, cost-effective AI solutions, and the democratization of artificial intelligence. His expertise spans open-source AI, Small Language Models, enterprise AI strategy, and edge computing optimization.

Previously serving as Principal Evangelist at Amazon Web Services and Chief Evangelist at Hugging Face, Julien has helped thousands of organizations implement AI solutions that deliver real business value. He is the author of "Learn Amazon SageMaker," the first book ever published on AWS's flagship machine learning service.

Julien's mission is to make AI accessible, understandable, and controllable for enterprises through transparent, open-weights models that organizations can deploy, customize, and trust.