
Recherche avancée
Autres articles (62)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
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 ;
-
(Dés)Activation de fonctionnalités (plugins)
18 février 2011, parPour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)
Sur d’autres sites (12177)
-
seekFunction in avio_alloc_context
3 février 2018, par Javier RamírezI am trying to make my video file restart from the beginning. The data of my file, are being obtained from a stream, through an istream object.
This is my seekFunction :
int64_t seekFunction(void *opaque,int64_t offset,int whence){
istream *me = reinterpret_cast (opaque);
if(key == 'R')me->seekg(0);
return me->tellg();
}But it does not work. In fact, I do not know how to use this function, and there is very little information. How should this function be used, so that my video restarts ?
If only I use
av_seek_frame(pFormatCtx,0,0,AVSEEK_FLAG_ANY);
avcodec_flush_buffers(pFormatCtx);in my terminal it indicates :
[avi @ 0x1963e80] Seek failed.
What should I do to restart my video that I opened from a stream ?
-
How to retrieve FFMPEG (called from OpenCV) Python decoding error
15 décembre 2020, par user9784065While trying to read a video stream form an IP camera using :



stream = cv2.VideoCapture(src)
(grabbed, frame) = stream.read()




The
grabbed
returns True while sometimes the frames are corrupted (probably due to high CPU load). An internal Opencv error like the following is showing on the terminal :


[h264 @ 0x25e99400] error while decoding MB 87 29, bytestream -5




Is there a way to catch this error ? Please note that I tried the obvious
try:except
withcv2.error
etc. In such case of corrupted frame it would be preferable to restart the connection to the camera.

-
No response from FFMPEG from inside php (works in command line)
28 mai 2020, par Donal.Lynch.MscSo I have this executable working fine in a Windows 10 dev environment :



$cmd = 'C:/ffmpeg/bin/ffmpeg.exe -i video.mp4 -i audio.mp3 -c:v copy -c:a aac output.mp4';
exec($cmd, $output)




However when I move it into the Ubuntu staging environment and change the path to :



/usr/bin/ffmpeg




there is no response from it.
The following works in the ubuntu terminal



ffmpeg -v, ffmpeg -i, php -v, ... 




but there is no response from it from inside php.
Am I missing something here ?



I've also tried adding sudo to the above command which seems to make no difference.
(Yes I know I should be developing in the same environment as the staging/prod servers but it's not an option in this specific case).