
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (72)
-
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
Sur d’autres sites (7609)
-
automatically run script recording video at interval using command line and ffmpg
29 décembre 2014, par arrieI’m really a beginner noob newbie command line noob. But. I’m trying to create a script that automatically starts my isight camera when turning on my mac laptop. It should create clips of about 5 seconds at an interval of 5 hours or so. (These numbers I can change of course later on if I have the basis for my script).
So what I in fact need is (i think) a launch script, that launches a video recording script.
Right now I’m as far as my video recording script, which is not finished : camera.sh
#!/bin/bash
FNAME=videocapture_`date +"%F_%H_%M"`.mpg
echo $FNAME
ffmpeg -f -t "0.20avfoundation -i "" $FNAME
This in fact records a video when I play the script in the command line, until I tell it to quit. These videos are then named according to the date etc. But of course I want it to automatically record videos, in an already determined duration. And I just can’t seem to figure out how to make it happen. I come back to different kind of scripts using isight capture, which in fact doesn’t seem to exist anymore, and even so, I would like to stay with my own basis script just because I understand it haha.
Hopefully someone here can help me figure this out ! Much appreciated :) Thanks !
-
Generating random thumbnails with PHP+FFMPEG
30 décembre 2014, par MrGhostI’m trying to generate thumbnails from random points in a movie using FFMPEG and FFMPEG-PHP extension.
My script works OK.. however takes 20 minutes just to generate 5-10 thumbnails !!
The script works by generating random numbers which are used as frame numbers later. All numbers generated are within the movies frame count.
Can you work out why this script is taking 20 mins to finish ?
If not, a better solution ?<?php
//Dont' timeout
set_time_limit(0);
//Load the file (This can be any file - still takes ages)
$mov = new ffmpeg_movie('1486460.mp4');
//Get the total frames within the movie
$total_frames = $mov->getFrameCount();
//Loop 5-10 times to generate random frames 5-10 times
for ($i = 1; $i <= 5; ) {
// Generate a number within 200 and the total number of frames.
$frame = mt_rand(200,$total_frames);
$getframe = $mov->getFrame($frame);
// Check if the frame exists within the movie
// If it does, place the frame number inside an array and break the current loop
if($getframe){
$frames[$frame] = $getframe ;
$i++;
}
}
//For each frame found generate a thumbnail
foreach ($frames as $key => $getframe) {
$gd_image = $getframe->toGDImage();
imagejpeg($gd_image, "images/shot_".$key.'.jpeg');
imagedestroy($gd_image);
echo $key.'<br />';
}
?>The script SHOULD be generating frame numbers which are valid ? Anything within START - END should be valid frame numbers ? Yet the loop takes ages !
-
avcodec/h264 : use avpriv_find_start_code() in h264_split()
13 février 2015, par Zhaoxiu Zengavcodec/h264 : use avpriv_find_start_code() in h264_split()
This also allows replacing several literal numbers by named constants
And it should be faster, the function is not speed relevant though as it is
generally only called a few times at the streams start.Signed-off-by : Michael Niedermayer <michaelni@gmx.at>