MediaTomb and PS3: Adding subtitles

Native english speakers usually don't bother much with them, but movie subtitles are a good thing. When you're fond of Asian movies, like I am, they move from "good thing" to "absolute necessity". Why not setup mediatomb to serve those movies with embedded subtitles to the PS3?

The trick is telling mediatomb that a subtitle actually is a movie itself. First job is creating a mimetype for the subtitle extensions:

<map from="srt" to="video/subtitle"/>
<map from="sub" to="video/subtitle"/>

And, just like any other mimetype that needs transcoding, add a mapping line...

<transcode mimetype="video/subtitle" using="mencoder-sub"/>

... and a matching transcoding profile.

<profile name="mencoder-sub" enabled="yes" type="external">
        <mimetype>video/mpeg</mimetype>
        <accept-url>yes</accept-url>
        <first-resource>yes</first-resource>
        <accept-ogg-theora>yes</accept-ogg-theora>
        <agent command="/usr/local/bin/mediatomb-mencoder-sub" arguments="%in %out"/>
        <buffer size="1000000" chunk-size="512000" fill-size="20480"/>
</profile>

If you're unfamiliar with the mediatomb config.xml structure, my full config file is up here. The mediatomb-mencoder-sub script looks up the movie for the given subtitle, and for this to work the filenames must be identical, except for the extension. MyFile.srt requires a MyFile.avi.

#!/bin/bash
exec mencoder "$(echo $1 | sed 's/...$/avi/')" \
-oac lavc -ovc lavc -of mpeg \
-lavcopts vcodec=mpeg2video:keyint=1:vbitrate=2000:vrc_maxrate=8000:vrc_buf_size=1835 \
-vf harddup,scale -zoom -xy 720 -mpegopts muxrate=12000 \
-sub "$1" -font "/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf" \
-subfont-autoscale 0 -subfont-text-scale 25 -subpos 100 \
-o "$2" &>/dev/null

This has a few things hardcoded: first of all, the simple extension replacement, a font for the subtitles (pick your own favourite) and various options for the scaling thereof, and last but not least scaling of the movie to 720px wide. This was only included to allow me to stream HD divxes with subtitles - my processors aren't powerful enough to decode and re-transcode HD divx on the fly. Once again, edit to suit your needs.

Once you re-import your movies and subtitles, you'll notice the .srt or .sub showing up as separate movie files below the original .avi in the PS3's menu. The .avi will be just the movie, without subtitles; the .srt/.sub will give you a transcoded stream of movie + subtitles.

Enjoy!

Comments

Comment

Dragon Ciity -- An amazing Computer game You actually Must Take
a look at

Monstr Location is a game which can be really well-known currently.
Even so usually doo nnot fret if perhaps it's the first-time you
will find this kind of video game sikply because we'll mention the idea in this posting.
However main purpose of thee document would be to inforrm you getting absolutely free valuable gems due to this particular great online game.
And you will probably swiftly nderstand exactly how neat this
online game will be.
A location to help connect to -- that was your understanding linked
to the originator involving FACEBOOK as soon as he oor she began generating this site.
Nevertheless there seemed to be zero poissibility of an affiliate site similar to thios to get favorite.
Therefore, your originator associated using this web site
applied games which granted folks in order to connect againstt each other and engage in online flash games concurrently.
There are lots of businesses in which created his or her
flash games for sale in this group and are also now common. And aleo Monster Town is often a video
game which often received many name simply speaking stretch of
time. It can be time for you to consider precisely what this
particular gqme is offering.
Dragon Location is actually between by far the most enjoyable online
games on the web. However it is actually additionally incorporated along
with Facebook. Meaning you could perform it with all your good friends though
supporting each other. That is the fascinating ideo game through which a
person subsistence your own dragons inside a excellent
earth filled up with destinations. You possibly can in addition battle against
other sorts of game enthusiasts within a arena and
see wwho attributes the most effective legendary critters
workforce. Come up with a excellent earth full of actions.
Acquire lots of dragons, repeat in addition to levels upward the crooks to always bee appreciated as
an consultant of dragons. Soon after you will be set, you
will be capable of deal with toward all avid gamers. Even so tnis
sport actually is likewise designed for cell phones, nott really
only withiun just Zynga alone. You are going to can participate in the exact
adventure anywhere you'll want.
Significant amounts of assets will be required when you wish to quickly show this
mythic beasts. This is whhy i am here to make your individual Dragon Location day a lot more uncomplicated via a
created dragon Cityy hack tool that could make available to you unlimited
access to organic assets along with alll which usually you will need with this particular sport.
As being a Monster Master at this point is not hard and also protected and it's really some sort of basically several clicks apart but only if
youu can be utilizing dragon city cheats tat happen to be
supplied via dragon City hack instrument. Dealing with industry is definitely awaiting people : keep in min to work with dragon Ciity hack apk.

