Linux Programmer

리눅스용 멀티미디어 프로그램 - 유튜브 플레이어, 다운로더 본문

컴퓨터 관련/리눅스 데스크탑

리눅스용 멀티미디어 프로그램 - 유튜브 플레이어, 다운로더

sunyzero 2024. 7. 23. 22:20

리눅스에서 주로 사용하는 멀티미디어 프로그램으로는 다음과 같은 것들이 있다. (주로 본인이 사용하는 것 위주이므로 다른 사람들과는 목록이 다를 수 있다)

음악 audacious = 음악 플레이어 https://sunyzero.tistory.com/297
영상 celluloid = mpv의 프론트 엔드
mpv = 가장 많이 사용하는 영상 플레이어 https://sunyzero.tistory.com/255
totem = mpv 대신에 사용하기도 한다.
freetube = 유튜브 플레이어 (웹 페이지가 아닌 단독 플레이어로 좀 가볍고, 웹 브라우저의 영향을 받지 않는다)
다운로더 clipgrab = youtube, vimeo 같은 동영상 플랫폼에서 다운로드 한다
youtube-dl = CLI 명령어로 유튜브 다운로드 하는 프로그램
video-downloader = 유튜브 다운로드 프로그램
기타 playerctl = 동영상 제어 프로그램 (명령행에서 제어할 때 사용)
totem-video-thumbnailer = 비디오 파일에서 섬네일 추출하는 프로그램

audacious나 mpv는 이미 다른 글에서 다뤘으므로 스킵하고, 몇몇 주요한 프로그램만 살펴보도록 하자.

 

1. FreeTube (Win/Mac 지원 가능)

FreeTube의 장점은 독립적인 앱이라 웹 브라우저 설정에 영향받지 않는 것이다. 웹 브라우저의 가속 설정이나 메모리 부족으로 죽을일도 없다. 실제로도 가볍다는 장점도 있다. 또한 윈도10/윈도11/Mac도 지원이 가능하다. 리눅스가 아닌 경우라면 공식 사이트에서 받으면 된다.

Linux에서 FreeTube 설치는 flatpak으로 진행한다. 당연히 flatpak이므로 Fedora 뿐만 아니라 다른 리눅스에서도 동일한 명령어로 설치할 수 있다.

설치는 아래와 같이 명령하는데, 만일 sudo 권한이 없다면 그냥 root로 유저를 변경한 다음에 설치한다. 하지만 설치 완료 후 실행은 일반 유저로 한다.

$ sudo flatpak search freetube
Name          Description                                 Application ID               Version          Branch      Remotes
FreeTube      An Open Source YouTube app for privacy      io.freetubeapp.FreeTube      0.21.1 Beta      stable      flathub

위 검색된 결과에서 Application ID를 찾아서 설치한다.

$ sudo flatpak install io.freetubeapp.FreeTube
Looking for matches…
...생략...
        ID                               Branch          Op          Remote           Download
 1. [✓] io.freetubeapp.FreeTube          stable          i           flathub          1.0 kB / 114.8 MB

Installation complete.


$ flatpak list
Name                                Application ID                          Version        Branch      Installation
Extension Manager                   com.mattjakeman.ExtensionManager        0.5.1          stable      system
FreeTube                            io.freetubeapp.FreeTube                 0.21.1 Beta    stable      system
Paper Clip                          io.github.diegoivan.pdf_metadata_editor 5.0            stable      system
Inspector                           io.github.nokse22.inspector             0.2.0          stable      system
Mission Center                      io.missioncenter.MissionCenter          0.5.2          stable      system
Freedesktop Platform                org.freedesktop.Platform                freedesktop-sd 23.08       system
Mesa                                org.freedesktop.Platform.GL.default     24.1.3         23.08       system
Mesa (Extra)                        org.freedesktop.Platform.GL.default     24.1.3         23.08-extra system
openh264                            org.freedesktop.Platform.openh264       2.1.0          2.2.0       system
openh264                            org.freedesktop.Platform.openh264       2.4.1          2.4.1       system
Gaphor                              org.gaphor.Gaphor                       2.26.0         stable      system
GNOME Application Platform version… org.gnome.Platform                                     46          system

 

