damonq Posted March 26, 2015 Share Posted March 26, 2015 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 Quote Link to comment
Squid Posted March 26, 2015 Share Posted March 26, 2015 On tapatalk right now so I can't look into this in detail, but off the top of my head in order to use a cli only container you would either have to control it with docker exec, or try out jonp's experimental ubuntu rdp container Quote Link to comment
damonq Posted March 26, 2015 Author Share Posted March 26, 2015 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. Quote Link to comment
jonp Posted March 26, 2015 Share Posted March 26, 2015 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... Quote Link to comment
sparklyballs Posted March 28, 2015 Share Posted March 28, 2015 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. Quote Link to comment
pinion Posted April 3, 2015 Share Posted April 3, 2015 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 Quote Link to comment
Recommended Posts
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.