FFmpeg-Cedrus
FFmpeg-Cedrus copied to clipboard
can't compile, cedrus264 error
Hi, any hint about this???:
aruntu@aruntu:/etc/aruntu-extras/programs/FFmpeg-Cedrus-master$ sudo make -j2 && sudo make install
LD ffmpeg_g
libavcodec/libavcodec.a(cedrus264.o): In function cedrus264_encode_init': /etc/aruntu-extras/programs/FFmpeg-Cedrus-master/libavcodec/cedrus264.c:218: undefined reference to
ve_get_regs'
collect2: error: ld returned 1 exit status
make: *** [ffmpeg_g] Error 1
push
Hi, sorry for late reply. I couldn't understand why you get this error. But it seems it is a Linker error. Linker couldn't find the implementation, so it returned error.
You may need to clean the source, and try rebuild again. I am ready to help.
In my github, I provided *.deb package for FFmpeg on A20. Did you try it?
2015-04-03 15:32 GMT+03:00 aRUNTU [email protected]:
Hi, any hint about this???:
aruntu@aruntu:/etc/aruntu-extras/programs/FFmpeg-Cedrus-master$ sudo make -j2 && sudo make install LD ffmpeg_g libavcodec/libavcodec.a(cedrus264.o): In function cedrus264_encode_init': /etc/aruntu-extras/programs/FFmpeg-Cedrus-master/libavcodec/cedrus264.c:218: undefined reference tove_get_regs' collect2: error: ld returned 1 exit status make: *** [ffmpeg_g] Error 1
— Reply to this email directly or view it on GitHub https://github.com/stulluk/FFmpeg-Cedrus/issues/2.
Thanks for the answer¡¡¡ Too much ignorance from my side, I cannot even find the .deb package :(
I've got the same error, a "make clean" && "./configure" again did it. But when I install and test it I get high bitrates like the alcantor's version (without P frames) produces. When I use your .deb then everything works fine, I get moderate bitrates when using -qp 28 so I assume the .deb uses P-Frames, the self-compiled not.
Comparing to the software libx264 encoder the cedrus264 works of course much faster - around 8 fps (software 1,2 fps) but the file will be a little bit larger and the quality does not reach libx264 quality. When decerasing -qp the quality get's better but the file will be inadequate larger.
I use it to make timelapse video from Logitech 910 captured 1280x720 jpeg images:
ffmpeg -f image2 -i /work/%*.jpg -r 25 -pix_fmt nv12 -qp 28 -c:v cedrus264 -c:a none -f mp4 /work/testcedar.mp4
Dear friend,
I will write a tutorial for compiling, and put to sunxi wiki for you. Now I am in holiday, I will be back in 5 days. Of course my deb file encodes I and P frames, we worked with some friends who wrote cedrus library from stratch.
I use CSI onboard camera to capture frames . Why deb file is not enough for you ? Do you want to improve the quality ? 1 Haz 2015 22:10 tarihinde "teknoid" [email protected] yazdı:
I've got the same error, a "make clean" && "./configure" again did it. But when I install and test it I get high bitrates like the alcantor's version (without P frames) produces. When I use your .deb then everything works fine, I get moderate bitrates when using -qp 28 so I assume the .deb uses P-Frames, the self-compiled not.
Comparing to the software libx264 encoder the cedrus264 works of course much faster - around 8 fps (software 1,2 fps) but the file will be a little bit larger and the quality does not reach libx264 quality. When decerasing -qp the quality get's better but the file will be inadequate larger.
I use it to make timelapse video from Logitech 910 captured 1280x720 jpeg images: ffmpeg -f image2 -i /work/%*.jpg -r 25 -pix_fmt nv12 -qp 28 -c:v cedrus264 -c:a none -f mp4 /work/testcedar.mp4
— Reply to this email directly or view it on GitHub https://github.com/stulluk/FFmpeg-Cedrus/issues/2#issuecomment-107674132 .
Hi stulluk,
hope you had nice holidays ;-)
deb file is fine, but I'm getting symbol warnings with relink recommendation:
ffmpeg: Symbol `x264_levels' has different size in shared object, consider re-linking
And needed to create a symlink libx264.so.123 -> libx264.so.142 becase I have a newer version libx264 installed. That's the reason I would like to compile it by myself.
And yes, I'm not very happy with the quality/file size compared to software encoding with libx264. But I think this is a problem of the hardware encoder?
Hi. I tried to compile several times and every time end up with the error like in first post and another one -
libavcodec/libavcodec.a(libx264.o): In function
X264_init': /root/temp/FFmpeg-Cedrus/libavcodec/libx264.c:675: undefined reference to
x264_encoder_open_148'
"make` clean" && "./configure" again, doesn't work in my case. I don't have luck with .deb package too, the error is:
dpkg: error processing archive ffmpeg_2-1_armhf.deb (--install): trying to overwrite '/usr/include/libswscale/swscale.h', which is also in package libswscale-dev 6:11.4-1~deb8u1 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
I've successfully build mpv by passing arguments in built-in ffmpeg from here - "--enable-nonfree --enable-gpl --enable-version3 --enable-vdpau --enable-libx264 --enable-libmp3lame --enable-libpulse --enable-libv4l2" and both mpv and ffmpeg compiled just fine, so what could be the problem here?
Hello! I've confirm the issue - make error on Armbian (Orange Pi Zero H2+) :
./configure --prefix=/usr --enable-nonfree --enable-gpl --enable-version3 --enable-vdpau --enable-libx264 --enable-libmp3lame --enable-libpulse --enable-libv4l2
~/FFmpeg-Cedrus$ make -j4 LD ffmpeg_g LD ffprobe_g LD ffserver_g libavcodeclibavcodec//libavcodec.a(libavcodec.a(cedrus264.o): cedrus264.o): In In function
function cedrus264_encode_init': /cedrus264_encode_init': /home/user/home/FFmpeg-Cedrus/user/libavcodec/FFmpeg-Cedrus/cedrus264.c:libavcodec/218: cedrus264.c:218: undefined reference to
ve_get_regs'
undefined reference to ve_get_regs' libavcodec/libavcodec.a(cedrus264.o): In function
cedrus264_encode_init':
/home/user/FFmpeg-Cedrus/libavcodec/cedrus264.c:218: undefined reference to ve_get_regs' collect2: error: ld returned 1 exit status collect2: error: ld returned 1 exit status collect2: error: ld returned 1 exit status Makefile:121: recipe for target 'ffmpeg_g' failed make: *** [ffmpeg_g] Error 1 make: *** Waiting for unfinished jobs.... Makefile:121: recipe for target 'ffprobe_g' failed make: *** [ffprobe_g] Error 1 Makefile:121: recipe for target 'ffserver_g' failed make: *** [ffserver_g] Error 1
I see the same thing on my bananapi M1 running this image:
https://dl.armbian.com/bananapi/Ubuntu_xenial_default_desktop.7z
I cloned from this repro:
https://github.com/stulluk/FFmpeg-Cedrus
MAN doc/libavfilter.3 LD ffmpeg_g LD ffprobe_g libavcodeclibavcodec/libavcodec.a/(libavcodec.acedrus264.o()cedrus264.o:) :In Infunction function
cedrus264_encode_init'cedrus264_encode_init:' :/ home//homecedric//cedricFFmpeg/-FFmpegCedrus-/Cedruslibavcodec//libavcodeccedrus264.c/:cedrus264.c218::218 :undefined undefinedreference referenceto to
`ve_get_regsve_get_regs''
collect2: error: ld returned 1 exit status collect2: error: ld returned 1 exit status Makefile:121: recipe for target 'ffmpeg_g' failed make: *** [ffmpeg_g] Error 1 make: *** Waiting for unfinished jobs.... Makefile:121: recipe for target 'ffprobe_g' failed make: *** [ffprobe_g] Error 1 cedric@bananapi:~/FFmpeg-Cedrus$ '
This version works for me: https://github.com/chwe17/FFmpeg-Cedrus/
Cheers, Cedric