HandBrake server (handbrake_cli)

Completed Posted Apr 22, 2014 Paid on delivery
Completed 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.

Linux XML

Project ID: #5843878

About the project

4 proposals Remote project Active Apr 23, 2014

Awarded to:

vehre

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

€55 EUR in 1 day
(1 Review)
3.5

4 freelancers are bidding on average €817 for this job

russh82

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.

€34 EUR in 1 day
(0 Reviews)
0.0
vw7244069vw

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

€23 EUR in 1 day
(0 Reviews)
0.0
linguangsui

A proposal has not yet been provided

€3157 EUR in 10 days
(0 Reviews)
0.0