frei0r ffmpeg compile error

Questions that occur when trying to compile FFmpeg.
bootstrap58
Posts: 6
Joined: Fri Dec 09, 2011 8:06 am

frei0r ffmpeg compile error

Post by bootstrap58 » Fri Dec 09, 2011 12:34 pm

hello.
iwant to build ffmpeg with frei0r plugin.

i've downloaded frei0r 1.3 from http://www.piksel.no/frei0r/releases/

and copied frei0r.h file to ffmpeg/libavfilters directory

im using this command for compile

Code: Select all

cd c:\ffmpeg
./configure --enable-frei0r
but that gives error

Code: Select all

ERROR: frei0r.h header not found.
what can i do. thats very important for me.

bootstrap58
Posts: 6
Joined: Fri Dec 09, 2011 8:06 am

Re: ffmpeg compile error

Post by bootstrap58 » Mon Dec 12, 2011 9:32 am

i've downloaded lastest windows build i seeing --enable-frei0r but i can't see frei0r in filters

Code: Select all

C:\bin>ffmpeg -filters
ffmpeg version N-35462-g61b1d85, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec  5 2011 14:31:42 with gcc 4.6.2
  configuration: --disable-static --enable-shared --enable-gpl --enable-version3
 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzli
b [b]--enable-frei0r[/b] --enable-libopencore-amrnb --enable-libopencore-amrwb --enable
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-l
ibrtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-li
bvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-l
ibx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil    51. 30. 0 / 51. 30. 0
  libavcodec   53. 40. 0 / 53. 40. 0
  libavformat  53. 24. 0 / 53. 24. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 51. 0 /  2. 51. 0
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0

Code: Select all

Filters:
aconvert         Convert the input audio to sample_fmt:channel_layout:packed_fmt
.
aformat          Convert the input audio to one of the specified formats.
anull            Pass the source unchanged to the output.
aresample        Resample audio data.
ashowinfo        Show textual information for each audio frame.
earwax           Widen the stereo image.
pan              Remix channels with coefficients (panning)
volume           Change input volume.
abuffer          Buffer audio frames, and make them accessible to the filterchai
n.
aevalsrc         Generate an audio signal generated by an expression.
amovie           Read audio from a movie source.
anullsrc         Null audio source, return empty audio frames.
abuffersink      Buffer audio frames, and make them available to the end of the
filter graph.
anullsink        Do absolutely nothing with the input audio.
blackframe       Detect frames that are (almost) black.
boxblur          Blur the input.
copy             Copy the input video unchanged to the output.
crop             Crop the input video to width:height:x:y.
cropdetect       Auto-detect crop size.
delogo           Remove logo from input video.
deshake          Stabilize shaky video.
drawbox          Draw a colored box on the input video.
drawtext         Draw text on top of video frames using libfreetype library.
fade             Fade in/out input video
fieldorder       Set the field order.
fifo             Buffer input images and send them when they are requested.
format           Convert the input video to one of the specified pixel formats.
gradfun          Debands video quickly using gradients.
hflip            Horizontally flip the input video.
hqdn3d           Apply a High Quality 3D Denoiser.
lut              Compute and apply a lookup table to the RGB/YUV input video.
lutrgb           Compute and apply a lookup table to the RGB input video.
lutyuv           Compute and apply a lookup table to the YUV input video.
mp               libmpcodecs wrapper.
negate           Negate input video.
noformat         Force libavfilter not to use any of the specified pixel formats
 for the input to the next filter.
null             Pass the source unchanged to the output.
overlay          Overlay a video source on top of the input.
pad              Pad input image to width:height[:x:y[:color]] (default x and y:
 0, default color: black).