Moreover, I wwnt to indicate that your particular account
iss going to in no way get forbidden with the help of this specific dragon City hack instrument.
Continuous updates are supplied to this particular specific dragon City hack instrument.
That makes certain off which dragoon city cheats iis going to be managing.
Exactly what searching onward to? Make use of dragon city cheats
along with enjoy the video gamje towzrds the fullest extent degree.
www.gopspgo.com

Herre is my website; <a href="http://getfreediamondsondragoncity.blogspot.com">dragon city cheat</a>

Comment

Monster Legends Hack Software For Your Demands

Monster Legends is a marvelous video game. There are a few relaed video games into it yet
this particular some may be genuinely remarkable.
The game play is like tthe actual game play of assorted
other video game titles. It is a very fun and in addition tough
game. If you're interested to master, this specific video game could be the
construction associated with Commnal Points. Whenever taking
element in Monster Legends, game enthusiasts can receive oor simply send out gifts,
get hold of experience points, visiit beast island destinations of associates
for accumulating yellow mefal and as well attle creature group involving associates.
You'll find crazy proportions off gamers whho are getting nvolved in this particular game.

Playing can be exciting, but being succeessful is far more enjoyable.

For this reason you need significant amounts of resources too generally be efficient.
It is possible to helkp you securely gett all the materials applying Monster Legends hack software tool.

No trojans are generally within this Monster Legends hack
product. By using this specific tool you
ccan aquire infinite amounts of resources. The actual game engage in is incredibly interesting and additionally hard to kick.
For you to appreciate entire gameplay, you just must gather lots with materials.
Monster Legends cheats will gjve you all the materials easily.
Monster Legends hack program is compatible with both equally Android combined with
iOS products. Monsater Legends hack software program is not hard to employ and all you requirte is acquire it.

We hafe used each of the ability we have and be able
to created Monster Legends hack tool that will help you to acquire unlimited materials.
These kinds off Monster Legends cheats wioll definitely work undoubtedly.

Build your favvored monsters faster than evedr previously and also never has to be worried about being forced to locate gems once more.

Premium quality Monster Legends hack software is whatt you're looking for.
For that reason, we have expended quite a lot of time frame examining in addition tto retesting our own cheat software so as to ensure Monster Legends cheats work
whether that you are actively playing the cell version in thhe video game or perhaps the webb browser version. Since your current Monster Legends cheats are utilized directly back you receive continuous accessibility
towards moost of the resources you might at any time need.

You will havce virtually no problems battling your colmpetition along the crazy things that free of charge resources you'll
get rid of Monster Legends hack - http://boombeachpublishedbysupercell.blogspot.com/ application. There are loots off Monster Legenhds cheats obtainale and you can actually use all
of these. It is actually achievable to hack Monster Legends free and that would become a mistake not to
apply a posssibility like this particular.

http://www.monsterlegendshack-hack.com

Comment

The best clash royale hack Individual!

Now i wish to present your the completly free compromise for
clash royale.
Our hack tend to be 100 % freeware andd you may use
the hack without risk.
Generat plenty of diamonds and quantities of gold! Unlock
all the cheast clash royale offer you.
Never spend again a real income forr this sport!
Maybe you imagine "it s difficult! never can hack the overall game! "
but i letting you know! yes wwe can easily!

What are the positiv ardeas of the clash royale hack device?

-100 % freeware
-100 % virus free
-100 % lenty of diamonds
-100 % anti bann process

And one on the other good thinks would be the clash royale
cheats are the most significant secrets ever!
clash royaqle premiered 2016 for google android and ios by
means of supercell! Supercell allready
published probably the most populiar game intended for
mobil it named clash of clans!
Clash of clans have the pay to earn system! Pay real cash for diamonds
as well as wiin all fits.
But now we present the most effective of this shell out to win program.

Our new hack iinto to win program
will generate a great deal of diamonds for you without tthe need for any real mone!

And how it feels when you lowe a matfch repeatedly. It
s not really cool!
I know i'd like win all fits and get with top of the ranking in clash royale!

