Jump to content


Photo

"Superlite" version of FFmpeg


  • Please log in to reply
1 reply to this topic

#1 seeteeyou

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

 

https://nightly.link...dows-x86_64.zip

 

Source

 

https://github.com/C...runs/2808280906

 

 

 

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

 

https://github.com/signup

 

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

 

https://github.com/C...mpeg-build/fork

 

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

 

fzHbgz7.png

 

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

 

https://github.com/C...er/common.sh#L3

(OLD)

FFMPEG_VERSION=4.4

(NEW)

FFMPEG_VERSION=5.1

 

 

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

 

https://github.com/C...r/common.sh#L35

(OLD)

    --disable-nvenc
    --disable-xvmc
    --disable-videotoolbox

(NEW)

    --disable-nvenc
    --disable-videotoolbox

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.

 

PlehJ2z.png

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.

 

https://www.videohel...software/ffmpeg

   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

 

https://github.com/C...aster/common.sh

 

Official list of all options

 

https://github.com/F...aster/configure

 

I guess that might sound even better than?


  • aircondition, gaugsgamsaf and keith_correa like this

#2 Marcin_gps

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