Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved / workaround] use different ffmpeg binary for mpv
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
FilthyPitDog
Apprentice
Apprentice


Joined: 12 Jan 2021
Posts: 186
Location: South Pacific

PostPosted: Tue Oct 04, 2022 3:56 am    Post subject: [solved / workaround] use different ffmpeg binary for mpv Reply with quote

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
View user's profile Send private message
Banana
Veteran
Veteran


Joined: 21 May 2004
Posts: 1362
Location: Germany

PostPosted: Tue Oct 04, 2022 8:40 am    Post subject: Reply with quote

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
_________________
My personal space
My delta-labs.org snippets do expire

PFL - Portage file list - find which package a file or command belongs to.
Back to top
View user's profile Send private message
FilthyPitDog
Apprentice
Apprentice


Joined: 12 Jan 2021
Posts: 186
Location: South Pacific

PostPosted: Tue Oct 04, 2022 8:56 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum