maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   [ANNOUNCE] zoutube a youtube browser and player now in extras-devel (https://talk.maemo.org/showthread.php?t=34132)

Edsal 2010-06-25 18:28

Re: [ANNOUNCE] zoutube a youtube browser and player now in extras-devel
 
say what ! anybody speaking english here i have no idea what's being said !

Edsal 2010-06-25 18:29

Re: [ANNOUNCE] zoutube a youtube browser and player now in extras-devel
 
my zoutube not working and that's all i can say i hope it get's fix soon .

tho 2010-06-25 20:43

Re: [ANNOUNCE] zoutube a youtube browser and player now in extras-devel
 
1 Attachment(s)
I have attached my modified file to this post, unzip it and transfer it onto your N900.
Install rootsh if you not already have and open the terminal window.
enter the following commands exactly as shown (they are case sensitive).

sudo gainroot

cd /opt/zoutube/

mv zoutube ztbackup

(if you have transferred it using mass storage mode without putting it into a subfolder, the following should work)

cp /home/user/MyDocs/zoutube ./ (don't forget the dot)

chmod 755 zoutube (to make sure the permissions are set correctly)

And you are done.

Hoxzer 2010-06-25 21:04

Re: [ANNOUNCE] zoutube a youtube browser and player now in extras-devel
 
1 Attachment(s)
Quote:

Originally Posted by daperl (Post 729039)
] ...
Code:

        format_priorities = [
                '22/2000000/9/0/115', # 1280x720
                '35/640000/9/0/115',  # 640x360
                '18/512000/9/0/115',  # 480x270
                '34/0/9/0/115',      # 320x180
                '5/0/7/0/0',          # 320x180
        ]



Seems like we might have a problem right here. You see zoutube prints out:

"formats available: ['34/640x360/9/0/115', '5/320x240/7/0/0']" (random sample)

While none of these are included in format_priorities.
This seems to result in variable 'format' never getting a value. Then again I haven't read the whole code.

Part I'm refering to:
Code:

        for wanted in format_priorities:
            if wanted in formats_available:
                format, rest_ = wanted.split('/', 1)
                fmt_id = int(format)
                available.append(fmt_id)

edit1:

I managed to get the quality selector to work. by changing
Code:

        format_priorities = [
                '22/2000000/9/0/115', # 1280x720
                '35/640000/9/0/115',  # 640x360
                '18/512000/9/0/115',  # 480x270
                '34/0/9/0/115',      # 320x180
                '5/0/7/0/0',          # 320x180
        ]

to

Code:

 
        format_priorities = [
                '22/2000000/9/0/115', # 1280x720
                '35/854x480/9/0/115',
                '34/640x360/9/0/115',
 #              '35/640000/9/0/115',  # 640x360
                '18/512000/9/0/115',  # 480x270
 #              '34/0/9/0/115',      # 320x180
  #              '5/0/7/0/0',          # 320x180
                '5/320x240/7/0/0',
        ]

Only "bad quality" will show up, that is due to the line:
" if fmt != 22 and fmt != 35 and fmt != 34:"
fmt=18 is still missing. Could be a broken parser.

edit2: Can somebody confirm that fmt 18 isn't even included in the webpage source? Seems like it is a default option and it is available format for all videos.

edit3: If that's the case then
line 176-178
Code:


            else:
                formats_available = []
        print "formats available: %r" % (formats_available,)
        # This is the proritized list of formats that zoutube will

should be changed to:
Code:

            else:
                formats_available = []
        #add the default format (18)
        formats_available.append('18/512000/9/0/115')
        print "formats available: %r" % (formats_available,)
        # This is the proritized list of formats that zoutube will

edit4: Included an attachment with patched zoutube(from 0.2-3) file and the patch itself for closer inspection.

Refer tho's post for installation instructions. (remember to thank him!)

Quote:

Originally Posted by tho (Post 729494)
I have attached my modified file to this post, unzip it and transfer it onto your N900.
Install rootsh if you not already have and open the terminal window.
enter the following commands exactly as shown (they are case sensitive).

sudo gainroot

cd /opt/zoutube/

mv zoutube ztbackup

(if you have transferred it using mass storage mode without putting it into a subfolder, the following should work)

cp /home/user/MyDocs/zoutube ./ (don't forget the dot)

chmod 755 zoutube (to make sure the permissions are set correctly)

And you are done.


tho 2010-06-29 18:47

Re: [ANNOUNCE] zoutube a youtube browser and player now in extras-devel
 
Thanks Hoxzer, your modified file works great.

locolyric 2010-07-10 14:35

Re: [ANNOUNCE] zoutube a youtube browser and player now in extras-devel
 
thanks for the modding for zoutube and now my zoutube working well.

May i know good quality always go for 480p if the source provide the format?

jaeezzy 2010-07-10 15:22

Re: [ANNOUNCE] zoutube a youtube browser and player now in extras-devel
 
thanks hoxzer now thats what I'm talking about.:)

phap 2010-07-16 07:53

Re: [ANNOUNCE] zoutube a youtube browser and player now in extras-devel
 
ahhhh... finally _I have Zoutube working ! Great!
Thanks to tho and Hoxzer!

Only problem is that' it's a blit slow to load page you searched for. Mytube is much faster by me.

MohammadAG 2010-07-28 09:32

Re: [ANNOUNCE] zoutube a youtube browser and player now in extras-devel
 
Media player shows "No connection to server for me". Download takes me to a blank page/redirect.
I was going to update the package with the above fix but it still seems to be broken :/

kazuki 2010-07-28 23:08

Re: [ANNOUNCE] zoutube a youtube browser and player now in extras-devel
 
Mine too, just happened the last few days. I remember it was still working fine last week.


All times are GMT. The time now is 14:29.

vBulletin® Version 3.8.8