maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   Mplayer and greek subtitles (https://talk.maemo.org/showthread.php?t=39196)

nikossonik 2010-01-04 07:58

Mplayer and greek subtitles
 
Hello and happy new year!

I'm new to the site and just bought n900. I searched and found the mplayer that I use with kmplayer, in order to play movies with external subtitles. The english subtitles work well, better than I expected in fact! The problem is with the greek subtitles, that show incorrect. (#%^&!@$#%^!$ %$&% for example). Is there any way to fix this? Maybe a different font or something? If yes, can anybody tell me a way to fix this? :eek:

soleil 2010-01-04 10:04

Re: Mplayer and greek subtitles
 
Euh try to install Droid Font before . That may help

nikossonik 2010-01-04 11:01

Re: Mplayer and greek subtitles
 
Can you please tell me how? I'm a complete noob if it requires programming.

EDIT:Already installed with nothing to have changed!

joppu 2010-01-04 13:21

Re: Mplayer and greek subtitles
 
It's a problem with the subtitle encoding. Try adding
Code:

# Set font encoding.
subfont-encoding=unicode

# Set subtitle file encoding.
unicode=yes
utf8=yes

To the mplayer config file located at ~/.mplayer/config. You'll need terminal and for example leafpad to do this.

nikossonik 2010-01-04 18:59

Re: Mplayer and greek subtitles
 
thank you again, but I can't do anything without guidance...
So please if you are kind, explain in noob steps what to do. I installed leafpad but i can't find/open config. And after that i copy all lines in the example, including # set mpla mpla? It might sound strange or stupid, but please respond.

pwngu!n 2010-01-04 19:28

Re: Mplayer and greek subtitles
 
I dunno about leafpad, but your device comes with the editor "vi".

1) Open an X terminal
2) Type the following: vi ~/.mplayer/config
3) This will open the editor on that file.
4) Press "I" on the keyboard to enter insert mode.
5) Type what joppu has above (you can ignore lines that begin with a # symbol)
6) When finished, hit "Esc".
7) Hit "Shift" key + ":" key.
7) Type "wq" and press enter.
8) Finished!

In all cases, you don't type the quotations.

If you struggle to use the editor vi, you can find a great guide here with a nice cheatsheet.

nikossonik 2010-01-04 20:03

Re: Mplayer and greek subtitles
 
I did it and i got
Code:

I# Write your default config options here!
subfont-encoding=unicode

unicode=yes
utf8=yes
~
~
~
~
- home/user/.mplayer/config

restarted and now the player doesn't open the file! Please help!

EDIT: I deleted what i wrote in the file thanks to the link to your guide and now the file opens again.

EDIT: I did it right after reading the guide! BUt unfortunately nothing changed after a reboot.:( Any ideas?

scopy60 2010-01-06 08:17

Re: Mplayer and greek subtitles
 
hi guys

i have same proplem

please help us i need to run arabic subtitle too

ssarl 2010-01-06 10:52

Re: Mplayer and greek subtitles
 
Quote:

Originally Posted by nikossonik (Post 452998)
I did it and i got
Code:

I# Write your default config options here!
subfont-encoding=unicode

unicode=yes
utf8=yes
~
~
~
~
- home/user/.mplayer/config

restarted and now the player doesn't open the file! Please help!

EDIT: I deleted what i wrote in the file thanks to the link to your guide and now the file opens again.

EDIT: I did it right after reading the guide! BUt unfortunately nothing changed after a reboot.:( Any ideas?

No need for reboot. Just give:

Code:

echo "subfont-encoding=ISO-8859-7" > /home/user/.mplayer/config
Actually it is the same as editing the file. Greek subtitles are usually encoded as ISO-8859-7.

nikossonik 2010-01-06 11:12

Re: Mplayer and greek subtitles
 
Just did It...
It says Pattern not found!
Any clue?


All times are GMT. The time now is 02:11.

vBulletin® Version 3.8.8