#handbrakecli — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #handbrakecli, aggregated by home.social.
-
One of my hobbies is creating tools to #transcode my collection of Blu-ray Discs and DVDs for playback on #Plex servers. These are all cross-platform wrappers for #FFmpeg or #HandBrake. My most flexible script, focused on hardware video encoders, is here:
https://github.com/donmelton/other_video_transcoding
Feel free to message me if you have questions about my scripts, FFmpeg, #HandBrakeCLI, #MKVToolNix or other video nerdery. I've been doing this for over a decade so I can probably point you in the right direction.
1/2
-
Using Automatic Ripping Machine (ARM) to rip some DVDs, the lag of computers with DVD drives make this necessary. Also I need to free some of the shelf space in the living room.
#ARM uses #HandBrakeCLI, which is the #Linux #CLI version of #HandBrake, I derived to use a preset "HQ 576p25 Surround" for the #DVDs, which makes sure the input resolution it kept.
In ARM I can add some options to the HandBrake command that is called in the background, I have this in there:--markers --audio-lang-list eng,deu,spa,fra --all-audio --audio-copy-mask aac,ac3,mp3,dts,dtshd --audio-fallback aac --subtitle scan -F --subtitle-lang-list=eng,deu,spa,fra --first-subtitle --subtitle-burned=none --quality 23.0 --format av_mp4 --encoder-preset slower
I wanted to keep chapter markers (--markers), rip all eng,deu,spa,fra audio tracks (--audio-lang-list eng,deu,spa,fra --all-audio), copy audio without transcoding if in format given "--audio-copy-mask aac,ac3,mp3,dts,dtshd", if audio in other format then transcode to lossless aac which is MP4 compliant (--audio-fallback aac). I tried MKV before, which seems nice, but won't play on my TV for some reason, so I thought I will try MP4 container instead.
For the subtitile I have some problem right now, need to figure out how to prevent burned subtitiles, but I think this should do:
--subtitle scan -F --subtitle-lang-list=eng,deu,spa,fra --first-subtitle --subtitle-burned=none
And now most important I wand a decent video quality and not too big files, I came to this:
--quality 23.0 --format av_mp4 --encoder-preset slower
But I would still love to increase the #quality a bit and give the process a bit more time, now 126 min DVD rips and transcodes in less than 50 minutes on the old laptop I use to do this. It is my ripping machine now.
The resuting command is:nice HandBrakeCLI -i /dev/sr1 -o '/home/arm/media/transcode/movies/NAME/NAME.mp4' --main-feature --preset "HQ 576p25 Surround" --markers --subtitle scan -F --audio-lang-list eng,deu,spa,fra --all-audio --audio-copy-mask aac,ac3,mp3,dts,dtshd --audio-fallback aac --subtitle-lang-list=eng,deu,spa,fra --first-subtitle --quality 23.0 --format av_mp4 --encoder-preset slower >> /home/arm/logs/NAME.log 2>&1
Problems/ideas... I would love to use x265, I think it won't take to long to encode compared to x264 and I can save some storage, but there is not preset like the one above for the resolution I need. So I would have to provide all the parameters via the CLI command.
So give me feedback, also really happy to get any tips what options I should add to the command.
#video #ripping #rip #encode #mp4 #x264 #x265 #dvd #bluray #blueray