Initial import

This commit is contained in:
Yaakov Selkowitz 2023-02-21 23:41:42 -05:00
commit 2c92efae2e
2 changed files with 98 additions and 0 deletions

28
container.yaml Normal file
View file

@ -0,0 +1,28 @@
compose:
modules:
- mpv:stable
flatpak:
id: io.mpv.Mpv
branch: stable
command: mpv
rename-appdata-file: mpv.metainfo.xml
rename-desktop-file: mpv.desktop
rename-icon: mpv
finish-args: |-
--device=all
--share=ipc
--share=network
--socket=fallback-x11
--socket=wayland
--socket=pulseaudio
--filesystem=/tmp:rw
--filesystem=host:ro
--filesystem=xdg-pictures:rw
--filesystem=xdg-videos:rw
--filesystem=xdg-config/mpv:create
--filesystem=xdg-run/pipewire-0:ro
--env=LC_NUMERIC=C
--own-name=org.mpris.MediaPlayer2.mpv.*
--talk-name=org.gnome.SessionManager
cleanup-commands: |
sed -i -e 's/io\.mpv\.mpv/io.mpv.Mpv/' /app/share/metainfo/mpv.metainfo.xml

70
mpv.yaml Normal file
View file

@ -0,0 +1,70 @@
---
document: modulemd
version: 2
data:
summary: Movie player playing most video formats and DVDs
description: >-
Mpv is a movie player based on MPlayer and mplayer2. It supports a wide variety
of video file formats, audio and video codecs, and subtitle types. Special input
URL types are available to read input from a variety of sources other than disk
files. Depending on platform, a variety of different video and audio output methods
are supported.
Mpv has an OpenGL, Vulkan, and D3D11 based video output that is capable of many
features loved by videophiles, such as video scaling with popular high quality
algorithms, color management, frame timing, interpolation, HDR, and more.
While mpv strives for minimalism and provides no real GUI, it has a small controller
on top of the video for basic control.
Mpv can leverage most hardware decoding APIs on all platforms. Hardware decoding
can be enabled at runtime on demand.
Powerful scripting capabilities can make the player do almost anything. There
is a large selection of user scripts on the wiki.
A straightforward C API was designed from the ground up to make mpv usable as
a library and facilitate easy integration into other applications.
license:
module:
- MIT
buildopts:
arches: [aarch64, x86_64]
dependencies:
- buildrequires:
flatpak-common: [f37]
flatpak-runtime: [f37]
platform: [f37]
requires:
flatpak-common: [f37]
flatpak-runtime: [f37]
platform: [f37]
profiles:
default:
rpms:
- mpv
- yt-dlp
components:
rpms:
compat-lua:
rationale: Runtime dependency
ref: f37
arches: [aarch64, x86_64]
libXpresent:
rationale: Runtime dependency
ref: f37
arches: [aarch64, x86_64]
mpv:
rationale: Application package
ref: f38
buildorder: 10
arches: [aarch64, x86_64]
uchardet:
rationale: Runtime dependency
ref: f37
arches: [aarch64, x86_64]
yt-dlp:
rationale: Runtime dependency
ref: f37
arches: [aarch64, x86_64]
...