
Recherche avancée
Médias (1)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
Autres articles (7)
-
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...) -
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)
Sur d’autres sites (2724)
-
Parsed_concat_1 @ 02ad98e0 Failed to configure output pad on Parsed_concat_1
3 décembre 2015, par user650922I am using NReco.VideoConverter(FFMPegConverter) to ConcatMedia. However, I am getting error as Parsed_concat_1 @ 02ad98e0 Failed to configure output pad on Parsed_concat_1.
Here is the code snippet of my code :
try
{
var ffMpeg = new FFMpegConverter();
var set = new ConcatSettings
{
ConcatAudioStream = false
};
set.SetVideoFrameSize(1080, 720);
set.MaxDuration = 500;
ffMpeg.ConcatMedia(videos, output + ".mp4", Format.mp4, set);
return output + ".mp4";
}
catch (Exception ex)
{
var text = new List<string>();
text.AddRange(videos);
text.Add(ex.Message);
throw new Exception(string.Join(", ", text), ex);
}
</string>VideoFrameSize of all the videos is(1080, 720) and FrameRate is 25.
Could some one please help me to resolve the issue.
-
avformat_find_stream_info not return on Linux
23 novembre 2015, par yuan tianI want to fetch the camera video stream on both windows and linux.The code goes everything well with windows.But when I transplant it to Linux,function avformat_find_stream_info can Not return !
bool VideoFetcher::enumCamera(){
for (int i = 0; i<10; i++){
AVInputFormat *pInputFormat = av_find_input_format(
#ifdef __WIN32
"dshow"
#elif __linux
"v4l2"
#else
""
#endif
);
assert(pInputFormat);
#ifdef __linux
char str[128];
sprintf(str, "/dev/video%d", i);
#endif
AVDictionary* dictionary = NULL;
//av_dict_set(&dictionary, "video_size", "640x480", NULL);
//av_dict_set(&dictionary, "framerate", "30", NULL);
if (avformat_open_input(
&this->cameraFormatContext,
#ifdef __WIN32
(std::string("video=")+thg-¬>getCameraName()).c_str(),
#elif __linux
str,
#else
""
#endif
pInputFormat, &dictionary)
< 0)
{
Log("Error : Couldn't open the camera\n");
}else{
return true;
}
}
return false;
}
assert(avFormatContext);
// int streamError;
auto streamError = avformat_find_stream_info(avFormatContext, NULL);
//the function can not return !
printf("findcodec1\n");
if (streamError< 0){
throw StreamErrorException();
} -
DirectShowLib library is not working with .MP4
4 novembre 2015, par Ragesh PuthiyedathI am a newbie in using DirectShowLib for create image thumbnails from video.
Now i try to use this library for make a thumbnail of my .mp4 video.
Please see my code below.
public static bool CreateThumb(string videoFilename, string thumbFilename, double positionPercent)
{
//Logger.ReportInfo("Creating thumb for " + videoFilename);
bool rval = false;
try
{
IMediaDet m = new MediaDet() as IMediaDet;
m.put_Filename(videoFilename);
int streamCount;
m.get_OutputStreams(out streamCount);
AMMediaType media_type = new AMMediaType();
for (int i = 0; i < streamCount; i++)
{
m.get_StreamMediaType(media_type);
VideoInfoHeader vih = (VideoInfoHeader)Marshal.PtrToStructure(media_type.formatPtr, typeof(VideoInfoHeader));
if (vih == null)
{
continue;
}
double pos;
m.get_StreamLength(out pos);
pos = (int)(pos * positionPercent);
int width = vih.BmiHeader.Width;
int height = vih.BmiHeader.Height;
if (height < 10 || width < 10)
{
continue;
}
string tempfile = Path.GetTempFileName() + ".bmp";
m.WriteBitmapBits(pos, width, height, tempfile);
if (File.Exists(tempfile))
{
using (var bitmap = new Bitmap(tempfile))
{
bitmap.Save(thumbFilename, ImageFormat.Png);
}
File.Delete(tempfile);
rval = true;
}
break;
}
Marshal.ReleaseComObject(m);
}
catch (Exception ex)
{
throw ex;
}
return rval;
}But this method is skiped after this line code execution.
m.get_OutputStreams(out streamCount) ;
streamCount is always ’0’. Is this library is not supported the .mp4 format.
Please give me a advice.
Thanks