
Recherche avancée
Médias (2)
-
Core Media Video
4 avril 2013, par
Mis à jour : Juin 2013
Langue : français
Type : Video
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (107)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)
Sur d’autres sites (12193)
-
Révision 73214 : Grosse optimisation du temps de calcul de la liste des plugins :
3 juin 2013, par cedric@yterium.com* n’inclure le calcul du detail que si il y a besoin* ne pas calculer de miniature des logos et deleguer a CSS le soin de forcer le width* mutualiser les tests conditionnels, en particulier sur #AUTORISER* par defaut, ne pas calculer le cas des plugins incompatibles. Ils sont d’un usage rare et leur affihcage passe par un rechargement de la page au lieu d’un simple js* ne pas afficher les logos sur les plugins incompatibles* mutualiser l’affichage de certaines erreur
-* optimiser le calcul du slogan pour ne eviter de calculer à la fois #SLOGAN et #DESCRIPTIONEn l’absence de plugins incompatibles, réduction du temps de calcul de plus de 50%
Dans mon cas test en local avec beaucoup de checkout de dossiers plugins et de versions incompatibles, je suis passé de 3.5s à 700ms pour le calcul de la liste. -
How to get stream info from opened file in ffmpeg ?
31 mai 2013, par Srv19I am trying to read video file using ffmpeg. I had working code that corresponded to somewhat old version of it, and started to try and upgrade to latest build version, exchanging all those deprecated functions for their actual analogues.
However i have run into a problem. No streams seem to be retrieved and the load of video stops dead in tracks.
here is the code i am using :
// Open video file
if(avformat_open_input(&pFormatCtx, filename.toStdString().c_str(), NULL, NULL)!=0)
return FILE_NOT_OPENED; // Couldn't open file
// Retrieve stream information
if(avformat_find_stream_info(pFormatCtx,NULL)<0)
return NO_STREAM_INFO; // Couldn't find stream information
// Dump information about file onto standard error
av_dump_format(pFormatCtx, 0, filename.toStdString().c_str(), false);
// Find the first video stream
videoStream=-1;
for(unsigned i=0; inb_streams; i++)
if(pFormatCtx->streams[i]->codec->codec_type==ffmpeg::AVMEDIA_TYPE_VIDEO)
{
videoStream=i;
break;
}
if(videoStream==-1)
return OTHER; // Didn't find a video stream
// Get a pointer to the codec context for the video stream
pCodecCtx=pFormatCtx->streams[videoStream]->codec;
// Find the decoder for the video stream
pCodec=avcodec_find_decoder(pCodecCtx->codec_id);
if(pCodec==NULL)
return CODEC_NOT_FOUND; // Codec not found
// Open codec
if(avcodec_open2(pCodecCtx, pCodec,NULL)<0)
return CODEC_NOT_OPENED; // Could not open codecThe problem arises in the cycle through video streams in
ffmpeg::AVFormatContext *pFormatCtx
. nb_streams field is 0, and i never actually enter the cycle, and codec is not loaded etc. Strange thing is, av_dump_format gives following output :License: GPL version 3 or later
AVCodec version 3606372
AVFormat configuration: --disable-static --enable-shared --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-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
[asf @ 004e9540] Stream #0: not enough frames to estimate rate; consider increasing probesize
Input #0, asf, from 'C:/Users/Public/Videos/Sample Videos/Wildlife.wmv':
Metadata:
SfOriginalFPS : 299700
WMFSDKVersion : 11.0.6001.7000
WMFSDKNeeded : 0.0.0.0000
comment : Footage: Small World Productions, Inc; Tourism New Zealand | Producer: Gary F. Spradling | Music: Steve Ball
title : Wildlife in HD
copyright : В© 2008 Microsoft Corporation
IsVBR : 0
DeviceConformanceTemplate: AP@L3
Duration: 00:00:30.09, start: 0.000000, bitrate: 6977 kb/s
Stream #0:0(eng): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, 2 channels, fltp, 192 kb/s
Stream #0:1(eng): Video: vc1 (Advanced) (WVC1 / 0x31435657), yuv420p, 1280x720, 5942 kb/s, 29.97 tbr, 1k tbn, 1k tbcand there are 2 streams, clear as day.
I am utterly baffled. Please help.
-
FFMPEG fails to find any files matching the regexp
11 avril 2013, par dawe134I want to convert sequence of 40 images to a video. The problem is that ffmpeg could not find any of the inputs images matching the regexp in the command. What am I doing wrong please ?
I ran the following commands :
> ffmpeg -f image2 -i "img%0d.jpg" -vcodec mpeg4 -y -v "verbose" 07_seq_wire.avi
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
img%0d.jpg: No such file or directory
> ls -l
-rw-r--r-- 1 david david 69812 Apr 11 01:54 img01.jpg
-rw-r--r-- 1 david david 70858 Apr 11 01:54 img02.jpg
-rw-r--r-- 1 david david 71481 Apr 11 01:54 img03.jpg
-rw-r--r-- 1 david david 71528 Apr 11 01:54 img04.jpg
-rw-r--r-- 1 david david 71470 Apr 11 01:54 img05.jpg
-rw-r--r-- 1 david david 71534 Apr 11 01:54 img06.jpg
-rw-r--r-- 1 david david 70908 Apr 11 01:54 img07.jpg
-rw-r--r-- 1 david david 70633 Apr 11 01:54 img08.jpg
-rw-r--r-- 1 david david 70059 Apr 11 01:54 img09.jpg
-rw-r--r-- 1 david david 70021 Apr 11 01:54 img10.jpg
-rw-r--r-- 1 david david 69726 Apr 11 01:54 img11.jpg
-rw-r--r-- 1 david david 70896 Apr 11 01:54 img12.jpg
-rw-r--r-- 1 david david 72123 Apr 11 01:54 img13.jpg
-rw-r--r-- 1 david david 72605 Apr 11 01:54 img14.jpg
-rw-r--r-- 1 david david 73501 Apr 11 01:54 img15.jpg
-rw-r--r-- 1 david david 73743 Apr 11 01:54 img16.jpg
-rw-r--r-- 1 david david 74401 Apr 11 01:54 img17.jpg
-rw-r--r-- 1 david david 74697 Apr 11 01:54 img18.jpg
-rw-r--r-- 1 david david 75371 Apr 11 01:54 img19.jpg
-rw-r--r-- 1 david david 74802 Apr 11 01:54 img20.jpg
-rw-r--r-- 1 david david 74802 Apr 11 01:55 img21.jpg
-rw-r--r-- 1 david david 75371 Apr 11 01:55 img22.jpg
-rw-r--r-- 1 david david 74697 Apr 11 01:55 img23.jpg
-rw-r--r-- 1 david david 74401 Apr 11 01:55 img24.jpg
-rw-r--r-- 1 david david 73743 Apr 11 01:55 img25.jpg
-rw-r--r-- 1 david david 73501 Apr 11 01:55 img26.jpg
-rw-r--r-- 1 david david 72605 Apr 11 01:55 img27.jpg
-rw-r--r-- 1 david david 72123 Apr 11 01:55 img28.jpg
-rw-r--r-- 1 david david 70896 Apr 11 01:55 img29.jpg
-rw-r--r-- 1 david david 69726 Apr 11 01:55 img30.jpg
-rw-r--r-- 1 david david 70021 Apr 11 01:55 img31.jpg
-rw-r--r-- 1 david david 70059 Apr 11 01:55 img32.jpg
-rw-r--r-- 1 david david 70633 Apr 11 01:55 img33.jpg
-rw-r--r-- 1 david david 70908 Apr 11 01:55 img34.jpg
-rw-r--r-- 1 david david 71534 Apr 11 01:55 img35.jpg
-rw-r--r-- 1 david david 71470 Apr 11 01:55 img36.jpg
-rw-r--r-- 1 david david 71528 Apr 11 01:55 img37.jpg
-rw-r--r-- 1 david david 71481 Apr 11 01:55 img38.jpg
-rw-r--r-- 1 david david 70858 Apr 11 01:56 img39.jpg
-rw-r--r-- 1 david david 69812 Apr 11 01:56 img40.jpgThanks for any help !