
Recherche avancée
Autres articles (95)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (14614)
-
Trying to install openCV from source but GStreamer and FFMPEG not recognized
23 septembre 2022, par aariesI have tried building the openCV lib from source so I can utilize cpp for a project I am planning instead of python. Before I had it installed using pip and decided to wipe all of the files related to the lib from my machine for a fresh install. Here are the steps I followed to build the project from source and am having some issues with openCV recognizing FFMPEG, GStreamer, QT, and GTK despite them all being installed.


# Clone the repository
$ git clone git@github.com:opencv/opencv.git

$ cd opencv

# create build dir and enter
$ mkdir build && cd build

# Configure
$ cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D OPENCV_GENERATE_PKGCONFIG=ON \
-D BUILD_EXAMPLES=OFF \
-D INSTALL_PYTHON_EXAMPLES=ON \
-D INSTALL_C_EXAMPLES=ON \
-D PYTHON_EXECUTABLE=$(which python2) \
-D BUILD_opencv_python2=OFF \
-D PYTHON3_EXECUTABLE=$(which python3) \
-D PYTHON3_INCLUDE_DIR=$(python3 -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") \
-D PYTHON3_PACKAGES_PATH=$(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") \
-D WITH_GSTREAMER=ON \
-D WITH_FFMPEG=ON \
-D HAVE_FFMPEG=ON \
-D WITH_GTK=ON \
-D BUILD_SHARED_LIBS=ON \
-D WITH_QT=ON \
-D WITH_OPENGL=ON \
-D BUILD_TIFF=ON \
 ..



I don't get to make the project because I notice that GStreamer, FFMPEG, as well as GTK and QT are disabled still despite my cmake flags.
build attempt


I have been scratching my head at this searching up and down stackoverflow and github issues trying to find a proper way to build openCV from source and cannot find a definitive solution or a fix to my issues.
Is there a way to install the package without building from source and being able to utilize the lib with c++ instead of or in addition to python ?


-
Compilation of x264 with newest libswscale and libavformat
4 décembre 2016, par pcrolandYesterday I wanted to compile x264 myself because the latest binary on videolan is compiled without libswscale : link
If I just use
./configure --enable-static --enable-shared
then the binary will compile libswscale 3.1.101 and libavformat 56.40.101 from the libswscale-dev and libavformat-dev packages. If I clone FFmpeg’s git and use
./configure --enable-static --enable-shared --extra-cflags="-I$HOME/FFmpeg"
the binary will have the latest libswscale and libavformat, but it wont work :
pc@pcroland:~/bin$ ./x264 --version
x264 0.148.2744 b97ae06
(libswscale 4.3.101)
(libavformat 57.58.101)
built on Dec 4 2016, gcc: 5.4.0 20160609
x264 configuration: --bit-depth=8 --chroma-format=all
libx264 configuration: --bit-depth=8 --chroma-format=all
x264 license: GPL version 2 or later
libswscale/libavformat license: GPL version 2 or later
pc@pcroland:~/bin$ ./x264 --input-res 1920x1080 --fps 24000/1001 --vf resize:720,404,method=spline --output /home/pc/test.264 /home/pc/asd.264
[h264 @ 0x1bc3ec0] Format h264 detected only with low score of 1, misdetection possible!
[h264 @ 0x1bc3ec0] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
lavf [error]: could not find input stream info
avs [error]: failed to load avisynth
raw [info]: 1920x1080p 0:0 @ 24000/1001 fps (cfr)
resize [info]: resizing to 720x404
x264 [info]: using SAR=404/405
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
x264 [info]: profile High, level 3.0
Bus error (core dumped)
pc@pcroland:~/bin$How to reproduce the error :
cd; git clone https://github.com/FFmpeg/FFmpeg; git clone http://git.videolan.org/git/x264.git; cd x264; ./configure --enable-static --enable-shared --extra-cflags="-I$HOME/FFmpeg" --bindir="$HOME/bin"; sudo make; sudo make install
System : Ubuntu 16.04
-
Compilation of x264 with newest libswscale and libavformat
4 décembre 2016, par pcrolandYesterday I wanted to compile x264 myself because the latest binary on videolan is compiled without libswscale : link
If I just use
./configure --enable-static --enable-shared
then the binary will compile libswscale 3.1.101 and libavformat 56.40.101 from the libswscale-dev and libavformat-dev packages. If I clone FFmpeg’s git and use
./configure --enable-static --enable-shared --extra-cflags="-I$HOME/FFmpeg"
the binary will have the latest libswscale and libavformat, but it wont work :
pc@pcroland:~/bin$ ./x264 --version
x264 0.148.2744 b97ae06
(libswscale 4.3.101)
(libavformat 57.58.101)
built on Dec 4 2016, gcc: 5.4.0 20160609
x264 configuration: --bit-depth=8 --chroma-format=all
libx264 configuration: --bit-depth=8 --chroma-format=all
x264 license: GPL version 2 or later
libswscale/libavformat license: GPL version 2 or later
pc@pcroland:~/bin$ ./x264 --input-res 1920x1080 --fps 24000/1001 --vf resize:720,404,method=spline --output /home/pc/test.264 /home/pc/asd.264
[h264 @ 0x1bc3ec0] Format h264 detected only with low score of 1, misdetection possible!
[h264 @ 0x1bc3ec0] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
lavf [error]: could not find input stream info
avs [error]: failed to load avisynth
raw [info]: 1920x1080p 0:0 @ 24000/1001 fps (cfr)
resize [info]: resizing to 720x404
x264 [info]: using SAR=404/405
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
x264 [info]: profile High, level 3.0
Bus error (core dumped)
pc@pcroland:~/bin$How to reproduce the error :
cd; git clone https://github.com/FFmpeg/FFmpeg; git clone http://git.videolan.org/git/x264.git; cd x264; ./configure --enable-static --enable-shared --extra-cflags="-I$HOME/FFmpeg" --bindir="$HOME/bin"; sudo make; sudo make install
System : Ubuntu 16.04