to use it you need to install plowshare, and have access to terminal , replace user:pass with your megaupload login information.
you would just need to input the remote url into wget and add the name of the file under
if the remote url is http://amd.co.at:8083/AFV_-_slide1.wmv
the filename would be like this
ffmpeg="AFV_-_slide1.wmv"
loop="AFV_-_slide1.mp4"
then you chmod a+ rpps.sh and t run ./rpps.sh in terminal, it will start the download and encoding process when compeleted you get your megaupload Link and you can also find the uploaded file in your megaupload account under files.
thats it i'm still working on adding ftp support and maybe integrate this into php
updated,
will also upload theora clips to megaupload
Code: Select all
#!/bin/bash
# Remote Download - Encoded to MP4 & Theora - automated Upload to Megaupload.com
# automated logic, mysoogals
# linux dependency ubuntu 8.10 - 10.04 - linux mint 9- http://code.google.com/p/plowshare/
# build qt-faststart - ffmpeg - http://ubuntuforums.org/showthread.php?t=786095
wget="http://amd.co.at:8083/AFV_-_slide1.wmv"
ffmpeg="AFV_-_slide1.wmv"
loop="AFV_-_slide1.mp4"
ffmpegout="$loop"
qtinput="$loop"
qtout="$loop"
wget $wget && ffmpeg -i $ffmpeg -acodec libfaac -ab 128k -ac 2 -vcodec libx264 -vpre slow -crf 22 -threads 0 $ffmpegout && qt-faststart $ffmpegout $ffmpegout.qt.mp4 && plowup -a user:pass -d "$ffmpegout.qt.mp4" $ffmpegout.qt.mp4 megaupload && rm $ffmpeg && rm $ffmpegout && chmod 777 $ffmpegout.qt.mp4 && ffmpeg2theora $ffmpegout.qt.mp4 $ffmpegout.qt.ogv && chmod 777 $ffmpegout.qt.ogv && plowup -a user:pass -d "$ffmpegout.qt.ogv" $ffmpegout.qt.ogv megaupload