Ubuntu Multimedia :: Compile Errors From OpenCV With Ffmpeg + X264
May 29, 2011
I am trying to compile OpenCV 2.0 with ffmpeg (with x264) support on my Ubuntu 11.04 64-bit machine. (Since I want to use the binaries provided by other developers, I have to use opencv 2.0 version)
I followed the guide from: [URL] to compile x264 and ffmpeg manually, and succeeded.
Then I followed the guide in the INSTALL file provided by the OpenCV 2.0 package. I use CMake to configure and generate them, and use "make" command to try compiling. However, I got the following error report, which haunted me for almost half a week.
Code:
Linking CXX static library ../../lib/libhighgui_pch_dephelp.a
[ 71%] Built target highgui_pch_dephelp
Scanning dependencies of target pch_Generate_highgui
[ 71%] Generating _highgui.h
[ 71%] [COLOR="rgb(65, 105, 225)"]Generating
[Code].....
View 7 Replies
ADVERTISEMENT
Mar 1, 2011
As I understand (and remember) debian does not package x264 with its ffmpeg. [I say remember because I have a debian-multimedia line in my sources.list that I believe I added when I wanted a x264 enabled ffmpeg]
Is this status still the same? Do we still need to compile ffmpeg by hand if we want x264?
View 6 Replies
View Related
Jan 12, 2015
I use ffmpeg to covert video files for the net.
Code: Select allffmpeg -i infile -vcodec libx264 -vpre ipod640 -b 250k -bt 50k -acodec libfaac -ab 56k -ac 2 -s res.mp4
which works good. I was wondering if I could use larger resolution presets, but
find /usr -iname '*.ffpreset' only gives
#/usr/share/ffmpeg/libvpx-360p.ffpreset
#/usr/share/ffmpeg/libvpx-1080p.ffpreset
#/usr/share/ffmpeg/libx264-ipod320.ffpreset
#/usr/share/ffmpeg/libvpx-1080p50_60.ffpreset
#/usr/share/ffmpeg/libx264-ipod640.ffpreset
#/usr/share/ffmpeg/libvpx-720p50_60.ffpreset
#/usr/share/ffmpeg/libvpx-720p.ffpreset
with only 2 presets for libx264.
I installed ffmpeg from deb-multimedia. Is there a package which provides further preset files? There should be e.g. hq, max etc..
View 2 Replies
View Related
Apr 28, 2010
I've probably exhausted all possible ffmpeg argument combinations for encoding with a libx264 codec - none worked, the codec always either segfaults or tells me incorrect parameters. I've installed, uninstalled and re-installed all available versions of the codec - no difference. Did anyone have any luck with it? Are there any tricks or conflicts in different arguments? Does the input file have to be in any particular container/format/codec for the x264 to work on?
My examples: >ffmpeg -i video.mpg -vcodec libx264 video.mkv >... Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height >ffmpeg -i video.mpg -vcodec libx264 -b 4000 -s hd1080 -f h264 video.mkv Same error If I use any other codec, they all work fine. give a working ffmpeg arguments example,
View 9 Replies
View Related
Jun 15, 2010
I have been working on vlc (windows) and now i want to use the same in linux...so ma trying to compile it in linux..... i need ffmpeg functionality and others as such...so please provide me with the complete link and order so as where to fetch the source code and to compile....i have done googling and found lots of tutorials and most of the are confusing and not clear......and i tried doing them and am now confused(whether they are compiled or not) cos when i try to instll them it says already exists and when i try to use the functionality it says canot transcode ffmpeg doesnt exitst.....I am badly need of vlc transcoding options. Am using ubuntu 10.
View 9 Replies
View Related
May 19, 2011
OpenCV doesn't work. I wonder why would anyone create a RPM package and not bother to check whether it actually works? Do they get paid per package at Red Hat? The problem seems to be in cap_ffmpeg.cpp. Somehow, OpenCV cannot resolve the ffmpeg CODEC libraries, but the annoying part is that it compiles and installs error free - it just doesn't work. Without any error messages, it is really hard to figure out what is wrong.
View 8 Replies
View Related
Jan 29, 2010
How users to install the latest svn versions of x264, ffmpeg and mplayer. Primarily, this is important for users who rip movies from dvds.
How do I perform the same tasks using sbopkg? I believe some compilation options must be changed to reflect the svn changes.
Has anyone done this before? Are the steps important when using slackware 13 x86_64?
View 5 Replies
View Related
Oct 4, 2010
I'm installing ffmpeg with libavfilter using this guide but i can not get the movie filter to compile when passing --enable-avfilter-lavf to ffmpeg i'm using libavfilter r5935 and the test copy of ffmpeg.
View 3 Replies
View Related
May 13, 2011
I am trying to compile x264 but ./configure returns just Quote: No working C compiler found. Yes, I have installed build-essentials and yes, I have installed gcc Already tried update and upgrade... so I dont know whats wrong my c++ compiler works normally.
View 1 Replies
View Related
Nov 6, 2010
I'm using a logitech quickcam pro 3000 on Ubuntu 10.04.
When I run a simple program with OpenCV to display the output from a camera I get the following output:
Code:
A window still opens with the output from the camera, but it seems very low quality and has far less pixels then it should. The camera built into my computer runs the same program with no problems.
My code for the program is simply:
Code:
One further note to make is that I still have the bad quality and low number of pixels with the logitech even when using webcam program. I can seem to find any drivers to update or anything though.
View 1 Replies
View Related
Jul 20, 2010
Since ffmpeg 6 is out for some time, when will Ubuntu Lucid afford such a new ffmpeg package from its repository?
View 2 Replies
View Related
Apr 5, 2011
I am having trouble getting ffmpeg to compile.
I have removed x264 and reinstalled making sure shared was enabled.
Then ran ldconfig.
Here is my compile variables
Code:
And here is the error.
Code:
View 6 Replies
View Related
Mar 16, 2011
I have trouble compiling FFMPEG with VDPAU support. I have clean typical installation Fedora 14 + all updates and after installation I install Nvidia driver with VDPAU support - kmod (VPDAU works well, tested with mplayer - I play MKV 1080p on Atom D525 + chipset Nvidia ION with 10-15% CPU ussage). I try compilie FFMPEG with this procedure:
[Code]...
View 4 Replies
View Related
Jun 17, 2011
I'm starting to use Ubuntu 10.04 LTS and want to install a Java based language, Processing which uses OpenCv library to perform video issues. [URL]. I'm not familiar with the terminal but willing to be. I'm also not familiar with the file system, I mean I don't exactly know where the archives downloaded are and where they should be to be executed.
View 6 Replies
View Related
Jan 3, 2010
I have a load of XViD videos and I want to re-encode them into x264 - when I say a load, I mean over 300, anyone have any programs they reccomend to do it?I want to make them into those "future-sized movies" (700mb --> 300mb, 170mb --> 95mb, 350mb --> 150mb), what settings should I use? I want to keep the quality of the originals intact, along with the video sizes if possible, but if not, I don't really mind, just make them smaller. Here are the settings some people use in windows:oh yeah, one last thing - fast encoders please, I know it'll take a good while, but I want it to take as little time as possible please
View 4 Replies
View Related
May 8, 2010
I have been using Avidemux to encode edited video using x264 and the mp4 container for most of my videos. My PCs are not new, using single-core AMD Athlon processors.
In 9.04 and 9.10 (Linux Mint), encoding speeds ranged from 7 to 10 frames per second. In 10.04 these dropped down to less than 2 frames per second.
I booted back into Linux Mint 8 (9.10) and the same video encoded at the previous 7 to 10 fps.
I tried with other videos in different formats (mpeg2 and VOB). The results were the same - 10.04 was extremely slow encoding x264 but Mint 8 was "normal" at 7 to 10 fps.
With a dual-core notebook, however, the encoding speeds ran at 8 to 14 fps in 10.04.
Was 10.04 optimized for dual and multi-core at the expense of single-core? If so, is there a way to restore "single-core optimization"?
View 9 Replies
View Related
Jan 25, 2010
So for the last, oh, three or four hours now, I've been trying to get videos to play properly in Ubuntu. I have the default player, I have vlc, I (apparently) installed mplayer, but it won't play anything at all.
I was having horrible screen tearing with standard definition .avi's in vlc, fixed that by setting vsync in catalyst control center to always on or whatever it is.
Now, I have tried to run a 720p x264 video. It PLAYS, but not well. Audio is fine, however video is all jerky in VLC, and in Totem it's just a mess of screen tearing (although the video does no jerk on that player).
I have just spent HOURS trying to get VIDEOS TO PLAY. This makes no sense. Playing a video should be the simplest thing in the world for any OS to do, but with Ubuntu it is like pulling teeth. I have NEVER been so frustrated while using a computer. What is going on here?
BTW, I installed every single thing needed to use mplayer but it still does not work. The player comes up but will not play any type of file.
My system specs:
2.2Ghz dual core (intel)
3gb ram
1GB radeon hd 4650 vid card
asus ipibl-lb mobo
I was really enjoying Ubuntu until I got around to trying to watch some videos. Now I am maybe minutes away from going back to vista. At least on there I can watch full 1080p videos if I want with no problems.
View 9 Replies
View Related
May 9, 2010
My totem crashes after several seconds of playing x264 .mkv files. Plays everything else fine (and my HD content better than .vlc so I'm not interested in switching). In terminal, the only output I get is 'Aborted'.
View 9 Replies
View Related
Oct 16, 2010
I recently upgraded to Maverick and am loving it. Converting over my various scripts to work on the new box I notice that my video trascoding script, which uses mencoder to re-encode video as h264, now does not work.
Code:
mencoder $inpfile -oac mp3lame -lameopts vbr=3:q=3 -ovc x264 -x264encopts crf=22:threads=auto:subq=4:bframes=2:b_pyramid:weight_b:turbo=1 -ofps 25 -o $outfile
For a long time this has worked just fine but the command basically bombs out every time with
Code:
FATAL: Cannot initialize video driver.
I tried using the medibuntu mplayer/mencoder but still no dice.
Does anyone know how I can get this important functionality back?
View 4 Replies
View Related
Apr 10, 2010
I'm using openSUSE 11.2 64bit in Dell E6400 with Intel video chipset. I can play x264 720p files without any problems in Windows 7, but in openSUSE, I could play it in Totem, but it is very slow (lots of stopping).
In addition, in songbird, if I use the mediaflow add-on,the scroll becomes really sluggish.
In general, I feel like openSUSE is showing less ram usage but higher CPU usage than Windows 7. Is my video card driver is messed up? I really like openSUSE a lot but so it is disappointing....
View 6 Replies
View Related
Mar 2, 2010
I un-installed all packages that I downloaded and removed all references to the attempted kernel and I thought it was over. Today I tried to install xubuntu-desktop and the install exits with a dpkg errros that refers to that old custom kernel attempt. I run dpkg as instructed (see below):
[code]...
I cannot run apt-get until I try to figure out where this error is.
View 1 Replies
View Related
Aug 19, 2011
I have played around with Fedora for a few years and recently switched to Ubuntu. I am installing VMWare Workstation version 7.1.0 from a retail packaged CD. When I attempt to install VMWare Workstation and VMWare Player I get the following error:
Aug 15 16:24:54.826: app-3078788800| Your GCC version: 4.5
Aug 15 16:24:54.837: app-3078788800| Your GCC version: 4.5
Aug 15 16:24:54.889: app-3078788800| Trying to find a suitable PBM set for kernel 2.6.38-10-generic.
Aug 15 16:24:54.895: app-3078788800| Trying to find a suitable PBM set for kernel 2.6.38-10-generic.....
Aug 15 16:24:56.163: app-3078788800| Failed to compile module vmmon!
I tried installing the patch for kernal 2.6.38-8 found here - [URL] - but it did not resolve the issue. Is there a patch for kernal 2.6.38-10?
I also found this posting for the same problem: [URL]. I followed the following instructions as advised in the post . . .
sudo apt-get update
sudo apt-get install make
sudo apt-get install gcc
Then enter:
uname -r
My kernel was: 2.6.38-10-generic
sudo apt-get install build-essential linux-headers-2.6.38-10-generic
Now run the vmware-install.pl script.
Everything ran without error. However, I continue to get the same error. Another post suggested uninstalliung and reinstalling the software, but this had no affect either. Another post suggested that after running the above update to them run the /usr/bin/vmware-config.pl script. However I do not seem to have the vmware-config.pl in my /usr/bin directory. I checked the various VMWARE directories in /etc and the /tmp/vmware-root directories but no vmware-config.pl
View 2 Replies
View Related
Nov 1, 2010
I have a machine with X-Fi Titanium sound card. Im getting the following errors when trying to compile the driver.
[Code]...
View 3 Replies
View Related
Jan 31, 2010
I've been trying to compile and install different terminal emulators:Eterm, aterm, and libAfterImage for urxvt.
I've been getting all these errors, and it seems odd to me. I did some fiddling awhile back enabling KMS with my radeon, install custom packages for xf86-ati, mesa, and libdrm. Could that or some other fiddling have broken these dependencies?
Here is an excerpt, with the full error log attached and here:url
Code:
In file included from libungif/../xwrap.h:5,
from libungif/../asim_afterbase.h:23,
from libungif/../afterbase.h:36,
from libungif/gif_hash.h:24,
from libungif/gif_lib_private.h:5,
code....
View 1 Replies
View Related
Mar 1, 2011
As part of an assignment, our class was given a small set of c++ classes which are compiled using a makefile. As part of the assignment, I have created a namespace and saved in it a .cpp file. The functions, constants and typedefs from the namespace are now used in one of the original files, and so I added an <#include MyFile.cpp> to the file I modified, in addition to a using MyNamespace;
When I try to use the original makefile, the compiler gives a lot of errors about multiple definitions of every function in the namespace. What do I need to do to resolve this? Do I need to change the makefile or one of the files themselves? I am new to Linux programming and makesfiles.
View 2 Replies
View Related
May 15, 2010
I'm trying to compile ardour 2.8.7 from source and the compile got past the dependencies and everything else fine but it stopped at one point with these errors
[code]...
I have no experience compiling python. I would not like to install from a package as the one with ubuntu is wrongly compiled and so are many others which are hosted I have heard the only way to make the problems with packaged versions stop is by compiling ardour yourself so I would still like to go ahead with it.
View 6 Replies
View Related
Jan 24, 2009
I am new to CENTOS (5.2) and more importantly new to linux. Any time I try to gcc compile something, it always throws random errors. I yum installed development-tools which is what I have seen other threads suggest but that did not solve the issue. I still get the same errors. I cannot find a common error among the many things I have attempted to compile.
Here is my most recent file for an example made when trying to compile up-imapproxy :
gcc -g -O2 -I. -I./include -c -o src/icc.o src/icc.c
gcc -g -O2 -I. -I./include -c -o src/main.o src/main.c
src/main.c: In function "int main(int, char**)":
src/main.c:618: error: invalid conversion from *void* to *void* (*)(void*)
src/main.c:618: error: initializing argument 3 of int pthread_create(pthread_t*, const pthread_attr_t*, void* (*)(void*), void*)
src/main.c:646: error: invalid conversion from int* to socklen_t*
src/main.c:646: error: initializing argument 3 of int accept(int, sockaddr*,socklen_t*)
src/main.c:675: error: invalid conversion from void* to void* (*)(void*)
src/main.c:675: error: initializing argument 3 of int pthread_create(pthread_t*, const pthread_attr_t*, void* (*)(void*), void*)
make: *** [src/main.o] Error 1
View 3 Replies
View Related
Jun 8, 2010
configure: warning: bison versions supported for regeneration of the Zend/PHP parsers: 1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 2.4 2.4.1 (found: none).
configure: warning: flex versions supported for regeneration of the Zend/PHP parsers:
[code]....
View 4 Replies
View Related
Jun 10, 2010
First, I'm trying to cross compile mono 2.6.4 so that it will run on Freescale Embedded Linux for a PowerPC CPU. My host machine is running Fedora 13 on an x86. Freescale provides a copy of the Linux Target Image Builder (LTIB) that has been pre-configured for the particular board I'm using, and LTIB seems to be able to help with the cross compilation of other stuff--you can add in your own packages to be built and included in your newly-built Linux image.
Mono depends on pkg-config and glib-2, so I have selected them in the LTIB package selection config. I've also added a new package for mono that builds mono-2.6.4 from the source tar (after the other deps have also been built).
I'm having a problem getting the glib-2.24.0 package libraries created. Basically they appear to build and link ok, but then libtool runs and errors out claiming it has a syntax error! (numerous wths followed...)
Here is LTIB's temporary build script for only the glib2 package:
Code:
Here is the output when building the glib2 package (configure + make):
Code:
Build path taken because: directory build, build key set, no prebuilt rpm,
View 7 Replies
View Related
Oct 21, 2010
It seems with the newer linux headers, two functions changed their names slightly and caused a crash when attempting to build the Asus-provided USB-N13 drivers.
I'm still in the middle of getting the device to work, but actually compiling the driver was a major problem for me and others I've seen that complained of the breakage in 10.10.
Here's the fix:
Within the include/os/rt_linux.h and os/linux/rt_usb_util.c files, the usb_buffer_alloc and usb_buffer_free functions are part of an internal macro. These functions do not exist anymore and are replaced by the usb_alloc_coherent and usb_free_coherent respectively. Input parameters did not change, just the names.
The macro is defined in rt_linux.h and the functions are used in a symbol export within rt_usb_util.c. Simply renaming the functions should allow it to build.
As I said, I'm still in the process of getting the wireless to work, just wanted to let everyone know of the quick fix.
This issue will probably be addressed with a macro fix somewhere eventually.
#define usb_alloc_coherent(a, b, c, d) usb_buffer_alloc(a, b, c, d)
#define usb_free_coherent(a, b, c, d) usb_buffer_free(a, b, c, d)
View 3 Replies
View Related