Sign up here and you can log into the forum!

Youtube uploader

Feature Requests and Proposals for inclusion into WDLXTV-Plus

Youtube uploader   

Postby destivine » Fri Feb 24, 2012 11:46 pm

Plugin to upload videos to youtube from a folder in usb drive.
Preferred to run as a background process which keeps uploading videos.
destivine
n00b
 
Posts: 4
Joined: Thu Feb 23, 2012 10:13 pm

Re: Youtube uploader   

Postby dentex » Sun Apr 01, 2012 10:16 pm

I've been able to do this via command line, installing python via optware and then googlecl to do the actual youtube post job.
So it's not a plugin, but as you say it can work in the background if, like me, you have a not so big upload bandwidth and you want to leave a youtube post overnight.
If you want details just ring a bell. ;)
User avatar
dentex
Supporter
 
Posts: 179
Joined: Fri Apr 15, 2011 4:57 am
Location: Italy

Re: Youtube uploader   

Postby destivine » Sun Apr 08, 2012 7:51 pm

That's great. Yes I want leave it overnight loading to youtube.
Now can you tell me how did you get python working? which optware instructions did you follow?
Getting optware to work seems to be a bottleneck for me.

thanks for sharing again.
destivine
n00b
 
Posts: 4
Joined: Thu Feb 23, 2012 10:13 pm

Re: Youtube uploader   

Postby dentex » Mon Apr 09, 2012 9:34 am

Hi. My steps were:
1- download b-rad's optware from HERE
2- extract the archive on your pendrive's root dir
3- reboot the wdtv
4- log in again and do:
Code: Select all
ipkg update && ipkg install python26

5- download googlecl from HERE
6- download gdata-python-client from HERE
7- extract the archives on your pendrive's root dir
8- cd in the gdata dir and do:
Code: Select all
/opt/bin/python2.6 setup.py install

9- cd in the googlecl dir and do the same

Now, you need to use just once a google youtube command from your pc, in order to have the authorisation keys to import to the WDTV. This is because the authorisation process involves a call to your internet browser to a page where you have to authorise the googlcl application itself, to use your google account (so you also need a google/youtube account); on the WDTV the browser authorisation stuff it's not possible, so you have to authorise your pc and then copy the authorisation data to the WDTV. I was not able to do this in a different way. It's a bit tricky but not difficult.

PC steps:
10- assuming you're on a Ubuntu based linux distro, do:
Code: Select all
sudo apt-get update && sudo apt-get install googlecl

11- then
Code: Select all
google youtube post --category <<choose-from-standard-categories>> <<video-file-name-in-the-dir-you're-in>>

12- follow instruction
13- after authorisation procedures, go to your home dir on the pc and copy the files:
Code: Select all
~/.config/googlecl/config
~/.local/share/googlecl/yt_devkey
~/.local/share/googlecl/access_tok_<<your-username@gmail.com>>

in a googlecl dir created by you on your pendrive's root on the WDTV
(respect path structure, i.e.: <<USB-dir>>/googlecl/.config/... etc)
14- open up the first one in a text editor and change the line hostid under [GENERAL] paragraph to be
Code: Select all
hostid = root@WDLXTV


(on windows or other linux distros should not be difficult to install googlecl, just find the right package on their site, but then you have to find the auth data somewhere on the pc; just the paths should change, not the file names)

Now, finally back on the WDTV, place a video on the pendrive and do (from the pendrive root dir, where you have the googlecl dir and the video to upload):
Code: Select all
export HOME=`pwd`/googlecl
/opt/local/bin/google youtube post --category <<choose-from-standard-categories>> <<video-file-name>>

and it should ask just for the account name.

Since I wrote almost all of this with no reference, please report if something is broken or needs further explanation.

tip: to be in the pendrive's root dir, since you need this above, assuming the usb device it's NOT on the rear port, type:
Code: Select all
cd `mount | grep USB1 | cut -d " " -f 3`

otherwise in this command it's USB2.

Good luck! :geek:
User avatar
dentex
Supporter
 
Posts: 179
Joined: Fri Apr 15, 2011 4:57 am
Location: Italy

Re: Youtube uploader   

Postby dentex » Sun Feb 03, 2013 5:11 am

I found again this post, casually. It's always good to see how a message wrote in half an hour of your time can get totally unnoticed by who asked for help....
Last edited by dentex on Sun Feb 03, 2013 7:29 am, edited 1 time in total.
User avatar
dentex
Supporter
 
Posts: 179
Joined: Fri Apr 15, 2011 4:57 am
Location: Italy

Re: Youtube uploader   

Postby recliq » Sun Feb 03, 2013 6:38 am

dentex wrote:i found again this post, casually. it's always good to see how a message wrote in half an hour of your time can get tofally unnoticed by who asked for help....

welcome to the club... :mrgreen: :ugeek:
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5513
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: Youtube uploader   

Postby dentex » Sun Feb 03, 2013 7:30 am

My pleasure... :?
User avatar
dentex
Supporter
 
Posts: 179
Joined: Fri Apr 15, 2011 4:57 am
Location: Italy

Re: Youtube uploader   

Postby mad_ady » Sun Feb 03, 2013 10:34 pm

My personal take on these kinds of messages is the same as the UNIX phylosophy: No news is good news. The original poster must have read your message, implemented your suggestions and is happily using them, without bothering to spam the forum with "thank you" posts. :)
User avatar
mad_ady
Developer
 
Posts: 4559
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: Youtube uploader   

Postby dentex » Sun Feb 03, 2013 11:19 pm

yes, this is what I think, also. But I found irresistible to complain...
;)
User avatar
dentex
Supporter
 
Posts: 179
Joined: Fri Apr 15, 2011 4:57 am
Location: Italy


Return to Requests

Who is online

Users browsing this forum: No registered users and 0 guests