
Recherche avancée
Autres articles (98)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)
Sur d’autres sites (6602)
-
Problems compiling ffmpeg on windows using cygwin
26 mai 2014, par Papajohn000I’ve been having a lot of trouble recently compiling ffmpeg on windows. I’m currently using the cgywin terminal to run the code. I’ve tried following many of the most popular tutorials on the web but I can’t seem to get it to work. I’m currently using this tutorial as a guide http://www.roman10.net/how-to-build-ffmpeg-for-android/
Where I’m at :
I’ve created a bash script
#!/bin/bash
NDK=C:/Users/jrblain/Development/adt-bundle-windows-x86_64-20130514/android-ndk-r9
PLATFORM=$NDK/platforms/android-8/arch-arm/
PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64
function build_one
{
./configure --target-os=linux \
--prefix=$PREFIX \
--enable-cross-compile \
--extra-libs="-lgcc" \
--arch=arm \
--cc=$PREBUILT/bin/arm-linux-androideabi-gcc \
--cross-prefix=$PREBUILT/bin/arm-linux-androideabi- \
--nm=$PREBUILT/bin/arm-linux-androideabi-nm \
--sysroot=$PLATFORM \
--extra-cflags=" -O3 -fpic -DANDROID -DHAVE_SYS_UIO_H=1 -Dipv6mr_interface=ipv6mr_ifindex -fasm -Wno-psabi -fno-short-enums -fno-strict-aliasing -finline-limit=300 $OPTIMIZE_CFLAGS " \
--disable-shared \
--enable-static \
--extra-ldflags="-Wl,-rpath-link=$PLATFORM/usr/lib -L$PLATFORM/usr/lib -nostdlib -lc -lm -ldl -llog" \
--disable-everything \
--enable-demuxer=mov \
--enable-demuxer=h264 \
--disable-ffplay \
--enable-protocol=file \
--enable-avformat \
--enable-avcodec \
--enable-decoder=rawvideo \
--enable-decoder=mjpeg \
--enable-decoder=h263 \
--enable-decoder=mpeg4 \
--enable-decoder=h264 \
--enable-parser=h264 \
--disable-network \
--enable-zlib \
--disable-avfilter \
--disable-avdevice \
$ADDITIONAL_CONFIGURE_FLAG
make clean
make -j4 install
$PREBUILT/bin/arm-linux-androideabi-ar d libavcodec/libavcodec.a inverse.o
$PREBUILT/bin/arm-linux-androideabi-ld -rpath-link=$PLATFORM/usr/lib -L$PLATFORM/usr/lib -soname libffmpeg.so -shared -nostdlib -z,noexecstack -Bsymbolic --whole-archive --no-undefined -o $PREFIX/libffmpeg.so libavcodec/libavcodec.a libavformat/libavformat.a libavutil/libavutil.a libswscale/libswscale.a -lc -lm -lz -ldl -llog --warn-once --dynamic-linker=/system/bin/linker $PREBUILT/lib/gcc/arm-linux-androideabi/4.4.3/libgcc.a
}
#arm v6
#CPU=armv6
#OPTIMIZE_CFLAGS="-marm -march=$CPU"
#PREFIX=./android/$CPU
#ADDITIONAL_CONFIGURE_FLAG=
#build_one
#arm v7vfpv3
CPU=armv7-a
OPTIMIZE_CFLAGS="-mfloat-abi=softfp -mfpu=vfpv3-d16 -marm -march=$CPU "
PREFIX=./android/$CPU
ADDITIONAL_CONFIGURE_FLAG=
build_one
#arm v7vfp
#CPU=armv7-a
#OPTIMIZE_CFLAGS="-mfloat-abi=softfp -mfpu=vfp -marm -march=$CPU "
#PREFIX=./android/$CPU-vfp
#ADDITIONAL_CONFIGURE_FLAG=
#build_one
#arm v7n
#CPU=armv7-a
#OPTIMIZE_CFLAGS="-mfloat-abi=softfp -mfpu=neon -marm -march=$CPU -mtune=cortex-a8"
#PREFIX=./android/$CPU
#ADDITIONAL_CONFIGURE_FLAG=--enable-neon
#build_one
#arm v6+vfp
#CPU=armv6
#OPTIMIZE_CFLAGS="-DCMP_HAVE_VFP -mfloat-abi=softfp -mfpu=vfp -marm -march=$CPU"
#PREFIX=./android/${CPU}_vfp
#ADDITIONAL_CONFIGURE_FLAG=
#build_oneI then followed steps 4-6 of this post Does anyone find this useful ? - Compiling FFMPEG on Windows with Cywin and NDK r5 which consists of
4 - Open the file 'configure' in the root of the FFMPEG directory in a text editor.
5 - Comment out lines 2073, 2074 and 2075.
6 - Below 2075, add the following line:
TMPDIR=c:/cygwin/tmpWhen I ran the script in cgywin I got this result :
install prefix ./android/armv7-a
source path .
C compiler C:/Users/jrblain/Development/adt-bundle-windows-x86_64-20130514/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc
ARCH arm (armv7-a)
big-endian no
runtime cpu detection yes
ARMv5TE enabled yes
ARMv6 enabled yes
ARMv6T2 enabled yes
VFP enabled yes
NEON enabled yes
THUMB enabled no
debug symbols yes
strip symbols yes
optimize for size no
optimizations yes
static yes
shared no
postprocessing support no
new filter support no
network support no
threading support pthreads
safe bitstream reader yes
SDL support no
opencl enabled no
texi2html enabled no
perl enabled no
pod2man enabled no
makeinfo enabled no
External libraries:
zlib
Enabled decoders:
h263 mjpeg rawvideo
h264 mpeg4
Enabled encoders:
Enabled hwaccels:
Enabled parsers:
h263 h264 mpeg4video
Enabled demuxers:
h264 mov
Enabled muxers:
Enabled protocols:
file
Enabled filters:
Enabled bsfs:
Enabled indevs:
Enabled outdevs:
License: LGPL version 2.1 or later
Creating config.mak, config.h, and doc/config.texi...
libavutil/avconfig.h is unchanged
WARNING: C:/Users/jrblain/Development/adt-bundle-windows-x86_64-20130514/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/arm-linux-androideabi-pkg-config not found, library detection may fail.
library.mak:105: *** missing separator. Stop.
library.mak:105: *** missing separator. Stop.
C:\Users\jrblain\Development\adt-bundle-windows-x86_64-20130514\android-ndk-r9\toolchains\arm-linux-androideabi-4.6\prebuilt\windows-x86_64\bin\arm-linux-androideabi-ld.exe: ,noexecstack: unknown -z option
C:\Users\jrblain\Development\adt-bundle-windows-x86_64-20130514\android-ndk-r9\toolchains\arm-linux-androideabi-4.6\prebuilt\windows-x86_64\bin\arm-linux-androideabi-ld.exe: use the --help option for usage informationAfter this script runs I get some new files within my ffmpeg folder. They are .config, config(header), config.mak , config.fate. The android folder is never created like it is supposed to. I’m also not sure where the library.mak error is coming from considering that it came with ffmpeg download.
I’m not sure where this i’m going wrong in all of this. I feel like the fact that I’m using windows will make this build process different.
-
Revision ba317bc9dc : vp9_encoder_parms_get_to_decoder : cosmetics fix indent, */& association, join a
10 septembre 2015, par James ZernChanged Paths :
Modify /test/vp9_encoder_parms_get_to_decoder.cc
vp9_encoder_parms_get_to_decoder : cosmeticsfix indent, */& association, join a few lines
Change-Id : Idaca24b87b574788f9508168082d0ade3d4e9ecc
-
Issue installing OpenCV 3.0.0 on Ubuntu 14.04
26 septembre 2015, par marcmanI’ve been trying to install OpenCV on a Linux machine running Ubuntu 14.04. I’ve installed all of the dependencies that I have come across in tutorials as well as those listed on the OpenCV site. However, I’m pretty new to Linux and the Linux file system, so I wouldn’t be terribly surprised if these issues are related to the installation location or something.
It appears that I am getting an issue with FFMPEG stuff, but I definitely have it installed
dpkg -s libgtk2.0-0 | grep '^Version'
returns
Version: 2.24.23-0ubuntu1.3
I’m not quite sure what the issue is here. Below is the error printout. Most of the lines are pretty much identical (I’m assuming the same issue is causing each of these errors). Although I posted the whole thing below for completeness, you can probably get at the issue from one or two of the errors as well as the last line. For brevity’s sake, here are a sample of the errors :
...
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:738:67: error: 'PIX_FMT_RGB24' was not declared in this scope
avpicture_fill((AVPicture*)&rgb_picture, rgb_picture.data[0], PIX_FMT_RGB24,
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:756:17: error: 'PIX_FMT_BGR24' was not declared in this scope
PIX_FMT_BGR24,
^
...
[ 35%] Built target opencv_photo
make: *** [all] Error 2
$The commands immediately preceding the errors were
$ cmake -DWITH_QT=ON -DWITH_OPENGL=ON -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON -DWITH_XINE=ON -DBUILD_EXAMPLES=ON ..
$ make -j4as taken from the tutorial I linked to above.
Entire error printout :
In file included from /usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg.cpp:45:0:
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp: In member function 'void CvCapture_FFMPEG::close()':
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:317:36: error: 'avcodec_free_frame' was not declared in this scope
avcodec_free_frame(&picture);
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp: In member function 'bool CvCapture_FFMPEG::open(const char*)':
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:632:43: error: 'avcodec_alloc_frame' was not declared in this scope
picture = avcodec_alloc_frame();
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:635:41: error: 'PIX_FMT_BGR24' was not declared in this scope
avpicture_get_size( PIX_FMT_BGR24,
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp: In member function 'bool CvCapture_FFMPEG::retrieveFrame(int, unsigned char**, int*, int*, int*, int*)':
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:738:67: error: 'PIX_FMT_RGB24' was not declared in this scope
avpicture_fill((AVPicture*)&rgb_picture, rgb_picture.data[0], PIX_FMT_RGB24,
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:756:17: error: 'PIX_FMT_BGR24' was not declared in this scope
PIX_FMT_BGR24,
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp: In function 'AVFrame* icv_alloc_picture_FFMPEG(int, int, int, bool)':
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1110:35: error: 'avcodec_alloc_frame' was not declared in this scope
picture = avcodec_alloc_frame();
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1113:33: error: 'PixelFormat' was not declared in this scope
size = avpicture_get_size( (PixelFormat) pix_fmt, width, height);
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1122:38: error: expected ')' before 'pix_fmt'
(PixelFormat) pix_fmt, width, height);
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp: At global scope:
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1104:18: warning: unused parameter 'pix_fmt' [-Wunused-parameter]
static AVFrame * icv_alloc_picture_FFMPEG(int pix_fmt, int width, int height, bool alloc)
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp: In function 'AVStream* icv_add_video_stream_FFMPEG(AVFormatContext*, AVCodecID, int, int, int, double, int)':
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1230:19: error: 'PixelFormat' was not declared in this scope
c->pix_fmt = (PixelFormat) pixel_format;
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1230:32: error: expected ';' before 'pixel_format'
c->pix_fmt = (PixelFormat) pixel_format;
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp: At global scope:
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1130:18: warning: unused parameter 'pixel_format' [-Wunused-parameter]
static AVStream *icv_add_video_stream_FFMPEG(AVFormatContext *oc,
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp: In member function 'bool CvVideoWriter_FFMPEG::writeFrame(const unsigned char*, int, int, int, int, int)':
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1405:26: error: 'PIX_FMT_BGR24' was not declared in this scope
if (input_pix_fmt == PIX_FMT_BGR24) {
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1410:31: error: 'PIX_FMT_GRAY8' was not declared in this scope
else if (input_pix_fmt == PIX_FMT_GRAY8) {
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1423:25: error: 'PixelFormat' was not declared in this scope
(PixelFormat)input_pix_fmt, width, height);
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1429:59: error: expected ')' before 'input_pix_fmt'
(PixelFormat)input_pix_fmt,
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1447:25: error: 'PixelFormat' was not declared in this scope
(PixelFormat)input_pix_fmt, width, height);
^
In file included from /usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg.cpp:45:0:
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp: In member function 'bool CvVideoWriter_FFMPEG::open(const char*, int, double, int, int, bool)':
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1604:25: error: 'PIX_FMT_BGR24' was not declared in this scope
input_pix_fmt = PIX_FMT_BGR24;
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1607:25: error: 'PIX_FMT_GRAY8' was not declared in this scope
input_pix_fmt = PIX_FMT_GRAY8;
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1683:25: error: 'PIX_FMT_YUV422P' was not declared in this scope
codec_pix_fmt = PIX_FMT_YUV422P;
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1687:25: error: 'PIX_FMT_YUVJ420P' was not declared in this scope
codec_pix_fmt = PIX_FMT_YUVJ420P;
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1691:42: error: 'PIX_FMT_GRAY8' was not declared in this scope
codec_pix_fmt = input_pix_fmt == PIX_FMT_GRAY8 ||
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1692:42: error: 'PIX_FMT_GRAY16LE' was not declared in this scope
input_pix_fmt == PIX_FMT_GRAY16LE ||
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1693:42: error: 'PIX_FMT_GRAY16BE' was not declared in this scope
input_pix_fmt == PIX_FMT_GRAY16BE ? input_pix_fmt : PIX_FMT_YUV420P;
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1693:77: error: 'PIX_FMT_YUV420P' was not declared in this scope
input_pix_fmt == PIX_FMT_GRAY16BE ? input_pix_fmt : PIX_FMT_YUV420P;
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp: At global scope:
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1922:119: error: 'PixelFormat' has not been declared
static AVStream* addVideoStream(AVFormatContext *oc, CV_CODEC_ID codec_id, int w, int h, int bitrate, double fps, PixelFormat pixel_format);
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1969:134: error: 'PixelFormat' has not been declared
AVStream* OutputMediaStream_FFMPEG::addVideoStream(AVFormatContext *oc, CV_CODEC_ID codec_id, int w, int h, int bitrate, double fps, PixelFormat pixel_format)
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp: In static member function 'static AVStream* OutputMediaStream_FFMPEG::addVideoStream(AVFormatContext*, AVCodecID, int, int, int, double, int)':
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:2047:16: error: invalid conversion from 'int' to 'AVPixelFormat' [-fpermissive]
c->pix_fmt = pixel_format;
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp: In member function 'bool OutputMediaStream_FFMPEG::open(const char*, int, int, double)':
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:2107:5: error: 'PixelFormat' was not declared in this scope
PixelFormat codec_pix_fmt = PIX_FMT_YUV420P;
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:2107:17: error: expected ';' before 'codec_pix_fmt'
PixelFormat codec_pix_fmt = PIX_FMT_YUV420P;
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:2111:99: error: 'codec_pix_fmt' was not declared in this scope
video_st_ = addVideoStream(oc_, codec_id, width, height, width * height * bitrate_scale, fps, codec_pix_fmt);
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp: In member function 'bool InputMediaStream_FFMPEG::open(const char*, int*, int*, int*, int*)':
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:2316:18: error: 'PIX_FMT_YUV420P' was not declared in this scope
case PIX_FMT_YUV420P:
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:2320:18: error: 'PIX_FMT_YUV422P' was not declared in this scope
case PIX_FMT_YUV422P:
^
/usr/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:2324:18: error: 'PIX_FMT_YUV444P' was not declared in this scope
case PIX_FMT_YUV444P:
^
make[2]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_ffmpeg.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 35%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/align.cpp.o
make[1]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 35%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/seamless_cloning_impl.cpp.o
[ 35%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/hdr_common.cpp.o
[ 35%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/opencl_kernels_photo.cpp.o
Linking CXX shared library ../../lib/libopencv_photo.so
[ 35%] Built target opencv_photo
make: *** [all] Error 2Any insight is greatly appreciated !