
Recherche avancée
Autres articles (77)
-
Soumettre bugs et patchs
10 avril 2011Un logiciel n’est malheureusement jamais parfait...
Si vous pensez avoir mis la main sur un bug, reportez le dans notre système de tickets en prenant bien soin de nous remonter certaines informations pertinentes : le type de navigateur et sa version exacte avec lequel vous avez l’anomalie ; une explication la plus précise possible du problème rencontré ; si possibles les étapes pour reproduire le problème ; un lien vers le site / la page en question ;
Si vous pensez avoir résolu vous même le bug (...) -
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. -
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 (8687)
-
FFMPEG get a video duration and create a thumbnail
14 mars 2018, par M.IzzatCurrently this is what I use to convert a video into image from python :
def video_conversion(raw_file):
duration = "ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 input.mp4"
thumbnail_cmd = "ffmpeg -ss 10 -i input.mp4 -vframes 1 output.jpg"
subprocess.call(duration)
return outputbut this will create and Image for every 30 sec of the video duration, what I want is get the video total duration and create athumbnail exactly in the middle of the duration
e.g : if the video duration is 60 second, create a thumbnail on the 30th second
-
ffmpeg-php to create thumbnail of video
8 novembre 2014, par WazzzyI am trying to use this script to create thumbnail of a video using ffmpeg. At first I used
phpinfo();
and I found ffmpeg is installed on my server.Then I copied ffmpeg-php onto my server and run the test file
I got to know that many function are working on my server
I got output like this
Output :-
Functions available in /usr/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so extension:
Methods available in class ffmpeg_movie:
__construct
getduration
getframecount
getframerate
getfilename
getcomment
gettitle
getauthor
getartist
getcopyright
getalbum
getgenre
getyear
gettracknumber
getframewidth
getframeheight
getframenumber
getpixelformat
getbitrate
hasaudio
hasvideo
getnextkeyframe
getframe
getvideocodec
getaudiocodec
getvideostreamid
getaudiostreamid
getaudiochannels
getaudiosamplerate
getaudiobitrate
getvideobitrate
getpixelaspectratio
getpixelaspectratio
getvideobitrate
getaudiobitrate
getaudiosamplerate
getaudiochannels
getaudiostreamid
getvideostreamid
getaudiocodec
getvideocodec
getframe
getnextkeyframe
hasvideo
hasaudio
getbitrate
getpixelformat
getframenumber
getframeheight
getframewidth
gettracknumber
getyear
getgenre
getalbum
getcopyright
getartist
getauthor
gettitle
getcomment
getfilename
getframerate
getframecount
getduration
__constructI wrote this code and tried any possible path to assign
$ffmpeg;
<?php
$thumb_stdout;
$retval=0;
$ffmpeg = '/home/lib/ffmpeg';
// change "demo.mpg" to your mpg file name!
$video = dirname(__FILE__) . 'demo.mpg';
// change "demo.jpg" to whichever name you like or don't
// for this example, the name of the output jpg file does not matter
$image = dirname(__FILE__) . 'demo.jpg';
$second = 1;
$cmd = "$ffmpeg -i $video 2>&1";
if (preg_match('/Duration: ((\d+):(\d+):(\d+))/s', '$cmd', $time)) {
$total = ($time[2] * 3600) + ($time[3] * 60) + $time[4];
$second = rand(1, ($total - 1));
}
//$cmd = "$ffmpeg -i $video -deinterlace -an -ss $second -t 00:00:01 -r 1 -y -vcodec mjpeg -f mjpeg $image 2>&1";
$cmd = "$ffmpeg -i $video -r 1 -ss 00:00:05 -t 00:00:01 -s 250x250 -f image2 $image";
echo $cmd;
exec($cmd);
//$return = '$cmd';
echo '<br />done!';
?> -
FFmpeg youtube livestreaming [closed]
23 janvier 2024, par T1WTI'm developing a project for streaming on YouTube. I use Python + ffpeg in the code. I haven’t been able to fix the problem for a month now - after a while (from 6 to 20 hours) buffering begins. In the command I use -c copy. But after this time, I came to the conclusion that most likely the buffering (namely, the stream gradually drops from speed x1 to speed x0.9 and below) is due to the disk. My server has SATA. Moreover, the problem is that the disk reaches 100% active time. And around this time the flow speed begins to drop. Moreover, the total read/write speed is only 20MB/sec. How to fix it ? Thanks for your help, I really can't stand it anymore.


I’ll say right away that the potential of the project is great, now there are only 50 streams on YouTube, but then there may be more than 10,000.


I tried a lot but settled on the SATA drive and