You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have example how to do something with FFMPEG and SFML - how to play almost any audio/video. I have code which is decoding audio/video file with ffmpeg to array then the code is sending the array to SFML which is playing the music.
I want to show to students really simple code, which does not require knowledge about audio in programming, that is why I want to change my code from using ffmpeg directly to use AVcpp.
./vcpkg/vcpkg install avcpp
Then it is installing * ffmpeg[avcodec,avdevice,avfilter,avformat,core,gpl,postproc,swresample,swscale]:[email protected]#2, and one of them is ffmpeg[gpl]. So avcpp when installing with VCPKG is having licence GPL (as I understand licenses).
So I'm suggesting to have more options of avcpp in vcpkg eg. avcpp[with-gpl] and avcpp[no-gpl]
PS: I'm creating article for site cpp0x.pl (article in Polish) where I'm trying to find IMO best way how to play music from C++ for programmers who don't know much about playing musics, codecs, etc. (article mostly for students). Can I paste Your code in the article?
So I'm suggesting to have more options of avcpp in vcpkg eg. avcpp[with-gpl] and avcpp[no-gpl]
vcpkg support was not introduced by me. I have no time to dive deeply into details of the vcpkg work and ports Features supports (and its transitivity).
Can I paste Your code in the article?
Sure! I suggest only remove debug output just to reduce lines of code.
I have example how to do something with FFMPEG and SFML - how to play almost any audio/video. I have code which is decoding audio/video file with ffmpeg to array then the code is sending the array to SFML which is playing the music.
I want to show to students really simple code, which does not require knowledge about audio in programming, that is why I want to change my code from using ffmpeg directly to use AVcpp.
I found example: https://github.com/h4tr3d/avcpp/blob/master/example/api2-samples/api2-decode-audio.cpp but I can't adapt its to work with my code.
Here is code which is playing music with ffmpeg + SFML:
I know that SFML can play few audio formats, but I want to play various formats. Just SFML is IMO easiest code to play audio file:
Fastest way to install with vcpkg
Then sample CMakeLists.txt:
As I know to install avcpp with vcpkg we need just:
vcpkg install avcpp
but probably You have better way to install the library:D.
BTW. Really good job with the library avcpp. I'd love to use its, but I need help.
The text was updated successfully, but these errors were encountered: