maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Youtube browser - mYTube - released (https://talk.maemo.org/showthread.php?t=17739)

iancumihai 2009-01-14 16:01

Re: Youtube browser - mYTube - released
 
Quote:

Originally Posted by liquid217 (Post 257524)
... Maybe there is a command line switch that could be used in ver 29 to get it to play correctly?

the best one for flv is rc2 builded by bundyo i think ... maybe he can make a deb or something to be easier used

brian911 2009-01-24 21:52

Re: Youtube browser - mYTube - released
 
No worky for me on 2008HE. I can run the program but get a white screen as others have mentioned.

iancumihai 2009-01-26 10:28

Re: Youtube browser - mYTube - released
 
Quote:

Originally Posted by brian911 (Post 259720)
No worky for me on 2008HE. I can run the program but get a white screen as others have mentioned.

can you start it from xterm and check for "error messages"?

brian911 2009-01-26 14:43

Re: Youtube browser - mYTube - released
 
I'll try it later today and post back. Could installing the n800 version of mplayer be the culprit?

pycage 2009-01-26 16:22

Re: Youtube browser - mYTube - released
 
Quote:

Originally Posted by brian911 (Post 259969)
I'll try it later today and post back. Could installing the n800 version of mplayer be the culprit?

Yes, the N800 version of mplayer is optimized for the N800's CPU. It doesn't work on the 770. You need the 770 version on the 770.

brian911 2009-01-29 05:21

Re: Youtube browser - mYTube - released
 
Okay, so I installed the n770 version of mplayer and is still getting the same problem. Running in Xterm gives the following error:

File "/usr/lib/python2.5/site-packages/gdata/tlslite/utils/xmltools.py", line 10, in <module>
from xml.dom import minidom
ImportError: No module named dom

iancumihai 2009-01-29 11:40

Re: Youtube browser - mYTube - released
 
Quote:

Originally Posted by brian911 (Post 260720)
Okay, so I installed the n770 version of mplayer and is still getting the same problem. Running in Xterm gives the following error:

File "/usr/lib/python2.5/site-packages/gdata/tlslite/utils/xmltools.py", line 10, in <module>
from xml.dom import minidom
ImportError: No module named dom

try to reinstall python-gdata and/or search which packages are available to fix the xml dependency:
apt-cache search python | grep xml

brian911 2009-01-29 18:27

Re: Youtube browser - mYTube - released
 
Thanks. apt-get install python-gdata fixed it.

andrewfblack 2009-02-16 03:48

Re: Youtube browser - mYTube - released
 
Just asking would something like this be able to be made for hulu.com so we can watch tv shows on tablet?

liquid217 2009-02-16 06:10

Re: Youtube browser - mYTube - released
 
I just wanted to throw my 2 cents in with the hulu idea. I too think it would be an awesome idea to have a client on the n8x0 for hulu. Unfortunately, hulu's lowest stream has a resolution of 512x288, which is still way too large for mplayer to process smoothly. (unless there's a way of quantizing the frame down on the fly). It would be awesome for hulu to support lower quality (and lower res) streams, which could actually work with the tablet. I recently stumbled over the *nix project rtmpdump, which could be used to capture the hulu stream, if it was compiled onto the n8x0. I believe that the rtmpdump code is used on projects like XBMC and Boxee, iirc.

http://sourceforge.net/projects/rtmpdump/

iancumihai 2009-02-16 09:39

Re: Youtube browser - mYTube - released
 
Quote:

Originally Posted by andrewfblack (Post 264758)
Just asking would something like this be able to be made for hulu.com so we can watch tv shows on tablet?

love to take a look, however HULU seems to be unvailable outside USA.

Can someone provide a decent proxy? the free versions out there are no good for streaming video.
i
Or can someone take a look to see how the streaming is done. It is flv or rtmp?

Cheers,
-Mihai

iancumihai 2009-02-16 09:43

Re: Youtube browser - mYTube - released
 
ah right, so it's rtmp. maybe someone with a little free time can join me in building a little c/c++ rtmp client?

afaik rtmp is not public but some reverse ingineering has been done in pyrtmp and xmbc.

it would be a nice thing to hack ...

andrewfblack 2009-02-16 11:59

Re: Youtube browser - mYTube - released
 
I'm not a programmer but I will setup the the proxy server if for it if it will help. Also I would help with testing.

iancumihai 2009-02-19 08:27

Re: Youtube browser - mYTube - released
 
Thanks Andrew, but since hulu is using rtmp, there is need for an implementation for this protocol.
Which i can do directly using the southparkstudios page :).

Until this is complete (help, help, i'm very low on free time), the proxy setup can be postponed


Cheers,
-Mihai

pycage 2009-02-19 08:38

Re: Youtube browser - mYTube - released
 
mplayer cannot play RTMP streams yet as it seems. I made some dumps with wireshark, and with tools, but mplayer wasn't able to play them.
At least the wireshark dump was recognized as video, so mplayer opened a video window, but the content appeared to be encrypted as it was just flashing colored blocks.

Hopefully, not all RTMP are encrypted, though. But I dread the day YouTube will switch to RTMP (and I'm pretty sure they'll do eventually with pressure from the content industry).

iancumihai 2009-02-19 08:51

Re: Youtube browser - mYTube - released
 
AFAIK rtmp has both video and sound streams, which after download (or at download time) have to be processed and some sort of flv is obtained ... XMBC and rtmpy are the best source i've found to analyze.

I also think that youtube will switch to rtmp :(.

liquid217 2009-02-19 12:49

Re: Youtube browser - mYTube - released
 
The rtmpdump that I posted earlier should suffice as as the 'flv getter' utility. Unfortunately, HULU has changed some things on their end and has broken the 'get_hulu' script that accompanys the utility.

iancumihai 2009-04-13 14:56

Re: Youtube browser - mYTube - released
 
not quite working, i'm betting some client identification and restrictions. anyone wanting to help with a wireshark/hex parsing here :D ?

Quote:

Desktop>rtmpdump -r "rtmp://cp40493.edgefcs.net/ondemand/comedystor/_!/com/sp/acts/Season04/E_0402/compessed/flv/0402_2_DI_640x480_700kbps.flv" -o a.flv

RTMPDump v1.4
(c) 2009 Andrej Stepanchuk, license: GPL

DEBUG: parsing...
DEBUG: Parsed protocol: 0
DEBUG: Parsed host : cp40493.edgefcs.net
DEBUG: Parsed app : ondemand
DEBUG: Parsed playpath: comedystor/_!/com/sp/acts/Season04/E_0402/compressed/flv/0402_2_DI_640x480_700kbps
DEBUG: Setting buffer time to: 36000000ms
Connecting ...
DEBUG: Protocol: RTMP
DEBUG: Hostname: cp40493.edgefcs.net
DEBUG: Port : 0
DEBUG: Playpath: comedystor/_!/com/sp/acts/Season04/E_0402/compressed/flv/0402_2_DI_640x480_700kbps
DEBUG: tcUrl : rtmp://cp40493.edgefcs.net/ondemand
DEBUG: app : ondemand
DEBUG: flashVer: LNX 9,0,124,0
DEBUG: connected, hand shake:
DEBUG: HandShake: Type Answer : 03
DEBUG: HandShake: Server Uptime : 640134726
DEBUG: HandShake: FMS Version : 3.0.3.1
DEBUG: handshaked
Connected...

Starting download at 0.000 KB
DEBUG: GetNextMediaPacket, received: invoke 134 bytes
DEBUG: Property: <Name: no-name., STRING: _error>
DEBUG: Property: <Name: no-name., NUMBER: 1.00>
DEBUG: Property: NULL
DEBUG: Property: <Name: no-name., OBJECT>
DEBUG: Property: <Name: level, STRING: error>
DEBUG: Property: <Name: code, STRING: NetConnection.Connect.Rejected>
DEBUG: Property: <Name: description, STRING: [ AccessManager.Reject ] : Access denied!>
DEBUG: HandleInvoke, server invoking <_error>
ERROR: rtmp server sent error
DEBUG: GetNextMediaPacket, received: invoke 18 bytes
DEBUG: Property: <Name: no-name., STRING: close>
DEBUG: Property: <Name: no-name., NUMBER: 0.00>
DEBUG: HandleInvoke, server invoking <close>
ERROR: rtmp server requested close
DEBUG: zero read!
Closing connection... done!

Peet 2009-06-11 11:38

Re: Youtube browser - mYTube - released
 
Maybe this is something really obvious, but where do I enter a full URL to have it play in mYTube, with all the caching and saving goodness?

jperez2009 2009-06-11 12:08

Re: Youtube browser - mYTube - released
 
You don't. Just open up mYTube, use the search tool to find videos on YouTube and then you can watch them or download for later.

If you just watch a video, it will cache it and you can either save it or delete it off your device/MMC to save space or you can just download it and then watch it later.

It's pretty straight forward. Too bad you can't download the HQ videos. You always get the SD quality ones.

Jesse~

Peet 2009-06-11 12:53

Re: Youtube browser - mYTube - released
 
Ach so, but therein lies the rub.

I wasn't able to search (and should I really have to if I already have the URL) the video since everything was in Chinese (it was a music video about Tiananmen massacre) and initially I didn't even know any details about the video except its URL.

Well I did manage to open the direct youtube URL in the browser and get the author's ID (in ASCII) which then allowed me to search for videos and somehow decipher which one I was supposed to watch.

Still, considering that people often send direct youtube URLs it would be nice to be able to use those in mYTube.

tso 2009-06-11 15:53

Re: Youtube browser - mYTube - released
 
if one copy the youtube page url, one can paste that in the search bar, or use the special tool for that in the menu, and then hit search to find that exact video.

works here at least...

Peet 2009-06-11 17:08

Re: Youtube browser - mYTube - released
 
Tso, thanks for letting me know how it should work. mYTube works as designed, it was a case a PEBKAC: I initially copied the URL off desktop manually and naturally O-> 0 (I hate it when they don't have the slashes...) :o

Fixed that and the search function found the video in no time.

Maybe my user error suggests there could be a feedback message when no hits are found? I was left thinking that nothing happened even behind the scenes.

tso 2009-06-11 17:52

Re: Youtube browser - mYTube - released
 
would have been kinda interesting of tear and/or webkit-eal could detect a youtube url and insert a mytube launch button ;)

iancumihai 2009-06-11 18:06

Re: Youtube browser - mYTube - released
 
press search, paste the url, hit search, it will recognise it as an youtube link, will list it and you can hit play

jaysin22 2009-06-16 20:12

Re: Youtube browser - mYTube - released
 
Does this work with other flash based player websites?

Mgamerz 2009-08-27 16:12

Re: Youtube browser - mYTube - released
 
I hope that this isn't necroposting but this is the relevent thread...
I want to use the mytube upload feature but its blanked out along with the login button.
Is there a way to use it? The browser upload is memory intensive and sharepy does not work for me.

iancumihai 2009-08-27 18:49

Re: Youtube browser - mYTube - released
 
it's not yet implemented. the fact that mplayer is not yet ported to freemantle also lowers my moral to continue pushing features.
does freemantle comes with a youtube upload feature?

Mgamerz 2009-08-27 20:02

Re: Youtube browser - mYTube - released
 
Oh. Well I guess I'll just use the browser then..

ArnimS 2010-01-25 17:00

Re: Youtube browser - mYTube - works on me Linux PeeCee
 
Mytube works great on PC, for watching teh Utube without teh eebil Flash in browser.

Download the mytube .deb to pc.

Extract that shizbang with dpkg -X mytube1@#!@#..deb /

Install the Depends if needed: python2.5, python2.5-gtk2, python-gdata | gdataclient | gdata-python

i'd like to get some soufpark.py action too, but don't see how to activate it

cheers, great tool

anden12 2010-01-27 22:06

Re: Youtube browser - mYTube - released
 
I accidently pushed /mnt as my video directory.. and obviously mytube can't create video dir in there, and therefor it dies.
Have tried to reinstall it without success.. is there any other way to remove settings for it?

ArnimS 2010-02-15 10:35

Re: Youtube browser - mYTube - released
 
I'm not sure if this is possible, but i would really like to get search results sorted by date: newest first.

Thanks for the great app.

liquid217 2010-04-02 03:57

Re: Youtube browser - mYTube - released
 
it seems youtube-dl is no longer grabbing the video. Has anyone had any luck getting a newer version of that script working on the n800/n810?

Uncle Gary 2010-04-02 12:26

Re: Youtube browser - mYTube - released
 
Not only does the download no longer work, but "play" doesn't work on my n810, either. Anybody know what happened?

Mytube opens properly, search works, but selecting a video to view or download starts the "rotating dash" inside brackets, and then NOTHING.

tso 2010-04-02 13:04

Re: Youtube browser - mYTube - released
 
could be its a issue at the youtube end, as i have gotten it to download using the command line directly.

hrmf, the command line client works, but doing it from inside mytube barfs, even tho he command used should be the exact same one.

funny, first the command works, then it fails. Seems there is something at the youtube end that do not always present a webpage with a "t" parameter, whatever that is.

iskarion 2010-04-04 10:07

Re: Youtube browser - mYTube - released
 
Quote:

Originally Posted by tso (Post 592588)
could be its a issue at the youtube end,...

Yes, Youtube did change the strucutre of their website. Other Youtube download applications stopped working, too. e.g. also Canola can't download Youtube videos anymore.

In line 126 the youtube-dl-x script is trying without success to find some url matching "re.compile(r', "t": "([^"]+)"')" on the youtube page.

There is a "youtube-dl" script available at http://bitbucket.org/rg3/youtube-dl/wiki/Home which has recently been updated and is able again to download videos from Youtube.
Unfortunately this youtube-dl script and the youtube-dl-x script used by mytube seen to be quite different. I did already try to figure out how to apply the change done in youtube-dl to youtube-dl-x. Though so far without much success due to lack of python knowlede.

So I guess we have to wait until the mytube developer or some other Python god updates the script. :(

fixfox 2010-04-04 10:21

Re: Youtube browser - mYTube - released
 
Quote:

Originally Posted by Uncle Gary (Post 592559)
Not only does the download no longer work, but "play" doesn't work on my n810, either. Anybody know what happened?

Mytube opens properly, search works, but selecting a video to view or download starts the "rotating dash" inside brackets, and then NOTHING.

Yup, I noticed yesterday... same issue as you here

Engmex 2010-04-08 04:23

Re: Youtube browser - mYTube - released
 
Quote:

Originally Posted by iskarion (Post 594736)

There is a "youtube-dl" script available at http://bitbucket.org/rg3/youtube-dl/wiki/Home which has recently been updated and is able again to download videos from Youtube.
Unfortunately this youtube-dl script and the youtube-dl-x script used by mytube seen to be quite different. I did already try to figure out how to apply the change done in youtube-dl to youtube-dl-x. Though so far without much success due to lack of python knowlede.

So I guess we have to wait until the mytube developer or some other Python god updates the script. :(

The youtube-dl script mentioned above is working on the Nokia N810 from the command line. You need to have the getpass.py module in your /usr/lib/python directory. I got the getpass.py module from my Ubuntu linux /usr/lib/python2.6 directory and copied it over to the Nokia. Unfortunately I can't get the youtube-dl script to work with mytube. Maybe its just a question of placing the correct command line options in mytube->preferences->more->youtube-dl.

Engmex 2010-04-08 14:21

Re: Youtube browser - mYTube - released
 
Actually the youtube-dl script is working, but there are a couple of issues. First the indicator spins while the video is downloading, but it never displays the percentage and second the video does not begin to play until it is completely downloaded, which may take some time. Maybe someone can find a youtube-dl option to solve these two issues.

iskarion 2010-04-09 20:44

Re: Youtube browser - mYTube - released
 
Thanks for the hint with getpass.py. Now it's working for me, too.

Actually you don't have to wait until the video has completely downloaded before you can play it. Klick the Download button wait for 10-15 secs and press the play button. Then the video playback starts right away.


All times are GMT. The time now is 16:31.

vBulletin® Version 3.8.8