pixdesctest      Test pixel format definitions.
scale            Scale the input video to width:height size and/or convert the i
mage format.
select           Select frames to pass in output.
setdar           Set the frame display aspect ratio.
setpts           Set PTS for the output video frame.
setsar           Set the pixel sample aspect ratio.
settb            Set timebase for the output link.
showinfo         Show textual information for each video frame.
slicify          Pass the images of input video on to next video filter as multi
ple slices.
split            Pass on the input to two outputs.
transpose        Transpose input video.
unsharp          Sharpen or blur the input video.
vflip            Flip the input video vertically.
yadif            Deinterlace the input image
buffer           Buffer video frames, and make them accessible to the filterchai
n.
color            Provide an uniformly colored input, syntax is: [color[:size[:ra
te]]]
life             Create life.
mandelbrot       Mandelbrot fractal renderer
movie            Read from a movie source.
mptestsrc        Generate various test pattern.
nullsrc          Null video source, return unprocessed video frames.
rgbtestsrc       Generate RGB test pattern.
testsrc          Generate test pattern.
buffersink       Buffer video frames, and make them available to the end of the
filter graph.
nullsink         Do absolutely nothing with the input video.
can someone fix this error i need to this filter too much

User avatar
Zeranoe
Site Admin
Posts: 703
Joined: Sat May 07, 2011 7:12 pm
Contact:

Re: ffmpeg compile error

Post by Zeranoe » Wed Dec 14, 2011 3:12 am

I'm not sure how to use the frei0r filter, but if your sure your using it the right way, than you might want to submit a bug report.

I can help you compile frei0r, but if you follow the same steps as me, you might run into the same issue.

bootstrap58
Posts: 6
Joined: Fri Dec 09, 2011 8:06 am

Re: ffmpeg compile error

Post by bootstrap58 » Wed Dec 14, 2011 8:45 am

Hello zeranoe. Thanks for reply.

I know how to use frei0r plugin

Example :

Code: Select all

ffmpeg -i d:\myvid.mpg -vf "frei0r=glow:0.5" d:\mynewvid.mpg
when i use this command im giving "Frei0r Plugin Error"

I'm downloaded new ffmpeg.exe from this site, (12/12/2011 build)

Code: Select all

ffmpeg -filters
command is shows --enable-frei0r option. thats good but frei0r plug is not found in plugin list.

Im installed MinGW - MSys and Downloaded lastest ffmpeg

Used ./configure --enable-frei0r command on MSys but im getting

"frei0r.h header not found" error.


If you help me how can i recompile on windows i will be grateful.

bootstrap58
Posts: 6
Joined: Fri Dec 09, 2011 8:06 am

Re: ffmpeg compile error

Post by bootstrap58 » Wed Dec 14, 2011 10:53 am

ah :D

im accomplished to compile with --enable-frei0r.

Just copied frei0r.h file to mingw/include folder and "frei0r.h header not found" error is solved.

now. when i use ffmpeg-filters command im seeing --enable-frei0r thats ok. But im still can't see frei0r in plugin list. (your all exe files have that problem too)

ffmpeg -filters command results above

Code: Select all

Filters:
aconvert         Convert the input audio to sample_fmt:channel_layout:packed_fmt
.
aformat          Convert the input audio to one of the specified formats.
anull            Pass the source unchanged to the output.
aresample        Resample audio data.
ashowinfo        Show textual information for each audio frame.
abuffer          Buffer audio frames, and make them accessible to the filterchai
n.
aevalsrc         Generate an audio signal generated by an expression.
amovie           Read audio from a movie source.
anullsrc         Null audio source, return empty audio frames.
abuffersink      Buffer audio frames, and make them available to the end of the
filter graph.
anullsink        Do absolutely nothing with the input audio.
blackframe       Detect frames that are (almost) black.
boxblur          Blur the input.
copy             Copy the input video unchanged to the output.
crop             Crop the input video to width:height:x:y.
cropdetect       Auto-detect crop size.
delogo           Remove logo from input video.
deshake          Stabilize shaky video.
drawbox          Draw a colored box on the input video.
drawtext         Draw text on top of video frames using libfreetype library.
fade             Fade in/out input video
fieldorder       Set the field order.
fifo             Buffer input images and send them when they are requested.
format           Convert the input video to one of the specified pixel formats.
gradfun          Debands video quickly using gradients.
hflip            Horizontally flip the input video.
hqdn3d           Apply a High Quality 3D Denoiser.
lut              Compute and apply a lookup table to the RGB/YUV input video.
lutrgb           Compute and apply a lookup table to the RGB input video.
lutyuv           Compute and apply a lookup table to the YUV input video.
mp               libmpcodecs wrapper.
negate           Negate input video.
noformat         Force libavfilter not to use any of the specified pixel formats
 for the input to the next filter.
