View Full Version : [Implemented] Support subtitles in Media Player
lardman
12-16-2009, 09:45 AM
http://maemo.org/community/brainstorm/view/support_subtitles_in_media_player/
"Allow Media Player to read and display subtitles for video files. "
Discuss!
steady
12-16-2009, 09:52 AM
I would love to get subtitles :)
mthmob
12-16-2009, 10:10 AM
If this feature was added.. i would no longer look forward to mplayer or vlc player release for n900 :)
Have it support *.srt, *.sub and maybe even dvd ripped subtitles(idx/sub) wich technically are images shown as a layer on top of the video layer, instead of text files being rendered on top of the video layer.
rmoravcik
01-15-2010, 08:47 AM
Hi all,
everyone who wants to try subtitles support in media player, please try to install gstreamer0.10-plugins-base-subtitles and mafw-gst-renderer from attachment extras-devel repository.
I'm planning to upload it to extras-devel, but before that:
- I want write a simple control panel applet for changing subtitles font and encoding (for now it's possible only by changing gconf keys directly).
eg.:
gconftool-2 -s /system/mafw/mafw-gst-renderer/subtitle_encoding -t string "CP1250"
gconftool-2 -s /system/mafw/mafw-gst-renderer/subtitle_font -t string "Sans Bold 18"- Create fork of mafw-gst-renderer package eg.: mafw-gst-subtitles-renderer
BTW: You need to have Maemo 5 PR1.1 installed
colin.stephane
01-15-2010, 09:03 AM
Hi,
Just installed, tested, and it work properly.
Also, since PR1.1 update I was unable to play these files with subtitle encoded by HandBrake, symptoms :
MediaPlayer show the points animation looping and doesn't start to play anymore.
So, it look like your packages fix this problem ...
Thanks, I think you can put those quickly in extras-devel NOW ;) !!!
A++
sadfist
01-15-2010, 09:13 AM
I'm trying to test this out but seem to be falling victim to the "Getting tired of Maemo/N900 movie playback" thread, lol. I can't find anything with subs that will play in the media player :(
EDIT: Success! I needed a reboot. At first skipping to a later point killed the subs, but they came back when I skipped to the beginning of the movie and I can't seem to recreate the issue. Great work!
aironeous
01-15-2010, 09:44 AM
I want thisfeature in Media Player. There might be things I will like about Media player that I won't like about VLC or some other video player app.
sadfist
01-15-2010, 09:50 AM
Another thought on this. One movie I played seems to have the chapter numbers from the DVD on a text track, which now show up as subtitles. We need the ability to turn subtitles on/off. If you could add that to your control panel applet that'd be awesome.
I'd prefer the subtitle on/off option to be available from the menu in the media player, not sure if that level of access to the media player is available to devs or if Nokia would have to implement that.
rmoravcik
01-15-2010, 10:02 AM
Another thought on this. One movie I played seems to have the chapter numbers from the DVD on a text track, which now show up as subtitles. We need the ability to turn subtitles on/off. If you could add that to your control panel applet that'd be awesome.
I'd prefer the subtitle on/off option to be available from the menu in the media player, not sure if that level of access to the media player is available to devs or if Nokia would have to implement that.
Thanks, I will add option to turn on/off subtitles to control panel applet.
yerga
01-15-2010, 01:17 PM
@rmoravcik, it works perfectly.
This is something what I was really missing. I was using VLC until now, but I prefer the stock media player and it is more battery friendly.
Thank you very much.
PS, please, when it is more end-user prepared, announce it in every place possible. I read this post almost by accident, and saw it.
farheinheigt
01-17-2010, 12:34 AM
hello guys
Please, can you tell me where is located the "gconf keys" to edit for changing subtitles font and encoding ?
Merci
Can http://maemo.org/community/brainstorm/view/support_subtitles_in_media_player/ be moved to In Development or even Implemented, then? Is Solution #1 the one being acted upon, I guess?
SaintGermain
01-17-2010, 02:30 PM
Works perfectly here with srt subtitles (only tested on one movie though).
@farheinheigt
If you don't want to change via gconftool-2, gconf files are there :
/var/lib/gconf/
farheinheigt
01-17-2010, 07:51 PM
@SaintGermain
Merci
Sorry but what is gconftool ??
where i can find ressource in order to know how to use it
tkhs
qwerty12
01-19-2010, 08:37 AM
rmoravcik, many thanks. I installed it from extras-devel and the Control Panel applet is brilliant.
Just a question, if I may: Why can't the Nokia fonts be selected from the applet? I have a penchant for them (well, Nokia Sans, in this case). :-)
Fixed in 0.1.2009.47-1+0m5-3! Thanks, rmoravcik!
Also, if you're watching a video of considerable length (in this case, 90:26 and 59:31), seeking causes the subtitles to go out of sync with the audio and resuming does not help, either.
Either way, it works brilliantly. Thanks again.
rmoravcik
01-19-2010, 10:52 AM
Can http://maemo.org/community/brainstorm/view/support_subtitles_in_media_player/ be moved to In Development or even Implemented, then? Is Solution #1 the one being acted upon, I guess?
I think, it should be moved to Implemented, because I uploaded all necessary files to extras-devel repository today.
rmoravcik
01-19-2010, 11:05 AM
Just a question, if I may: Why can't the Nokia fonts be selected from the applet? I have a penchant for them (well, Nokia Sans, in this case). :-)
Could you please try version 0.1.2009.47-1+0m5-3 ? :)
titi974
01-19-2010, 11:11 AM
hey works perfectly !!!
qwerty12
01-19-2010, 11:12 AM
Could you please try version 0.1.2009.47-1+0m5-3 ? :)
Just updated. Works great - thanks :)
sadfist
01-19-2010, 11:22 AM
Great to see this has progressed into -devel! Is it safe to install over the manually installed files or do I need to uninstall first?
xavi6
01-19-2010, 11:27 AM
Hi all,
everyone who wants to try subtitles support in media player, please try to install gstreamer0.10-plugins-base-subtitles and mafw-gst-renderer from attachment extras-devel repository.
I'm planning to upload it to extras-devel, but before that:
- I want write a simple control panel applet for changing subtitles font and encoding (for now it's possible only by changing gconf keys directly).
eg.:
gconftool-2 -s /system/mafw/mafw-gst-renderer/subtitle_encoding -t string "CP1250"
gconftool-2 -s /system/mafw/mafw-gst-renderer/subtitle_font -t string "Sans Bold 18"- Create fork of mafw-gst-renderer package eg.: mafw-gst-subtitles-renderer
BTW: You need to have Maemo 5 PR1.1 installed
Woow! you Guyz keep on giving me more reasons to to adore Maemo OS and my N900 :-) i really needed this feature and i want to try it out and i hope i got the idea or the instructions of changing the gconf keys!! :S i don't want to be disappointed when i try it and fail!! so will u guide me please to change these keys on the N900!? am i able to!?
thanx alot man. thanx alot maemo.org :-)
Whitedeath
01-19-2010, 12:11 PM
wow wow wow this is awsome no longer weit for mplayer i;m from bulgaria and now i can watch movies thats great
special thanks to :Roman Moravcik :))))))))
SaintGermain
01-19-2010, 05:16 PM
I've installed the new ones over the manually installed ones and couldn't see any control applet (is this a widget, integrated in the parameters panel or what ?).
Thanks !
rmoravcik
01-19-2010, 06:08 PM
I've installed the new ones over the manually installed ones and couldn't see any control applet (is this a widget, integrated in the parameters panel or what ?).
Thanks !
Please enable extras-devel repository and install package called "Subtitles Support" from it.
SaintGermain
01-19-2010, 07:17 PM
Please enable extras-devel repository and install package called "Subtitles Support" from it.
Ok that was it, thanks you !
xavi6
01-20-2010, 06:46 AM
Thank You Thank You Thank You @rmoravcik you got it sooo right and this is exactly what i was looking for to make my N900 more super than it is ;-)
keep the great work Maemo.org :-)
puiradu
01-20-2010, 03:44 PM
Thank You @rmoravcik! You are the best! I'm from Romania and now my subtitles works like a dream (all diacritics and also showing italic text). Outstanding job!
One more thing. I see the diacritics only with Central European (WINDOWS - 1250) Encoding than what are the use of Romanian encodings?
chemist
01-20-2010, 07:43 PM
Implemented? You link to devel so this is far away from implemented...
One more thing. I see the diacritics only with Central European (WINDOWS - 1250) Encoding than what are the use of Romanian encodings?
Only CE font encoding has Romanian diacritics rendered in the font. I don't understand your issue.
Not all fonts have all characters - no point. They are localized, with Western being standard, then each encoding mapping characters to diacritics. Changing encoding would remap those to whatever is there - the infamous circle-for-ș everyone gets.
Could you be more specific?
bijoux
01-26-2010, 02:28 AM
Hmm, there may be a serious bug in subtitles-support. I installed the package via the App Manager, after playing with it, I uninstalled it. The mediaplayer then stopped working; unable to play any media files, giving out 'Unable to perform operation' error. I reinstalled the package and the mediaplayer is now behaving normally. Can someone reproduce and confirm?
eladts
01-27-2010, 05:02 PM
Hmm, there may be a serious bug in subtitles-support. I installed the package via the App Manager, after playing with it, I uninstalled it. The mediaplayer then stopped working; unable to play any media files, giving out 'Unable to perform operation' error. I reinstalled the package and the mediaplayer is now behaving normally. Can someone reproduce and confirm?
I had the same issue with the previous version, didn't try it with the current one.
I'm also unable to display Hebrew subtitles files. No matter what encoding and font I try to use, I get accented western characters. Maybe the problem is missing gconv modules?
egoshin
01-28-2010, 03:15 AM
It seems like latest version from extras-devel (0.1.2009.47-1+0m5-4) significantly decreases a playing frame rate (eye estimation), may be twice for some local videos.
The previous version didn't do it.
I am still looking into it but I upgraded only two apps - this and KMPlayer. However, frame rate drop is in system media player too.
Hmm, there may be a serious bug in subtitles-support. I installed the package via the App Manager, after playing with it, I uninstalled it. The mediaplayer then stopped working; unable to play any media files, giving out 'Unable to perform operation' error. I reinstalled the package and the mediaplayer is now behaving normally. Can someone reproduce and confirm?
It may have nothing with subtitles, it may be a problem with gst-video-thumbnailerd - see and vote for bug 8165 - https://bugs.maemo.org/show_bug.cgi?id=8165
rmoravcik
01-28-2010, 03:40 AM
It seems like latest version from extras-devel (0.1.2009.47-1+0m5-4) significantly decreases a playing frame rate (eye estimation), may be twice for some local videos.
The previous version didn't do it.
That's not possible. Code of current and previous version is exactly same. The latest version should have fixed just uninstallation problem and German translation of applet was added. Nothing more.
egoshin
01-28-2010, 12:38 PM
That's not possible. Code of current and previous version is exactly same. The latest version should have fixed just uninstallation problem and German translation of applet was added. Nothing more.
OK, I was tricked by 25-to-30 fps conversion: any play is not very smooth.
But then I uninstalled subtitles support then the play become visually smoother. Not twice but more regular. I don't know why, the movie has no subtitles. I have no idea which version I had before last update of subtitle package.
BTW, how to switch off subtitles? Applet button "automatic load subtitles file" doesn't help if file is .mkv
egoshin
01-28-2010, 12:39 PM
The movie data:
Format : AVI
Format/Info : Audio Video Interleave
File size : 699 MiB
Duration : 1h 31mn
Overall bit rate : 1 065 Kbps
Writing application : VirtualDubMod 1.5.10.2 (build 2540/release)
Writing library : VirtualDubMod build 2540/release
Video
Format : MPEG-4 Visual
Format profile : Streaming Video@L1
Format settings, BVOP : Yes
Format settings, QPel : No
Format settings, GMC : No warppoints
Format settings, Matrix : Default (H.263)
Muxing mode : Packed bitstream
Codec ID : XVID
Codec ID/Hint : XviD
Duration : 1h 31mn
Bit rate : 927 Kbps
Width : 640 pixels
Height : 480 pixels
Display aspect ratio : 4/3
Frame rate : 25.000 fps
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.121
Stream size : 609 MiB (87%)
Writing library : XviD 1.1.2 (UTC 2006-11-01)
Audio
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Codec ID : 55
Codec ID/Hint : MP3
Duration : 1h 31mn
Bit rate mode : Constant
Bit rate : 128 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Resolution : 16 bits
Stream size : 84.0 MiB (12%)
Alignment : Aligned on interleaves
Interleave, duration : 40 ms (1.00 video frame)
Interleave, preload duration : 504 ms
mivoligo
01-28-2010, 05:56 PM
Hmm, there may be a serious bug in subtitles-support. I installed the package via the App Manager, after playing with it, I uninstalled it. The mediaplayer then stopped working; unable to play any media files, giving out 'Unable to perform operation' error. I reinstalled the package and the mediaplayer is now behaving normally. Can someone reproduce and confirm?
I had exactly the same situation today. Both video and audio files didn't play.
Unfortunately subtitles don't work for me. I tried several encoding options but with no success.
Hmm, there may be a serious bug in subtitles-support. I installed the package via the App Manager, after playing with it, I uninstalled it. The mediaplayer then stopped working; unable to play any media files, giving out 'Unable to perform operation' error. I reinstalled the package and the mediaplayer is now behaving normally. Can someone reproduce and confirm?
Confirmed. Had exactly same thing today. That's quite serious.
slender
02-18-2010, 06:38 AM
Confirmed. Had exactly same thing today. That's quite serious.
same thing happened to me. Luckily I could fix this with gst-stream reinstall and reboot.
same thing happened to me. Luckily I could fix this with gst-stream reinstall and reboot.
Which package exactly do you mean?
slender
02-18-2010, 06:44 AM
Which package exactly do you mean?
?
I uninstalled subtitles and audio and video stopped working and after:
http://talk.maemo.org/showpost.php?p=532643&postcount=39
and reboot everything works.
?
I uninstalled subtitles and audio and video stopped working and after:
http://talk.maemo.org/showpost.php?p=532643&postcount=39
and reboot everything works.
Your posts says these steps should be followed AFTER upgrading to PR1.1.1, while I don't have that upgrade yet. Is it OK to proceed anyway, ie. removing subtitles support package and then reinstalling mafw-gst-renderer, despite I still have PR1.1?
mikec
02-23-2010, 07:06 PM
just wanted to report that there is a conflict with subtitles package and mafw equaliser. with subtitles installed the equaliser doe not change the sound at all.
had to uninstall sub titles package, reeboot and equaliser does its thing
qwerty12
02-23-2010, 07:46 PM
just wanted to report that there is a conflict with subtitles package and mafw equaliser. with subtitles installed the equaliser doe not change the sound at all.
Expected; they both replace mafw-gst-renderer after all. There's not actually a lot of code changed in mafw-gst-renderer itself by the equalizer stuff so you could diff the mafw-eq-support against the stock mafw-gst-renderer and apply the changes to the mafw-gst-renderer with the subtitles package. This is what I did, so I have both subtitles support and equalizer, but I messed up with the packaging - wasn't paying attention to the dh_install parts properly - so I don't want to put up my deb...
Personally, I'd love to see a "mafw-gst-renderer-pimped" project where modifications like these could be put into one package. The Subtitles Support packaging is also done much, much better compared to the EQ support with it properly replacing the stock mafw-gst-renderer and not requiring the removal of the mp-fremantle-generic-pr package.
hi i am trying to install it from extras devel but it says cannot install due to missing package gstreamer0.10-plugins-base-subtitles but after i installed that even then it says the same what to do???
help please
can someone help me here please with this problem
nobody wants to help me solving this problem
is there any help forum where i can get some support please let me know
avinashsonee
05-09-2010, 05:39 PM
hi i am trying to install it from extras devel but it says cannot install due to missing package gstreamer0.10-plugins-base-subtitles but after i installed that even then it says the same what to do???
help please
i have the same problem. someone guide us plz
netoak
05-09-2010, 05:50 PM
I was able to install it using this version downloading it in web browser.
http://repository.maemo.org/extras-devel/pool/fremantle/free/g/gst-plugins-base-subtitles0.10/gstreamer0.10-plugins-base-subtitles_0.10.25-0maemo7+0m5_armel.deb
This is the previous version before last one.
I download the file, and I installed via X Terminal via
sudo gainroot
going where I save it in the memory
dpkg -i gstreamer0.10-plugins-base-subtitles_0.10.25-0maemo7+0m5_armel.deb
Then you will be able to go to the App. Manager, choose
Subtitles Support an install the package
avinashsonee
05-10-2010, 02:41 AM
I was able to install it using this version downloading it in web browser.
http://repository.maemo.org/extras-devel/pool/fremantle/free/g/gst-plugins-base-subtitles0.10/gstreamer0.10-plugins-base-subtitles_0.10.25-0maemo7+0m5_armel.deb
This is the previous version before last one.
I download the file, and I installed via X Terminal via
sudo gainroot
going where I save it in the memory
dpkg -i gstreamer0.10-plugins-base-subtitles_0.10.25-0maemo7+0m5_armel.deb
Then you will be able to go to the App. Manager, choose
Subtitles Support an install the package
this works
javiermon
07-16-2010, 05:48 AM
I had to uninstall the extra package because it made the media player slower while playing music.
If I played music with this package installed and the n900 blocked, pressing the power button (to show the unlock screen) would halt the music for a few seconds. This happened even afer rebooting the device and even when I unchecked the show subtitles option in the applet.
The process mafw-gst-subtitles-... is always running even when not playing videos.
Changegames
07-19-2010, 02:52 PM
I have a problem i installed this and it worked the first time but when you reboot it doesnt work anymore, if i uninstall it and install it again it works again is there a solution for this???
sashabe
08-05-2010, 10:34 AM
Same thing as Changegames has. Shows subtitles after installing, but no subs for ever after reboot.
javiermon
09-02-2010, 04:20 PM
I had to uninstall the extra package because it made the media player slower while playing music.
If I played music with this package installed and the n900 blocked, pressing the power button (to show the unlock screen) would halt the music for a few seconds. This happened even afer rebooting the device and even when I unchecked the show subtitles option in the applet.
The process mafw-gst-subtitles-... is always running even when not playing videos.
Actually, if you press the power button while playing music with this package installed (subtitles support from extras) the music will stop for a short moment and then continue. Happens to me all the time. It's a shame because it's a nice addition to default media player.
javiermon
09-21-2010, 04:52 PM
Actually, if you press the power button while playing music with this package installed (subtitles support from extras) the music will stop for a short moment and then continue. Happens to me all the time. It's a shame because it's a nice addition to default media player.
Added bug:
https://garage.maemo.org/tracker/index.php?func=detail&aid=6438&group_id=1248&atid=4688
sashabe
10-07-2010, 05:08 AM
Just wanted to say that on another n900 subs do work. The only app i did not installed on this new device was maemo-connectivity but it's hard to think that it could be related to a mediaplayer problem.
maxximuscool
10-07-2010, 05:14 AM
beware subtitles app add on has bug in it. It causes the Media Player to pause and stutter when locking and unlocking, screen dimming and when pressed the power button. So installed at your own risk :)
anthonie
10-07-2010, 07:17 AM
After fruitlessly trying to get the subs to work in Media Player, KMPlayer, etc. I decided to settle for the CL-option; mplayer, retrieved via apt-get. works like a charm with the -sub option. I did have to uninstall the regular subs-support as it (I think) caused a lot of of delay displaying the subs in mplayer. After I uninstalled that the subs were running in sync again.
Thank god for the tab in xterm...
int_ua
10-20-2010, 07:30 AM
Can you use Python module in C?
(just run .py script with arguments)
If so, I'm proposing to try use Periscope for subtitles download:
http://code.google.com/p/periscope/issues/detail?id=47
perus
10-24-2010, 12:50 PM
Same thing as Changegames has. Shows subtitles after installing, but no subs for ever after reboot.
Same thing here, anything new on this subject?
/Per
Changegames
10-24-2010, 03:44 PM
for the people who got problem with Subtitles Support mine works now with the default media player even when i turn it off, after reflashing my n900 but i use the n900-flasher-installer so i dont know if it got anything to do with that...
javiermon
10-29-2010, 05:24 AM
The bug I filed has been fixed:
http://maemo.org/packages/package_instance/view/fremantle_extras-testing_free_armel/mafw-gst-subtitles-applet/0.3.2010.24-1+0m5-2/
Please vote for package promotion ;)
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.