Replies: 1 comment 1 reply
-
Would you mind sharing the command(s) you used to link your Go program to ffmpeg? That could be an interesting section to add in the README 👍
Did you try to remove
I won't have enough time to spend on this time-consuming issue in the short term but I'm really interested in your conclusions. My guess is that even if you use a portion of |
Beta Was this translation helpful? Give feedback.
-
For various reasons, I started to explore more possibilities. After statically linking a Go program to FFmpeg, it ballooned to 120MB in size. Therefore, I wanted to use the rich customizable options of FFmpeg's
./configure
to disable the compilation of some components.Based on the components currently making up the pkgconfig:
I attempted to exclude libraries unrelated to these:
However, I encountered a compilation error:
cannot find '-lswscale'
. So, I removed--disable-swscale
from the compile script and tried again. This time, the error was:cannot find '-lswresample'
.These are all my attempts at trimming FFmpeg. Through these efforts, I've found it challenging to define the scope of trimming for the FFmpeg libraries.
With this context, I pose the question:
Can anyone help explore the minimal FFmpeg trimming that would still allow
go-astiav
to function properly?Beta Was this translation helpful? Give feedback.
All reactions