Tuning Freevo: subtitle and audio language switch

I deci­ded that posts in the Fre­evo cate­go­ry will be publi­shed in English so the tar­get audien­ce can be wider.

Fre­evo is a HTPC (Home The­atre Per­so­nal Com­pu­ter) over­lay for some of the most com­mon Linux mul­ti­me­dia appli­ca­tions (mplay­er, xine, etc). It is visu­al­ly and func­tio­nal­ly simi­lar to the Micro­so­ft’s Win­dows XP Media Cen­tre. I have made a PC box of some old com­po­nents that whe­re scat­te­red arro­und in my cel­lar, instal­led Ubun­tu Linux the­re, twe­aked A LOT to make it work with things like TV-OUT and remo­te con­trol and final­ly instal­led and con­fi­gu­red Fre­evo. It allows me to watch vir­tu­al­ly any kind of movies (DVD, DIVX, XVID, MKV, WMA, MPEG, etc.), play a col­lec­tion of my MP3 files, brow­se my pho­to­gra­phs and much more. Thanks to a huge hard dri­ve (250GB) I could put prac­ti­cal­ly who­le mul­ti­me­dia con­tent on the box.

In my first post I would like to give You some tips and tricks to ena­ble featu­res that are­n’t nor­mal­ly ava­ila­ble in Fre­evo (as of ver­sion 1.5.4).

O.K., let’s get going 🙂 The very first thing that I did­n’t like abo­ut Fre­evo was it’s una­bi­li­ty to select dif­fe­rent sub­ti­tles using my remo­te. It was espe­cial­ly annoy­ing when wat­ching MVK movies that have some sub­ti­tles (eg. English and French) enco­ded insi­de the video file. Mplay­er or Fre­evo auto­ma­ti­cal­ly selects embed­ded sub­ti­tles and igno­res the fact that the­re also exi­sts a spe­cial­ly pre­pa­red Movie_title.txt file with Polish (my nati­ve ton­gue 😉 ) subtitles.

So what needs to be done to fix that pro­blem is this:

1. Make sure You have some remo­te con­trol but­ton con­fi­gu­red and not used for any­thing in video con­text. Open up /etc/freevo/lircrc file and one of the sec­tions could be some­thing like this:

begin  
prog=freevo  
button=subtitle  
config=SUBTITLE  
end

2. Open up /etc/freevo/local_conf.py file and seek for a line

# EVENTS['video']['1'] = Event(VIDEO_SEND_MPLAYER_CMD, arg='contrast -100')

I’ve added two lines below:

EVENTS['video']['SUBTITLE'] = Event(VIDEO_SEND_MPLAYER_CMD, arg='sub_select')  
EVENTS['video']['LANG'] = Event(VIDEO_SEND_MPLAYER_CMD, arg='switch_audio')

The first one makes the SUBTITLE but­ton cyc­le thro­ugh all ava­ila­ble sub­ti­tles during the movie. The second line makes the LANG but­ton cyc­le thro­ugh dif­fe­rent ava­ila­ble ver­sions of audio. I find it use­ful when wat­ching DVDs whe­re default lan­gu­age often is dif­fe­rent than my native.

Yes, that is SOOO easy 🙂

8 komentarz do “Tuning Freevo: subtitle and audio language switch

  1. Thanks , I have recen­tly been sear­ching for infor­ma­tion abo­ut this topic for a whi­le and yours is the gre­atest I’ve found out so far. But, what in regards to the conc­lu­sion? Are you posi­ti­ve in regards to the supply?

  2. Do you mind iif I quote a couple of your artic­les as long as I pro­vi­de cre­dit and sour­ces back to your webpa­ge? My blog is iin thee exact same area of inte­rest as yours and my visi­tors would genu­ine­ly bene­fit from a lot of the infor­ma­tion youu pre­sent here. Ple­ase let me know if this alri­ght with you. Appre­cia­te it!

  3. ver the years, Tra­vel — Pro has cre­ated new col­lec­tions, and added new inno­va­tions to the­ir rug­ged, attrac­ti­ve, bags. Making use of cured ani­mal skins (leather) for car­ry­ing things in all pro­ba­bi­li­ty began from the ear­liest man, when he disco­ve­red the fle­xi­bi­li­ty and beau­ty of leather. Don’t let your holi­day tra­vel plans be stop­ped as a result of your fear of suf­fe­ring from move­ment sickness.

  4. This mer­chan­di­se was cre­ated for Andro­id and ios gadgets and pro­fits of a hand­ful of pecu­lia­ri­ties like Limi­tless Gold, Unli­mi­ted Bucks , Limi­tless Power and a couple of rewards like Unlock All Weapons gim­mick and a safe and sound fra­me­work pro­tec­tion that has a Use Pro­xy option. Deer Hun­ter 2014 points (quip expec­ted) to main­ta­in you cha­sing diver­sion even in the off-season.

  5. This is the same situ­ation, when the most depen­ded way to sto­re the data, which is the NTbac­kup uti­li­ty in the sys­tem and the files that sto­re and save the bac­kup data name­ly. For you to the job way too hard from a home offi­ce your resi­den­ce, fri­gh­te­ned of the top escess weight.

    If you have alre­ady sear­ched Google for che­at code lists for GTA you will know what I’m tal­king about.

Możliwość komentowania została wyłączona.