View previous topic :: View next topic |
Author |
Message |
FilthyPitDog Apprentice
Joined: 12 Jan 2021 Posts: 186 Location: South Pacific
|
Posted: Tue Oct 04, 2022 3:56 am Post subject: [solved / workaround] use different ffmpeg binary for mpv |
|
|
Is there anyway I can emerge mpv and tell it what ffmpeg binary to use instead of the default system version located /usr/bin/ffmpeg I would like to use the git source install I have at /usr/local/bin/ffmpeg? Thanks
Last edited by FilthyPitDog on Tue Oct 04, 2022 8:57 am; edited 1 time in total |
|
Back to top |
|
|
Banana Veteran
Joined: 21 May 2004 Posts: 1362 Location: Germany
|
|
Back to top |
|
|
FilthyPitDog Apprentice
Joined: 12 Jan 2021 Posts: 186 Location: South Pacific
|
Posted: Tue Oct 04, 2022 8:56 am Post subject: |
|
|
Banana wrote: | Since mpv has a dependency to ffmpeg it builds against this version. So a runtime modification should not be possible. And I do not see any command params which could modify the path to ffmpeg |
Thanks, but I found another way https://github.com/mpv-player/mpv/issues/10402. Using "PKG_CONFIG_PATH" and point to top directory where ffmpeg you want to use is. Added a few flags and works great. In order to use vo=gpu-next you need libplacebo v4.202+ so I emerged media-libs/libplacebo:9999
Code: | PKG_CONFIG_PATH=/usr/local/lib/pkgconfig meson -Dwayland=disabled -Dshaderc=enabled -Dpipewire=enabled -Dvulkan=enabled -Dx11=enabled -Dlibplacebo=enabled build |
Code: | ❯ mpv -v
[cplayer] Command line options: '-v'
[cplayer] mpv 0.34.0-493-g98e6fb26a3 Copyright © 2000-2022 mpv/MPlayer/mplayer2 projects
[cplayer] built on Tue Oct 04 05:15:30 2022
[cplayer] FFmpeg library versions:
[cplayer] libavutil 57.38.100
[cplayer] libavcodec 59.49.100
[cplayer] libavformat 59.34.100
[cplayer] libswscale 6.8.112
[cplayer] libavfilter 8.49.100
[cplayer] libswresample 4.9.100
[cplayer] FFmpeg version: N-108469-gd09776d486 |
|
|
Back to top |
|
|
|