Re: [FFmpeg-user] Need to reduce size of ffmpeg.exe for version 5.0.1
On Tue, Oct 4, 2022 at 9:04 AM Ferdi Scholten wrote: > > Hi Team, > > We are working on a prototype which converts RTSP streams to HLS using > > ffmpeg transcoder. > > > > We are using below ffmpeg command to convert RTSP to HLS : > > > > cmd:- > > ffmpeg.exe -rtsp_transport tcp -re -i > > rtsp://:@172.31.67.223<mailto:root@172.31.67.223>:554/axis-media/media.amp?videocodec=h264 > > -c:v libx264 -crf 21 -preset veryfast -c:a aac -ac 2 -f hls -hls_flags > > delete_segments -hls_list_size 4 -hls_time 1 -g 5 -sc_threshold 0 > > -hls_playlist_type event > > C:\Users\Niagara4.13\tridium\stations\HLSTest\shared\vids\-514225936\stream.m3u8 > > > > > > We downloaded "ffmpeg.exe(5.0)" from > > https://www.videohelp.com/software/ffmpeg . We are also using FFmpeg 5.0.1 > > "Lorentz" (https://ffmpeg.org/download.html) libraries in our project. > > > > Can somebody help me answering below questions : > > > > 1. Can we reduce the size of ffmpeg.exe ? Any idea how can we create a > > smaller ffmpeg.exe which should be able to run only above command to > > convert RTSP to HLS? (as its size is 110 mb+ so it is difficult to ship it > > with our product). > Yes, compile it yourself with only the external libraries and features > you need. My version of 5.1 for my needs is 45 MB. > > 2. Is there a way to run above ffmpeg command using "dll files" or other > > alternative instead of using "ffmpeg.exe" > check out the documentation of the libraries and API here: > https://ffmpeg.org/documentation.html hello maybe this tutorial may also help you https://github.com/leandromoreira/ffmpeg-libav-tutorial regards Vincent Torri ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] builds for Windows
Hello On Wed, Sep 2, 2020 at 8:29 PM Michael Koch wrote: > > "ffmpeg.zeranoe.com will close on Sep 18, 2020, and all builds will be > removed." > > Any idea where we can get builds for Windows after this date? for the Enlightenment project, i have written a small tool to compile from source its dependencies, including ffmpeg. I provide no binaries, only a tool to compile ffmpeg and its dependencies note that the tool compile only shared libraries tell me if that interests you regards Vincent Torri ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Preparing to compile ffmpeg from git source -- stuck
On Mon, Apr 13, 2020 at 1:43 AM Carl Eugen Hoyos wrote: > > Am Mo., 13. Apr. 2020 um 01:33 Uhr schrieb Mark Filipak > : > > > > On 04/12/2020 07:24 PM, Carl Eugen Hoyos wrote: > > > Am Mo., 13. Apr. 2020 um 01:18 Uhr schrieb Mark Filipak > > > : > > > > > >> I'd like to give the path described by the ffmpeg docs a try. If that > > >> doesn't work, then I'll try your path. Okay? > > > > > > Obviously not. > > > > > > But otoh: What else should I have expected? > > > I don't know why it's *obviously not* okay to follow the path outlined > > in the ffmpeg docs, but so be it. > > > > I don't know what you mean by "What else should I have expected?" > > I suggested to use wsl because that is how I compile FFmpeg on Windows > and this works (surprisingly) fast and very similar to compiling on other > platforms. > Last time I tested msys, it was not fast, I don't know if this has changed. if you are talking about MSYS from the MinGW (dead) project, then yes, it's slow. MSYS2 is faster though > I consider installing wsl simple, last time I installed msys, it was less > simple, I don't know if this has changed. MSYS2 is simple to install, it uses a win32 port to install packages that is what I use to compile ffmpeg (among other libs). ffmpeg is also compiled and available with pacman : https://packages.msys2.org/package/mingw-w64-x86_64-ffmpeg > I suspect the "ffmpeg docs" (not sure what exactly you mean with it) were > written before wsl existed. > > But given our exchange so far, I wasn't extremely surprised that you > did not want to follow what I suggested. > > If you absolutely want to cross-compile from a Linux box for Windows, > this also works fine but I always only saw disadvantages. That is why > I suggested wsl. advantage : cross compiling on linux is a lot faster than compiling with MSYS2 regards Vincent Torri ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] cross compilation of ffmpeg, targetting WIndows: libbluray can not be found
On Sat, Jun 1, 2019 at 2:51 PM Carl Eugen Hoyos wrote: > > > looking at configure, it seems you are right, i need > > CROSS_PREFIX-pkg-config. > > The alternative should be to use --pkg-config=pkg-config i've tried before installing cross-prefixed pkg-config, and it also works thank you Vincent Torri ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] cross compilation of ffmpeg, targetting WIndows: libbluray can not be found
> > > > > > From looking at your configure output: > > > Is it possible that your are missing CROSS_PREFIX-pkg-config? > > > (I may be wrong) looking at configure, it seems you are right, i need CROSS_PREFIX-pkg-config. I have installed both 32 and 64 bits packages and configure passes > I guess PKG_CONFIG_LIBDIR can have the same effect. yes. It passes also with PKG_CONFIG_LIBDIR. thank you regards Vincent Torri ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] cross compilation of ffmpeg, targetting WIndows: libbluray can not be found
On Sat, Jun 1, 2019 at 8:12 AM Vincent Torri wrote: > > Hello > > On Fri, May 31, 2019 at 10:48 PM Carl Eugen Hoyos wrote: > > > > Am Fr., 31. Mai 2019 um 07:20 Uhr schrieb Vincent Torri > > : > > > > > ah, at least it seems that indeed pkg-config fails to find the pc file > > > > Then try to fix that first, there is a define magic that fixes it. > > > > From looking at your configure output: > > Is it possible that your are missing CROSS_PREFIX-pkg-config? > > (I may be wrong) > > there is x86_64-w64-mingw32-pkg-config.exe, but i'm on Linux... The > pkg-config binary that must be used is the one that is on the system > on which is cross-compile. > > > > Note that PKG_CONFIG_PATH is not set and i do instead (see > > > https://autotools.io/pkgconfig/cross-compiling.html section 4.4 at the > > > bottom) : > > > > FFmpeg does not use autotools, > > I know, but these environment variables are not specific to autotools. > See this link (i sould give it instead) : > > https://www.freedesktop.org/wiki/Software/pkg-config/CrossCompileProposal/ > > (see "Current Support" section) > > > if pkg-config does not work for you > > (it typically does not work for me here), > > it does work : > > PKG_CONFIG_PATH=$HOME/ewpi_64/lib/pkg-config --modversion libbluray > > returns 1.1.1 btw : PKG_CONFIG_LIBDIR=$HOME/ewpi_64/lib/pkg-config --modversion libbluray returns also 1.1.1 Vincent Torri ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] cross compilation of ffmpeg, targetting WIndows: libbluray can not be found
Hello On Fri, May 31, 2019 at 10:48 PM Carl Eugen Hoyos wrote: > > Am Fr., 31. Mai 2019 um 07:20 Uhr schrieb Vincent Torri > : > > > ah, at least it seems that indeed pkg-config fails to find the pc file > > Then try to fix that first, there is a define magic that fixes it. > > From looking at your configure output: > Is it possible that your are missing CROSS_PREFIX-pkg-config? > (I may be wrong) there is x86_64-w64-mingw32-pkg-config.exe, but i'm on Linux... The pkg-config binary that must be used is the one that is on the system on which is cross-compile. > > Note that PKG_CONFIG_PATH is not set and i do instead (see > > https://autotools.io/pkgconfig/cross-compiling.html section 4.4 at the > > bottom) : > > FFmpeg does not use autotools, I know, but these environment variables are not specific to autotools. See this link (i sould give it instead) : https://www.freedesktop.org/wiki/Software/pkg-config/CrossCompileProposal/ (see "Current Support" section) > if pkg-config does not work for you > (it typically does not work for me here), it does work : PKG_CONFIG_PATH=$HOME/ewpi_64/lib/pkg-config --modversion libbluray returns 1.1.1 maybe I will just use PKG_CONFIG_PATH set to only one value, the one for my cross-compiled libraries and see if configure is happy with it thank you Vincent Torri > you need to pass > --pkg-config=true to configure but in this case, you have to also > set the correct paths via --extra-*flags (this is expected and can > be avoided) and the right libraries via extra-libs (this is a trap from > the pkg-config fans), at least in some cases. > > Carl Eugen > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] cross compilation of ffmpeg, targetting WIndows: libbluray can not be found
On Wed, May 29, 2019 at 9:41 PM Moritz Barsnick wrote: > > On Wed, May 29, 2019 at 16:28:00 +0200, Vincent Torri wrote: > > > IMO, this indicates that libbluray.pc was not found. > > > > normally, when pkg-config fails, it displays a message, like : > > > > $ pkg-config --modversion foo > > Package foo was not found in the pkg-config search path. > > Perhaps you should add the directory containing `foo.pc' > > to the PKG_CONFIG_PATH environment variable > > No package 'foo' found > > > > if libbluray.pc is not found, is it normal that config.log has no such > > message ? > > You're right. > > What ffmpeg's configure does here is > test_cmd $pkg_config --exists --print-errors $pkg_version || return > which is basically > pkg-config --exists --print-errors libbluray > > After that succeeds, it determines the CFLAGS and LIBS (silently), and > then: > check_func_headers "$headers" "$funcs" $pkg_cflags $pkg_libs "$@" > which tries to compile and link a program with the given includes and > functions, in libbluray's case libbluray/bluray.h and bd_open(). But if > it did that, the log would say so, with something like: > test_ld cc > test_cc > BEGIN /tmp/ffconf.TaEECP0n/test.c > which it doesn't here. So the former apparently fails. ah, at least it seems that indeed pkg-config fails to find the pc file Note that PKG_CONFIG_PATH is not set and i do instead (see https://autotools.io/pkgconfig/cross-compiling.html section 4.4 at the bottom) : export PKG_CONFIG_DIR= export PKG_CONFIG_LIBDIR=$HOME/ffmpeg/lib/pkgconfig export PKG_CONFIG_SYSROOOT_DIR=$HOME/ffmpeg (it's in my ffmpeg.sh attached in my original mail) > I could tell easier if I was on your system. ;-) you can : just run ewpi :D but it is a bit long to get to ffmpeg. compilation thank you Vincent Torri ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] cross compilation of ffmpeg, targetting WIndows: libbluray can not be found
On Wed, May 29, 2019 at 2:29 PM Moritz Barsnick wrote: > > On Wed, May 29, 2019 at 12:08:27 +0200, Vincent Torri wrote: > > ERROR: libbluray not found using pkg-config > [config.log:] > > require_pkg_config libbluray libbluray libbluray/bluray.h bd_open > > check_pkg_config libbluray libbluray libbluray/bluray.h bd_open > > test_pkg_config libbluray libbluray libbluray/bluray.h bd_open > > false --exists --print-errors libbluray > > ERROR: libbluray not found using pkg-config > > IMO, this indicates that libbluray.pc was not found. normally, when pkg-config fails, it displays a message, like : $ pkg-config --modversion foo Package foo was not found in the pkg-config search path. Perhaps you should add the directory containing `foo.pc' to the PKG_CONFIG_PATH environment variable No package 'foo' found if libbluray.pc is not found, is it normal that config.log has no such message ? Vincent Torri ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] cross compilation of ffmpeg, targetting WIndows: libbluray can not be found
On Wed, May 29, 2019 at 2:29 PM Moritz Barsnick wrote: > > On Wed, May 29, 2019 at 12:08:27 +0200, Vincent Torri wrote: > > ERROR: libbluray not found using pkg-config > [config.log:] > > require_pkg_config libbluray libbluray libbluray/bluray.h bd_open > > check_pkg_config libbluray libbluray libbluray/bluray.h bd_open > > test_pkg_config libbluray libbluray libbluray/bluray.h bd_open > > false --exists --print-errors libbluray > > ERROR: libbluray not found using pkg-config > > IMO, this indicates that libbluray.pc was not found. Is it installed in > the same path as the other cross-compile capable libraries? Is it > installed in a MingW version? yes > > First I would like to know if I have launched configure with the > > correct options for cross compilation > > As far as I can tell from the logs, looks good so far. > > > --enable-gcrypt --enable-libbluray --enable-libfontconfig > > --enable-libfreetype --enable-libfribidi --enable-libgme > > --enable-libmp3lame --enable-libopenh264 --enable-libopenjpeg > > --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex > > --enable-libtheora --enable-libtls --enable-libvorbis --enable-libwebp > > --enable-libxml2 > > Do you really have all these libraries' development versions installed, > as MingW versions? Yes, and their dependencies. I have written a small program that automatically download, compile and install the sources of around 60 packages with mingw-w64. If you are interested, look at : https://github.com/vtorri/ewpi regards Vincent Torri ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] cross compilation of ffmpeg, targetting WIndows: libbluray can not be found
On Wed, May 29, 2019 at 12:08 PM Vincent Torri wrote: > > Hello > > I am trying to cross compile ffmpeg on Linux, targetting Windows. I > have cross-compied and installed libbluray (libraries, header files > and .pc files are correctly installed) > > I use 2 shell scripts that i have concatenated in one attached file > (ffmpeg.sh). Note how I set PKG_* environment variables in ffmpeg.sh. > They are the same for all the packages that I have installed. > > The ffmpeg configure script stops with the following message : > > ERROR: libbluray not found using pkg-config I would like to add that I tried ffmpeg 4.1.3 and git versions regards Vincent Torri ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".