
Recherche avancée
Autres articles (45)
-
Qualité du média après traitement
21 juin 2013, parLe bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...) -
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
Sur d’autres sites (7628)
-
FFmpeg post video stream to a webservice cause error 'chunked body too large'
29 novembre 2017, par W. DragonI have a webservice which is developped by Tornado. Now I use FFmpeg to post video stream data to service. After some time, the process is down and rise an error like :
[I 170928 07:33:55 http1connection:253] Malformed HTTP message from 172.18.130.125: chunked body too large
I use command like :
ffmpeg -s 1240x720 -f video4linux2 -i /dev/video0 -b:v 0 -q:v 1 -f mpegts -c:v mpeg1video -b 800k -r 30 http://10.4.245.152:9090/video/live
Should I use ffmpeg to continue post video stream to a webservice ?
-
Evolution #3802 (Nouveau) : Rendre obsolète le filtre
3 juillet 2016, par jluc -La doc http://www.spip.net/fr_article1823.html préconise (#LOGO_DOCUMENT comme manière d"afficher une vignette cliquable pointant vers le document multimédia".
Cette forme d’écriture est dérogatoire : une balise appelée comme filtre. Ne faudrait il déclarer cette écriture obsolète dans SPIP 3.2 puis la virer dans SPIP 3.5 ? Quitte à fournir quelquechose de grammaticalement plus banal pour fournir le même service.
Outre l’apprentissage de spip, ça simplifiera surement le parseur. -
FFmpeg error Unable to load FFMpeg during parallel encoding
1er janvier 2021, par DrJohnI'd like to build web service on the Laravel platform which allows users upload some videos on a server. During uploading video files I use ffmpeg to encode them and compress.
I can't install ffmpeg on my hosting and so I have downloaded packages and executable files from https://ffmpeg.org/download.html and locate them on my web directory. Then I make all steps to install ffmpeg in my Laravel project.
I try to upload a video file and it's OK. The time to upload and encode is about 20 seconds. During encoding of the first video file I try to upload the second. And the second video file falls with the error "Unable to load FFMpeg". But the first video file is encoded successfully. When the first encoding is completed and I repeat uploading the second file it encoded successfully as well.
So I think that ffmpeg can work only with only one file at the time and I can't build multi-user service.
Please help me to find solution.


Here is a peace of code which use to encode files :


try {
 $pub_path = Storage::disk('public')->getAdapter()->getPathPrefix();
 $videopath =$pub_path . $myusertheme->public_reference.'/'.$this->random_filename(25,'','mp4');
 //echo (Storage::disk('public')->getAdapter()->getPathPrefix().'<br />');
 echo ($videopath);
 $ffmpeg = \FFMpeg\FFMpeg::create([
 'ffmpeg.binaries' => "./usr/bin/ffmpeg",
 'ffprobe.binaries' => "./usr/bin/ffprobe",
 'timeout' => 3600, // The timeout for the underlying process
 'ffmpeg.threads' => 12, // The number of threads that FFMpeg should use
 'set_command_and_error_output_on_exception' => true,
 ]);
 $vid=$ffmpeg->open($request->file('videofile')->getRealPath());
 $vid->save(new \FFMpeg\Format\Video\X264('libmp3lame', 'libx264'), $videopath);

/*
 $videopath = $myusertheme->public_reference.'/'.$this->random_filename(25,'','mp4');
 //FFMpeg::fromDisk('local_root')
 $ffmpeg
 ->open($request->file('videofile')->getRealPath())
 ->export()
 ->onProgress(function ($percentage) {
 //echo ($percentage.'/n');
 if ($percentage===100)
 {

 $videopath = $this->random_filename(25,'','mp4');
 }})
 ->inFormat(new \FFMpeg\Format\Video\X264('libmp3lame', 'libx264'))
 ->toDisk('public')
 ->save($videopath);

*/

 } catch (EncodingException $exception) {
 $videopath = null;
 $command = $exception->getCommand();
 $errorLog = $exception->getErrorOutput();
 echo $errorLog;
 return \Response::json('Ошибка кодировки файла', 500);

 }