HandBrake server (handbrake_cli)
€8-30 EUR
Paid on delivery
I need a simple bash-script, that will continue to ask for jobs until it gets a job. Once it has finished the current job, it must start to ask for jobs again. Once every 15 seconds.
The script will receive jobs by requesting an XML-file from my server. The script must send some GET parameters with the request including a secret key (i will return to this later).
If the BASH-script gets a job, the XML file will provide the script with a URL to a video-file it must download. Once the download has been completed, the BASH-script have to launch HandBrake_CLI with parameters from the XML-file.
HandBrake_CLI shows the current progress in the terminal through the conversion-progress. I want the BATCH-script to make a GET request on my website with GET-variables containing information on the progress and also my secret key, so that the service cannot be tampered with.
When the conversion-progress is finished, i want the BASH-script to make a new GET-request telling my server that the conversion is finished.
Once this has been completed, i want the BASH-script to startover, and begin requesting jobs agian.
The secret key:
I want the BASH-script to load settings from a separate file.
The settings must include variables called:
- secret (used to identify the handbrake-server)
- id (used to identify the handbrake-server)
These two variables must be included in all request to the server.
The XML files will look like this:
- Job request without any job: [url removed, login to view]
- Job request returning a job: [url removed, login to view]
The GET request should contain:
- Conversion status:
- secret
- id
- filename
- progress (in percent)
- eta (hh:mm:ss)
- Job finished:
- secret
- id
- filename
- finished (should equal "true")
The video-files will be placed in:
/mediacollection/mccs/queue
/mediacollection/mccs/finished
The script will be running on CentOS 6.5.
Project ID: #5843878
About the project
Awarded to:
Hi, I have decent experience in bash programming and already some experience in web and xml-processing. The latter w/o using dom-tools, but simple sed-like programs. Regards, Andre
4 freelancers are bidding on average €817 for this job
Hello, ready to start your project. I am an experienced linux administrator and bash/php scripter. Worked on CI, Joomla. It's interesting task, I would like to try.
I have experience with writing shell scripts for Linux. I have experience with sending HTTP requests to servers, from shell scripts. I also have experience with doing simple text processing from within shell scripts, u More