[Ffmpeg-devel-irc] ffmpeg.log.20190401

burek burek021 at gmail.com
Tue Apr 2 03:05:02 EEST 2019


[01:41:15 CEST] <tomf> just stopped by to thank you for making FFMPEG! its amazing! :)
[01:44:05 CEST] <hanetzer> yep, sure is :D
[01:44:21 CEST] <hanetzer> I ran into an ipcamera which runs ffmpeg as a webassembly library/something
[01:44:26 CEST] Action: hanetzer is not hip to webdev stuff
[02:25:14 CEST] <Atlenohen> Hello
[02:26:03 CEST] <Atlenohen> I'm trying to extract N frames per second for the enitire video, but the old commands don't work anymore, r 1 only ouptput 1 frame and can't do the rest
[02:27:23 CEST] <Atlenohen> Use '-frames:v 1' for a single image, or '-update' option, or use a pattern such as %03d within the filename.
[02:27:23 CEST] <Atlenohen> av_interleaved_write_frame(): Invalid argument
[02:32:27 CEST] <faLUCE> Atlenohen: paste the command
[02:35:27 CEST] <Atlenohen> faLUCE: I'm pretty sure it's quite old, ffmpeg -loglevel verbose -i "Temp3.mp4" -r 1 %03d.bmp
[02:38:55 CEST] <Atlenohen> Could not get frame filename number 2 from pattern 'd.bmp'.
[02:41:29 CEST] <faLUCE> Atlenohen: which version are you using?
[02:41:47 CEST] <Atlenohen> not more than a few weeks old
[02:42:43 CEST] <Atlenohen> ffmpeg version N-93276-g3b23eb283a Copyright (c) 2000-2019 the FFmpeg developers
[02:42:43 CEST] <Atlenohen> built with gcc 8.2.1 (GCC) 20190212
[02:42:53 CEST] <Atlenohen> win64, zeranoe
[02:43:09 CEST] <faLUCE> Atlenohen: it works for me
[02:43:36 CEST] <faLUCE> Atlenohen: what if you use %03d.jpg   ?
[02:45:00 CEST] <faLUCE> Atlenohen: wait
[02:45:04 CEST] <Atlenohen> nope
[02:45:06 CEST] <faLUCE> I got you error
[02:45:15 CEST] <Atlenohen> video is 30000/1001 fps
[02:45:17 CEST] <faLUCE> you have to use ZERO, not "o"
[02:45:30 CEST] <Atlenohen> it is a zero
[02:45:30 CEST] <faLUCE> %03d.bmp
[02:46:02 CEST] <faLUCE> and what if you add quotes?
[02:46:23 CEST] <Atlenohen> Yes I tried many combinations nonthing worked
[02:46:31 CEST] <faLUCE> "%03d.bmp"
[02:47:14 CEST] <faLUCE> but how do you invoke ffmpeg?
[02:47:35 CEST] <faLUCE> it's clearly a problem in the token %03d.bmp
[02:47:48 CEST] <faLUCE> your env sends bad stuff to ffmpeg
[02:48:02 CEST] <faLUCE> what do you use for invoking ffmpeg?
[02:48:08 CEST] <faLUCE> a script or a terminal?
[02:49:29 CEST] <Atlenohen> batch file
[02:49:39 CEST] <Atlenohen> oh right, i should try tpying in cmd manually
[02:49:44 CEST] <faLUCE> Atlenohen: then this is the problem
[02:50:04 CEST] <Atlenohen> most tokens do work in batches tho
[02:50:13 CEST] <faLUCE> surely you won't have manually
[02:50:14 CEST] <Atlenohen> but sometimes they don't, yeah it happened before
[02:51:02 CEST] <faLUCE> surely you won't have that problem if you invoke ffmpeg manually
[02:51:54 CEST] <Atlenohen> oh yeah, i have ffmpeg in environmental variable, so ffmpeg.exe isn't in the same path the video file is
[02:53:08 CEST] <Atlenohen> yeah it works now
[02:53:23 CEST] <faLUCE> good
[10:32:07 CEST] <thesero_> Hi. I am using ffmpeg 4.1.1 with frei0r plugins 1.6.1. Under Ubuntu 18.04 all goes right. When crosscompiling for Windows, using mingw-w64 7.3 posix, I have noticed that all plugins written in C work, while those writen in C++ don't. I tracked town the problem to vf_frei0r.c where dlopen in called with the path/name of the plugin dll, but the returned handle is null. Any idea why?
[10:34:07 CEST] <thesero_> Configuration: ./configure --arch=x86_64 --target-os=mingw32 --cross-prefix=x86_64-w64-mingw32- --disable-doc --enable-nonfree --enable-gpl --enable-version3 --enable-static --disable-shared --enable-frei0r --extra-cflags='-I../frei0r/include -I/usr/local/include' --extra-ldflags="-static -static-libstdc++ -static-libgcc -Wl,-Bstatic /usr/local/lib/libdl.a" --extra-libs='-lstdc++ /usr/local/lib/libdl.a'
[11:48:19 CEST] <BlackDalek> hi. Is it possible to use ffmpeg to add a timecode overlay onto en existing video file?
[13:15:51 CEST] <tommy``> there is some gui for ffmpeg to do fast things for lazy people? i want 25fps-y an mkv removing audio
[13:24:06 CEST] <HickHoward> are you in a hurry?
[13:24:19 CEST] <tommy``> no lazy
[13:54:48 CEST] <w1kl4s> tommy`` you can just write a script for that
[13:55:05 CEST] <w1kl4s> pretty sure it will be easier for you in the future
[13:55:15 CEST] <tommy``> w1kl4s you mean .bat?
[13:55:42 CEST] <w1kl4s> yeah for wangblows that would be the shell script extension
[13:56:18 CEST] <tommy``> wangblows?
[13:56:28 CEST] <w1kl4s> winshit
[13:56:46 CEST] <tommy``> mmh
[13:56:54 CEST] <tommy``> could you show me some examples?
[13:57:31 CEST] <w1kl4s> i have no idea how bat scripts work, i don't use windows
[13:57:35 CEST] <w1kl4s> google it
[13:57:39 CEST] <w1kl4s> shouldn't be hard
[16:03:02 CEST] <thesero_> Hi. I am using ffmpeg 4.1.1 with frei0r plugins 1.6.1. Under Ubuntu 18.04 all goes right. When crosscompiling for Windows, using mingw-w64 7.3 posix, I have noticed that all plugins written in C work, while those writen in C++ don't. I tracked town the problem to vf_frei0r.c where dlopen in called with the path/name of the plugin dll, but the returned handle is null. Any idea why?
[16:03:55 CEST] <bencoh> is everything crosscompiled with the same toolchain?
[16:04:11 CEST] <thesero_> yes
[16:05:07 CEST] <thesero_> someone tried today compiing on windows and send me the dlls. same issue
[16:06:27 CEST] <thesero_> build config is: ./configure --arch=x86_64 --target-os=mingw32 --cross-prefix=x86_64-w64-mingw32- --disable-doc --enable-nonfree --enable-gpl --enable-version3 --enable-static --disable-shared --enable-frei0r --extra-cflags='-I../frei0r/include -I/usr/local/include' --extra-ldflags='-static -static-libstdc++ -static-libgcc' --extra-libs='-lstdc++ /usr/local/lib/libdl.a'
[16:08:34 CEST] <BtbN> Using your systems libdl.a, which is in /usr/local even, seems wrong for cross compiling to Windows.
[16:11:03 CEST] <thesero_> sorry that is in fact link to libdll.dll.a
[16:11:23 CEST] <BtbN> And what and why is that?
[16:11:51 CEST] <thesero_> because in ffmpeg configure ldl is required for building with --enable-frei0r
[16:12:27 CEST] <thesero_> for manipulating dynamic library
[16:12:40 CEST] <thesero_> dlopen/dlclose etc
[16:13:17 CEST] <thesero_> basically the vf_frei0r in ffmpeg takes the plugin name as argument and then loads it's library dynamically
[16:13:45 CEST] <thesero_> and it works
[16:13:47 CEST] <JEEB> are the frei0r windows plugins built with MSVC or mingw-w64?
[16:13:58 CEST] <JEEB> the C++ ones specifically since you mentioned they don't work
[16:14:00 CEST] <thesero_> all mingw-w64
[16:14:11 CEST] <JEEB> ok, so in theory the C++ ABI should work
[16:14:18 CEST] <JEEB> no idea what the ldl.a wrapper is though, unfortunately
[16:14:20 CEST] <thesero_> well yes
[16:14:29 CEST] <JEEB> if it comes from mingw-w64 or where
[16:14:46 CEST] <BtbN> ffmpeg has its own little wrapper to offer the dlopen() API on Windows
[16:14:58 CEST] <BtbN> using a library for that seems highly wrong and is probably what's breaking things.
[16:15:18 CEST] <thesero_> oh, did not know... thhe complation was crashing without libdl
[16:15:50 CEST] <BtbN> http://git.videolan.org/?p=ffmpeg.git;a=blob;f=compat/w32dlfcn.h;h=c83bdc933307be8c3546da1c34909026e39b2b1a;hb=HEAD
[16:16:47 CEST] <thesero_> oh, but then how would this resolve in config? "frei0r_filter_deps="frei0r libdl""
[16:17:06 CEST] <BtbN> That's wrong, it should use the ldl variable
[16:17:19 CEST] <BtbN> And the code in that filter is also wrong, it directly includes dlfcn
[16:17:37 CEST] <thesero_> well I saw this
[16:17:39 CEST] <JEEB> tl;dr the filter was not reviewed enough
[16:17:49 CEST] <JEEB> (nobody cared enough)
[16:17:53 CEST] <thesero_> ok, however first time I included dlfcn directly
[16:18:03 CEST] <JEEB> which is not surprising, frei0r is pretty minor
[16:18:09 CEST] <JEEB> (not that it's a reason of course)
[16:18:09 CEST] <BtbN> And it seems to have a hardcoded list of paths, which are all Linux-Only, where it searches for the library.
[16:18:13 CEST] <BtbN> http://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavfilter/vf_frei0r.c;h=c775ed1d99620a1afc1d7cea79fccaf9ab359327;hb=HEAD#l194
[16:18:20 CEST] <thesero_> I know
[16:18:24 CEST] <thesero_> saw the code
[16:18:31 CEST] <thesero_> but got over that
[16:18:46 CEST] <thesero_> except for C++ dll stuff
[16:19:08 CEST] <BtbN> C++ DLL stuff?
[16:19:28 CEST] <thesero_> I mean dlls coming from C++ classes
[16:19:35 CEST] <thesero_> that would not load in ffmpeg
[16:19:49 CEST] <thesero_> I mean in vvf_frei0r
[16:19:51 CEST] <BtbN> The DLL has to offer a defined API, which is a C API. Doesn't matter if it's written in C++ or C
[16:20:10 CEST] <thesero_> it is, and also exported
[16:20:22 CEST] <BtbN> That's all there has to be
[16:20:34 CEST] <BtbN> it's a dll, there is no reason to also make ffmpeg link anything extra
[16:23:42 CEST] <thesero_> I have added some logs in the filter's code (vf_frei0r.c) and it seems that the handle to these kinds of dll is null after calling dlopen.
[16:24:11 CEST] <thesero_>  *handle_ptr = dlopen(path, RTLD_NOW|RTLD_LOCAL);
[16:25:06 CEST] <thesero_> but I shall try with the ffmpeg's dl api
[16:25:13 CEST] <thesero_> and see if it works
[16:52:56 CEST] <tommy``> there is some ffmpeg plugin for adobe audition 3.0?
[17:10:49 CEST] <zumba_ad_> I'm on mac and I installed ffmpeg using brew. I'd like to try stabilizing a video. When I ran it, I got this error message `[AVFilterGraph @ 0x7fabee18d580] No such filter: 'vidstabdetect'`
[17:11:18 CEST] <JEEB> yours was built without that filter then
[17:27:05 CEST] <zumba_ad_> Yup, I was hoping if someone here knows how to add that filter using brew. I can install ffmpeg from source but was hoping if it can be done quickly with brew
[17:30:15 CEST] <zumba_ad_> https://gist.github.com/maxogden/43219d6dcb9006042849
[17:30:18 CEST] <zumba_ad_> uninstall now
[17:34:19 CEST] <zumba_ad_> didn't work, parameter passed was invalid
[17:51:03 CEST] <zumba_ad_> I can't use brew since `brew info ffmpeg` showed it does not have library anymore. I'll be installing from source. Any link that I should follow? I remember using a configure script and it had something to do with gpl or something
[17:51:16 CEST] <zumba_ad_> it's been a while and I couldn't remember exactly what it was
[17:52:49 CEST] <zumba_ad_> found it - `--enable-nonfree && \`
[18:16:56 CEST] <faLUCE> hello retal ;-)
[00:00:00 CEST] --- Tue Apr  2 2019


More information about the Ffmpeg-devel-irc mailing list