Jump to content


"Superlite" version of FFmpeg

  • Please log in to reply
1 reply to this topic

#1 seeteeyou


    Die Hard

  • Members
  • PipPipPip
  • 217 posts

Posted 08 September 2022 - 06:51 AM

Quite a few software players (e.g. JPLAY / foobar2000 / BubbleUPnP Server / Album Player etc.) might require FFmpeg as an option, usually it's meant for either decoding or transcoding purposes.


FYI - here's a "superlite" version of FFmpeg 4.4 (only lossless + lossy audio formats are supported) that could be found on GitHub










BTW, I just figured out how to build our own "superlite" version of FFmpeg 5.1 automatically by signing up for an account on GitHub




Once our account is ready to go, simply create a "fork" of the following repository here




After that, go to that "Actions" on our own newly created repository as follows




We'll be prompted to get "Actions" enabled and please go ahead to do so.




Edit that particular shell script called common.sh by changing the 3rd line from 4.4 to 5.1 accordingly









Get rid of the 35th line since that --disable-xvmc option ain't supported anymore







Finally don't forget to hit that Commit changes button in green color, then "GitHub Actions" will start building a copy of ffmpeg.exe and ffprobe.exe automatically.



Most likely we could wait 10 minutes or so, then go back to that "Actions" tab mentioned above and download the files (they're called "Artifacts" at the bottom of the page) that are freshly out of the oven.




Normally the size of ffmpeg.exe is HUGE (i.e. well over 100MB) since it's supposed to support tons of video formats etc.



   Date      Time    Attr         Size Name
------------------- ----- ------------ ------------------------
2022-09-01 09:10:44 ....A    122888704 ffmpeg-5.1.1-full_build/bin/ffmpeg.exe
2022-09-01 09:10:45 ....A    122792448 ffmpeg-5.1.1-full_build/bin/ffprobe.exe

OTOH, we could build our own "superlite" version for free and it's only less than 3MB a piece

   Date      Time    Attr         Size Name
------------------- ----- ------------ ------------------------
2022-08-06 08:43:32 ....A      2818048 ffmpeg-4.4-audio-x86_64-w64-mingw32/bin/ffmpeg.exe
2022-08-06 08:43:32 ....A      2738688 ffmpeg-4.4-audio-x86_64-w64-mingw32/bin/ffprobe.exe
2022-09-08 05:56:58 ....A      2813440 ffmpeg-5.1-audio-x86_64-w64-mingw32/bin/ffmpeg.exe
2022-09-08 05:56:58 ....A      2735104 ffmpeg-5.1-audio-x86_64-w64-mingw32/bin/ffprobe.exe



Obviously we could also get rid of any lossy audio formats that we don't even need, take a look at that common.sh file and we'll find out what else could be removed




Official list of all options




I guess that might sound even better than?

  • aircondition, gaugsgamsaf and keith_correa like this

#2 Marcin_gps


    JPLAY & JCAT Founder

  • Administrators
  • 4,036 posts

Posted 08 September 2022 - 09:04 AM

JPLAY already uses minimal ffmpeg compilation

  • blawre likes this

Follow my hi-fi journey on YouTube

JPLAY FEMTO: a complete network music software player for the most demanding audiophile.

Want to squeeze more from your PC-audio? Hear the difference with JCAT
Join Computer Audio Enthusiasts group on facebook

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users