[FFmpeg-user] How to compile static FFmpeg to a .so file?

Ricardo Zacarias rickyz at streamingglobal.com
Tue Jan 31 19:40:44 EET 2023


Sorry if the previous questions have not been clear. I have been using the compilation and installation steps for FFmpeg found here: https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu. At the end of the process,
when I run the 'make install' command, an executable named 'ffmpeg' gets placed in the /bin folder. I do see the .so files in the libs folder that you mentioned, but I was wanting to know if there is a way for the executable placed in the /bin folder to instead be a .so file. If not, I want to find a way to make a .so file that will allow me to run ffmpeg similar to that executable.

Also, I'm really sorry, but what do you mean by top-posting? I have just been using Reply in Microsoft Exchange. The FFmpeg website says something about a link under the email subject, but I have not been able to find that link.
________________________________
From: ffmpeg-user <ffmpeg-user-bounces at ffmpeg.org> on behalf of Reindl Harald <h.reindl at thelounge.net>
Sent: Tuesday, January 31, 2023 10:26:59 AM
To: ffmpeg-user at ffmpeg.org
Subject: Re: [FFmpeg-user] How to compile static FFmpeg to a .so file?

for the sake of god stop top-posting

Am 31.01.23 um 16:06 schrieb Ricardo Zacarias:
> Adding the '--disable-programs' option caused the build to not create an executable, but there is still no FFmpeg.so file being created in its place. Or is this something that I would have to manually create?

what is "it's place"

if you don't understand the file-listing of my ffmpeg-libs package i
can't help you

there are plenty of so-files

no idea why you want to mimic Windows - Linux isn't a dumb OS looking
for libraries at random places

> From: ffmpeg-user <ffmpeg-user-bounces at ffmpeg.org> on behalf of Reindl Harald <h.reindl at thelounge.net>
> Sent: Tuesday, January 31, 2023 9:29:49 AM
> To: FFmpeg user questions
> Subject: Re: [FFmpeg-user] How to compile static FFmpeg to a .so file?
>
> Am 31.01.23 um 15:21 schrieb Ricardo Zacarias:
>> Got it. So not static. So if I wanted to have it dynamic, to produce a .so file, I would need '--disable-static' and '--enable-shared' instead. Anything else you could recommend? I replaced those options, but the resulting FFmpeg build is still an executable and is not in .so format.
>
> ./configure --help | grep disable-programs
> --disable-programs  do not build command line programs
>
> ffmpeg-libs               /usr/lib64/libavcodec.so.59
> ffmpeg-libs               /usr/lib64/libavcodec.so.59.18.100
> ffmpeg-libs               /usr/lib64/libavdevice.so.59
> ffmpeg-libs               /usr/lib64/libavdevice.so.59.4.100
> ffmpeg-libs               /usr/lib64/libavfilter.so.8
> ffmpeg-libs               /usr/lib64/libavfilter.so.8.24.100
> ffmpeg-libs               /usr/lib64/libavformat.so.59
> ffmpeg-libs               /usr/lib64/libavformat.so.59.16.100
> ffmpeg-libs               /usr/lib64/libavutil.so.57
> ffmpeg-libs               /usr/lib64/libavutil.so.57.17.100
> ffmpeg-libs               /usr/lib64/libpostproc.so.56
> ffmpeg-libs               /usr/lib64/libpostproc.so.56.3.100
> ffmpeg-libs               /usr/lib64/libswresample.so.4
> ffmpeg-libs               /usr/lib64/libswresample.so.4.3.100
> ffmpeg-libs               /usr/lib64/libswscale.so.6
> ffmpeg-libs               /usr/lib64/libswscale.so.6.4.100
>
>> ________________________________
>> From: ffmpeg-user <ffmpeg-user-bounces at ffmpeg.org> on behalf of Mark Harfouche <mark.harfouche at gmail.com>
>> Sent: Tuesday, January 31, 2023 5:27:15 AM
>> To: FFmpeg user questions
>> Subject: Re: [FFmpeg-user] How to compile static FFmpeg to a .so file?
>>
>> On linux. static = .a, dynamic = .so
>>
>> On Mon, Jan 30, 2023 at 1:22 PM Ricardo Zacarias <rickyz at streamingglobal.com>
>> wrote:
>>
>>> I am trying to build a static ffmpeg to produce a .so file.
>>> I was able to build FFmpeg into a Windows dll using this configuration.
>>>
>>> ./configure --extra-ldexeflags='-dll' --target-os=win64 --arch=x86_64
>>> --toolchain=msvc --prefix=/c/ffmpeg/out --enable-static -–disabled-shared
>>> --enable-gpl --enable-version3 --disable-ffprobe --disable-ffplay
>>> --disable-doc --enable-libx264
>>> --extra-ldflags="-LIBPATH:/c/ffmpeg/external/x264/lib/"
>>> --extra-cflags="-I/c/ffmpeg/external/x264/include/"
>>>
>>> I would like to know if there is a way to do the equivalent on Ubuntu
>>> 22.04 that will result in a .so file
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list