Can't use some frei0r effects on Windows (through FFmpeg)
Hi. I'm using FFmpeg with frei0r library enabled, and everything works just fine except several effects. I can't make Cartoon and Edgeglow effects to work. Lot of other works ok, except these two. I hit this issue only on Windows, everything is ok on OS X. There is some problem in my cartoon.dll and edgeglow.dll files — FFmpeg just don't see them in my FREI0R_PATH variable. I'll provide FFmpeg output for cartoon effect. As I can see FFmpeg looks for cartoon.dll in my FREI0R_PATH and can't see it there (but it's there). This problem happenes only with cartoon and edgeglow. All the rest frei0r effects which where compiled in the same way and are located in the same folder works as expected. Thanks for help. ----------------------- My FFmpeg command:
-v debug -i C:\path\to\input.mp4 -vf frei0r=filter_name=cartoon -pix_fmt yuva420p -y -codec:v libx264 -strict -2 C:\path\to\output.mp4
FFmpeg output:
ffmpeg version N-76262-g2ccc1b3 Copyright (c) 2000-2015 the FFmpeg developers built with gcc 5.2.0 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib libavutil 55. 4.100 / 55. 4.100 libavcodec 57. 9.100 / 57. 9.100 libavformat 57. 11.100 / 57. 11.100 libavdevice 57. 0.100 / 57. 0.100 libavfilter 6. 13.100 / 6. 13.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.100 / 2. 0.100 libpostproc 54. 0.100 / 54. 0.100Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\path\to\input.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf56.40.101 Duration: 00:00:10.04, start: 0.036281, bitrate: 1193 kb/s Stream #0:0(und), 1, 1/15360: Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(left), 1280x720 [SAR 1:1 DAR 16:9], 1/60, 1061 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(und), 2, 1/44100: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default) Metadata: handler_name : SoundHandlerSuccessfully opened the file.Parsing a group of options: output file C:\path\to\output.mp4.Applying option vf (set video filters) with argument frei0r=filter_name=cartoon.Applying option pix_fmt (set pixel format) with argument yuva420p.Applying option codec:v (codec name) with argument libx264.Successfully parsed a group of options.Opening an output file: C:\path\to\output.mp4.Successfully opened the file.detected 4 logical cores[Parsed_frei0r_0 @ 0371dbe0] compat: called with args=[filter_name=cartoon][Parsed_frei0r_0 @ 0371dbe0] Setting 'filter_name' to value 'cartoon'[Parsed_frei0r_0 @ 0371dbe0] Looking for frei0r effect in 'C:\Users\root\resources\frei0r/cartoon.dll'.[Parsed_frei0r_0 @ 0371dbe0] Looking for frei0r effect in '/usr/local/lib/frei0r-1/cartoon.dll'.[Parsed_frei0r_0 @ 0371dbe0] Looking for frei0r effect in '/usr/lib/frei0r-1/cartoon.dll'.[Parsed_frei0r_0 @ 0371dbe0] Looking for frei0r effect in '/usr/local/lib64/frei0r-1/cartoon.dll'.[Parsed_frei0r_0 @ 0371dbe0] Looking for frei0r effect in '/usr/lib64/frei0r-1/cartoon.dll'.[Parsed_frei0r_0 @ 0371dbe0] Could not find module 'cartoon'.[AVFilterGraph @ 04cc7080] Error initializing filter 'frei0r' with args 'filter_name=cartoon'Error opening filters![AVIOContext @ 04daec60] Statistics: 0 seeks, 0 writeouts[AVIOContext @ 0371e8a0] Statistics: 75284 bytes read, 2 seeks
On Thu, Feb 04, 2016 at 17:06:52 +0200, Bohdan Prokopovych wrote: [I'm having problems with your console output, because I don't see line breaks on my receiving end, and either my mailer or my editor is truncating nearly endless line in the response.] I have no idea abot frei0r, but:
[Parsed_frei0r_0 @ 0371dbe0] compat: called with args=[filter_name=cartoon]
Does "compat" mean it prefers different arguments nowadays?
[Parsed_frei0r_0 @ 0371dbe0] Setting 'filter_name' to value 'cartoon' [Parsed_frei0r_0 @ 0371dbe0] Looking for frei0r effect in 'C:\Users\root\resources\frei0r/cartoon.dll'. [Parsed_frei0r_0 @ 0371dbe0] Looking for frei0r effect in '/usr/local/lib/frei0r-1/cartoon.dll'. [Parsed_frei0r_0 @ 0371dbe0] Looking for frei0r effect in '/usr/lib/frei0r-1/cartoon.dll'. [Parsed_frei0r_0 @ 0371dbe0] Looking for frei0r effect in '/usr/local/lib64/frei0r-1/cartoon.dll'. [Parsed_frei0r_0 @ 0371dbe0] Looking for frei0r effect in '/usr/lib64/frei0r-1/cartoon.dll'. [Parsed_frei0r_0 @ 0371dbe0] Could not find module 'cartoon'. [AVFilterGraph @ 04cc7080] Error initializing filter 'frei0r' with args 'filter_name=cartoon' Error opening filters!
It your cartoon.dll actually located at one of those five names locations? If not: Where does your FREI0R_PATH point to? Did you set it properly? Perhaps ffmpeg+Windows doesn't handle this path string too well: 'C:\Users\root\resources\frei0r/cartoon.dll' Though it should. Just guessing, Moritz
Moritz Barsnick <barsnick <at> gmx.net> writes:
It your cartoon.dll actually located at one of those five names locations?
If not: Where does your FREI0R_PATH point to? Did you set it properly? Perhaps ffmpeg+Windows doesn't handle this path string too well: 'C:\Users\root\resources\frei0r/cartoon.dll' Though it should.
Just guessing, Moritz _______________________________________________ ffmpeg-user mailing list ffmpeg-user <at> ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Hi Moritz, thank you for answer. My FREI0R_PATH points to C:\Users\root\resources\frei0r and yes, cartoon.dll is really there. Also the problem is not in slashes in my path, because every other effects (for example, 3dflippo or pixeliz0r) are located in the same folder and are looked for by the same path (C:\Users\root\resources\frei0r/3dflippo.dll and C:\Users\root\resources\frei0r/pixeliz0r.dll respectively). I haven't tested all frei0r effects, but I've tested many of them, and they working ok in my case. All effects except Cartoon and Edgeglow. I tried everything and have no idea what's the matter.
On Tue, Feb 09, 2016 at 15:06:44 +0000, Bohdan Prokopovych wrote:
Also the problem is not in slashes in my path, because every other effects (for example, 3dflippo or pixeliz0r) are located in the same folder and are looked for by the same path (C:\Users\root\resources\frei0r/3dflippo.dll and C:\Users\root\resources\frei0r/pixeliz0r.dll respectively).
Are all those DLLs from the same source? Are some perhaps for 32 bit, some for 64 bit architecture? Are those two not working different in any other way? (Perhaps they are missing some symbols or the likes.) (On Linux, strace would show which dynamic libraries the executable is actually trying to access and open, in which order. :-)) Wild guessing, Moritz
Hi Bohdan, I am new to ffmpeg so I might be wrong, but creating "c:/usr/local/lib/frei0r-1" folder and adding the cartoon.dll to it and running your command worked just fine for me. I also suppose you're running windows... :) On 04/02/2016 15:06, Bohdan Prokopovych wrote:
Hi.
I'm using FFmpeg with frei0r library enabled, and everything works just fine except several effects. I can't make Cartoon and Edgeglow effects to work. Lot of other works ok, except these two. I hit this issue only on Windows, everything is ok on OS X.
There is some problem in my cartoon.dll and edgeglow.dll files — FFmpeg just don't see them in my FREI0R_PATH variable.
I'll provide FFmpeg output for cartoon effect. As I can see FFmpeg looks for cartoon.dll in my FREI0R_PATH and can't see it there (but it's there). This problem happenes only with cartoon and edgeglow. All the rest frei0r effects which where compiled in the same way and are located in the same folder works as expected.
Thanks for help.
-----------------------
My FFmpeg command:
-v debug -i C:\path\to\input.mp4 -vf frei0r=filter_name=cartoon -pix_fmt yuva420p -y -codec:v libx264 -strict -2 C:\path\to\output.mp4
FFmpeg output:
ffmpeg version N-76262-g2ccc1b3 Copyright (c) 2000-2015 the FFmpeg developers built with gcc 5.2.0 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib libavutil 55. 4.100 / 55. 4.100 libavcodec 57. 9.100 / 57. 9.100 libavformat 57. 11.100 / 57. 11.100 libavdevice 57. 0.100 / 57. 0.100 libavfilter 6. 13.100 / 6. 13.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.100 / 2. 0.100 libpostproc 54. 0.100 / 54. 0.100Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\path\to\input.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf56.40.101 Duration: 00:00:10.04, start: 0.036281, bitrate: 1193 kb/s Stream #0:0(und), 1, 1/15360: Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(left), 1280x720 [SAR 1:1 DAR 16:9], 1/60, 1061 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(und), 2, 1/44100: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default) Metadata: handler_name : SoundHandlerSuccessfully opened the file.Parsing a group of options: output file C:\path\to\output.mp4.Applying option vf (set video filters) with argument frei0r=filter_name=cartoon.Applying option pix_fmt (set pixel format) with argument yuva420p.Applying option codec:v (codec name) with argument libx264.Successfully parsed a group of options.Opening an output file: C:\path\to\output.mp4.Successfully opened the file.detected 4 logical cores[Parsed_frei0r_0 @ 0371dbe0] compat: called with args=[filter_name=cartoon][Parsed_frei0r_0 @ 0371dbe0] Setting 'filter_name' to value 'cartoon'[Parsed_frei0r_0 @ 0371dbe0] Looking for frei0r effect in 'C:\Users\root\resources\frei0r/cartoon.dll'.[Parsed_frei0r_0 @ 0371dbe0] Looking for frei0r effect in '/usr/local/lib/frei0r-1/cartoon.dll'.[Parsed_frei0r_0 @ 0371dbe0] Looking for frei0r effect in '/usr/lib/frei0r-1/cartoon.dll'.[Parsed_frei0r_0 @ 0371dbe0] Looking for frei0r effect in '/usr/local/lib64/frei0r-1/cartoon.dll'.[Parsed_frei0r_0 @ 0371dbe0] Looking for frei0r effect in '/usr/lib64/frei0r-1/cartoon.dll'.[Parsed_frei0r_0 @ 0371dbe0] Could not find module 'cartoon'.[AVFilterGraph @ 04cc7080] Error initializing filter 'frei0r' with args 'filter_name=cartoon'Error opening filters![AVIOContext @ 04daec60] Statistics: 0 seeks, 0 writeouts[AVIOContext @ 0371e8a0] Statistics: 75284 bytes read, 2 seeks
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Hey Bohdan, Those 2 filters work for me using the frei0r plugin DLLs that come with Shotcut. set FREI0R_PATH=C:\Program Files\Shotcut\lib\frei0r-1 It seems to be a problem with the versions you build/downloaded. On Wed, Apr 6, 2016 at 2:41 AM Bohdan Prokopovych < bohdan.prokopovych@teamvoy.com> wrote:
Hi.
I'm using FFmpeg with frei0r library enabled, and everything works just fine except several effects. I can't make Cartoon and Edgeglow effects to work. Lot of other works ok, except these two. I hit this issue only on Windows, everything is ok on OS X.
There is some problem in my cartoon.dll and edgeglow.dll files — FFmpeg just don't see them in my FREI0R_PATH variable.
I'll provide FFmpeg output for cartoon effect. As I can see FFmpeg looks for cartoon.dll in my FREI0R_PATH and can't see it there (but it's there). This problem happenes only with cartoon and edgeglow. All the rest frei0r effects which where compiled in the same way and are located in the same folder works as expected.
Thanks for help.
-----------------------
My FFmpeg command:
-v debug -i C:\path\to\input.mp4 -vf frei0r=filter_name=cartoon -pix_fmt yuva420p -y -codec:v libx264 -strict -2 C:\path\to\output.mp4
FFmpeg output:
ffmpeg version N-76262-g2ccc1b3 Copyright (c) 2000-2015 the FFmpeg developers built with gcc 5.2.0 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib libavutil 55. 4.100 / 55. 4.100 libavcodec 57. 9.100 / 57. 9.100 libavformat 57. 11.100 / 57. 11.100 libavdevice 57. 0.100 / 57. 0.100 libavfilter 6. 13.100 / 6. 13.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.100 / 2. 0.100 libpostproc 54. 0.100 / 54. 0.100Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\path\to\input.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf56.40.101 Duration: 00:00:10.04, start: 0.036281, bitrate: 1193 kb/s Stream #0:0(und), 1, 1/15360: Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(left), 1280x720 [SAR 1:1 DAR 16:9], 1/60, 1061 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(und), 2, 1/44100: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default) Metadata: handler_name : SoundHandlerSuccessfully opened the file.Parsing a group of options: output file C:\path\to\output.mp4.Applying option vf (set video filters) with argument frei0r=filter_name=cartoon.Applying option pix_fmt (set pixel format) with argument yuva420p.Applying option codec:v (codec name) with argument libx264.Successfully parsed a group of options.Opening an output file: C:\path\to\output.mp4.Successfully opened the file.detected 4 logical cores[Parsed_frei0r_0 @ 0371dbe0] compat: called with args=[filter_name=cartoon][Parsed_frei0r_0 @ 0371dbe0] Setting 'filter_name' to value 'cartoon'[Parsed_frei0r_0 @ 0371dbe0] Looking for frei0r effect in 'C:\Users\root\resources\frei0r/cartoon.dll'.[Parsed_frei0r_0 @ 0371dbe0] Looking for frei0r effect in '/usr/local/lib/frei0r-1/cartoon.dll'.[Parsed_frei0r_0 @ 0371dbe0] Looking for frei0r effect in '/usr/lib/frei0r-1/cartoon.dll'.[Parsed_frei0r_0 @ 0371dbe0] Looking for frei0r effect in '/usr/local/lib64/frei0r-1/cartoon.dll'.[Parsed_frei0r_0 @ 0371dbe0] Looking for frei0r effect in '/usr/lib64/frei0r-1/cartoon.dll'.[Parsed_frei0r_0 @ 0371dbe0] Could not find module 'cartoon'.[AVFilterGraph @ 04cc7080] Error initializing filter 'frei0r' with args 'filter_name=cartoon'Error opening filters![AVIOContext @ 04daec60] Statistics: 0 seeks, 0 writeouts[AVIOContext @ 0371e8a0] Statistics: 75284 bytes read, 2 seeks
_______________________________________________ Frei0r mailing list - http://frei0r.dyne.org Free video plugins, minimal and cross-platform. https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/frei0r
participants (4)
-
2bob -
Bohdan Prokopovych -
Dan Dennedy -
Moritz Barsnick