consider skipping this post and going right to this newer one: http://broadcasterproject.wordpress.com/2010/03/03/howto-youtube-auto-upload-script/
many thanks to sean levin for writing the upload scripts.
basic script functionality:
check a folder periodically
if movie file is there: upload it, then move it somewhere else.
that covers the basics. here are some more details.
make softlink for no space version of “Photo\ Booth”
ln -s /Users/yourname/Pictures/photobooth /Users/yourname/Pictures/Photo Booth/
crontab to call shell script periodically.
shell script functionality: check for directory and lock file. make lock file. look for files. call python uploader with file. cp file with new timestamped name. mv file.
now the problems.
1. login problems. i think this has to do with the way that youtube and gmail are now linked in some account. including the edlabbroadcaster account. i made edlabbroadcaster2 that is not linked to google account and that seems to fix log in problems.
2. conversion problems. lots of the videos fail to convert. and some convert to junk like this.
tried with some avi files and it works so i’m guessing it’s the .mov format. does built in camera on an imac generate different .mov files than external isight firewire camera on a macmini? that is the question i am pondering.
is there another 3rd party photobooth style software that will write a different format video?
login problems persist as well. would love to move to something other than youtube. it seems youtube gets very confused about login now as accounts are linked to google accounts. so you can’t change password anymore or anything. its really annoying.
UPDATE on login:
so i was working on this today (2009-aug-4) and had several succesful uploads. then 2-3 in a row had login problems with no change to code. then waited 5 minutes and login is fine.
still working on this issue of videos that go grey: http://www.youtube.com/watch?v=UacDMt3hhZY
some question asking on developers forum.
login issues seem to be mostly fixed now.
conversion errors may have something to do with the filme movement while photbooth is still open. it seems the first of “movei 1.mov” always seems to upload fine. but the next one often has a conversion error. maybe photobooth has some issues with file movement going on while it’s still open? should the files be left in the directory and only moved once a day or something? should photobooth be closed and restarted? is there a photobooth alternative that might work better? use screencapture program like ishowuhd combined with processing or openFrameworks webcam monitor?