null             Pass the source unchanged to the output.
overlay          Overlay a video source on top of the input.
pad              Pad input image to width:height[:x:y[:color]] (default x and y:
 0, default color: black).
pixdesctest      Test pixel format definitions.
scale            Scale the input video to width:height size and/or convert the i
mage format.
select           Select frames to pass in output.
setdar           Set the frame display aspect ratio.
setpts           Set PTS for the output video frame.
setsar           Set the pixel sample aspect ratio.
settb            Set timebase for the output link.
showinfo         Show textual information for each video frame.
slicify          Pass the images of input video on to next video filter as multi
ple slices.
split            Pass on the input to two outputs.
transpose        Transpose input video.
unsharp          Sharpen or blur the input video.
vflip            Flip the input video vertically.
yadif            Deinterlace the input image
buffer           Buffer video frames, and make them accessible to the filterchai
n.
color            Provide an uniformly colored input, syntax is: [color[:size[:ra
te]]]
movie            Read from a movie source.
mptestsrc        Generate various test pattern.
nullsrc          Null video source, never return images.
rgbtestsrc       Generate RGB test pattern.
testsrc          Generate test pattern.
buffersink       Buffer video frames, and make them available to the end of the
filter graph.
nullsink         Do absolutely nothing with the input video.
no frei0r filter. we must see frei0r in this list.

xfriend
Posts: 1
Joined: Tue Mar 20, 2012 11:58 am

Re: ffmpeg compile error

Post by xfriend » Tue Mar 20, 2012 12:30 pm

Hello, I'm also trying to build ffmpeg with frei0r. And I would like to know should I build and install frei0r using mingw before configuring ffmpeg? If I should, how to build frei0r to configure ffmpeg correctly?

I'm using Ubuntu and zeranoe's script to crosscompile. I've downloaded frei0r's sources from http://ffmpeg.zeranoe.com/builds/source ... .3.tar.bz2

My first way was using configure to build frei0r

Code: Select all

../frei0r-1.3/configure --build=mingw32 --host=i686-w64-mingw32 --enable-static --disable-shared --prefix=/home/dmitryv/software/ffmpeg/win32
make
make install
In the configure output I've seen that build tools are selected correctly from mingw's bin and make also finished with no errors.
But make install doesn't work! Output fragment:

Code: Select all

