
Recherche avancée
Autres articles (102)
-
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 (9220)
-
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();
?> -
ffplay seek function
16 juillet 2013, par RadagskarI'm trying to figure out how the seek function using the left/right arrows in ffplay works
i went inside thier open source code and tried to change the values from 10,-10 to different values so i can see if the seek moves correctly but after few attempts i saw that the movie postion after using either left or right arrow isnt moving to exactly the value i specified.For example, if i used the default value 10, and the movie was on 00:10:00, after pressing the right arrow which suppose to move the movie to 00:20:00 i got something like 00:21:35 and it was not constant.
I tried that on varity of movies and got diffrenet results each time.
Anyone has any idea what i'm doing wrong ? or can explain how the seek works in ffplay ?
-
MediaTomb, doesnt execute ffmpeg
19 janvier 2014, par Александър ДобревIm trying to setup MediaTomb on home machine to watch movies on TV via DLNA.Last 2 days, i tried several configs for MediaTomb, a lot of codec variations for ffmpeg but nothing.
The problem is that i try to play HD movie(mkv file), movie is fine except that doesnt have any sound.Strange here is that when i play movie, ffmpeg isnt running as process in htop. Any ideas will be good.
This is my current config of Mediatomb.