Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FFmpeg] Add --enable-libpulse #1472

Merged
merged 6 commits into from
Mar 16, 2024
Merged

[FFmpeg] Add --enable-libpulse #1472

merged 6 commits into from
Mar 16, 2024

Conversation

Martmists-GH
Copy link
Contributor

Fixes #1471

@Martmists-GH Martmists-GH changed the title Add --enable-libpulse [FFmpeg] Add --enable-libpulse Feb 16, 2024
@Martmists-GH
Copy link
Contributor Author

Not sure why tests are failing, seems to be unrelated to my code.

@saudet How long does it usually take for PRs to get merged?

@saudet
Copy link
Member

saudet commented Feb 17, 2024

The builds are failing. That needs to be fixed

@Martmists-GH
Copy link
Contributor Author

I'm not sure how, it seems to be failing on packages and I didn't touch those

@saudet
Copy link
Member

saudet commented Feb 18, 2024

2024-02-16T14:50:25.4392008Z require_pkg_config libpulse libpulse pulse/pulseaudio.h pa_context_new
2024-02-16T14:50:25.4392242Z check_pkg_config libpulse libpulse pulse/pulseaudio.h pa_context_new
2024-02-16T14:50:25.4392495Z test_pkg_config libpulse libpulse pulse/pulseaudio.h pa_context_new
2024-02-16T14:50:25.4392652Z false --exists --print-errors libpulse
2024-02-16T14:50:25.4392825Z ERROR: libpulse not found using pkg-config
2024-02-16T14:50:25.4393082Z Makefile:186: /tests/Makefile: No such file or directory
2024-02-16T14:50:25.4393312Z make: *** No rule to make target '/tests/Makefile'.  Stop.

@streamingdv
Copy link
Contributor

@Martmists-GH just a hint, you enabled libpulse in ffmpeg so you must guarantee that the required libs and headers are available on all build systems (android, linux, mac, windows). This seems not to be the case so all ffmpeg builds are failing

@Martmists-GH
Copy link
Contributor Author

What should I do then? I can build ffmpeg just fine on my PC

@streamingdv
Copy link
Contributor

streamingdv commented Feb 19, 2024

As you can see the builds are failing clearly because of your changes (look at the answer of saudet). If you want to include a new feature like libpulse you must guarantee that the ffmpeg builds will pass for all available platforms, not just one. If it works on your PC the ffmpeg build is able to detect necessary dependencies and libs to build it with libpulse enabled but as you can see that's not the case for the build systems of javacpp-presets. In the .github/actions folder you have the individual setups for each build system (deploy-ubuntu, deploy-windows...) which you need to configure appropriately for building ffmpeg with libpulse support.

Edit: and you can test the whole build process yourself in your branch via the GitHub action scripts.

@Martmists-GH
Copy link
Contributor Author

Martmists-GH commented Mar 7, 2024

@streamingdv I'm not quite sure why this is failing, I installed libpulse-dev but pkg-config seems to still fail to find it? I'm not familiar with ubuntu but from I can gather online this should work

@streamingdv
Copy link
Contributor

streamingdv commented Mar 13, 2024

I don't know either but I made a similar pull request recently to enable vulkan for ffmpeg and I had to make sure the change works on all platforms. Only Android wasn't possible because of Google NDK limitations but you have to test it by yourself via the github actions in your fork. I was only trying to provide some general information about how pull requests work here :) Here was my pull request as a reference

https://github.com/bytedeco/javacpp-presets/pull/1460/files

The libpulse-dev package might not be available for linux arm and other systems so either you have to find a way to install the lib or if it's not possible then explain why. I do not see that you have modified the '.github/actions/deploy-ubuntu/action.yml' script but that might be needed in order to prepera the build system to have the necessary libraies available.

Edit: oh okay sorry I saw that you have edited the 'deploy-ubuntu/action.yml' but maybe that's not enough to make it work on all linux builds.

@saudet saudet merged commit c925682 into bytedeco:master Mar 16, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FFMpeg does not work with PulseAudio
3 participants