HandBrake server (handbrake_cli)

Finalizat Postat la Apr 22, 2014 S-au achitat serviciile după ce au fost prestate
Finalizat S-au achitat serviciile după ce au fost prestate

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

ID Proiect: #5843878

Detalii despre proiect

4 propuneri Proiect la distanță Activ Apr 23, 2014

Acordat lui:

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

%selectedBids___i_sum_sub_4%%project_currencyDetails_sign_sub_5% EUR în 1 zi
(1 părere)
3.5

4 freelanceri plasează o ofertă medie de 817€ pentru proiect

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 în 1 zi
(0 recenzii)
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 Mai multe

€23 EUR în 1 zi
(0 recenzii)
0.0
linguangsui

A proposal has not yet been provided

€3157 EUR în 10 zile
(0 recenzii)
0.0