And after this i promise, use the clash rotale hack
andd you may one day the most effective player in collide royal!

Maybe anyone don t rsly on us, but test it!
Go on www.clashroyale-hack.com and downooad the
chop for clashh royale!
At times the hack clash royale doesn testosterone levels work,
but due to this we have an alternative too! Contact our
clash royale cheat stay support!
We will help you as quickly as possible!

http://www.clashroyale-hack.com.

Here is my webpage - <a href="https://veryfastverygoodtonsofdiamondswiththeboombeachhack.wordpress.co… royale Hack apk</a>

Comment

Monster Legends Hack Software For All your Demands

Monster Legends is an ideal video game. There really are a few related
video games going without running shoes yet thios particular one is genuinely remarkable.
The game play is a lot like the actual gazme engage in of assorted other
online games. It is a very fun along with tough game.
If you're interested to learn, this specific vvideo game is a construction associated with
Societal Points. Wheneve taking element in Monster Legends, game enthusiasts can receive or even send outt gifts,
acquire experience points, visit beast destinations
of associates for accumulating yellow metal and also battle creature group of
associates. You'll find crazy portions of gamers who are
pplacing this particular game. Playing is usually exciting, but being successful is much more enjoyable.
For this reason you need a lot of resources to generally perform the job.
It is possible to be able too securely get all the materials
applying Monster Legends hack software instrument.

No trojans are generally fouhnd in this Monster Legends hack program.
By using this specific tool you will get ininite amounts of options.
The actual game enjoy is incredibly interesting and additionally hard to kick.
So that they can appreciate entire gameplay, you simply must gather lots of
materials. Monster Legends cheats gkves you all the materials simply.
Monster Legends hack program works with with both equally Andrpid in addition to iOS products.
Monster Legends hack software instrument is not hard to make use
of and all you require is actually acquire it.
We have used the many ability we have and be able to createdd Monster Legends hack tool that
will help you acquire unlimited materials. A majority of these Monster Legends cheats will definitely work surely.
Build your favored monsters ffaster tban ever before previously
and also never must bee worried about being forced tto obtain ggems once more.

Premium quality Monster Legends identify software is what you're thinking about.
For that reason, we have expended a great deal of tiome frame examining together
with retesting our own cheat software for yyou to ensure Monster Legends cheats work whether that youu are actively playing the cell version of the video
game or perhaps the web browsser version. Since alll your Monster Legends cheats are utilized directly to
your account you receive continuous accessibility towards
most of the resources you mibht suddenly need.

You will have virtually no problems battling your competition along thgat will
happen free of charge resources you'll get from Monster Legends
hadk application. Youu cann find Monster Legends
cheats obtainable and make usee of all of these. It happens to be achievable tto hack Monster Legends 100 % free and that would end
up being a mistake not to apply a possibility like this approach.

http://www.monsterlegendshack-hack.com

my blog post <a href="https://veryfastverygoodtonsofdiamondswiththeboombeachhack.wordpress.co… legends Hack apk</a>

Comment

My personal best <a href="https://veryfastverygoodtonsofdiamondswiththeboombeachhack.wordpress.co… royale hack</a> User!

Now i want too present your our own completly free compromise for clash royale.

Our hack tend to be 100 % freeware and you mmay use the hack without any risk.

Generate a great deal of diamonds and immeasureable gold!
Unlock all oof the cheaast clash royale supply you with.
Never spend again real cash for this video game! Maybe you
think "it s not possible! never can hack the sport! "
but i telling you! yes wwe ccan certainly!

What are the positiv facets of the clash rooyale hack software?

-100 % freeware
-100 % disease free
-100 % numerous diamonds
-100 % anti bann method

And one with the other good thinks is the ckash
royale cheats are onee of the primary secrets ever!

clash royale was launched 2016 for android os andd ios
simply by supercell! Suercell allready
published one of the most populiar game pertaining tto mobil it known as clash of
clans!
Clash of clans devellop the pay to acquire system! Pay a real income
for diamonds and also win alll suits.
But now we present the perfect solution is of this shell out to win program.
Our new chop to win method
will generate a lot of diamonds for you without needing any real mone!

And how it feels whenever you lose a match over and over.
It s definitely not cool!
I know i need win all fits and get in the top of the rank in clash royale!

Andd after this i promise, usee thhe clash royale hack and you
will probaboy one day the most beneficial player in clash royal!

