I Wish I Could Just Throw It At the 'Net
October 15, 2009 2:33 PM Subscribe
Auomating Mac Filter: I want to upload a movie to a free video sharing site from the command line. How?
I currently have a system where I email an image to my Mac Mini which upload the image to TinyPic then Twitters the caption and image URL: ("This is a cool picture! - http://bt.ly/example")
I want to do the same thing with videos. The only problem is that I do not know how to automate uploading a short video to a video sharing site. I found this python script to upload a video to Revver, but using the following command, I cannot get the video to upload:
python /Users/example/RevverExamplePython/revver-upload-video.py /Users/example/revverupload/movie.3gp --login Username --passphrase-file /Users/example/revverpassphrase.txt --age-rating 1 --title test --tag test --author test --url http://www.example.com/ --credits test --description test
Which returns an unnamed error. So, in the end, I want a system to upload a video to any video sharing site and return the URL (or video id) for that video. Help?
I currently have a system where I email an image to my Mac Mini which upload the image to TinyPic then Twitters the caption and image URL: ("This is a cool picture! - http://bt.ly/example")
I want to do the same thing with videos. The only problem is that I do not know how to automate uploading a short video to a video sharing site. I found this python script to upload a video to Revver, but using the following command, I cannot get the video to upload:
python /Users/example/RevverExamplePython/revver-upload-video.py /Users/example/revverupload/movie.3gp --login Username --passphrase-file /Users/example/revverpassphrase.txt --age-rating 1 --title test --tag test --author test --url http://www.example.com/ --credits test --description test
Which returns an unnamed error. So, in the end, I want a system to upload a video to any video sharing site and return the URL (or video id) for that video. Help?
Response by poster: The script needs to run in the background. I can figure out a way to get the uploaded video's URL. If curl can upload in the background, how would I do that?
posted by 47triple2 at 2:47 PM on October 15, 2009
posted by 47triple2 at 2:47 PM on October 15, 2009
If you know enough to do basic scripting in PHP, Python, or some such, YouTube's API is documented here:
http://code.google.com/apis/youtube
with sample code for a bunch of languages available here:
http://code.google.com/apis/youtube/code.html
posted by effbot at 3:46 PM on October 15, 2009
http://code.google.com/apis/youtube
with sample code for a bunch of languages available here:
http://code.google.com/apis/youtube/code.html
posted by effbot at 3:46 PM on October 15, 2009
« Older What was that "Make the Boomers PAY" commercial I... | I want to know about low-flow water wells. Newer »
This thread is closed to new comments.
posted by wongcorgi at 2:37 PM on October 15, 2009