Djoss Posted March 7, 2019 Author Share Posted March 7, 2019 1 hour ago, mbc0 said: Is there a guide for this? I can set paths in the template but how do I tell handbrake to use them? You need to add additional environment variables. Quote Link to comment
mbc0 Posted March 7, 2019 Share Posted March 7, 2019 18 minutes ago, Djoss said: Do you have another container/application/script that could also plays with the directory? If there is no message indicating the deletion of the file, it's not the auto video converter that removes it...! Ah FFS!!!! So Sorry mate, GoodSync runs in that folder! Just created a new one outside of GoodSync now files are being left alone 🙄 Quote Link to comment
mbc0 Posted March 7, 2019 Share Posted March 7, 2019 (edited) Really been making good progress with this Docker, I really appreciate it! One thing I am stuck on at the moment is handbrake is trying to encode .nfo and .jpg files example. Folder downloads containing movie.nfo movie.jpg movie.mkv moviesample.mkv handbrake tries to encode all the files in that folder but successfully manages to encode the .nfo file into movie.mkv (0 bytes) so when handbrake gets down to the actual movie it fails with destination folder already exists. Is there a way to exclude files with handbrake or ensure only video files are encoded as unfortunately I cannot do this at source (ftp) Thanks again Edited March 8, 2019 by mbc0 Quote Link to comment
samladin86 Posted March 8, 2019 Share Posted March 8, 2019 On 3/5/2019 at 6:26 PM, Djoss said: Are you using default container settings? How do you access the web ui (via which port)? Djoss yes everthing is set to default host port 1 is set to 3389 host port 2 is set to 8080 Quote Link to comment
Djoss Posted March 8, 2019 Author Share Posted March 8, 2019 On 3/7/2019 at 11:24 AM, mbc0 said: Really been making good progress with this Docker, I really appreciate it! One thing I am stuck on at the moment is handbrake is trying to encode .nfo and .jpg files example. Folder downloads containing movie.nfo movie.jpg movie.mkv moviesample.mkv handbrake tries to encode all the files in that folder but successfully manages to encode the .nfo file into movie.mkv (0 bytes) so when handbrake gets down to the actual movie it fails with destination folder already exists. Is there a way to exclude files with handbrake or ensure only video files are encoded as unfortunately I cannot do this at source (ftp) Thanks again You can use the pre-conversion hook (https://github.com/jlesage/docker-handbrake#hooks) to check the file type and delete it if it doesn't need to be converted. Quote Link to comment
Djoss Posted March 8, 2019 Author Share Posted March 8, 2019 13 hours ago, samladin86 said: Djoss yes everthing is set to default host port 1 is set to 3389 host port 2 is set to 8080 These ports don't look correct. Can you provide a screenshot of the container settings? Quote Link to comment
mbc0 Posted March 8, 2019 Share Posted March 8, 2019 17 minutes ago, Djoss said: You can use the pre-conversion hook (https://github.com/jlesage/docker-handbrake#hooks) to check the file type and delete it if it doesn't need to be converted. Ok, I am way out of my depth with this! I cannot understand how to create a seperate watch folder (I have 4 instances of Handbrake docker installed!) I have folders on my ftp that contain nfo's sfv's jpg's rar's etc I just want to convert the movie files (mkv,mp4 etc) if this is a simple hook to write can you help me out with that and the how to create additional watch folders & I will make a donation in return to your paypal? I am fine if I have examples to work from as I can then work things out but everywhere I look I am coming up blank! Really appreciate your time @Djoss Quote Link to comment
Djoss Posted March 8, 2019 Author Share Posted March 8, 2019 8 minutes ago, mbc0 said: Ok, I am way out of my depth with this! I cannot understand how to create a seperate watch folder (I have 4 instances of Handbrake docker installed!) I have folders on my ftp that contain nfo's sfv's jpg's rar's etc I just want to convert the movie files (mkv,mp4 etc) if this is a simple hook to write can you help me out with that and the how to create additional watch folders & I will make a donation in return to your paypal? I am fine if I have examples to work from as I can then work things out but everywhere I look I am coming up blank! Really appreciate your time @Djoss I'm trying to better understand your workflow. How do you transfer your files from your ftp to the watch folder? Can't you transfer only the video files? Quote Link to comment
mbc0 Posted March 8, 2019 Share Posted March 8, 2019 I have an rclone mount to a watch folder on my seedbox where my video files are downloaded to so nothing actually downloads to my server other than the encoded file. I have tested this and it works great apart from when there is a folder with .nfo's .jpg's etc as handbrake tries to encode those as well. Does that make sense? Quote Link to comment
Djoss Posted March 8, 2019 Author Share Posted March 8, 2019 42 minutes ago, mbc0 said: I have an rclone mount to a watch folder on my seedbox where my video files are downloaded to so nothing actually downloads to my server other than the encoded file. I have tested this and it works great apart from when there is a folder with .nfo's .jpg's etc as handbrake tries to encode those as well. Does that make sense? So your HandBrake watch folder is in fact a rclone mount to your seedbox? In this case, I think you should be able to filter the mount to have a view of only the video files (https://rclone.org/commands/rclone_mount/#filters). Quote Link to comment
mbc0 Posted March 9, 2019 Share Posted March 9, 2019 You are a star! I have sent a donation as I really appreciate your work and help thank you! I created this script and all working flawlessly now 🙂 mkdir -p /mnt/disks/handbrakemount rclone mount --max-read-ahead 1024k --exclude *.log --exclude *.jpg --exclude *.nfo --exclude *.rar --exclude *.r0* --exclude *.r1* --exclude *.r2* --exclude *.r3* --exclude *.r4* --exclude *.r5* --exclude *.r6* --exclude *.r7* --exclude *.r8* --exclude *.r9* --exclude *sample* --exclude *trailer* --exclude *.sfv --allow-other dediseedbox: /mnt/disks/handbrakemount & If I could just trouble you one last time for any advice/example/anything! to help me add watch folders so I do not have to have multiple instances of the docker running I would really appreciate it!! Again, Thanks! 🙂 Quote Link to comment
samladin86 Posted March 10, 2019 Share Posted March 10, 2019 On 3/8/2019 at 1:40 PM, Djoss said: These ports don't look correct. Can you provide a screenshot of the container settings? Thanks Djoss for the help Quote Link to comment
Djoss Posted March 11, 2019 Author Share Posted March 11, 2019 On 3/9/2019 at 9:07 AM, mbc0 said: You are a star! I have sent a donation as I really appreciate your work and help thank you! I created this script and all working flawlessly now 🙂 mkdir -p /mnt/disks/handbrakemount rclone mount --max-read-ahead 1024k --exclude *.log --exclude *.jpg --exclude *.nfo --exclude *.rar --exclude *.r0* --exclude *.r1* --exclude *.r2* --exclude *.r3* --exclude *.r4* --exclude *.r5* --exclude *.r6* --exclude *.r7* --exclude *.r8* --exclude *.r9* --exclude *sample* --exclude *trailer* --exclude *.sfv --allow-other dediseedbox: /mnt/disks/handbrakemount & If I could just trouble you one last time for any advice/example/anything! to help me add watch folders so I do not have to have multiple instances of the docker running I would really appreciate it!! Again, Thanks! 🙂 In fact all you need to do is map the "/watch2" folder of the container: Edit the container. Add a new "Path": Set the host path to where you want your second watch folder. Set the container path to "/watch2". Apply settings. At this point, files you put in this new watch folder should be processed with default settings. If you want to customize the watch folder, you need to add variables. For example, if you want to set the preset to use: Add a new "Variable": Set the name and key to "AUTOMATED_CONVERSION_PRESET_2". Set the value to the name of the preset you want to use. Apply settings. You can repeat the same operations with a third watch folder. The path to map would be "/watch3". The name of the variables to use can be found at https://github.com/jlesage/docker-handbrake#multiple-watch-folders. All you need to do is append "_2" for the watch folder 2, "_3" for the watch folder 3, etc. 2 Quote Link to comment
Djoss Posted March 11, 2019 Author Share Posted March 11, 2019 22 hours ago, samladin86 said: Thanks Djoss for the help Are you sure you are in the right thread? This is not the template for this container... Which one are you using? This thread is for the "jesage/handbrake" one. Quote Link to comment
trurl Posted March 11, 2019 Share Posted March 11, 2019 23 hours ago, samladin86 said: Thanks Djoss for the help 1 hour ago, Djoss said: Are you sure you are in the right thread? This is not the template for this container... Which one are you using? This thread is for the "jesage/handbrake" one. You can get to the correct support thread for any docker by clicking on its icon in the webUI and selecting Support. Quote Link to comment
mbc0 Posted March 11, 2019 Share Posted March 11, 2019 (edited) 2 hours ago, Djoss said: In fact all you need to do is map the "/watch2" folder of the container: Edit the container. Add a new "Path": Set the host path to where you want your second watch folder. Set the container path to "/watch2". Apply settings. At this point, files you put in this new watch folder should be processed with default settings. If you want to customize the watch folder, you need to add variables. For example, if you want to set the preset to use: Add a new "Variable": Set the name and key to "AUTOMATED_CONVERSION_PRESET_2". Set the value to the name of the preset you want to use. Apply settings. You can repeat the same operations with a third watch folder. The path to map would be "/watch3". The name of the variables to use can be found at https://github.com/jlesage/docker-handbrake#multiple-watch-folders. All you need to do is append "_2" for the watch folder 2, "_3" for the watch folder 3, etc. Thanks @Djoss Can I ask if it is possible to have multiple output folders as well or just the single one specified in the template? I only use automatic converting. Edited March 11, 2019 by mbc0 Quote Link to comment
Djoss Posted March 11, 2019 Author Share Posted March 11, 2019 25 minutes ago, mbc0 said: Thanks @Djoss Can I ask if it is possible to have multiple output folders as well or just the single one specified in the template? I only use automatic converting. You can set the AUTOMATED_CONVERSION_OUTPUT_SUBDIR_2 variable to put all the converted videos into a different subfolder of the output folder. 1 Quote Link to comment
mbc0 Posted March 11, 2019 Share Posted March 11, 2019 On 3/9/2019 at 2:07 PM, mbc0 said: 2 minutes ago, Djoss said: You can set the AUTOMATED_CONVERSION_OUTPUT_SUBDIR_2 variable to put all the converted videos into a different subfolder of the output folder. Unfortunately Plex will still pick that up, I have /handbrake/movies/ so anything under that Plex will pick up. It is not really an issue, I can use the multiple watch folders for movies and another docker for TV so al should work quite nicely although seperate output folders per watch folder would be great if it ever happened! Quote Link to comment
Djoss Posted March 11, 2019 Author Share Posted March 11, 2019 16 minutes ago, mbc0 said: seperate output folders per watch folder would be great if it ever happened! Yeah I guess this is something I should add 1 Quote Link to comment
mbc0 Posted March 11, 2019 Share Posted March 11, 2019 2 minutes ago, Djoss said: Yeah I guess this is something I should add I look forward to it! 🤪 Quote Link to comment
samladin86 Posted March 12, 2019 Share Posted March 12, 2019 6 hours ago, Djoss said: Are you sure you are in the right thread? This is not the template for this container... Which one are you using? This thread is for the "jesage/handbrake" one. Thanks for the answer sir I was working with the wrong docker installed the correct one and working like a charm thanks for pointing something obvious that i was missing. Quote Link to comment
chris_netsmart Posted March 12, 2019 Share Posted March 12, 2019 I first like to say, thanks for Djoss for a great docker. but sayign that I have a few questions. I have follow this website Handbrake I have set up a role that all my handbrake output files are to be MKA format within my handbrake docker as this is going to my default. but I would like to know is how to excluded any unwanted files which I don't want converting like a already MKA file ? I also like to know how I can monitor the progress of a converting file which I have place in the watch folder, as when I go to handbrake and click on queue or activity, it is not clear on want file it is doing. and lastly, how can I limit the amount of CPU usage the docker use when it is converting. Quote Link to comment
Djoss Posted March 13, 2019 Author Share Posted March 13, 2019 9 hours ago, chris_netsmart said: but I would like to know is how to excluded any unwanted files which I don't want converting like a already MKA file ? MKA? Do you mean MKV? 9 hours ago, chris_netsmart said: I also like to know how I can monitor the progress of a converting file which I have place in the watch folder, as when I go to handbrake and click on queue or activity, it is not clear on want file it is doing. You can see the progress in the container's log. On the Docker page, click the icon in the last column. 9 hours ago, chris_netsmart said: and lastly, how can I limit the amount of CPU usage the docker use when it is converting. See this : 1 Quote Link to comment
chris_netsmart Posted March 13, 2019 Share Posted March 13, 2019 6 hours ago, Djoss said: MKA? Do you mean MKV? Opps sorry, typeO. yes I did mean MKV. 6 hours ago, Djoss said: Quote Link to comment
Djoss Posted March 13, 2019 Author Share Posted March 13, 2019 3 hours ago, chris_netsmart said: Opps sorry, typeO. yes I did mean MKV. Ok, so what you would like to do exactly? You don't want to re-encode all downloaded files? 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.