How to Install and Use HandBrakeCLI on Opensuse15.1
- 00:27 cat /etc/os-release
- 00:32 zypper addrepo http://packman.inode.at/suse/openSUSE_Leap_15.1/ packman
- 00:46 zypper install handbrake-cli
- 01:09 HandBrakeCLI --help
- 01:26 cd Downloads/
- 01:46 HandBrakeCLI -i sample.mp4 --width 1280 --height 720 --auto-anamorphic --display-width 1280 -o out.mp4 -e x264 -q 28 -r 15 -B 64
- 02:20 ls -la
- 02:28 du -sh *
How to Install and Use HandBrakeCLI on Opensuse15.1
HandBrake is a free and open-source transcoder for digital video files. It converts video from nearly any format to a selection of modern, widely supported codecs. This video covers the method to install and use Handbrakecli on opensuse15.1
Requirements:
Packman repository
Installation Process:
To check the installed version of OS
LinuxHelp:~ # cat /etc/os-release
NAME="openSUSE Leap"
VERSION="15.1 "
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.1"
PRETTY_NAME="openSUSE Leap 15.1"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:15.1"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
Add the Packman repository to install Handbrakecli
LinuxHelp:~ # zypper addrepo http://packman.inode.at/suse/openSUSE_Leap_15.1/ packman
Adding repository 'packman' .......................................................................................[done]
Repository 'packman' successfully added
URI : http://packman.inode.at/suse/openSUSE_Leap_15.1/
Enabled : Yes
GPG Check : Yes
Autorefresh : No
Priority : 99 (default priority)
Repository priorities are without effect. All enabled repositories share the same priority.
Install Handbrakecli using the Below command
LinuxHelp:~ # zypper install handbrake-cli
New repository or package signing key received:
Repository: packman
Key Name: PackMan Project (signing key) <packman@links2linux.de>
Key Fingerprint: F8875B88 0D518B6B 8C530D13 45A1D067 1ABD1AFB
Key Created: Tue Sep 16 03:48:00 2014
Key Expires: Fri Sep 13 03:47:21 2024
Rpm Name: gpg-pubkey-1abd1afb-54176598
Do you want to reject the key, trust temporarily, or trust always? [r/t/a/?] (r): a
Building repository 'packman' cache ...............................................................................[done]
Retrieving repository 'Main Update Repository' metadata ...........................................................[done]
Building repository 'Main Update Repository' cache ................................................................[done]
Loading repository data...
Reading installed packages...
…
…
Continue? [y/n/v/...? shows all options] (y): y
Retrieving package libx265-179-3.2.1-lp151.1.1.x86_64 (1/16), 1.0 MiB ( 15.4 MiB unpacked)
Retrieving: libx265-179-3.2.1-lp151.1.1.x86_64.rpm ....................................................[done (5.4 KiB/s)]
Retrieving package libxvidcore4-1.3.5-lp151.2.5.x86_64 (2/16), 201.1 KiB (671.4 KiB unpacked)
Retrieving: libxvidcore4-1.3.5-lp151.2.5.x86_64.rpm ...............................................................[done]
To check Handbrakecli Editioroptions
LinuxHelp:~ # HandBrakeCLI --help
General Options --------------------------------------------------------------
-h, --help Print help
--version Print version
--json Log title, progress, and version info in
JSON format
-v, --verbose[=number] Be verbose (optional argument: logging level)
-Z. --preset <string> Select preset by name (case-sensitive)
Enclose names containing spaces in double quotation
marks (e.g. "Preset Name")
-z, --preset-list List available presets
….
……
Change directory to Downloads
LinuxHelp:~ # cd Downloads/
Long listing the current directory
LinuxHelp:~/Downloads # ls -la
total 9612
drwxr-xr-x 1 root root 20 Dec 7 03:53 .
drwx------ 1 root root 310 Dec 3 01:59 ..
-rw-r--r-- 1 root root 9840497 Dec 7 03:53 sample.mp4
Check the file size using the below command
LinuxHelp:~/Downloads # du -sh *
9.4M sample.mp4
Use the below command to convert the video
LinuxHelp:~/Downloads # HandBrakeCLI -i sample.mp4 --width 1280 --height 720 --auto-anamorphic --display-width 1280 -o out.mp4 -e x264 -q 28 -r 15 -B 64
1 CPU detected
Opening sample.mp4...
[03:57:41] CPU: Intel(R) Core(TM) i5-2310 CPU @ 2.90GHz
[03:57:41] - Intel microarchitecture Sandy Bridge
[03:57:41] - logical processor count: 1
[03:57:41] hb_scan: path=sample.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image sample.mp4
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[03:57:41] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[03:57:41] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'sample.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42mp41isomavc1
creation_time : 2015-08-07T09:13:32.000000Z
Duration: 00:00:30.53, start: 0.000000, bitrate: 2578 kb/s
….
…..
After the video conversion, you can verify the size of the both input and output file size
LinuxHelp:~/Downloads # ls -la
total 10320
drwxr-xr-x 1 root root 34 Dec 7 03:57 .
drwx------ 1 root root 310 Dec 3 01:59 ..
-rw-r--r-- 1 root root 724816 Dec 7 03:58 out.mp4
-rw-r--r-- 1 root root 9840497 Dec 7 03:53 sample.mp4
LinuxHelp:~/Downloads # du -sh *
708K out.mp4
9.4M sample.mp4
With this, the method to install and use Handbrakecli on opensuse15.1 comes to an end
Comments ( 0 )
No comments available