Solved ffplay not installed with ffmpeg does it require sdl

When you install the ffmpeg package ffplay isnt installed

Looking at the ffmpeg freshports page there is a comment for ffplay
@comment bin/ffplay

I may be wrong but i think ffplay requires sdl which is off by default in the config options
SDL=off: Simple Direct Media Layer support

Can anyone confirm that to install ffplay that ffmpeg needs to be built with SDL=on

And which version of sdl should be installed sdl or sdl2

The reason i need to install ffplay is to test audio filters for recordings,
and use the ffplay ebu128 realtime graph

Bash:
ffplay -f lavfi -i "amovie=input.mp3,ebur128=video=1:meter=18 [out0][out1]"

I presume just installing sdl or sdl2 and then reinstalling ffmpeg wouldnt work

Would i be right thinking i would need to use poudriere to build ffmpeg with SDL=on to enable ffplay
I have already set up poudriere to build packages

Do i need to uninstall the current version of ffmpeg and all packages that depend on ffmpeg
then build and install a new ffmpeg package with poudriere with SDL=on

And then reinstall all the packages i uninstalled that require ffmpeg again

Or is there a easier way

Its a real shame ffplay isnt installed with ffmpeg as its very useful for testing audio and video filters

If building ffmpeg with poudriere is the only option to enable ffplay,
then i will do a full write up of the steps involved

If anyone could shed some light on how to get ffplay installed id be very gratefull

Cheers
 
Ok, I'll bite. 1 sentence per paragraph, no periods, no question marks. All followed very consistently. Wtf?

As for the question itself, look here and here.
 
Ok, I'll bite. 1 sentence per paragraph, no periods, no question marks. All followed very consistently. Wtf?

As for the question itself, look here and here.
I was in a rush before i had to pop out.

British comprehensive education in the 80s after all the Tory cuts,
we didnt do all that la-de-da stuff like spelling and punctuation.

I think i may have installed ffmpeg before installing a package that pulled in sdl2 as a dependency,
so that might be why i dont have ffplay installed, because i didnt have sdl2 installed when i installed ffmpeg.

Im pretty sure i had ffplay on a previous install of Freebsd,
ill try reinstalling ffmpeg and see what happens

Thanks for the links
 
I think i may have installed ffmpeg before installing a package that pulled in sdl2 as a dependency,
so that might be why i dont have ffplay installed, because i didnt have sdl2 installed when i installed ffmpeg.

No, it's not installed because it's not in the package. You need to build the ffmpeg port with the sdl option.
 
I bumped into this problem, too, as kdenlive misses ffplay as well. So thanks to this thread I had the solution immediately. I think the easiest way to fix this is by just recompiling multimedia/ffmpeg the following way:

cd /usr/ports/multimedia/ffmpeg
make config and there select the option "sdl"
make deinstall
make reinstall

That's it!
 
Code:
$ pkg info sdl2 | fgrep 'Flat size' | cut -d' ' -f9
7.45MiB
multimedia/ffmpeg is used for a huge amount of ports, either as build, lib or run dependency. Installing additional 7MiB could be regarded as excessive when it's not actual needed. But alas, in the year 2024, storage is cheap, or so they say. On the other side, SDL is a well regarded, unobtrusive, battle tested and widely used library. People doing anything with multimedia probably have it installed anyway as a dependency of other programs. IMHO, yes, it should be enabled by default.

But the right thing to do is to use subpackages, i.e. provide a seperate ffplay package which is build by the ffmpeg port. alpine linux is doing it that way. Is the subpackages framework for FreeBSD ports already useable or still in progress?

You could also chime in to PR 253545 and ask there.
 
Looking at the pkg plist in /usr/portts/multimedia/ffmpeg does show
%%SDL%%bin/ffplay

I have it, and installed ffmpeg from ports. I don't remember installing ffplay, I wonder if it was a dependency of something else I installed. But using pkg provides doesn't show me a package that I have installed which is supposed to provide it.

On the other hand I have various and sundry multimedia tools installed, so I assume (yeah, with all that implies), that one of them must have installed it.[/file]

*EDIT* It turns out that I don't have it. I thought I did, and feel as if I remember using it, but that may have been when my main disk died awhile ago, and out of laziness, I hadn't been backing up. So apologies, I was wrong, I also do not have ffplay.
 
Looking at the pkg plist in /usr/portts/multimedia/ffmpeg does show
%%SDL%%bin/ffplay

I have it, and installed ffmpeg from ports. I don't remember installing ffplay, I wonder if it was a dependency of something else I installed. But using pkg provides doesn't show me a package that I have installed which is supposed to provide it.

On the other hand I have various and sundry multimedia tools installed, so I assume (yeah, with all that implies), that one of them must have installed it.[/file]
I have ffmpeg but I don't have fplay:
1722554261716.png
 
Back
Top