
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (95)
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
Le plugin : Gestion de la mutualisation
2 mars 2010, parLe plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
Installation basique
On installe les fichiers de SPIP sur le serveur.
On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
< ?php (...)
Sur d’autres sites (8925)
-
cant install ffpmeg- php on centos 5.7 [closed]
13 avril 2012, par Hosseini have already installed ffmpeg on my centos 5.7, but whenever i try to install ffmpeg-php i fail to do it . everytime i get to the make section i get these errors :
/bin/sh /usr/src/ffmphp/ffmpeg-php-0.6.0/libtool --mode=compile cc -I. -I/usr/src/ffmphp/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/usr/src/ffmphp/ffmpeg-php-0.6.0/include -I/usr/src/ffmphp/ffmpeg-php-0.6.0/main -I/usr/src/ffmphp/ffmpeg-php-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/libavcodec/ -I/usr/include/libavformat/ -I/usr/include/libavutil/ -I/usr/include/libswscale/ -I/usr/include/libavfilter/ -I/usr/include/libavdevice/ -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c -o ffmpeg_frame.lo
cc -I. -I/usr/src/ffmphp/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/usr/src/ffmphp/ffmpeg-php-0.6.0/include -I/usr/src/ffmphp/ffmpeg-php-0.6.0/main -I/usr/src/ffmphp/ffmpeg-php-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/libavcodec/ -I/usr/include/libavformat/ -I/usr/include/libavutil/ -I/usr/include/libswscale/ -I/usr/include/libavfilter/ -I/usr/include/libavdevice/ -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c -fPIC -DPIC -o .libs/ffmpeg_frame.o
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:50:1: warning: "/*" within comment
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:73: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:74: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ffmpeg_frame_class_entry'
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:79: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ffmpeg_frame_class_methods'
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:102: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:127: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:145: error: expected ')' before '*' token
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:160: error: expected ')' before '*' token
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function 'register_ffmpeg_frame_class':
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:173: warning: implicit declaration of function 'TSRMLS_FETCH'
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:175: warning: implicit declaration of function 'zend_register_list_destructors_ex'
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:175: error: '_php_free_ffmpeg_frame' undeclared (first use in this function)
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:175: error: (Each undeclared identifier is reported only once
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:175: error: for each function it appears in.)
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:176: error: 'NULL' undeclared (first use in this function)
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:178: warning: implicit declaration of function 'INIT_CLASS_ENTRY'
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:178: error: 'ffmpeg_frame_class_entry' undeclared (first use in this function)
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:179: error: 'ffmpeg_frame_class_methods' undeclared (first use in this function)
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:182: error: 'ffmpeg_frame_class_entry_ptr' undeclared (first use in this function)
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:183: warning: implicit declaration of function 'zend_register_internal_class'
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:183: error: expected ')' before 'TSRMLS_CC'
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: At top level:
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:190: error: expected ')' before '*' token
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:446: warning: return type defaults to 'int'
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function 'FFMPEG_PHP_METHOD':
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:447: error: 'ff_frame_context' undeclared (first use in this function)
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:447: error: 'ff_frame' undeclared (first use in this function)
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:449: warning: implicit declaration of function 'GET_FRAME_RESOURCE'
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:449: warning: implicit declaration of function 'getThis'
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:451: warning: implicit declaration of function 'RETURN_DOUBLE'
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:451: error: 'AV_TIME_BASE' undeclared (first use in this function)
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: At top level:
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:459: warning: return type defaults to 'int'
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:459: error: redefinition of 'FFMPEG_PHP_METHOD'
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:446: error: previous definition of 'FFMPEG_PHP_METHOD' was here
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function 'FFMPEG_PHP_METHOD':
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:460: error: 'ff_frame_context' undeclared (first use in this function)
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:460: error: 'ff_frame' undeclared (first use in this function)
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:464: warning: implicit declaration of function 'RETURN_LONG'
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: At top level:
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:472: warning: return type defaults to 'int'
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:472: error: redefinition of 'FFMPEG_PHP_METHOD'
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:446: error: previous definition of 'FFMPEG_PHP_METHOD' was here
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function 'FFMPEG_PHP_METHOD':
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:473: error: 'ff_frame_context' undeclared (first use in this function)
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:473: error: 'ff_frame' undeclared (first use in this function)
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: At top level:
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:485: warning: return type defaults to 'int'
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:485: error: redefinition of 'FFMPEG_PHP_METHOD'
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:446: error: previous definition of 'FFMPEG_PHP_METHOD' was here
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function 'FFMPEG_PHP_METHOD':
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:486: error: 'ff_frame_context' undeclared (first use in this function)
/usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:486: error: 'ff_frame' undeclared (first use in this function)
make: *** [ffmpeg_frame.lo] Error 1i read that if i get the
make: *** [ffmpeg_frame.lo] Error 1
error , i replace all *PIX_FMT_RGBA32* with *PIX_FMT_RGB32* inside *ffmpeg_frame.c*. but when i search the file , there is no *PIX_FMT_RGBA32* . there are all PIX_FMT_RGB32 ! .
so i have no idea what is wrong with it .
can anyone please help me get this going ?
Thanks in advance
Edited :
Thanks to God , i finally found the cause of the problem .
when i was trying to replace PIX_FMT_RGBA32 with PIX_FMT_RGB32 inside ffmpeg_frame.c* using VI i mistakenly messed the source code (the ffmpeg_frame.c) and removed a comment sign (*/ ) and that messed just everything :)
i re extracted all files and then replaced all PIX_FMT_RGBA32 with PIX_FMT_RGB32 and everything compiles just fine :) -
Lagarith and FFMPEG
1er juillet 2022, par tms99Can anyone tell me if and how much data will be lost if I convert a Lagarith encoded video to Huffyuv and then back to Lagarith ?


-
OpenCV3 returning float FRAME_COUNT
15 mars 2016, par mpratI am using OpenCV3 on OSX with Python 2.7 bindings. However, when I try to read the frame count of my video (a .mp4 video), it returns a float - I am expecting an int. Do I need to compile OpenCV3 with some special flags ? Am I missing some codecs ?
import cv2
vid = cv2.VideoCapture("vid.mp4")
print vid.get(cv2.CAP_PROP_FRAME_WIDTH)And it returns a float.
Installation details :
- ffmpeg :
brew install ffmpeg --with-dcadec --with-openh264 --with-openjpeg --with-openssl --with-tools --with-x265 --with-zimg --with-libvidstab --with-libvpx
- opencv3 :
brew install opencv3 --with-ffmpeg --with-contrib
- ffmpeg :