Maybe a person ddon t rely on us, but check it out!
Go on www.clashroyale-hack.com and download the crack for clash royale!

At times the hack clash royale doesn capital t work, but for this
we have a solution too! Contact your clash royale cheat dwell support!

We will help you as fast as possible!

http://www.clashroyale-hack.com.

Comment

I am no longer positive where you're getting your
information, but great topic. I nerds tto spend some
tikme finding ouut more or figuring out more. Thank you for magnificent information I wass
on the lookout for this information for my mission.Pricey lady´s and men

anyone lookup the latest boom beach hack? Will need a lot
more boom beach gems but don´t put in real money?

an individual drop each challenge because of your current negative security?You drop just about every assault?

The Previous boom beach hack are usually patched? And sso we have now the
newest boom beach generator made!!
While using boom beach hack you will get lumber or perhaps natural stone or some
boom beach gold.
This boom beach gold power generator is 100 % computer virus
totally free along with liberal too down load for everyone.

The best way to get the particular <a href="https://veryfastverygoodtonsofdiamondswiththeboombeachhack.wordpress.co… beach hack</a>, how to make use of the boom beach generator
along with Faq in relation to
tthe boom beach hack you can entirely on the page www.boombeach-hack.net
Or maybe yyou possibly can identified most courses upon Youtube or
even watchever. And also your boom beach hack are generally consequently
excellent that water aand also the ps3 system want to released
the particular boom beach generator.
Consequently youu need to supply all of us many reviews
along with opinions in relation to your boom beach hack we placed a
lot of
work in addition to period for that boom beach generator along with need to have a few
cooments via anyone.
An individual ggo through the particular bboom beach hack?
anyone can´t make free of charge boom beach gems?

You possibly can e mail us on eacdh of our webpagge www.boombeach-hack.net or perhaps you are
able to email us in facebook
myspace oor maybe with other sorts of suoport systems.

We desire people a lot of fun with all the boom beach hack along with the no
cost boom beach gems or even this
boom beach gold.
Don´t make use of different boom beach hack simplly because we have now the only real legifimate programm for you to chop boom
beaxh gold and also boom beach gems.
At the very least we now have some other hackers as well
for you regarding exambel we developed the revolutionary hearthstone hack
into or maybe
the revolutionary candies grind pop tale chop nevertheless the the majority of period of our own operate
we had expended in the
boom beach hack.

Ones www.boombeach-hack.net Team.

Comment

Hi there! I just wouod like to give you a hube thumbs up for your excellent info you have got
here on this post. I will be returning to your blog for
morte soon.Precious lady´s and also gents

people look for a brand new boom beach hack?
Need much more boom beach gems butt don´t invested a real income?

you eliminate each and every fight due to your own awful safety?

An individual lose each assault?
Your Old boom beach hack are usually patched? And so
we have the modern boom beach generator created!!

Using the boom beach hack you will genedate lumber or perhaps stone or many boom beach gold.

The actual boom beach gold power generator can be 100 % computer virus fee
of charge along with absolve to acquire for many.

The bewst way to get the boom beach hack, how to make usse of thhe bboom beach generator and other Faq in relation to
your boom beach hack yyou can entirely on our own page www.boombeach-hack.net
Or maybe it is possible to observed most trainin about Youtube .

com oor maybe watchever. As well ass your boom beach hack usually are so
great which vapor annd also the dssi system need
too released your boom beach generator.
Thus you newd to supply us some comments annd also opinions regarding our boom beach hack
most of us put a great deal of
function and also period for that boom beach generator as well as need a number of cooments coming from people.

People endure your boom beach hack? an individual
can´tcreate free boom beach gems?
You'll be able to e mail uss wiith the page www.boombeach-hack.net as well as you'll be able to e mail us in myspace
twitter or maybe with various other myspace.
Most of us hope anyone a thriling time with the bkom beach hack and also the free boom beach gems or
maybe your
boom beach gold.
Don´t makme use of various other boom beach hack because we have now really thhe
only lawful programm to help chop boom beach gold inn addition to boom
beach gems.
At the least we have now some other hacks too in your case intended for
exambel we created the newest hearthstone chop as well as
the new candy grind sod saga chop nevertheless the many occcasion in our do the jobb we'd put in within the
booom beach hack.

Your current www.boombeach-hack.net Workforce.

My homepage; <a href="https://bestboombeachhack.wordpress.com">boom beach hack apk</a>