설치 후 실행은 Super키(윈도우키)를 눌러서 검색에서 freetube를 타이핑 실행하거나, 터미널에서 flatpak run io.freetubeapp.FreeTube 로 실행해도 된다.

freetube main

FreeTube 사용시 유튜브 로그인을 하면 자신의 subscriptions 목록을 다 볼 수 있다. 물론 그냥 유튜브 영상 주소를 직접 넣거나 검색해도 된다.

 

2. ClipGrab (Win/Mac 지원 가능)

유튜브나 vimeo같은 곳의 영상을 로컬에 저장해서 안정적으로 플레이 할 때 사용한다. Fedora에서는 간단하게 dnf로 설치한다.

$ sudo dnf -y install clipgrab

개인적으로 Clipgrab의 속도가 빨라서 종종 사용하는 편이다. 참고로 ClipGrab은 윈도10, 윈도11, Mac도 지원한다. 설치는 검색해보면 공식 다운로드 링크를 볼 수 있을 것이다. (이상한 곳에서 다운로드 받으면 바이러스에 걸리므로 항상 오피셜 사이트인지 확인하고 받자. 이왕이면 좋은 프로그램을 만든 저작자에게 도네이션하면 좋을 듯 싶다.)

ClipGrab

 

3. video-downloader

유튜브 영상/음성을 로컬에 저장해서 안정적으로 플레이 할 때 사용한다. Fedora에서는 간단하게 dnf로 설치한다. (clipgrab쪽이 기능이 더 많으므로 되도록이면 clipgrab을 사용하자)

$ sudo dnf -y install video-downloader

설치 후 실행은 Super키를 눌러 검색에서 video 혹은 비디오 정도만 쳐도 아이콘이 보이므로 실행하면 된다. 아니면 터미널에서 video-downloader를 쳐서 실행한다.

video-downloader

video-downloader의 사용법은 너무 간단하므로 그냥 실행해서 이것저것 해보면 될 것이다.

 

4. playerctl

외부에서 명령으로 음악, 영상 플레이어를 제어할 때 사용한다. 예를 들어 5초 뒤로 가게 하려면 아래와 같이 명령한다.

$ playerctl position 5+

이외에 다양한 기능이 있으므로 help를 참고하기 바란다.

$ playerctl -h
Usage:
  playerctl [OPTION…] COMMAND - Controller for media players

  For players supporting the MPRIS D-Bus specification

Help Options:
  -h, --help                     Show help options

Application Options:
  -p, --player=NAME              A comma separated list of names of players to control (default: the first available player)
  -a, --all-players              Select all available players to be controlled
  -i, --ignore-player=IGNORE     A comma separated list of names of players to ignore.
  -f, --format                   A format string for printing properties and metadata
  -F, --follow                   Block and append the query to output when it changes for the most recently updated player.
  -l, --list-all                 List the names of running players that can be controlled
  -s, --no-messages              Suppress diagnostic messages
  -v, --version                  Print version information

Available Commands:
  play                    Command the player to play
  pause                   Command the player to pause
  play-pause              Command the player to toggle between play/pause
  stop                    Command the player to stop
  next                    Command the player to skip to the next track
  previous                Command the player to skip to the previous track
  position [OFFSET][+/-]  Command the player to go to the position or seek forward/backward OFFSET in seconds
  volume [LEVEL][+/-]     Print or set the volume to LEVEL from 0.0 to 1.0
  status                  Get the play status of the player
  metadata [KEY...]       Print metadata information for the current track. If KEY is passed,
                          print only those values. KEY may be artist,title, album, or any key found in the metadata.
  open [URI]              Command for the player to open given URI.
                          URI can be either file path or remote URL.
  loop [STATUS]           Print or set the loop status.
                          Can be "None", "Track", or "Playlist".
  shuffle [STATUS]        Print or set the shuffle status.
                          Can be "On", "Off", or "Toggle".

 

참고

FreeTube official site = https://freetubeapp.io/

ClipGrab official site = http://clipgrab.de/en

video-downloader official site = https://github.com/Unrud/video-downloader

 

 

반응형
Comments