help with handbrake-cli docker


Recommended Posts

I am not familiar with docker and was wondering if anyone has tried handbrake-cli docker.  I've taken the following steps, but not sure where to go from here or if this is feasible to use cli tools in an unRAID docker container.  Any help or direction would be appreciated.

 

Previously had handbrake-cli working in unraid 5.05 with manually installed packages until conflict occurred with dynamix.

 

1. used docker search plugin to locate  and convert handbrake-cli at https://registry.hub.docker.com/u/pandrew/handbrake

 

2. edited docker volume mappings

    /hbencode        /mnt/cache/files/hb/

 

3. started docker

 

4. log as follows:

/usr/bin/docker logs --tail=350 -f handbrake 2>&1
If "number" is omitted, the first track is default.
"number" is an index into the subtitle list
specified with '--subtitle'.
-N, --native-language Specifiy your language preference. When the first
audio track does not match your native language then
select the first subtitle that does. When used in
conjunction with --native-dub the audio track is
changed in preference to subtitles. Provide the
language's iso639-2 code (fre, eng, spa, dut, et cetera)
--native-dub Used in conjunction with --native-language
requests that if no audio tracks are selected the
default selected audio track will be the first one
that matches the --native-language. If there are no
matching audio tracks then the first matching
subtitle track is used instead.
--srt-file SubRip SRT filename(s), separated by commas.
--srt-codeset Character codeset(s) that the SRT file(s) are
encoded in, separated by commas.
Use 'iconv -l' for a list of valid
codesets. If not specified, 'latin1' is assumed
--srt-offset Offset (in milliseconds) to apply to the SRT file(s),
separated by commas. If not specified, zero is assumed.
Offsets may be negative.
--srt-lang Language as an iso639-2 code fra, eng, spa et cetera)
for the SRT file(s), separated by commas. If not specified,
then 'und' is used.
--srt-default Flag the selected srt as the default subtitle
to be displayed upon playback. Setting no default
means no subtitle will be automatically displayed
If "number" is omitted, the first srt is default.
"number" is an 1 based index into the srt-file list
--srt-burn "Burn" the selected srt subtitle into the video track
If "number" is omitted, the first srt is burned.
"number" is an 1 based index into the srt-file list

 

thanks

 

 

Link to comment

Thanks for the prompt reply Squid,

 

I looked at at jonp's post regarding the ubuntu-rdp-docker and tried it . Appears that at present the docker by default doesn't have access to any repos. sudo apt-get install mc gives "unable to locate package mc". Will read up on docker exec to see how that pans out.

 

 

Link to comment

Thanks for the prompt reply Squid,

 

I looked at at jonp's post regarding the ubuntu-rdp-docker and tried it . Appears that at present the docker by default doesn't have access to any repos. sudo apt-get install mc gives "unable to locate package mc". Will read up on docker exec to see how that pans out.

 

try a sudo apt-get update before trying to install packages, see if that helps...

Link to comment

Thanks for the prompt reply Squid,

 

I looked at at jonp's post regarding the ubuntu-rdp-docker and tried it . Appears that at present the docker by default doesn't have access to any repos. sudo apt-get install mc gives "unable to locate package mc". Will read up on docker exec to see how that pans out.

 

if you can wait a little while some of the wrinkles are worked out for a more unraid specific desktop in a docker box, there'll be a rash of containers based around uses,

 

etc... office type apps, media stuff, etc....

 

i know that as soon as there is a standard framework i'll knock up a few boxes.

Link to comment

Depending on what you named your container you can connect to it via

docker exec -i -t handbrake bash

 

I just created a docker for handbrake-cli and connected to it and am transcoding a movie. I have a pretty specific usecase in that I want to convert kids movies to iPod format for an iPod 5g and play them in the van. So the cli version is fine for me because I'm just running like

HandBrake-CLI -i Movie.mv -o Movie.mp4 --preset="iPod"

and it spits out the file right there. I'll probably get it up on github but I don't know about creating the template since you have to ssh in to unpaid anyway and if you're advanced enough to do that and run docker exec you should be able to do a docker run too :)

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.