Jump to content
sparklyballs

[DOCKER] Handbrake GUI + Automation via CLI

248 posts in this topic Last Reply

Recommended Posts

Made a handbrake GUI container based on hurricane's rather excellent TMM container

 

you can find it in my main repo.

 

 

Absolutely must reiterate this would not be possible or as good as it is without the stunning work done by hurricane hernandez.

 

 

2/5/2015

BUMPED to handbrake-gtk version 0.10.1

ADDED gnome theme pack to fix icons, thanks aptalca.

 

6/5/2015

ADDED the CLI version of handbrake that can be scripted. there is a sample script that you will find in a sub folder to wherever you map the config folder , along with a sub folder for watch-folder.

 

edit the script to suit your needs, by default it's set for ipad preset and mp4 output., you can change to whatever preset you wish.

you can also completely replace the script if you wish, providing you keep the same output folder etc....

 

git repo https://github.com/sparklyballs/desktop-dockers/tree/master/handbrake

Share this post


Link to post

This is the first time I've run one of the RDP Dockers, it is awesome!  We need this kind of setup for Crashplan :)

 

Handbrake sure pegs the processor, my CPU fan sounds like it will achieve orbit any minute :o

Share this post


Link to post

Does this have to be run on port 8080? I use plexwatch and that needs 8080.

 

The container port needs to stay at 8080, but you can change the host port to something else.  I used 8081.

Share this post


Link to post

Haven't tried yet but... You are a god!

 

if there is any deification, it should absolutely be towards hurricane.

 

he made the tmm container that i swapped out tmm for handbrake.

 

 

Share this post


Link to post

Is this using the container system you PMed me last night?  I was mighty impressed I have to say.

Share this post


Link to post

Is this using the container system you PMed me last night?  I was mighty impressed I have to say.

 

Indeed it is, stunning work by hurricane, all round.

Share this post


Link to post

You guys just freaking ROCK!!!  Giddy as a schoolgirl to start playing with this new shiny container!!!

Share this post


Link to post

Dude, how do you guys do that? Is it with guacamole?

 

I gotta figure out how to do the browser rdp for specific apps, too, I am pretty jealous  :P

Share this post


Link to post

Dude, how do you guys do that? Is it with guacamole?

 

I gotta figure out how to do the browser rdp for specific apps, too, I am pretty jealous  :P

 

it is indeed with guacamole, i think hurricane compiled a "special" version to act as a server.

 

check out my github

 

https://github.com/sparklyballs/desktop-dockers/tree/master/handbrake

Share this post


Link to post

OK, I went through the repo and I'm starting to understand how it comes together.

 

Would you and hurricane be interested in creating a base image/container for this? It would include all the common files and settings, like setting the unraid user, copying the guac server files, xrdp, etc.

 

That way, whenever someone develops a new docker, they can use that base as a starting point which will lead to

1) significant space saving as the base image (several hundred megs I presume) would be shared between different containers the same way phusion base is

2) Updates and installs would be much faster

3) Building containers for the devs would be much faster

 

I created a base image/container for my rdp stuff: https://registry.hub.docker.com/u/aptalca/docker-rdp-base/dockerfile/ which only has xrdp, lxde and wget installed and my build time went from 25min to 5 min because docker simply imports the already built base image

 

In my rdp based dockers, instead of doing FROM phusion:baseimage, I do FROM aptalca:docker-rdp-base

 

What do you think?

Share this post


Link to post

OK, I went through the repo and I'm starting to understand how it comes together.

 

Would you and hurricane be interested in creating a base image/container for this? It would include all the common files and settings, like setting the unraid user, copying the guac server files, xrdp, etc.

 

That way, whenever someone develops a new docker, they can use that base as a starting point which will lead to

1) significant space saving as the base image (several hundred megs I presume) would be shared between different containers the same way phusion base is

2) Updates and installs would be much faster

3) Building containers for the devs would be much faster

 