....
/usr/bin/install: cannot stat `.libs/3dflippo.so': No such file or directory
/usr/bin/install: cannot stat `.libs/addition.so': No such file or directory
....
/usr/bin/install: cannot stat `.libs/vertigo.so': No such file or directory
/usr/bin/install: cannot stat `.libs/xfade0r.so': No such file or directory
make[2]: *** [install-pluginLTLIBRARIES] Error 1
make[2]: Leaving directory `/home/dmitryv/software/ffmpeg/frei0r/build/src'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/dmitryv/software/ffmpeg/frei0r/build/src'
make: *** [install-recursive] Error 1
I've also tryed to build shared - the same result.

After I've decided to use cmake. I've created cross-compile toolchain file for mingw and frei0r was compiled and installed successfully. But it has installed as DLL files but not static libraries. And I've not found any way to build frei0r in static libraries using cmake (setting -DBUILD_SHARED_LIBS=OFF hasn't heped me).

rogerdpack
Posts: 1877
Joined: Fri Aug 05, 2011 9:56 pm

Re: ffmpeg compile error

Post by rogerdpack » Mon Oct 08, 2012 10:47 pm

This one is getting me, too.

if I compile it in linux with
--disable-shared --enable-static
it creates lots of .a files (as it should), then make install gives this error (the same one):

for file in $list; do \
sofile=`basename $file .la`.so; \
/usr/bin/install -c .libs/$sofile //usr/local/lib/frei0r-1; \
done
/usr/bin/install: cannot stat `.libs/3dflippo.so': No such file or directory
/usr/bin/install: cannot stat `.libs/addition.so': No such file or directory
/usr/bin/install: cannot stat `.libs/addition_alpha.so': No such file or directory
/usr/bin/install: cannot stat `.libs/alpha0ps.so': No such file or directory
/usr/bin/install: cannot stat `.libs/alphaatop.so': No such file or directory
/usr/bin/install: cannot stat `.libs/alphagrad.so': No such file or directory
/usr/bin/install: cannot stat `.libs/alphain.so': No such file or directory
/usr/bin/install: cannot stat `.libs/alphainjection.so': No such file or directory
/usr/bin/install: cannot stat `.libs/alphaout.so': No such file or directory
/usr/bin/install: cannot stat `.libs/alphaover.so': No such file or directory
/usr/bin/install: cannot stat `.libs/alphaspot.so': No such file or directory
/usr/bin/install: cannot stat `.libs/alphaxor.so': No such file or directory
/usr/bin/install: cannot stat `.libs/B.so': No such file or directory
/usr/bin/install: cannot stat `.libs/balanc0r.so': No such file or directory
/usr/bin/install: cannot stat `.libs/baltan.so': No such file or directory
/usr/bin/install: cannot stat `.libs/blend.so': No such file or directory
/usr/bin/install: cannot stat `.libs/bluescreen0r.so': No such file or directory
/usr/bin/install: cannot stat `.libs/brightness.so': No such file or directory
/usr/bin/install: cannot stat `.libs/burn.so': No such file or directory
/usr/bin/install: cannot stat `.libs/bw0r.so': No such file or directory
/usr/bin/install: cannot stat `.libs/c0rners.so': No such file or directory
/usr/bin/install: cannot stat `.libs/cartoon.so': No such file or directory
/usr/bin/install: cannot stat `.libs/cluster.so': No such file or directory
/usr/bin/install: cannot stat `.libs/coloradj_RGB.so': No such file or directory
/usr/bin/install: cannot stat `.libs/colordistance.so': No such file or directory
/usr/bin/install: cannot stat `.libs/color_only.so': No such file or directory
/usr/bin/install: cannot stat `.libs/composition.so': No such file or directory
/usr/bin/install: cannot stat `.libs/contrast0r.so': No such file or directory
/usr/bin/install: cannot stat `.libs/curves.so': No such file or directory
/usr/bin/install: cannot stat `.libs/d90stairsteppingfix.so': No such file or directory
/usr/bin/install: cannot stat `.libs/darken.so': No such file or directory
/usr/bin/install: cannot stat `.libs/defish0r.so': No such file or directory
/usr/bin/install: cannot stat `.libs/delay0r.so': No such file or directory
/usr/bin/install: cannot stat `.libs/delaygrab.so': No such file or directory
/usr/bin/install: cannot stat `.libs/difference.so': No such file or directory
/usr/bin/install: cannot stat `.libs/distort0r.so': No such file or directory
/usr/bin/install: cannot stat `.libs/divide.so': No such file or directory
/usr/bin/install: cannot stat `.libs/dodge.so': No such file or directory
/usr/bin/install: cannot stat `.libs/edgeglow.so': No such file or directory
/usr/bin/install: cannot stat `.libs/equaliz0r.so': No such file or directory
/usr/bin/install: cannot stat `.libs/flippo.so': No such file or directory
/usr/bin/install: cannot stat `.libs/G.so': No such file or directory
/usr/bin/install: cannot stat `.libs/gamma.so': No such file or directory
/usr/bin/install: cannot stat `.libs/glow.so': No such file or directory
/usr/bin/install: cannot stat `.libs/grain_extract.so': No such file or directory
/usr/bin/install: cannot stat `.libs/grain_merge.so': No such file or directory
/usr/bin/install: cannot stat `.libs/hardlight.so': No such file or directory
/usr/bin/install: cannot stat `.libs/hqdn3d.so': No such file or directory
/usr/bin/install: cannot stat `.libs/hue.so': No such file or directory
/usr/bin/install: cannot stat `.libs/hueshift0r.so': No such file or directory
/usr/bin/install: cannot stat `.libs/invert0r.so': No such file or directory
/usr/bin/install: cannot stat `.libs/ising0r.so': No such file or directory
/usr/bin/install: cannot stat `.libs/lenscorrection.so': No such file or directory
/usr/bin/install: cannot stat `.libs/letterb0xed.so': No such file or directory
/usr/bin/install: cannot stat `.libs/levels.so': No such file or directory
/usr/bin/install: cannot stat `.libs/lighten.so': No such file or directory
/usr/bin/install: cannot stat `.libs/lightgraffiti.so': No such file or directory
/usr/bin/install: cannot stat `.libs/lissajous0r.so': No such file or directory
/usr/bin/install: cannot stat `.libs/luminance.so': No such file or directory
/usr/bin/install: cannot stat `.libs/mask0mate.so': No such file or directory
/usr/bin/install: cannot stat `.libs/multiply.so': No such file or directory
/usr/bin/install: cannot stat `.libs/nervous.so': No such file or directory
/usr/bin/install: cannot stat `.libs/nois0r.so': No such file or directory
/usr/bin/install: cannot stat `.libs/nosync0r.so': No such file or directory
/usr/bin/install: cannot stat `.libs/onecol0r.so': No such file or directory
/usr/bin/install: cannot stat `.libs/overlay.so': No such file or directory
/usr/bin/install: cannot stat `.libs/partik0l.so': No such file or directory
/usr/bin/install: cannot stat `.libs/perspective.so': No such file or directory
/usr/bin/install: cannot stat `.libs/pixeliz0r.so': No such file or directory
/usr/bin/install: cannot stat `.libs/plasma.so': No such file or directory
/usr/bin/install: cannot stat `.libs/pr0be.so': No such file or directory
/usr/bin/install: cannot stat `.libs/pr0file.so': No such file or directory
/usr/bin/install: cannot stat `.libs/primaries.so': No such file or directory
/usr/bin/install: cannot stat `.libs/R.so': No such file or directory
/usr/bin/install: cannot stat `.libs/RGB.so': No such file or directory
/usr/bin/install: cannot stat `.libs/saturation.so': No such file or directory
/usr/bin/install: cannot stat `.libs/saturat0r.so': No such file or directory
/usr/bin/install: cannot stat `.libs/scanline0r.so': No such file or directory
/usr/bin/install: cannot stat `.libs/screen.so': No such file or directory
/usr/bin/install: cannot stat `.libs/select0r.so': No such file or directory
/usr/bin/install: cannot stat `.libs/sharpness.so': No such file or directory
/usr/bin/install: cannot stat `.libs/sobel.so': No such file or directory
/usr/bin/install: cannot stat `.libs/softlight.so': No such file or directory
/usr/bin/install: cannot stat `.libs/sopsat.so': No such file or directory
/usr/bin/install: cannot stat `.libs/squareblur.so': No such file or directory
/usr/bin/install: cannot stat `.libs/subtract.so': No such file or directory
/usr/bin/install: cannot stat `.libs/tehroxx0r.so': No such file or directory
/usr/bin/install: cannot stat `.libs/test_pat_B.so': No such file or directory
/usr/bin/install: cannot stat `.libs/test_pat_C.so': No such file or directory
/usr/bin/install: cannot stat `.libs/test_pat_G.so': No such file or directory
/usr/bin/install: cannot stat `.libs/test_pat_I.so': No such file or directory
/usr/bin/install: cannot stat `.libs/test_pat_L.so': No such file or directory
/usr/bin/install: cannot stat `.libs/test_pat_R.so': No such file or directory
/usr/bin/install: cannot stat `.libs/three_point_balance.so': No such file or directory
/usr/bin/install: cannot stat `.libs/threshold0r.so': No such file or directory
/usr/bin/install: cannot stat `.libs/threelay0r.so': No such file or directory
/usr/bin/install: cannot stat `.libs/tint0r.so': No such file or directory
/usr/bin/install: cannot stat `.libs/transparency.so': No such file or directory
/usr/bin/install: cannot stat `.libs/twolay0r.so': No such file or directory
/usr/bin/install: cannot stat `.libs/uvmap.so': No such file or directory
/usr/bin/install: cannot stat `.libs/value.so': No such file or directory
/usr/bin/install: cannot stat `.libs/vertigo.so': No such file or directory
/usr/bin/install: cannot stat `.libs/xfade0r.so': No such file or directory
make[2]: *** [install-pluginLTLIBRARIES] Error 1
make[2]: Leaving directory `/home/rogerdpack/dev/ffmpeg-windows-build-helpers/sandbox/win32/frei0r-1.3/src'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/rogerdpack/dev/ffmpeg-windows-build-helpers/sandbox/win32/frei0r-1.3/src'
make: *** [install-recursive] Error 1
[email protected]:~/dev/ffmpeg-windows-build-helpers/sandbox/win32/frei0r-1.3$ echo $?
2

also I would imagine that with a static build, frei0r.pc would list the various .a files (it doesn't).
It makes me think that frei0r just hasn't been attempted in a static build environment much, if at all.

http://ffmpeg.org/ffmpeg.html#frei0r-1 mentions that you basically "need freior .so files in your FREI0R_PATH environment variable"

so maybe there "is no other way" except using frei0r with dynamic libs?

Unfortunately I'm running into the same problem everybody else also is, which is that, despite --enable-frei0r specified,
libavfilter/vf_freior.o never gets built, and hence doesn't appear in the ffmpeg -filters list. Hmm...


rogerdpack
Posts: 1877
Joined: Fri Aug 05, 2011 9:56 pm

Re: ffmpeg compile error

Post by rogerdpack » Thu Oct 11, 2012 12:03 am

Ok I finally got it working

(note to Zeranoe: add http://code.google.com/p/dlfcn-win32 for the missing libdl also required for the frei0r filter to show)

http://rogerdpack.t28.net/incoming/ffmp ... .frei0r.7z

Then go and get some effects:
http://people.videolan.org/~jb/vlmc/effects.7z

unzip them somewhere, then add them to FREI0R_PATH (with a trailing slash for now, I will hopefully have a patch in to not need it soon).

set FREI0R_PATH=c:\vids\effects\effects\

then
$ ffmpeg.exe -loglevel debug -i input -vf "frei0r=glow:20" -t 10 output

works now.
GL!
-roger-

rogerdpack
Posts: 1877
Joined: Fri Aug 05, 2011 9:56 pm

Re: ffmpeg compile error

Post by rogerdpack » Thu Oct 11, 2012 12:04 am

how did you use cmake to create dll's with cross compile? With normal configure I can't get it to create .dll's at all.

I do see some instructions here:

http://www.mltframework.org/bin/view/MLT/WindowsBuild

Post Reply
'