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?

ssarl 2010-01-06 11:18

Re: Mplayer and greek subtitles
 
mplayer says that???

nikossonik 2010-01-06 11:51

Re: Mplayer and greek subtitles
 
Quote:

Originally Posted by ssarl (Post 455369)
mplayer says that???


no, the vi editor after the command wq, in order to save and exit.

ssarl 2010-01-06 11:58

Re: Mplayer and greek subtitles
 
Quote:

Originally Posted by nikossonik (Post 455399)
no, the vi editor after the command wq, in order to save and exit.

Leave away vi and give in a xterm as normal user:

Code:

echo "subfont-encoding=ISO-8859-7" > /home/user/.mplayer/config

nikossonik 2010-01-06 12:20

Re: Mplayer and greek subtitles
 
:eek:OK, man...It's finally working!
Thank you so much! You just gave greek users a big solution!:eek::D:):):)

anapospastos 2010-01-06 12:31

Re: Mplayer and greek subtitles
 
Quote:

Originally Posted by nikossonik (Post 455362)
Just did It...
It says Pattern not found!
Any clue?

You typed something wrong or u dont have mplayer installed which is in extra-testing. The code exactly is:

echo "subfont-encoding=ISO-8859-7" > /home/user/.mplayer/config

Έλληνας εννοείται:D

scopy60 2010-01-09 18:06

Re: Mplayer and greek subtitles
 
guys what about arabic ?

this way dont work for me

ahmoda 2010-02-11 07:21

Re: Mplayer and greek subtitles
 
Any solution for Arabic subtitle?

SubSix 2010-02-11 09:16

Re: Mplayer and greek subtitles
 
any idea about hebrew subtitles?

ssarl 2010-02-11 09:42

Re: Mplayer and greek subtitles
 
For Arabic it should be ISO-8859-6 instead of ISO-8859-7 (try also with lowercase) and for Hebrew ISO-8859-8.

ahmoda 2010-02-11 10:54

Re: Mplayer and greek subtitles
 
Hi ssarl

Thank you for help...

but i have tried that code ISO-8859-6 but it seems can't read in the movie , and the movie was so slow , and when i close movie , i saw the following message in xterminal

"subtitle font: prepare chrset failed.
unsupported encoding 'ISO-8859-6', use iconv --list to list
character sets know on your system.


P.S. i have also tried for hebrew , and it is the same!!

ssarl 2010-02-11 15:05

Re: Mplayer and greek subtitles
 
Have you tried with lower case letters? (iso-8859-6 and iso-8859-7)?

ahmoda 2010-02-12 10:17

Re: Mplayer and greek subtitles
 
No, Caps only

"ISO-8859-6"


any idea???

ssarl 2010-02-12 10:29

Re: Mplayer and greek subtitles
 
Try with lowercase and then we will check it again.

ahmoda 2010-02-12 11:23

Re: Mplayer and greek subtitles
 
unfortunately, same problem ... same message :(

ssarl 2010-02-12 14:03

Re: Mplayer and greek subtitles
 
Can you post the srt file you are trying to see?

ahmoda 2010-02-12 21:07

Re: Mplayer and greek subtitles
 
1 Attachment(s)
Here it is attached,


and it is working perfectly in my PC with Vobsub program


Thanks

ssarl 2010-02-13 08:16

Re: Mplayer and greek subtitles
 
Well, it seems that N900 does not support ISO-8859-6 and ISO-8859-8. In the folder /usr/lib/gconv the corresponding libraries are missing. The viable alternative you have is to save the subtitles in UTF8, remove the /home/user/.mplayer/config file since mplayer has as default the UTF8 and retry.

Mazi 2010-02-13 08:27

Re: Mplayer and greek subtitles
 
Any solution for persian (farsi) subtitle?

with SUB/IDX I dont have any problem works great...but with SRT subtitle dont show correct and seems like: *&^%$$&*(

anybody know?

ahmoda 2010-02-13 23:45

Re: Mplayer and greek subtitles
 
Dear ssarl

I remove config file , and saved the font in the srt file as enconding utf-8

but still the same effect ... Latin words...

Is there any thing i missed?

Thank you very much for your help.

ahmoda 2010-02-18 13:28

Re: Mplayer and greek subtitles
 
Is there any help on the same topic ...


I can't see the arabic character till now

nikossonik 2010-02-18 20:12

Re: Mplayer and greek subtitles
 
please guys, this post is about greek subs. Make another one with proper title for many more to discuss. It will be easier for you too! ;-)

Greek subs display correctly and this post should be closed!

cafeine 2010-03-17 20:24

Re: Mplayer and greek subtitles
 
Quote:

Originally Posted by anapospastos (Post 455440)
You typed something wrong or u dont have mplayer installed which is in extra-testing. The code exactly is:

echo "subfont-encoding=ISO-8859-7" > /home/user/.mplayer/config

Έλληνας εννοείται:D

This totally worked!...thxxxxxxx anapospastos!...

FidoDido 2010-07-20 03:00

Re: Mplayer and greek subtitles
 
Quote:

Originally Posted by ssarl (Post 524377)
Well, it seems that N900 does not support ISO-8859-6 and ISO-8859-8. In the folder /usr/lib/gconv the corresponding libraries are missing. The viable alternative you have is to save the subtitles in UTF8, remove the /home/user/.mplayer/config file since mplayer has as default the UTF8 and retry.

Please how to remove the File ?

FidoDido 2010-07-20 03:09

Re: Mplayer and greek subtitles
 
oh thanks I got it .. but also I still need to Arabic subtitles to start working :(

koznj 2010-07-26 19:39

Re: Mplayer and greek subtitles
 
Quote:

Originally Posted by anapospastos (Post 455440)
You typed something wrong or u dont have mplayer installed which is in extra-testing. The code exactly is:

echo "subfont-encoding=ISO-8859-7" > /home/user/.mplayer/config

Έλληνας εννοείται:D

Γεια σας παιδιά.. Την εντολή την πληκτρολογώ στο XTerminal όπως την βλέπω ακριβώς σε μια σειρά?
echo "subfont-encoding=ISO-8859-7" > /home/user/.mplayer/config
αφήνω τα κενά όπως τα βλέπω ή όχι? πχ.: echo(κενό)"subfont-....κτλ?? Eυχαριστώ εκ των προτέρων (((ο:


All times are GMT. The time now is 01:06.

vBulletin® Version 3.8.8