
Recherche avancée
Autres articles (36)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
MediaSPIP Player : les contrôles
26 mai 2010, parLes contrôles à la souris du lecteur
En plus des actions au click sur les boutons visibles de l’interface du lecteur, il est également possible d’effectuer d’autres actions grâce à la souris : Click : en cliquant sur la vidéo ou sur le logo du son, celui ci se mettra en lecture ou en pause en fonction de son état actuel ; Molette (roulement) : en plaçant la souris sur l’espace utilisé par le média (hover), la molette de la souris n’exerce plus l’effet habituel de scroll de la page, mais diminue ou (...) -
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 (6208)
-
how to build ffmpeg shared libraries without version suffix
24 octobre 2017, par andruidois there a way i can configure to build ffmpeg shared libraries for android without version number suffixes ? im able to build with different options but always get files like "libavcodec.so.57". i would need the libraries without suffixes like "libavcodec.so". i thought the option "—disable-symver" would do the trick but unfortunately it didn’t. the problem is that i have a library (.so file) that depends on ffmpeg shared libraries without suffixes and therefore can’t load those im getting built.
i have followed mostly the instructions here. -
FFMPEG doesn't convert from m4v files
8 février 2014, par MattDI am trying to transcode an m4v file from iTunes so I can play it on Windows or XBox. I am running ffmpeg from Windows. Is there some -vcodec I need to specify or something I need to install ? Here's the command I'm running and the error I'm getting.
Edit : Complete output
ffmpeg version N-60393-g9707b53 Copyright (c) 2000-2014 the FFmpeg developers
built on Feb 6 2014 22:07:13 with gcc 4.8.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 52. 63.101 / 52. 63.101
libavcodec 55. 49.101 / 55. 49.101
libavformat 55. 30.100 / 55. 30.100
libavdevice 55. 7.100 / 55. 7.100
libavfilter 4. 1.102 / 4. 1.102
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 000000000268f620] stream 0, timescale not set
[mov,mp4,m4a,3gp,3g2,mj2 @ 000000000268f620] Stream #3: not enough frames to estimate rate; consider increasing probesize
[mov,mp4,m4a,3gp,3g2,mj2 @ 000000000268f620] Stream #4: not enough frames to estimate rate; consider increasing probesize
[mov,mp4,m4a,3gp,3g2,mj2 @ 000000000268f620] Could not find codec parameters for stream 1 (Video: none (drmi / 0x696D7264), 960x718, 3957 kb/s): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mov,mp4,m4a,3gp,3g2,mj2 @ 000000000268f620] Could not find codec parameters for stream 2 (Audio: none (drms / 0x736D7264), 48000 Hz, 5.1(side), 384 kb/s): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mov,mp4,m4a,3gp,3g2,mj2 @ 000000000268f620] Could not find codec parameters for stream 3 (Subtitle: none (p608 / 0x38303670), 1280x718, 0 kb/s): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Y:02 The Empty Hearse (HD).m4v':
Metadata:
major_brand : M4V
minor_version : 0
compatible_brands: M4V mp42isom
creation_time : 2014-01-13 18:51:33
title : [...]
artist : [...]
album : [...]
genre : Drama
track : 2/8
disc : 1/1
date : 2014-01-19T08:00:00Z
description : [...]
hd_video : 1
network : PBS
show : Sherlock
episode_id : 1
season_number : 3
episode_sort : 2
media_type : 10
synopsis : [...]
Duration: 01:26:28.70, start: 0.000000, bitrate: 4505 kb/s
Stream #0:0(eng): Audio: aac (drms / 0x736D7264), 48000 Hz, stereo, fltp, 156 kb/s (default)
Metadata:
creation_time : 2014-01-13 18:51:33
handler_name : Apple Sound Media Handler
Stream #0:1(eng): Video: none (drmi / 0x696D7264), 960x718, 3957 kb/s, SAR 4:3 DAR 640:359, 25 fps, 25 tbr, 2500 tbn, 2500 tbc (default)
Metadata:
creation_time : 2014-01-13 18:51:33
handler_name : Apple Video Media Handler
Stream #0:2(eng): Audio: none (drms / 0x736D7264), 48000 Hz, 5.1(side), 384 kb/s
Metadata:
creation_time : 2014-01-13 18:51:33
handler_name : Apple Sound Media Handler
Stream #0:3(eng): Subtitle: none (p608 / 0x38303670), 1280x718, 0 kb/s (default)
Metadata:
creation_time : 2014-01-13 18:51:33
handler_name : Apple Closed Caption Media Handler
Stream #0:4: Video: mjpeg, yuvj444p(pc), 640x640 [SAR 300:300 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
File 'Sherlock.wmv' already exists. Overwrite ? [y/N] [buffer @ 0000000005fc5760] Unable to parse option value "-1" as pixel format
Last message repeated 1 times
[buffer @ 0000000005fc5760] Error setting option pix_fmt to value -1.
[graph 0 input from stream 0:1 @ 00000000027d7da0] Error applying options to the filter.
Error opening filters! -
OpenCV compile process fails
12 septembre 2017, par borkSo I’m following this post on how to install openCV for Python 3. And I’m running into some issues at the compile process. Running the
make -j4
command goes fine up until it’s 28% through when I get this error message :error: use of undeclared identifier 'avcodec_free_frame'; did you mean 'avcodec_get_name'?
I don’t even know where to start to solve this issue. I’ve got
ffmpeg
installed through brew.Complete list of commands :
cd ~
git clone https://github.com/Itseez/opencv.git
cd opencv
git checkout 3.0.0
cd ~
git clone https://github.com/Itseez/opencv_contrib.git
cd opencv_contrib
git checkout 3.0.0
cd ~/opencv
mkdir build
cd build
cmake CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \
-D PYTHON3_LIBRARY=/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/config-3.5m/libpython3.5.dylib \
-D PYTHON3_INCLUDE_DIR=/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/include/python3.5m/ \
-D PYTHON3_EXECUTABLE=$VIRTUAL_ENV/bin/python \
-D BUILD_opencv_python2=OFF \
-D BUILD_opencv_python3=ON \
-D INSTALL_PYTHON_EXAMPLES=ON \
-D INSTALL_C_EXAMPLES=OFF \
-D BUILD_EXAMPLES=ON .. \
-D FFMPEG_INCLUDE_DIR=/usr/local/Cellar/ffmpeg/3.3.4/include/
-D FFMPEG_LIB_DIR=/usr/local/Cellar/ffmpeg/3.3.4/lib/
-D WITH_FFMPEG=ON
cmake
make -j4I got the
FFMPEG_INCLUDE_DIR
,FFMPEG_LIB_DIR
andWITH_FFMPEG
from this post : http://blog.jiashen.me/2014/12/23/build-opencv-3-on-mac-os-x-with-python-3-and-ffmpeg-support/The full error log :
[ 28%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_qtkit.mm.o
In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
/Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:317:9: error: use of undeclared identifier
'avcodec_free_frame'; did you mean 'avcodec_get_name'?
avcodec_free_frame(&picture);
^~~~~~~~~~~~~~~~~~
avcodec_get_name
/usr/local/Cellar/ffmpeg/3.3.4/include/libavcodec/avcodec.h:6289:13: note: 'avcodec_get_name' declared here
const char *avcodec_get_name(enum AVCodecID id);
^
In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
/Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:317:28: error: cannot initialize a parameter of type
'enum AVCodecID' with an rvalue of type 'AVFrame **'
avcodec_free_frame(&picture);
^~~~~~~~
/usr/local/Cellar/ffmpeg/3.3.4/include/libavcodec/avcodec.h:6289:45: note: passing argument to parameter 'id' here
const char *avcodec_get_name(enum AVCodecID id);
^
In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
/Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:632:23: error: use of undeclared identifier
'avcodec_alloc_frame'
picture = avcodec_alloc_frame();
^
/Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:635:41: error: use of undeclared identifier
'PIX_FMT_BGR24'; did you mean 'AV_PIX_FMT_BGR24'?
avpicture_get_size( PIX_FMT_BGR24,
^~~~~~~~~~~~~
AV_PIX_FMT_BGR24
/usr/local/Cellar/ffmpeg/3.3.4/include/libavutil/pixfmt.h:65:5: note: 'AV_PIX_FMT_BGR24' declared here
AV_PIX_FMT_BGR24, ///< packed RGB 8:8:8, 24bpp, BGRBGR...
^
In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
/Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:638:29: error: use of undeclared identifier
'PIX_FMT_BGR24'; did you mean 'AV_PIX_FMT_BGR24'?
PIX_FMT_BGR24, enc->width, enc->height );
^~~~~~~~~~~~~
AV_PIX_FMT_BGR24
/usr/local/Cellar/ffmpeg/3.3.4/include/libavutil/pixfmt.h:65:5: note: 'AV_PIX_FMT_BGR24' declared here
AV_PIX_FMT_BGR24, ///< packed RGB 8:8:8, 24bpp, BGRBGR...
^
In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
/Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:738:67: error: use of undeclared identifier
'PIX_FMT_RGB24'; did you mean 'AV_PIX_FMT_RGB24'?
avpicture_fill((AVPicture*)&rgb_picture, rgb_picture.data[0], PIX_FMT_RGB24,
^~~~~~~~~~~~~
AV_PIX_FMT_RGB24
/usr/local/Cellar/ffmpeg/3.3.4/include/libavutil/pixfmt.h:64:5: note: 'AV_PIX_FMT_RGB24' declared here
AV_PIX_FMT_RGB24, ///< packed RGB 8:8:8, 24bpp, RGBRGB...
^
In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
/Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:756:17: error: use of undeclared identifier
'PIX_FMT_BGR24'; did you mean 'AV_PIX_FMT_BGR24'?
PIX_FMT_BGR24,
^~~~~~~~~~~~~
AV_PIX_FMT_BGR24
/usr/local/Cellar/ffmpeg/3.3.4/include/libavutil/pixfmt.h:65:5: note: 'AV_PIX_FMT_BGR24' declared here
AV_PIX_FMT_BGR24, ///< packed RGB 8:8:8, 24bpp, BGRBGR...
^
In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
/Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:1110:15: error: use of undeclared identifier
'avcodec_alloc_frame'
picture = avcodec_alloc_frame();
^
/Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:1113:33: error: unknown type name 'PixelFormat'; did you
mean 'AVPixelFormat'?
size = avpicture_get_size( (PixelFormat) pix_fmt, width, height);
^~~~~~~~~~~
AVPixelFormat
/usr/local/Cellar/ffmpeg/3.3.4/include/libavutil/pixfmt.h:60:6: note: 'AVPixelFormat' declared here
enum AVPixelFormat {
^
In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
/Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:1122:25: error: unknown type name 'PixelFormat'; did you
mean 'AVPixelFormat'?
(PixelFormat) pix_fmt, width, height);
^~~~~~~~~~~
AVPixelFormat
/usr/local/Cellar/ffmpeg/3.3.4/include/libavutil/pixfmt.h:60:6: note: 'AVPixelFormat' declared here
enum AVPixelFormat {
^
In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
/Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:1230:19: error: unknown type name 'PixelFormat'; did you
mean 'AVPixelFormat'?
c->pix_fmt = (PixelFormat) pixel_format;
^~~~~~~~~~~
AVPixelFormat
/usr/local/Cellar/ffmpeg/3.3.4/include/libavutil/pixfmt.h:60:6: note: 'AVPixelFormat' declared here
enum AVPixelFormat {
^
In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
/Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:1405:26: error: use of undeclared identifier
'PIX_FMT_BGR24'; did you mean 'AV_PIX_FMT_BGR24'?
if (input_pix_fmt == PIX_FMT_BGR24) {
^~~~~~~~~~~~~
AV_PIX_FMT_BGR24
/usr/local/Cellar/ffmpeg/3.3.4/include/libavutil/pixfmt.h:65:5: note: 'AV_PIX_FMT_BGR24' declared here
AV_PIX_FMT_BGR24, ///< packed RGB 8:8:8, 24bpp, BGRBGR...
^
In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
/Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:1410:31: error: use of undeclared identifier
'PIX_FMT_GRAY8'; did you mean 'AV_PIX_FMT_GRAY8'?
else if (input_pix_fmt == PIX_FMT_GRAY8) {
^~~~~~~~~~~~~
AV_PIX_FMT_GRAY8
/usr/local/Cellar/ffmpeg/3.3.4/include/libavutil/pixfmt.h:70:5: note: 'AV_PIX_FMT_GRAY8' declared here
AV_PIX_FMT_GRAY8, ///< Y , 8bpp
^
In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
/Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:1423:25: error: unknown type name 'PixelFormat'; did you
mean 'AVPixelFormat'?
(PixelFormat)input_pix_fmt, width, height);
^~~~~~~~~~~
AVPixelFormat
/usr/local/Cellar/ffmpeg/3.3.4/include/libavutil/pixfmt.h:60:6: note: 'AVPixelFormat' declared here
enum AVPixelFormat {
^
In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
/Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:1429:47: error: unknown type name 'PixelFormat'; did you
mean 'AVPixelFormat'?
(PixelFormat)input_pix_fmt,
^~~~~~~~~~~
AVPixelFormat
/usr/local/Cellar/ffmpeg/3.3.4/include/libavutil/pixfmt.h:60:6: note: 'AVPixelFormat' declared here
enum AVPixelFormat {
^
In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
/Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:1447:25: error: unknown type name 'PixelFormat'; did you
mean 'AVPixelFormat'?
(PixelFormat)input_pix_fmt, width, height);
^~~~~~~~~~~
AVPixelFormat
/usr/local/Cellar/ffmpeg/3.3.4/include/libavutil/pixfmt.h:60:6: note: 'AVPixelFormat' declared here
enum AVPixelFormat {
^
In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
/Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:1604:25: error: use of undeclared identifier
'PIX_FMT_BGR24'; did you mean 'AV_PIX_FMT_BGR24'?
input_pix_fmt = PIX_FMT_BGR24;
^~~~~~~~~~~~~
AV_PIX_FMT_BGR24
/usr/local/Cellar/ffmpeg/3.3.4/include/libavutil/pixfmt.h:65:5: note: 'AV_PIX_FMT_BGR24' declared here
AV_PIX_FMT_BGR24, ///< packed RGB 8:8:8, 24bpp, BGRBGR...
^
In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
/Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:1607:25: error: use of undeclared identifier
'PIX_FMT_GRAY8'; did you mean 'AV_PIX_FMT_GRAY8'?
input_pix_fmt = PIX_FMT_GRAY8;
^~~~~~~~~~~~~
AV_PIX_FMT_GRAY8
/usr/local/Cellar/ffmpeg/3.3.4/include/libavutil/pixfmt.h:70:5: note: 'AV_PIX_FMT_GRAY8' declared here
AV_PIX_FMT_GRAY8, ///< Y , 8bpp
^
In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
/Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:1683:25: error: use of undeclared identifier
'PIX_FMT_YUV422P'; did you mean 'AV_PIX_FMT_YUV422P'?
codec_pix_fmt = PIX_FMT_YUV422P;
^~~~~~~~~~~~~~~
AV_PIX_FMT_YUV422P
/usr/local/Cellar/ffmpeg/3.3.4/include/libavutil/pixfmt.h:66:5: note: 'AV_PIX_FMT_YUV422P' declared here
AV_PIX_FMT_YUV422P, ///< planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_ffmpeg.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/Users/myuser/opencv/modules/videoio/src/cap_qtkit.mm:46:9: fatal error: 'QTKit/QTKit.h' file not found
#import <qtkit></qtkit>QTKit.h>
^
1 error generated.
make[2]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_qtkit.mm.o] Error 1
make[1]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2
make: *** [all] Error 2This question on openCV’s website seems to adress the same issue but there is no solution posted : http://answers.opencv.org/question/90091/error-use-of-undeclared-identifier-avcodec_free_frame-did-you-mean-avcodec_get_name/