[IMPLEMENTED] opensubtitles support

Have a tour of xt7-player features and make
suggestions about features you would like to be added to it.

Re: opensubtitles support

Postby kokoko3k on Thu Mar 08, 2012 2:14 pm

Finally, something is working, just click on the subtitle icon or navigate from file menu->media browser.
Image
As you can see i've been lucky, because the hash of the file i was watching was into opensubtitle database :mrgreen:

Next step is to implement manual searching as long as subtitles UPloading
Oh, not to forget to save the sub locally
User avatar
kokoko3k
Site Admin
 
Posts: 271
Joined: Wed Nov 05, 2008 12:29 pm

Re: opensubtitles support

Postby kokoko3k on Thu Mar 08, 2012 2:18 pm

symbianflo wrote:
missing of the unsigned datatypes


Should we write something to Minisini about it ???
What do you think ?


Eheh, I don't want to hammer it.
I don't think having python as a dep is a big problem, think that kde itself depends on it,
the code i used is for python2 and i'm pretty sure even gnome users needs it.
User avatar
kokoko3k
Site Admin
 
Posts: 271
Joined: Wed Nov 05, 2008 12:29 pm

Re: opensubtitles support

Postby symbianflo on Thu Mar 08, 2012 8:20 pm

kokoko3k wrote:
symbianflo wrote:
missing of the unsigned datatypes


Should we write something to Minisini about it ???
What do you think ?


Eheh, I don't want to hammer it.
I don't think having python as a dep is a big problem, think that kde itself depends on it,
the code i used is for python2 and i'm pretty sure even gnome users needs it.

no problem at all , already youtube-dl it's in python
Ok then I'm glad that you figure it out :D , tell me when you need testing
at least with this let me help ya :D
symbianflo
 
Posts: 118
Joined: Mon May 25, 2009 12:50 pm

Re: opensubtitles support

Postby kokoko3k on Fri Mar 09, 2012 9:07 am

I'll try to finish manual search by today, then i'll be out for a week.
User avatar
kokoko3k
Site Admin
 
Posts: 271
Joined: Wed Nov 05, 2008 12:29 pm

Re: [IMPLEMENTED] opensubtitles support

Postby kokoko3k on Fri Mar 09, 2012 3:21 pm

I pushed the latest version that allows you to search by manual query and save the subtitle on the disk.
All opensubtitles.org related functions are accessible under the existing subtitles menu.
Now you can try all.
User avatar
kokoko3k
Site Admin
 
Posts: 271
Joined: Wed Nov 05, 2008 12:29 pm

Re: [IMPLEMENTED] opensubtitles support

Postby symbianflo on Sat Mar 10, 2012 6:45 pm

ok i'll do it right now
thx m8
symbianflo
 
Posts: 118
Joined: Mon May 25, 2009 12:50 pm

Re: [IMPLEMENTED] opensubtitles support

Postby kokoko3k on Sat Mar 10, 2012 7:39 pm

I forgot to say that you need something playing to access subtitles menu (of course ;-) )
User avatar
kokoko3k
Site Admin
 
Posts: 271
Joined: Wed Nov 05, 2008 12:29 pm

Re: [IMPLEMENTED] opensubtitles support

Postby symbianflo on Sat Mar 10, 2012 7:56 pm

kokoko3k wrote:I forgot to say that you need something playing to access subtitles menu (of course ;-) )


do not mock me m8 :D
Instead all the movies are freezing and after few sec stops on "I feel lucky" download ,
manual download don't work, my exit ( a bit long ghghghgh )


Code: Select all
o]$ ls
10 Primates.avi
[symbianflo@symbianflo Video]$ xt7-player
gb.qt4: warning: unable to load Qt translation: it_IT.UTF-8

xt7-player 2.9.1060
Usage: xt7-player.gambas [Options] Mediafile
Options:
-append (add a media to the playlist)


