[SOLVED] Need help (and reassurance) getting MakeMKV
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Thanks, man, but you're wanting me to get the command line version instead of the GUI? Is the cli really easy to use?[/CODE]
No. If you look at my instructions, you are installing two packages in the same apt install line: handbrake-gtk and handbrake-cli. The latter you may never need to use but it gives you more flexibility in the future to have it. You don't need to install handbrake-cli if you don't want to, just handbrake-gtk.
it does not hurt to have both, and the cli I use for batch jobs, if you just got one or two dvd/cds to rip, use the gui one.
If your system is beefy enough you can run two or more of them simultaneously and not see a slow down in anything else you might be doing. But wait that would require more than one cd/dvd reader... my files are already on my hdd.
just CLI info to fill your brain.
Code:
#!/bin/bash
#
# Change this to specify a different handbrake preset.
# You can list them by running: "HandBrakeCLI --preset-list"
#
cd /media/data1/scripts
if [[ -d "/run/media/userx/3TB-External/HoldMovies" ]] ;
then
{
#SLackware paths
SRC="/run/media/userx/3TB-External/HoldMovies/subdirectory"
DEST="/run/media/userx/3TB-External/Movies"
mkdir -p "$DEST"
}
else
{
#Peppermint / Mint Linux Paths
SRC="/media/userx/3TB-External/HoldMovies/subdirectory"
DEST="/media/userx/3TB-External/Movies"
mkdir -p "$DEST"
}
fi
keep_old=/media/data/old_movies
OPTIONS="--loose-anamorphic --loose-crop"
WIDTH="--maxWidth 420"
DEST_EXT=mp4
HANDBRAKE_CLI=HandBrakeCLI
PRESET="Very Fast 480p30"
####################
######## PATH OVER RIDES #########
SRC=/run/media/userx/2TBInternal/TestQueue
DEST=/run/media/userx/2TBInternal/TestMovies
ORGINALS=/run/media/userx/2TBInternal/orginals
SETSIZEDIR=/run/media/userx/2TBInternal/setsize420
mkdir -p "$SETSIZEDIR"
[[ ! -d "$DEST" ]] && (echo "Not mounted" ; exit)
count="$(find "$SRC" -type f -name "*.*" | wc -l)"
for F in "$SRC"/*
do
echo "$F"
wh="$(ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=s=x:p=0 "$F")"
width=${wh%x*}
height=${wh#*x}
if [[ "$width" -gt '420' ]] ; then # && [[ "$height" -gt '300' ]] ; then
{
filename=$(basename "$F")
path=${F%*/}
echo "$path"
echo
extension=${filename##*.}
filename=${filename%.*}
send_to="$DEST"/"$filename"-"420HB"."$DEST_EXT"
$HANDBRAKE_CLI --preset="$PRESET" -i "$F" -o "$send_to"
mv -vf "$F" "$ORGINALS"
echo "left: $((--count))"
}
else
{
mv -fv "$F" "$SETSIZEDIR"
echo "left: $((--count))"
}
fi
#if blank it does not move old out of directory.
[[ -n "$keep_old" ]] && (mkdir -p "$keep_old" ; mv "$F" "$keep_old")
if [ -x /usr/bin/HandBrakeCLI ] ; then rm -v "$F" ; else echo "no /usr/bin/HandBrakeCLI" ; fi
echo
done
No. If you look at my instructions, you are installing two packages in the same apt install line: handbrake-gtk and handbrake-cli. The latter you may never need to use but it gives you more flexibility in the future to have it. You don't need to install handbrake-cli if you don't want to, just handbrake-gtk.
My bad, hydrurga. I didn't look at it closely enough. Hey, watching the terminal I saw when I ran the initial command this came up:
Code:
12 packages can be upgraded. Run 'apt list --upgradable' to see them.
it does not hurt to have both, and the cli I use for batch jobs, if you just got one or two dvd/cds to rip, use the gui one.
If your system is beefy enough you can run two or more of them simultaneously and not see a slow down in anything else you might be doing. But wait that would require more than one cd/dvd reader... my files are already on my hdd.
just CLI info to fill your brain.
Code:
#!/bin/bash
#
# Change this to specify a different handbrake preset.
# You can list them by running: "HandBrakeCLI --preset-list"
#
cd /media/data1/scripts
if [[ -d "/run/media/userx/3TB-External/HoldMovies" ]] ;
then
{
#SLackware paths
SRC="/run/media/userx/3TB-External/HoldMovies/subdirectory"
DEST="/run/media/userx/3TB-External/Movies"
mkdir -p "$DEST"
}
else
{
#Peppermint / Mint Linux Paths
SRC="/media/userx/3TB-External/HoldMovies/subdirectory"
DEST="/media/userx/3TB-External/Movies"
mkdir -p "$DEST"
}
fi
keep_old=/media/data/old_movies
OPTIONS="--loose-anamorphic --loose-crop"
WIDTH="--maxWidth 420"
DEST_EXT=mp4
HANDBRAKE_CLI=HandBrakeCLI
PRESET="Very Fast 480p30"
####################
######## PATH OVER RIDES #########
SRC=/run/media/userx/2TBInternal/TestQueue
DEST=/run/media/userx/2TBInternal/TestMovies
ORGINALS=/run/media/userx/2TBInternal/orginals
SETSIZEDIR=/run/media/userx/2TBInternal/setsize420
mkdir -p "$SETSIZEDIR"
[[ ! -d "$DEST" ]] && (echo "Not mounted" ; exit)
count="$(find "$SRC" -type f -name "*.*" | wc -l)"
for F in "$SRC"/*
do
echo "$F"
wh="$(ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=s=x:p=0 "$F")"
width=${wh%x*}
height=${wh#*x}
if [[ "$width" -gt '420' ]] ; then # && [[ "$height" -gt '300' ]] ; then
{
filename=$(basename "$F")
path=${F%*/}
echo "$path"
echo
extension=${filename##*.}
filename=${filename%.*}
send_to="$DEST"/"$filename"-"420HB"."$DEST_EXT"
$HANDBRAKE_CLI --preset="$PRESET" -i "$F" -o "$send_to"
mv -vf "$F" "$ORGINALS"
echo "left: $((--count))"
}
else
{
mv -fv "$F" "$SETSIZEDIR"
echo "left: $((--count))"
}
fi
#if blank it does not move old out of directory.
[[ -n "$keep_old" ]] && (mkdir -p "$keep_old" ; mv "$F" "$keep_old")
if [ -x /usr/bin/HandBrakeCLI ] ; then rm -v "$F" ; else echo "no /usr/bin/HandBrakeCLI" ; fi
echo
done
Thanks BW. I have the cli and the gui for BackInTime too. I guess it doesn't hurt to have both.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.