[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Getting an image into octave from web-camera?
From: |
Philip Nienhuis |
Subject: |
Re: Getting an image into octave from web-camera? |
Date: |
Mon, 13 Jul 2015 11:04:53 -0700 (PDT) |
Davinder Kaur wrote
> I am sorry.
>
>
> I'm following these
> steps(https://gist.github.com/xdamman/e4f713c8cd1a389a5917) to install
> ffmpeg and got this warning-
>
> PC:~/x264$ ./configure --enable-static Warning: AV_PIX_FMT_FLAG_RGB is
> missing from libavutil, update for swscale support
> platform: X86_64
> system: LINUX
> cli: yes
> libx264: internal
> shared: no
> static: yes
> asm: yes
> interlaced: yes
> avs: avxsynth
> lavf: no
> ffms: no
> mp4: gpac
> gpl: yes
> thread: posix
> opencl: yes
> filters: crop select_every
> debug: no
> gprof: no
> strip: no
> PIC: no
> bit depth: 8
> chroma format: all
>
> You can run 'make' or 'make fprofiled' now.
OK a few more hints.
I can only vouch for (.rpm-based) Mageia-4 and Octave-4.1.0+ (development
version).
Note that the pic stuff and arch is required for me as I have 64-bit Linux.
For 32-bit it isn't required I think.
Downloaded and unpacked ffmpeg-2.7.1.
In another (build) directory did:
/full/path/to/unpacked/ffmpeg-2.7.1/configure <several codec/demux options>
--enable-arch-x86_64 --enable-pic --enable-shared --prefix=/usr
In the unpacked ffmpeg source tree, I edited the root"common.mak" and added
-fPIC to CFLAGS and CPPFLAGS.
In the build dir, ran make -5 (core i5) & sudo make install
Next, I unpacked the github video source archive
("....-blah-blah-master.zip") and targz-ed it to video.tar.gz.
Oh yes I commented out the OCTAVE_ALLOCATOR macros and settings in
oct-avifile.h and (IIRC) avifile.cc - you'll see the error mesages in Octave
to guide you which files it were.
In Octave I did:
more off
pkg install -verbose video.tar.gz
...and the rest is in my previous post. In the end when building the docs,
pkg complained it couldn't find libavformatl.so.56 (or something like that),
a symlink that *does* point to a similarly named .so in /usr/lib. It may
have to do with the configure prefix stuff, I don't know.
Maybe I can have another try tonight but I have a family life as well.....
Philip
--
View this message in context:
http://octave.1599824.n4.nabble.com/Getting-an-image-into-octave-from-web-camera-tp4671561p4671616.html
Sent from the Octave - General mailing list archive at Nabble.com.
Re: Getting an image into octave from web-camera?, Andreas Weber, 2015/07/12