FMain.MainInit.918: -vf-pre scale  -alang "en,eng,it,ita"  -slang "en,eng,ita,it"  -ass  -ass-force-style FontName="Bitstream Vera Sans",FontSize=18,Bold=1,Alignment=2,outline=1,OutlineColour=H00000000,MarginV=10,PrimaryColour=H00FFFFFF,shadow=2,BackColour=H7F000000 -subcp enca:it:iso-8859-12 -sub-fuzziness 1  -ffactor 0.75 -sub-bg-alpha 0 -subfont-outline 2 -subfont-blur 2 -osd-duration 1000 -subfont-osd-scale 4 -subfont-text-scale 4 -subpos 10 -softvol -prefer-ipv4 -dvbin card=1 -dvbin timeout=10  -cdrom-device "Prego, scegli"  -vf-add eq2,hue,screenshot,scale    -ao alsa,    -vo xv,gl,gl2,x11,null,
Meters.Stopp.78: meters timer stopped
FMain.MainInit.956: Timer = 0.64309191703796
MplayerClass.do_play.646:
MplayerClass.do_play.647:
MplayerClass.do_play.648: Starting mplayer now:
MplayerClass.do_play.649: commandline=LC_ALL=C mplayer -identify -slave  -noconfig all         -idle -ao null -vo null -channels 6 -mouse-movements  -input conf=/tmp/FakeInput.conf:file=/home/symbianflo/.config/gambas3/Xt7-Player/.InputPipes/Xt7Input-43651 
PlaylistClass.Load.109: Load()at: 18:47:56.985
MplayerClass.do_play.646:
MplayerClass.do_play.647:
MplayerClass.do_play.648: Starting mplayer now:
MplayerClass.do_play.649: commandline=LC_ALL=C mplayer -identify -slave  -noconfig all         -idle -ao null -vo null -channels 6 -mouse-movements  -input conf=/tmp/FakeInput.conf:file=/home/symbianflo/.config/gambas3/Xt7-Player/.InputPipes/Xt7Input-21710 
PlaylistClass.Load.109: Load()at: 18:47:56.993
PlaylistClass.Load.109: Load()at: 18:47:56.993
FMain.AllInit_Post.396:
FMain.UpdateSearchResults.4278: LibraryGrid
FMain.UpdateSearchResults.4278: PlaylistGrid
FMain.UpdateSearchResults.4278: DVBTGrid
HotKeys.RestartXbindKeys.467: Hotkeys: RestartXbindKeys()
global.AddUserExtensions.200: *.avi;*.mpg;*.mp4;*.mov;*.mkv;*.asf;*.ogm;*.ogv;*.wmv;;*.mp3;*.ogg;*.aac;*.flac;*.mpc;*.ac3;;Flash*;*.ts;*.m2v;*.m4v;*.mpeg;*.flv;*.gvi;*.iso;*.fli;*.flv;*.mpg;*.mpv;*.vob;*.viv;*.swf;*.rm;*.rmvb;*.dv;*.3gp;*.qt;*.divx;*.asx;*.ogm;*.ogv;*.oga;*.m4v;*.speex;*.spx;*.wavpack;*.wv;*.trueaudio;*.tta;*.wma;*.ram;*.ac3;*.wav;*.aiff;*.aiffc;*.aac;*.8svx;*.pls;*.dts;                                                                                                                 
-vf-pre scale  -alang "en,eng,it,ita"  -slang "en,eng,ita,it"  -ass  -ass-force-style FontName="Bitstream Vera Sans",FontSize=18,Bold=1,Alignment=2,outline=1,OutlineColour=H00000000,MarginV=10,PrimaryColour=H00FFFFFF,shadow=2,BackColour=H7F000000 -subcp enca:it:iso-8859-12 -sub-fuzziness 1  -ffactor 0.75 -sub-bg-alpha 0 -subfont-outline 2 -subfont-blur 2 -osd-duration 1000 -subfont-osd-scale 4 -subfont-text-scale 4 -subpos 10 -softvol -prefer-ipv4 -dvbin card=1 -dvbin timeout=10  -cdrom-device "Prego, scegli"  -vf-add eq2,hue,screenshot,scale    -ao alsa,    -vo xv,gl,gl2,x11,null,   
MplayerClass.do_play.646:
MplayerClass.do_play.647:
MplayerClass.do_play.648: Starting mplayer now:
MplayerClass.do_play.649: commandline=LC_ALL=C mplayer -identify -slave  -wid 73400652 -noconfig all         -vf-pre scale  -alang "en,eng,it,ita"  -slang "en,eng,ita,it"  -ass  -ass-force-style FontName="Bitstream Vera Sans",FontSize=18,Bold=1,Alignment=2,outline=1,OutlineColour=H00000000,MarginV=10,PrimaryColour=H00FFFFFF,shadow=2,BackColour=H7F000000 -subcp enca:it:iso-8859-12 -sub-fuzziness 1  -ffactor 0.75 -sub-bg-alpha 0 -subfont-outline 2 -subfont-blur 2 -osd-duration 1000 -subfont-osd-scale 4 -subfont-text-scale 4 -subpos 10 -softvol -prefer-ipv4 -dvbin card=1 -dvbin timeout=10  -cdrom-device "Prego, scegli"  -vf-add eq2,hue,screenshot,scale    -ao alsa,    -vo xv,gl,gl2,x11,null,    -mouse-movements  -input conf=/tmp/FakeInput.conf:file=/home/symbianflo/.config/gambas3/Xt7-Player/.InputPipes/Xt7Input-29182 /home/symbianflo/Video/10\ Primates.avi
Meters.Stopp.78: meters timer stopped
MplayerClass.Renice.256: nice=0
27589 (process ID) old priority 0, new priority 0
27617 (process ID) old priority 0, new priority -1
FMain.Play.2436: True
FMain.menuopensubsearchbyhash_Show.1900:
OpenSubtitlesAPI.TokenFromLogIn.89: Ok, got token from opensubtitles
OpenSubtitlesAPI.TokenFromLogIn.89: Ok, got token from opensubtitles
OpenSubtitlesAPI.SearchByQuery.218: results: 0
OpenSubtitlesAPI.SearchByTag.152: results: 2
OpenSubtitesForm.ButtonSearch_Click.78: Logging out: 200 OK
Wgetclass.DownloadAsync.22: trying wget http://www.opensubtitles.org/en/download/filead/1952278882.gz -O /tmp/gambas.500/27589/10.tmp --connect-timeout=5 --dns-timeout=5 --read-timeout=20 --tries=10  >/dev/null 2>&1
MplayerClass.SubtitleAdd.1087: TotalSubtitles= 0
MplayerClass.SubtitleAdd.1090: Send()sub_load "/tmp/gambas.500/27589/8.tmp.BBC.Life.10of10.Primates.eng.srt"
FMain.Displaysub.2191: fmax=1
FMain.Displaysub.2192: emax=0
Meters.Stopp.78: meters timer stopped
-vf-pre scale  -alang "en,eng,it,ita"  -slang "en,eng,ita,it"  -ass  -ass-force-style FontName="Bitstream Vera Sans",FontSize=18,Bold=1,Alignment=2,outline=1,OutlineColour=H00000000,MarginV=10,PrimaryColour=H00FFFFFF,shadow=2,BackColour=H7F000000 -subcp enca:it:iso-8859-12 -sub-fuzziness 1  -ffactor 0.75 -sub-bg-alpha 0 -subfont-outline 2 -subfont-blur 2 -osd-duration 1000 -subfont-osd-scale 4 -subfont-text-scale 4 -subpos 10 -softvol -prefer-ipv4 -dvbin card=1 -dvbin timeout=10  -cdrom-device "Prego, scegli"  -vf-add eq2,hue,screenshot,scale    -ao alsa,    -vo xv,gl,gl2,x11,null,   
MplayerClass.do_play.646:
MplayerClass.do_play.647:
MplayerClass.do_play.648: Starting mplayer now:
MplayerClass.do_play.649: commandline=LC_ALL=C mplayer -identify -slave  -wid 73400652 -noconfig all         -vf-pre scale  -alang "en,eng,it,ita"  -slang "en,eng,ita,it"  -ass  -ass-force-style FontName="Bitstream Vera Sans",FontSize=18,Bold=1,Alignment=2,outline=1,OutlineColour=H00000000,MarginV=10,PrimaryColour=H00FFFFFF,shadow=2,BackColour=H7F000000 -subcp enca:it:iso-8859-12 -sub-fuzziness 1  -ffactor 0.75 -sub-bg-alpha 0 -subfont-outline 2 -subfont-blur 2 -osd-duration 1000 -subfont-osd-scale 4 -subfont-text-scale 4 -subpos 10 -softvol -prefer-ipv4 -dvbin card=1 -dvbin timeout=10  -cdrom-device "Prego, scegli"  -vf-add eq2,hue,screenshot,scale    -ao alsa,    -vo xv,gl,gl2,x11,null,    -mouse-movements  -input conf=/tmp/FakeInput.conf:file=/home/symbianflo/.config/gambas3/Xt7-Player/.InputPipes/Xt7Input-486 /home/symbianflo/Video/10\ Primates.avi
Meters.Stopp.78: meters timer stopped
MplayerClass.Renice.256: nice=0
27589 (process ID) old priority 0, new priority 0
FMain.Play.2436: True
28989 (process ID) old priority 0, new priority -1
OpenSubtitlesAPI.TokenFromLogIn.89: Ok, got token from opensubtitles
OpenSubtitlesAPI.SearchByQuery.218: results: 0
OpenSubtitlesAPI.SearchByTag.152: results: 0
OpenSubtitlesAPI.TokenFromLogIn.89: Ok, got token from opensubtitles
OpenSubtitlesAPI.SearchByQuery.218: results: 0
OpenSubtitlesAPI.SearchByTag.152: results: 2
OpenSubtitesForm.ButtonSearch_Click.78: Logging out: 200 OK
Wgetclass.DownloadAsync.22: trying wget http://www.opensubtitles.org/en/download/filead/1952272333.gz -O /tmp/gambas.500/27589/20.tmp --connect-timeout=5 --dns-timeout=5 --read-timeout=20 --tries=10  >/dev/null 2>&1
MplayerClass.SubtitleAdd.1087: TotalSubtitles= 0
MplayerClass.SubtitleAdd.1090: Send()sub_load "/tmp/gambas.500/27589/18.tmp.10. Primates.srt"
FMain.Displaysub.2191: fmax=1
FMain.Displaysub.2192: emax=0
Meters.Stopp.78: meters timer stopped
-vf-pre scale  -alang "en,eng,it,ita"  -slang "en,eng,ita,it"  -ass  -ass-force-style FontName="Bitstream Vera Sans",FontSize=18,Bold=1,Alignment=2,outline=1,OutlineColour=H00000000,MarginV=10,PrimaryColour=H00FFFFFF,shadow=2,BackColour=H7F000000 -subcp enca:it:iso-8859-12 -sub-fuzziness 1  -ffactor 0.75 -sub-bg-alpha 0 -subfont-outline 2 -subfont-blur 2 -osd-duration 1000 -subfont-osd-scale 4 -subfont-text-scale 4 -subpos 10 -softvol -prefer-ipv4 -dvbin card=1 -dvbin timeout=10  -cdrom-device "Prego, scegli"  -vf-add eq2,hue,screenshot,scale    -ao alsa,    -vo xv,gl,gl2,x11,null,   
MplayerClass.do_play.646:
MplayerClass.do_play.647:
MplayerClass.do_play.648: Starting mplayer now:
MplayerClass.do_play.649: commandline=LC_ALL=C mplayer -identify -slave  -wid 73400652 -noconfig all         -vf-pre scale  -alang "en,eng,it,ita"  -slang "en,eng,ita,it"  -ass  -ass-force-style FontName="Bitstream Vera Sans",FontSize=18,Bold=1,Alignment=2,outline=1,OutlineColour=H00000000,MarginV=10,PrimaryColour=H00FFFFFF,shadow=2,BackColour=H7F000000 -subcp enca:it:iso-8859-12 -sub-fuzziness 1  -ffactor 0.75 -sub-bg-alpha 0 -subfont-outline 2 -subfont-blur 2 -osd-duration 1000 -subfont-osd-scale 4 -subfont-text-scale 4 -subpos 10 -softvol -prefer-ipv4 -dvbin card=1 -dvbin timeout=10  -cdrom-device "Prego, scegli"  -vf-add eq2,hue,screenshot,scale    -ao alsa,    -vo xv,gl,gl2,x11,null,    -mouse-movements  -input conf=/tmp/FakeInput.conf:file=/home/symbianflo/.config/gambas3/Xt7-Player/.InputPipes/Xt7Input-50442 /home/symbianflo/Video/10\ Primates.avi
Meters.Stopp.78: meters timer stopped
MplayerClass.Renice.256: nice=0
27589 (process ID) old priority 0, new priority 0
FMain.Play.2436: True
30365 (process ID) old priority 0, new priority -1
KGlobal::locale::Warning your global KLocale is being recreated with a valid main component instead of a fake component, this usually means you tried to call i18n related functions before your main component was created. You should not do that since it most likely will not work
FMain.menuopensubsearchbyhash_Show.1900:
OpenSubtitlesAPI.TokenFromLogIn.89: Ok, got token from opensubtitles
FMain.menuopensubsearchbyhash_Show.1900:
OpenSubtitlesAPI.TokenFromLogIn.89: Ok, got token from opensubtitles
Wgetclass.DownloadAsync.22: trying wget http://www.opensubtitles.org/en/download/filead/1952272333.gz -O /tmp/gambas.500/27589/27.tmp --connect-timeout=5 --dns-timeout=5 --read-timeout=20 --tries=10  >/dev/null 2>&1
MplayerClass.SubtitleAdd.1087: TotalSubtitles= 0
MplayerClass.SubtitleAdd.1090: Send()sub_load "/tmp/gambas.500/27589/25.tmp.10. Primates.srt"
FMain.Displaysub.2191: fmax=1
FMain.Displaysub.2192: emax=0
Meters.Stopp.78: meters timer stopped
Wgetclass.DownloadAsync.22: trying wget http://www.opensubtitles.org/en/download/filead/1952272333.gz -O /tmp/gambas.500/27589/29.tmp --connect-timeout=5 --dns-timeout=5 --read-timeout=20 --tries=10  >/dev/null 2>&1
-vf-pre scale  -alang "en,eng,it,ita"  -slang "en,eng,ita,it"  -ass  -ass-force-style FontName="Bitstream Vera Sans",FontSize=18,Bold=1,Alignment=2,outline=1,OutlineColour=H00000000,MarginV=10,PrimaryColour=H00FFFFFF,shadow=2,BackColour=H7F000000 -subcp enca:it:iso-8859-12 -sub-fuzziness 1  -ffactor 0.75 -sub-bg-alpha 0 -subfont-outline 2 -subfont-blur 2 -osd-duration 1000 -subfont-osd-scale 4 -subfont-text-scale 4 -subpos 10 -softvol -prefer-ipv4 -dvbin card=1 -dvbin timeout=10  -cdrom-device "Prego, scegli"  -vf-add eq2,hue,screenshot,scale    -ao alsa,    -vo xv,gl,gl2,x11,null,   
MplayerClass.do_play.646:
MplayerClass.do_play.647:
MplayerClass.do_play.648: Starting mplayer now:
MplayerClass.do_play.649: commandline=LC_ALL=C mplayer -identify -slave  -wid 73400652 -noconfig all         -vf-pre scale  -alang "en,eng,it,ita"  -slang "en,eng,ita,it"  -ass  -ass-force-style FontName="Bitstream Vera Sans",FontSize=18,Bold=1,Alignment=2,outline=1,OutlineColour=H00000000,MarginV=10,PrimaryColour=H00FFFFFF,shadow=2,BackColour=H7F000000 -subcp enca:it:iso-8859-12 -sub-fuzziness 1  -ffactor 0.75 -sub-bg-alpha 0 -subfont-outline 2 -subfont-blur 2 -osd-duration 1000 -subfont-osd-scale 4 -subfont-text-scale 4 -subpos 10 -softvol -prefer-ipv4 -dvbin card=1 -dvbin timeout=10  -cdrom-device "Prego, scegli"  -vf-add eq2,hue,screenshot,scale    -ao alsa,    -vo xv,gl,gl2,x11,null,    -mouse-movements  -input conf=/tmp/FakeInput.conf:file=/home/symbianflo/.config/gambas3/Xt7-Player/.InputPipes/Xt7Input-42077 /home/symbianflo/Video/10\ Primates.avi
Meters.Stopp.78: meters timer stopped
MplayerClass.Renice.256: nice=0
27589 (process ID) old priority 0, new priority 0
FMain.Play.2436: True
31749 (process ID) old priority 0, new priority -1
-vf-pre scale  -alang "en,eng,it,ita"  -slang "en,eng,ita,it"  -ass  -ass-force-style FontName="Bitstream Vera Sans",FontSize=18,Bold=1,Alignment=2,outline=1,OutlineColour=H00000000,MarginV=10,PrimaryColour=H00FFFFFF,shadow=2,BackColour=H7F000000 -subcp enca:it:iso-8859-12 -sub-fuzziness 1  -ffactor 0.75 -sub-bg-alpha 0 -subfont-outline 2 -subfont-blur 2 -osd-duration 1000 -subfont-osd-scale 4 -subfont-text-scale 4 -subpos 10 -softvol -prefer-ipv4 -dvbin card=1 -dvbin timeout=10  -cdrom-device "Prego, scegli"  -vf-add eq2,hue,screenshot,scale    -ao alsa,    -vo xv,gl,gl2,x11,null,   
MplayerClass.do_play.646:
MplayerClass.do_play.647:
MplayerClass.do_play.648: Starting mplayer now:
MplayerClass.do_play.649: commandline=LC_ALL=C mplayer -identify -slave  -wid 73400652 -noconfig all         -vf-pre scale  -alang "en,eng,it,ita"  -slang "en,eng,ita,it"  -ass  -ass-force-style FontName="Bitstream Vera Sans",FontSize=18,Bold=1,Alignment=2,outline=1,OutlineColour=H00000000,MarginV=10,PrimaryColour=H00FFFFFF,shadow=2,BackColour=H7F000000 -subcp enca:it:iso-8859-12 -sub-fuzziness 1  -ffactor 0.75 -sub-bg-alpha 0 -subfont-outline 2 -subfont-blur 2 -osd-duration 1000 -subfont-osd-scale 4 -subfont-text-scale 4 -subpos 10 -softvol -prefer-ipv4 -dvbin card=1 -dvbin timeout=10  -cdrom-device "Prego, scegli"  -vf-add eq2,hue,screenshot,scale    -ao alsa,    -vo xv,gl,gl2,x11,null,    -mouse-movements  -input conf=/tmp/FakeInput.conf:file=/home/symbianflo/.config/gambas3/Xt7-Player/.InputPipes/Xt7Input-18900 /home/symbianflo/Video/10.\ Primates.srt
Meters.Stopp.78: meters timer stopped
Meters.Stopp.78: meters timer stopped
MplayerClass.Renice.256: nice=0
FMain.Play.2436: True
27589 (process ID) old priority 0, new priority 0
renice: failed to get priority for 31753 (process ID): Nessun processo corrispondente
Meters.Stopp.78: meters timer stopped
-vf-pre scale  -alang "en,eng,it,ita"  -slang "en,eng,ita,it"  -ass  -ass-force-style FontName="Bitstream Vera Sans",FontSize=18,Bold=1,Alignment=2,outline=1,OutlineColour=H00000000,MarginV=10,PrimaryColour=H00FFFFFF,shadow=2,BackColour=H7F000000 -subcp enca:it:iso-8859-12 -sub-fuzziness 1  -ffactor 0.75 -sub-bg-alpha 0 -subfont-outline 2 -subfont-blur 2 -osd-duration 1000 -subfont-osd-scale 4 -subfont-text-scale 4 -subpos 10 -softvol -prefer-ipv4 -dvbin card=1 -dvbin timeout=10  -cdrom-device "Prego, scegli"  -vf-add eq2,hue,screenshot,scale    -ao alsa,    -vo xv,gl,gl2,x11,null,   
MplayerClass.do_play.646:
MplayerClass.do_play.647:
MplayerClass.do_play.648: Starting mplayer now:
MplayerClass.do_play.649: commandline=LC_ALL=C mplayer -identify -slave  -wid 73400652 -noconfig all         -vf-pre scale  -alang "en,eng,it,ita"  -slang "en,eng,ita,it"  -ass  -ass-force-style FontName="Bitstream Vera Sans",FontSize=18,Bold=1,Alignment=2,outline=1,OutlineColour=H00000000,MarginV=10,PrimaryColour=H00FFFFFF,shadow=2,BackColour=H7F000000 -subcp enca:it:iso-8859-12 -sub-fuzziness 1  -ffactor 0.75 -sub-bg-alpha 0 -subfont-outline 2 -subfont-blur 2 -osd-duration 1000 -subfont-osd-scale 4 -subfont-text-scale 4 -subpos 10 -softvol -prefer-ipv4 -dvbin card=1 -dvbin timeout=10  -cdrom-device "Prego, scegli"  -vf-add eq2,hue,screenshot,scale    -ao alsa,    -vo xv,gl,gl2,x11,null,    -mouse-movements  -input conf=/tmp/FakeInput.conf:file=/home/symbianflo/.config/gambas3/Xt7-Player/.InputPipes/Xt7Input-62806 /home/symbianflo/Video/10\ Primates.avi
Meters.Stopp.78: meters timer stopped
MplayerClass.Renice.256: nice=0
27589 (process ID) old priority 0, new priority 0
FMain.Play.2436: True
31757 (process ID) old priority 0, new priority -1
kfilemodule(27589)/kio (KDirModel) KDirModelPrivate::_k_slotDeleteItems: No node found for item that was just removed: KUrl("file:///home/symbianflo/Video/10 Primates.avi")
MplayerClass.SubtitleAdd.1087: TotalSubtitles= 0
MplayerClass.SubtitleAdd.1090: Send()sub_load "/home/symbianflo/Video/10. Primates.srt"
FMain.Displaysub.2191: fmax=1
FMain.Displaysub.2192: emax=0
MplayerClass.playerprocess_read.400: currentcache=[J
Meters.Stopp.78: meters timer stopped
-vf-pre scale  -alang "en,eng,it,ita"  -slang "en,eng,ita,it"  -ass  -ass-force-style FontName="Bitstream Vera Sans",FontSize=18,Bold=1,Alignment=2,outline=1,OutlineColour=H00000000,MarginV=10,PrimaryColour=H00FFFFFF,shadow=2,BackColour=H7F000000 -subcp enca:it:iso-8859-12 -sub-fuzziness 1  -ffactor 0.75 -sub-bg-alpha 0 -subfont-outline 2 -subfont-blur 2 -osd-duration 1000 -subfont-osd-scale 4 -subfont-text-scale 4 -subpos 10 -softvol -prefer-ipv4 -dvbin card=1 -dvbin timeout=10  -cdrom-device "Prego, scegli"  -vf-add eq2,hue,screenshot,scale    -ao alsa,    -vo xv,gl,gl2,x11,null,   
MplayerClass.do_play.646:
MplayerClass.do_play.647:
MplayerClass.do_play.648: Starting mplayer now:
MplayerClass.do_play.649: commandline=LC_ALL=C mplayer -identify -slave  -wid 73400652 -noconfig all         -vf-pre scale  -alang "en,eng,it,ita"  -slang "en,eng,ita,it"  -ass  -ass-force-style FontName="Bitstream Vera Sans",FontSize=18,Bold=1,Alignment=2,outline=1,OutlineColour=H00000000,MarginV=10,PrimaryColour=H00FFFFFF,shadow=2,BackColour=H7F000000 -subcp enca:it:iso-8859-12 -sub-fuzziness 1  -ffactor 0.75 -sub-bg-alpha 0 -subfont-outline 2 -subfont-blur 2 -osd-duration 1000 -subfont-osd-scale 4 -subfont-text-scale 4 -subpos 10 -softvol -prefer-ipv4 -dvbin card=1 -dvbin timeout=10  -cdrom-device "Prego, scegli"  -vf-add eq2,hue,screenshot,scale    -ao alsa,    -vo xv,gl,gl2,x11,null,    -mouse-movements  -input conf=/tmp/FakeInput.conf:file=/home/symbianflo/.config/gambas3/Xt7-Player/.InputPipes/Xt7Input-32231 /home/symbianflo/Video/10\ Primates.avi
Meters.Stopp.78: meters timer stopped
MplayerClass.Renice.256: nice=0
27589 (process ID) old priority 0, new priority 0
FMain.Play.2436: True
32672 (process ID) old priority 0, new priority -1
kfilemodule(27589)/kio (KDirModel) KDirModelPrivate::_k_slotDeleteItems: No node found for item that was just removed: KUrl("file:///home/symbianflo/Video/10 Primates.avi")
MplayerClass.SubtitleAdd.1087: TotalSubtitles= 0
MplayerClass.SubtitleAdd.1090: Send()sub_load "/home/symbianflo/Video/10. Primates.srt"
FMain.Displaysub.2191: fmax=1
FMain.Displaysub.2192: emax=0
Meters.Stopp.78: meters timer stopped
FMain.form_Close.1142: closed socket
Meters.Stopp.78: meters timer stopped
FMain.form_Close.1197: hidden all forms
FMain.form_Close.1212: post command executed
FMain.form_Close.1216: mplayer stopped
xbindkeys killed
SettingsClass.Save.606: Cached options unvalidated
SettingsClass.Load.370: Timer = 294.625715970993
SettingsClass.Load.372: Timer = 294.650168895721
SettingsClass.Load.370: Timer = 295.095414876938
SettingsClass.Load.372: Timer = 295.106101989746
SettingsClass.Load.370: Timer = 295.113947868347
SettingsClass.Load.372: Timer = 295.248122930527
FMain.GetOptionsFromGui.1610: Exception, doing SubAndOsd.Init() now...
SettingsClass.Save.606: Cached options unvalidated
SettingsClass.Save.606: Cached options unvalidated
SettingsClass.Save.606: Cached options unvalidated
SettingsClass.Save.606: Cached options unvalidated
SettingsClass.Save.606: Cached options unvalidated
SettingsClass.Save.606: Cached options unvalidated
SettingsClass.Save.606: Cached options unvalidated
SettingsClass.Save.606: Cached options unvalidated
SettingsClass.Save.606: Cached options unvalidated
SettingsClass.Save.606: Cached options unvalidated
All settings saved
global.ReallyLoadAllSettings.381: Start at: 18:52:50.987
FMain.InitEarlyForms.365: start at: 18:52:50.987
FMain.InitEarlyForms.375: Ends at:18:52:51.029
SettingsClass.Load.370: Timer = 295.720655918121
SettingsClass.Load.372: Timer = 295.745050907135
SettingsClass.Load.370: Timer = 295.746551036835
SettingsClass.Load.372: Timer = 295.756923913956
SettingsClass.Load.370: Timer = 295.765461921692
SettingsClass.Load.372: Timer = 295.900552034378
global.ReallyLoadAllSettings.403: Ends at: 18:52:51.299
FMain.SyncCachedOpts.966: CACHED OPTIONS ARE:  -vf-pre scale  -alang "en,eng,it,ita"  -slang "en,eng,ita,it"  -ass  -ass-force-style FontName="Bitstream Vera Sans",FontSize=18,Bold=1,Alignment=2,outline=1,OutlineColour=H00000000,MarginV=10,PrimaryColour=H00FFFFFF,shadow=2,BackColour=H7F000000 -subcp enca:it:iso-8859-12 -sub-fuzziness 1  -ffactor 0.75 -sub-bg-alpha 0 -subfont-outline 2 -subfont-blur 2 -osd-duration 1000 -subfont-osd-scale 4 -subfont-text-scale 4 -subpos 10 -softvol -prefer-ipv4 -dvbin card=1 -dvbin timeout=10  -cdrom-device "Prego, scegli"  -vf-add eq2,hue,screenshot,scale
FMain.form_Close.1259: wrote last profile
Bye
[symbianflo@symbianflo Video]$
symbianflo
 
Posts: 118
Joined: Mon May 25, 2009 12:50 pm

Re: [IMPLEMENTED] opensubtitles support

Postby kokoko3k on Sat Mar 10, 2012 8:12 pm

That's strange,
From the log i see that you're able to call all the right functions.
The moviehash search (i feel lucky) may fail, it is normal, for me it works 100% of the times with "the big bang theory" series.
However, the manual search shouldn't fail

.have you write access to /tmp folder?
.are you trying the very latest git version (last i pushed 7 hours ago)?
.have you gb.compress installed?
.does the movie freeze when you try the moviehash (i feel lucky) or when you try the manual search?
.are you able to do by terminal:
Code: Select all
wget http://www.opensubtitles.org/en/download/filead/1952278882.gz

if yes, try to manually gunzip it and drag it into the video window while the video is playing; what happens?
.does the movie freeze even in that case?

i'm sorry, but tomorrow moring i'll leave for a week
User avatar
kokoko3k
Site Admin
 
Posts: 271
Joined: Wed Nov 05, 2008 12:29 pm

Re: [IMPLEMENTED] opensubtitles support

Postby symbianflo on Sun Mar 11, 2012 10:44 am

kokoko3k wrote:That's strange,
From the log i see that you're able to call all the right functions.
The moviehash search (i feel lucky) may fail, it is normal, for me it works 100% of the times with "the big bang theory" series.
However, the manual search shouldn't fail

.have you write access to /tmp folder?

Code: Select all
[symbianflo@symbianflo tmp]$ cd /tmp && mkdir -p xt7 && ls | grep xt7
xt7/
[symbianflo@symbianflo tmp]$

I would say yes .


kokoko3k wrote:.are you trying the very latest git version (last i pushed 7 hours ago)?

sab mar 10, 2012 6:45 pm download time , and just to be sure I've update the git now

kokoko3k wrote:.have you gb.compress installed?


Code: Select all
  [symbianflo@symbianflo ~]$ rpm -q -i gambas3-gb-compress
Name        : gambas3-gb-compress          Relocations: (not relocatable)
Version     : 3.0.0                             Vendor: MandrivaUsers.Ro <http://www.mandrivausers.ro/>
Release     : 69.1                          Build Date: ven 06 gen 2012 15:53:58 CET
Install Date: sab 10 mar 2012 18:10:59 CE   Build Host: localhost.localdomain
Group       : Development/Other             Source RPM: gambas3-3.0.0-69.1.src.rpm
Size        : 32621                            License: GPLv2+
Signature   : DSA/SHA1, ven 06 gen 2012 15:54:04 CET, Key ID 93ff3c9d9a642aaa
Packager    : Falticska Florin <mail@mail>
URL         : http://gambas.sourceforge.net
Summary     : The Gambas compression component
Architecture: x86_64
Description :
This component allows you to compress/uncompress data or files with
the bzip2 and zip algorithms.


kokoko3k wrote:.does the movie freeze when you try the moviehash (i feel lucky) or when you try the manual search?

I think that 2 small screen capture movies would be more helpful :
http://mrb.mandrivausers.ro/MRB/Drop-He ... 202012.avi
http://mrb.mandrivausers.ro/MRB/Drop-He ... 202012.avi
kokoko3k wrote:.are you able to do by terminal:
Code: Select all
wget http://www.opensubtitles.org/en/download/filead/1952278882.gz

if yes, try to manually gunzip it and drag it into the video window while the video is playing; what happens?

Code: Select all
[symbianflo@symbianflo ~]$ wget http://www.opensubtitles.org/en/download/filead/1952278882.gz
--2012-03-11 09:34:18--  http://www.opensubtitles.org/en/download/filead/1952278882.gz
Risoluzione di www.opensubtitles.org (www.opensubtitles.org)... 92.240.234.122
Connessione a www.opensubtitles.org (www.opensubtitles.org)|92.240.234.122|:80... connesso.
HTTP richiesta inviata, in attesa di risposta... 200 OK
Lunghezza: 14745 (14K) [application/x-gzip]
Salvataggio in: "1952278882.gz"

100%[====================================================================================>] 14.745      --.-K/s   in 0,1s   

2012-03-11 09:34:19 (134 KB/s) - "1952278882.gz" salvato [14745/14745]

Drag && drop on the movie freezes the player here it's the output:
Code: Select all
[symbianflo@symbianflo ~]$ xt7-player '/home/symbianflo/Scrivania/symbianflo/Video/03 Mammals.avi'
gb.qt4: warning: unable to load Qt translation: it_IT.UTF-8

xt7-player 2.9.1060
Usage: xt7-player.gambas [Options] Mediafile
Options:
-append (add a media to the playlist)


FMain.MainInit.918: -vf-pre scale  -alang "en,eng,it,ita"  -slang "en,eng,ita,it"  -ass  -ass-force-style FontName="Bitstream Vera Sans",FontSize=18,Bold=1,Alignment=2,outline=1,OutlineColour=H00000000,MarginV=10,PrimaryColour=H00FFFFFF,shadow=2,BackColour=H7F000000 -subcp enca:it:iso-8859-12 -sub-fuzziness 1  -ffactor 0.75 -sub-bg-alpha 0 -subfont-outline 2 -subfont-blur 2 -osd-duration 1000 -subfont-osd-scale 4 -subfont-text-scale 4 -subpos 10 -softvol -prefer-ipv4 -dvbin card=1 -dvbin timeout=10  -cdrom-device "Prego, scegli"  -vf-add eq2,hue,screenshot,scale    -ao alsa,    -vo xv,gl,gl2,x11,null,
Meters.Stopp.78: meters timer stopped
-vf-pre scale  -alang "en,eng,it,ita"  -slang "en,eng,ita,it"  -ass  -ass-force-style FontName="Bitstream Vera Sans",FontSize=18,Bold=1,Alignment=2,outline=1,OutlineColour=H00000000,MarginV=10,PrimaryColour=H00FFFFFF,shadow=2,BackColour=H7F000000 -subcp enca:it:iso-8859-12 -sub-fuzziness 1  -ffactor 0.75 -sub-bg-alpha 0 -subfont-outline 2 -subfont-blur 2 -osd-duration 1000 -subfont-osd-scale 4 -subfont-text-scale 4 -subpos 10 -softvol -prefer-ipv4 -dvbin card=1 -dvbin timeout=10  -cdrom-device "Prego, scegli"  -vf-add eq2,hue,screenshot,scale    -ao alsa,    -vo xv,gl,gl2,x11,null,   
MplayerClass.do_play.646:
MplayerClass.do_play.647:
MplayerClass.do_play.648: Starting mplayer now:
MplayerClass.do_play.649: commandline=LC_ALL=C mplayer -identify -slave  -wid 73400652 -noconfig all         -vf-pre scale  -alang "en,eng,it,ita"  -slang "en,eng,ita,it"  -ass  -ass-force-style FontName="Bitstream Vera Sans",FontSize=18,Bold=1,Alignment=2,outline=1,OutlineColour=H00000000,MarginV=10,PrimaryColour=H00FFFFFF,shadow=2,BackColour=H7F000000 -subcp enca:it:iso-8859-12 -sub-fuzziness 1  -ffactor 0.75 -sub-bg-alpha 0 -subfont-outline 2 -subfont-blur 2 -osd-duration 1000 -subfont-osd-scale 4 -subfont-text-scale 4 -subpos 10 -softvol -prefer-ipv4 -dvbin card=1 -dvbin timeout=10  -cdrom-device "Prego, scegli"  -vf-add eq2,hue,screenshot,scale    -ao alsa,    -vo xv,gl,gl2,x11,null,    -mouse-movements  -input conf=/tmp/FakeInput.conf:file=/home/symbianflo/.config/gambas3/Xt7-Player/.InputPipes/Xt7Input-36500 /home/symbianflo/Scrivania/symbianflo/Video/03\ Mammals.avi
Meters.Stopp.78: meters timer stopped
MplayerClass.Renice.256: nice=0
27416 (process ID) old priority 0, new priority 0
27435 (process ID) old priority 0, new priority -1
FMain.Play.2436: False
FMain.MainInit.956: Timer = 1.42092394828796
MplayerClass.do_play.646:
MplayerClass.do_play.647:
MplayerClass.do_play.648: Starting mplayer now:
MplayerClass.do_play.649: commandline=LC_ALL=C mplayer -identify -slave  -noconfig all         -idle -ao null -vo null -channels 6 -mouse-movements  -input conf=/tmp/FakeInput.conf:file=/home/symbianflo/.config/gambas3/Xt7-Player/.InputPipes/Xt7Input-1546                                                                                                                           
PlaylistClass.Load.109: Load()at: 09:38:18.18                                                                                 
MplayerClass.do_play.646:
MplayerClass.do_play.647:
MplayerClass.do_play.648: Starting mplayer now:
MplayerClass.do_play.649: commandline=LC_ALL=C mplayer -identify -slave  -noconfig all         -idle -ao null -vo null -channels 6 -mouse-movements  -input conf=/tmp/FakeInput.conf:file=/home/symbianflo/.config/gambas3/Xt7-Player/.InputPipes/Xt7Input-45939 
PlaylistClass.Load.109: Load()at: 09:38:18.189
PlaylistClass.Load.109: Load()at: 09:38:18.189
FMain.AllInit_Post.396:
FMain.UpdateSearchResults.4278: LibraryGrid
FMain.UpdateSearchResults.4278: PlaylistGrid
FMain.UpdateSearchResults.4278: DVBTGrid
HotKeys.RestartXbindKeys.467: Hotkeys: RestartXbindKeys()
global.AddUserExtensions.200: *.avi;*.mpg;*.mp4;*.mov;*.mkv;*.asf;*.ogm;*.ogv;*.wmv;;*.mp3;*.ogg;*.aac;*.flac;*.mpc;*.ac3;;Flash*;*.ts;*.m2v;*.m4v;*.mpeg;*.flv;*.gvi;*.iso;*.fli;*.flv;*.mpg;*.mpv;*.vob;*.viv;*.swf;*.rm;*.rmvb;*.dv;*.3gp;*.qt;*.divx;*.asx;*.ogm;*.ogv;*.oga;*.m4v;*.speex;*.spx;*.wavpack;*.wv;*.trueaudio;*.tta;*.wma;*.ram;*.ac3;*.wav;*.aiff;*.aiffc;*.aac;*.8svx;*.pls;*.dts;
-vf-pre scale  -alang "en,eng,it,ita"  -slang "en,eng,ita,it"  -ass  -ass-force-style FontName="Bitstream Vera Sans",FontSize=18,Bold=1,Alignment=2,outline=1,OutlineColour=H00000000,MarginV=10,PrimaryColour=H00FFFFFF,shadow=2,BackColour=H7F000000 -subcp enca:it:iso-8859-12 -sub-fuzziness 1  -ffactor 0.75 -sub-bg-alpha 0 -subfont-outline 2 -subfont-blur 2 -osd-duration 1000 -subfont-osd-scale 4 -subfont-text-scale 4 -subpos 10 -softvol -prefer-ipv4 -dvbin card=1 -dvbin timeout=10  -cdrom-device "Prego, scegli"  -vf-add eq2,hue,screenshot,scale    -ao alsa,    -vo xv,gl,gl2,x11,null,   
MplayerClass.do_play.646:
MplayerClass.do_play.647:
MplayerClass.do_play.648: Starting mplayer now:
MplayerClass.do_play.649: commandline=LC_ALL=C mplayer -identify -slave  -wid 73400652 -noconfig all         -vf-pre scale  -alang "en,eng,it,ita"  -slang "en,eng,ita,it"  -ass  -ass-force-style FontName="Bitstream Vera Sans",FontSize=18,Bold=1,Alignment=2,outline=1,OutlineColour=H00000000,MarginV=10,PrimaryColour=H00FFFFFF,shadow=2,BackColour=H7F000000 -subcp enca:it:iso-8859-12 -sub-fuzziness 1  -ffactor 0.75 -sub-bg-alpha 0 -subfont-outline 2 -subfont-blur 2 -osd-duration 1000 -subfont-osd-scale 4 -subfont-text-scale 4 -subpos 10 -softvol -prefer-ipv4 -dvbin card=1 -dvbin timeout=10  -cdrom-device "Prego, scegli"  -vf-add eq2,hue,screenshot,scale    -ao alsa,    -vo xv,gl,gl2,x11,null,    -mouse-movements  -input conf=/tmp/FakeInput.conf:file=/home/symbianflo/.config/gambas3/Xt7-Player/.InputPipes/Xt7Input-19810 /home/symbianflo/Scrivania/symbianflo/1952278882
Meters.Stopp.78: meters timer stopped
Meters.Stopp.78: meters timer stopped
MplayerClass.Renice.256: nice=0
27416 (process ID) old priority 0, new priority 0
FMain.Play.2436: True
renice: failed to get priority for 28025 (process ID): Nessun processo corrispondente
Meters.Stopp.78: meters timer stopped
FMain.form_Close.1142: closed socket
Meters.Stopp.78: meters timer stopped
FMain.form_Close.1197: hidden all forms
FMain.form_Close.1212: post command executed
FMain.form_Close.1216: mplayer stopped
xbindkeys killed
SettingsClass.Save.606: Cached options unvalidated
SettingsClass.Load.370: Timer = 25.6578588485718
SettingsClass.Load.372: Timer = 25.6826410293579
SettingsClass.Load.370: Timer = 26.1188509464264
SettingsClass.Load.372: Timer = 26.1290788650513
SettingsClass.Load.370: Timer = 26.1365208625794
SettingsClass.Load.372: Timer = 26.2639060020447
FMain.GetOptionsFromGui.1610: Exception, doing SubAndOsd.Init() now...
SettingsClass.Save.606: Cached options unvalidated
SettingsClass.Save.606: Cached options unvalidated
SettingsClass.Save.606: Cached options unvalidated
SettingsClass.Save.606: Cached options unvalidated
SettingsClass.Save.606: Cached options unvalidated
SettingsClass.Save.606: Cached options unvalidated
SettingsClass.Save.606: Cached options unvalidated
SettingsClass.Save.606: Cached options unvalidated
SettingsClass.Save.606: Cached options unvalidated
SettingsClass.Save.606: Cached options unvalidated
All settings saved
global.ReallyLoadAllSettings.381: Start at: 09:38:42.407
FMain.InitEarlyForms.365: start at: 09:38:42.407
FMain.InitEarlyForms.375: Ends at:09:38:42.792
SettingsClass.Load.370: Timer = 27.0681958198547
SettingsClass.Load.372: Timer = 27.0926568508148
SettingsClass.Load.370: Timer = 27.0942080020905
SettingsClass.Load.372: Timer = 27.1044878959656
SettingsClass.Load.370: Timer = 27.1120660305023
SettingsClass.Load.372: Timer = 27.2483239173889
global.ReallyLoadAllSettings.403: Ends at: 09:38:43.057
FMain.SyncCachedOpts.966: CACHED OPTIONS ARE:  -vf-pre scale  -alang "en,eng,it,ita"  -slang "en,eng,ita,it"  -ass  -ass-force-style FontName="Bitstream Vera Sans",FontSize=18,Bold=1,Alignment=2,outline=1,OutlineColour=H00000000,MarginV=10,PrimaryColour=H00FFFFFF,shadow=2,BackColour=H7F000000 -subcp enca:it:iso-8859-12 -sub-fuzziness 1  -ffactor 0.75 -sub-bg-alpha 0 -subfont-outline 2 -subfont-blur 2 -osd-duration 1000 -subfont-osd-scale 4 -subfont-text-scale 4 -subpos 10 -softvol -prefer-ipv4 -dvbin card=1 -dvbin timeout=10  -cdrom-device "Prego, scegli"  -vf-add eq2,hue,screenshot,scale
FMain.form_Close.1259: wrote last profile
Bye
[symbianflo@symbianflo ~]$


kokoko3k wrote:.does the movie freeze even in that case?

yep, it freeze

kokoko3k wrote:i'm sorry, but tomorrow moring i'll leave for a week


No pressure now that if you decide to work on this I know you'll fix it ,
My only hope it's that you're out a week for pleasure and not for work :D, if it's so ,
have fun and don't drink to much, if don't .... :( you should have your revenge on easter holidays. :lol:
symbianflo
 
Posts: 118
Joined: Mon May 25, 2009 12:50 pm

PreviousNext

Return to Features and requests

Who is online

Users browsing this forum: No registered users and 1 guest

cron

SourceForge.net Logo