
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 (42)
-
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" (...) -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.
Sur d’autres sites (7366)
-
FFMpeg : Images into video
12 mars 2012, par MarkI'm trying to turn a series of images into a video.
My idea is to have a very low frame rate so it's essentially a slideshow video for the frames.
I currently have my images in the following format...
*1-1.jpg
*1-2.jpg
*1-3.jpg
*1-4-1.jpg
*1-4-2.jpg
*1-4-3.jpg
*2-1.jpg
*2-2.jpgetc...
So, here's the command I'm trying to run...
c:\wamp\www\videos\images>c:\ffmpeg\bin\ffmpeg.exe -f image2 -r 1 -i %d-%d.jpg movie.mpg
This command won't do exactly what I want it to, but it'll let me at least get a test video done.
Ideally, I'd like to be able to do multiple run throughs via PHP (which will be easy, I think once I get a working command)
So, on the first run it would process all the images that start with 1, then on the second the ones that start with 2, and so on.
However, no matter how I format the image section of the command, I get the following error...
%d-%d.jpg: No such file or directory
If I just do %d.jpg, I get the same error, but with %d.jpg instead of %d-%d.jpg
Do you have any ideas how I can get this to work ? If I can get it to work with one set, I can use variables and loops in PHP to get it to process the other videos I'll be making.
Thanks in advance for any thoughts.
-
FFMpeg-example of encoding, decoding and playing frames of MPEG4-video continiously ?
28 mars 2012, par Anders BranderudI am looking for an example-code for FFMPEG, which does the following :
- Encodes a file using the MPEG4-codec frame by frame, putting the size of the different frames in an array, and putting the frames in an array [here called 'output-buffer'] - one frame per index of the array. Do this until the file reaches it
Until the end of the output-buffer :
Take the first 25 frames.
[When 25 frames are reached, in my code, in my code the frames will be divided into equal-sized packets ; with a small header giving some information about the frames and their frame size ; and Forward Error Erasure-correction code will be added ; and then the packets will be sent continiously.]- [This will in my code take place on the receiving UDP-socket. It receives the frames continiously. It decodes each Forward Error Erasure-session block. It then reassembles the frames ; and puts them into an array - one frame per index of the array.]
It does this for 25 frames at a time of the output-buffer :
It decodes the encoded data - frame by frame - from the output-buffer.
Add necessary additional information to this 25-frames-segment that is required in order for it to be playable.
Play the 25 frames/put them in a queue to be played.
I am aware of the decoding_encoding.c-example (in /doc/examples of the FFMPEG-library) and wonder which changes that are needed to be made in order to accomplish the above specified functionality ? I am requesting some example-code for this to be done ; including how play the movie and how to feed it with new frames continiously at the same time as previous frames of the movie are played.
This code 'http://cekirdek.pardus.org.tr/~ismail/ffmpeg-docs/api-example_8c-source.html' ; could be used as a base. I want it to read in from a real mpg-file, instead of creating dummy images and encoding the dummy images.
Thanks in advance !
-
PHP - FFMPEG - Unable to apply multiple regular expressions on media output
9 avril 2012, par Parth GI am writing a php script (I have to use php) to cycle through a dir of media files and displaying media information in a chart.
Right now, I'm trying to do it on 1 file.
I can successfully do so. I currently can parse the output (using regular expressions) to obtain information such as file name, duration, resolution, etc
I was told that I can combine the regular expressions to make it more efficient.
When I do however, I am unable to parse the ffmpeg output correctly.
Consequently, I've tried copying the output to a string and parsing that using multiple expressions and it works just fine.
Any help is appreciated.
Thanks.
Working code
$media_info = "'test.mkv': Metadata: creation_time : 2011-03-12 09:04:18 Duration: 00:21:44.10, start: 0.000000, bitrate: 500 kb/s Chapter #0.0: start 0.097000, end 1304.107000 Metadata: title : 00:00:00.097 Stream #0:0: Video: h264 (High), yuv420p, 720x400 [SAR 80:81 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Stream #0:1: Audio: aac, 48000 Hz, stereo, s16 (default) At least one output file must be specified";
$file = array();
$file_test = preg_match_all("/'([a-zA-Z0-9\._]*\.[a-zA-Z0-9]*)'.* Duration: ([0-9]{2,}:[0-9]{2}:[0-9]{2}\.[0-9]*)/", $media_info, $file);;
var_dump($file)Not Working Code
ob_start();
passthru("C:\\wamp\\www\\ffmpeg\\bin\\ffmpeg.exe -i \"{$videofile}\" 2>&1");
$raw_data = ob_get_contents();
ob_end_clean();
$ffmpeg_info = explode("from", $raw_data);
$media_info = $ffmpeg_info[1];
$file = array();
$file_test = preg_match_all("/'([a-zA-Z0-9\._]*\.[a-zA-Z0-9]*)'.* Duration: ([0-9]{2,}:[0-9]{2}:[0-9]{2}\.[0-9]*)/", $media_info, $file);;
var_dump($file)New Code
I tried using the ffmpeg-php extension and the following works (except for printing the bit rate)
$movie = new ffmpeg_movie($video_file);
echo $movie->getFilename();
echo "<br />" ;
echo $movie->getDuration();
echo "<br />" ;
echo $movie->getFrameWidth();
echo "x";
echo $movie->getFrameHeight();
echo "<br />" ;
echo $movie->getBitRate();
echo "<br />" ;
echo $movie->getVideoBitRate();
echo "<br />" ;
echo $movie->getAudioBitRate();
echo "<br />" ;
echo $movie->getVideoCodec();
echo "<br />" ;
echo $movie->getAudioCodec();
?>