I created a base image/container for my rdp stuff: https://registry.hub.docker.com/u/aptalca/docker-rdp-base/dockerfile/ which only has xrdp, lxde and wget installed and my build time went from 25min to 5 min because docker simply imports the already built base image

 

In my rdp based dockers, instead of doing FROM phusion:baseimage, I do FROM aptalca:docker-rdp-base

 

What do you think?

 

the person to ask would be hurricane.

Share this post


Link to post

OK, I went through the repo and I'm starting to understand how it comes together.

 

Would you and hurricane be interested in creating a base image/container for this? It would include all the common files and settings, like setting the unraid user, copying the guac server files, xrdp, etc.

 

That way, whenever someone develops a new docker, they can use that base as a starting point which will lead to

1) significant space saving as the base image (several hundred megs I presume) would be shared between different containers the same way phusion base is

2) Updates and installs would be much faster

3) Building containers for the devs would be much faster

 

I created a base image/container for my rdp stuff: https://registry.hub.docker.com/u/aptalca/docker-rdp-base/dockerfile/ which only has xrdp, lxde and wget installed and my build time went from 25min to 5 min because docker simply imports the already built base image

 

In my rdp based dockers, instead of doing FROM phusion:baseimage, I do FROM aptalca:docker-rdp-base

 

What do you think?

 

 

although personally i think it adds another layer of maintenance above already having the maintenance of dockers dependant on authors.

Share this post


Link to post

Good morning!

 

I would be more than happy to adjust the existing container in order to create the base. I really hate doing documentation though and would rather have someone else do that. I will fork my own project and create the base. PS This container took tons of testing. I tested noVNC, xvfb with X11VNC, guac, Xvnc and X11rdp. X11rdp was the best for performance but there were some font issue where check marks wouldn't show never figured out why. I might test out again later in the year when X11rdp has had more development. X11rdp also allowed for dynamic resolutions which was awesome.  Anyhow xvfb with X11VNC was too slow, there was too much of a delay because the virtual X11 server was not optimized for vnc. In the end by going with Xvnc as the virtual server I was able to get performance as close to as X11rdp. I will include in the base project to branches an Xvnc and an X11rdp. Each of you can play around with each branch and decide what is best for them. PS with X11rdp using a mac rdp client showed no issues what so ever.

Share this post


Link to post

You just had to prove you're better than me and my crappy command line handbrake docker didn't you?!

Share this post


Link to post

Good morning!

 

I would be more than happy to adjust the existing container in order to create the base. I really hate doing documentation though and would rather have someone else do that. I will fork my own project and create the base. PS This container took tons of testing. I tested noVNC, xvfb with X11VNC, guac, Xvnc and X11rdp. X11rdp was the best for performance but there were some font issue where check marks wouldn't show never figured out why. I might test out again later in the year when X11rdp has had more development. X11rdp also allowed for dynamic resolutions which was awesome.  Anyhow xvfb with X11VNC was too slow, there was too much of a delay because the virtual X11 server was not optimized for vnc. In the end by going with Xvnc as the virtual server I was able to get performance as close to as X11rdp. I will include in the base project to branches an Xvnc and an X11rdp. Each of you can play around with each branch and decide what is best for them. PS with X11rdp using a mac rdp client showed no issues what so ever.

 

the way i recondensed your scripts back into a more trad Dockerfile lends itself to the possibility of a "put your code here and change this" scenario.

 

 

Share this post


Link to post

check the git

 

https://github.com/sparklyballs/desktop-dockers/tree/master/handbrake

 

 

just need to swap in your code for fetching your app in the main dockerfile, change the app name in noauth-config.xml

and xrdp.ini (not crucial, just gives better appearance and less confusion for user)

 

finally change up the autostart file to whatever your app needs to start, work out where your app stores config and make the neccessary changes in your template.xml.

 

 

Share this post


Link to post

what needs to be added for this container to process (read) x265?

 

Thanks

Myk

 

Share this post


Link to post

no link...

 

my bad, lol. i used the image link instead of the hyperlink

 

freaking eyesight and small icons.

Share this post


Link to post

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.