Monday, June 3, 2019

FFmpeg Program Serbaguna di Bidang Audio Maupun Video

    FFmpeg adalah program yang harus dimiliki oleh sistem Unix-Like, karena FFmpeg memiliki codec untuk memutar video dalam berbagai format di program seperti Mpv.FFmpeg mempunyai banyak fungsi,tapi kita tidak tahu cara memakai fungsi tersebut, ditambah FFmpeg hanya tersedia CLI atau Command-Line Interface.Meskipun ada komunitas yang membuat FFmpeg versi GUI atau Graphical User Interface,tapi kebanyakan FFmpeg versi GUI hanya menyediakan satu fitur, contoh seperti convert video.Contoh FFmpeg versi GUI adalah QWinFF,WinFF. Sangat rekomendasi buat kalian yang sering mengkonversi video, tapi fitur yang disediakan FFmpeg GUI hanya terbatas, jika ingin lengkap pakai HandBrake.
    FFmpeg terdapat pada repositori distro GNU/Linux bawaan,jadi kalian bisa menginstall dengan mudah,tanpa harus menambah repositori lain.Adapula yang sudah tersedia bawaan distro, tapi jika belum terinstall,kalian bisa menginstall FFmpeg dengan sendiri.Untuk cara menginstallnya ialah:
    Turunan Debian dan Ubuntu
Nix@Localhost$ sudo apt update
Nix@Localhost$ sudo apt install ffmpeg
Nix@Localhost$ ffmpeg -version
ffmpeg version n4.1.3 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 8.2.1 (GCC) 20181127
    Turunan ArchLinux
Nix@Localhost$ sudo pacman -Sy
Nix@Localhost$ sudo pacman -S ffmpeg
Nix@Localhost$ ffmpeg -version
ffmpeg version n4.1.3 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 8.2.1 (GCC) 20181127
    Atau menggunakan AUR
Nix@Localhost$ git clone https://aur.archlinux.org/yay.git
Nix@Localhost$ cd yay
Nix@Localhost$ makepkg -si
Nix@Localhost$ yay -S ffmpeg
Nix@Localhost$ ffmpeg -version
ffmpeg version n4.1.3 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 8.2.1 (GCC) 20181127
    OpenSUSE
Nix@Localhost$ sudo zypper up
Nix@Localhost$ sudo zypper in ffmpeg
Nix@Localhost$ ffmpeg -version< /br> ffmpeg version n4.1.3 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 8.2.1 (GCC) 20181127
    Turunan RHEL
Nix@Localhost$ sudo yum update
Nix@Localhost$ sudo yum install ffmpeg
Nix@Localhost$ ffmpeg -version
ffmpeg version n4.1.3 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 8.2.1 (GCC) 20181127
    Gentoo
Nix@Localhost$ sudo emerge -pv ffmpeg
Nix@Localhost$ sudo emerge ffmpeg
Nix@Localhost$ ffmpeg -version
ffmpeg version n4.1.3 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 8.2.1 (GCC) 20181127
    Slackware
Nix@Localhost$ sudo installpkg ffmpeg
Nix@Localhost$ ffmpeg -version
ffmpeg version n4.1.3 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 8.2.1 (GCC) 20181127
    Untuk distro lain,kalian bisa boleh cari di google :) jika yang di atas salah, berkomentar.
    Setelah kalian menginstall FFmpeg dan mengecek versi dari FFmpeg, ini adalah daftar yang akan menampilkan informasi mengenai fitur FFmpeg:
Nix@Localhost$ ffmpeg -h
-L                  show license.
-h topic            show help.
-? topic            show help.
-help topic         show help.
--help topic        show help.
-version            show version.
-buildconf          show build configuration.
-formats            show available formats.
-muxers             show available muxers.
-demuxers           show available demuxers.
-devices              show available devices.
-codecs               show available codecs.
-decoders           show available decoders.
-encoders           show available encoders.
-bsfs                   show available bit stream filters.
-protocols           show available protocols.
-filters                  show available filters.
-pix_fmts               show available pixel formats.
-layouts                show standard channel layouts.
-sample_fmts        show available audio sample formats.
-colors                  show available color names.
-sources device     list sources of the input device.
-sinks device         list sinks of the output device.
-hwaccels             show available HW acceleration methods.
    Kalian bisa cek satu-satu,terlalu banyak jika dipost.Jadi sekarang kita akan contohkan penggunaan FFmpeg.
Mengambil Screenshot Dalam Video.
Nix@Localhost$ ffmpeg -ss 03:41:21 -i Vide0.mp4 -vframes 1 gambar.jpg
Contoh penggunaan
-ss                     Durasi keberapa untuk diambil Screenshot.
-i                       File Video yang akan diambil Screenshot.
gambar.jpg       Output gambar,Output bisa berupa png atau jpg.
-vframes           Hanya menangani satu video.
Mengambil Gambar Dalam Album Musik.
Nix@localhost$ ffmpeg -i Musik.mp3 gambar.jpg
Convert FLAC Ke MP3.
Nix@Localhost$ ffmpeg -i Audio.flac -ab 320k Output.mp3
-ab       Kualitas Audio,mp3 kebanyakan 320K
Convert MKV ke MP4.
Nix@Localhost$ ffmpeg -i Video.mkv -vcodec copy Output.mp4
Cut Video.
Nix@Localhost$ ffmpeg -ss 01:30:34 -i Video.mp4 -t 300 -vcodec copy Output.mp4

-t              Berapa detik video yang akan dicut.
-vcodec    Mengkopi video codec yang digunakan video sebelumnya.
Cut Audio
Nix@Localhost$ ffmpeg -ss 00:00:30 Audio.mp3 -t 60 -acodec copy Output.mp3

-acodec       Mengkopi audio codec yang digunakan audio sebelumnya.

    Nanti akan diupdate lagi, ini mungkin hanya sebagian saja. Oh iya, '-acodec' bisa diterapkan dalam video. Jangan lupa Subscribe untuk mendapatkan update.
Thanks Semuanya
Share this post to support
Facebook Twitter

1 comment: