
Recherche avancée
Autres articles (46)
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
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. -
Qu’est ce qu’un éditorial
21 juin 2013, parEcrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
Vous pouvez personnaliser le formulaire de création d’un éditorial.
Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...)
Sur d’autres sites (5502)
-
Fix nonsense MPEG-4 hwaccel code.
21 août 2013, par Reimar DöffingerFix nonsense MPEG-4 hwaccel code.
Issues with the code :
1) The skip_bits_long breaks packed B-frames since we skip
of the packed frame, even for VDPAU.
2) Calling ff_h263_find_resync_marker_reverse is nonsense for MPEG-4,
and for H.263 the only code using this (vaapi_mpeg4) explicitly reverts
this change !
3) mb_x/mb_y are always 0 when vaapi_mpeg4_decode_slice, so doing
computations with them is just obfuscation
4) due to not updating mb_y the code would always go into the error
resilience case, causing nonsense error messages and maybe further
issues.While tested to fix the data provided to the decoder in case of
VDPAU so it is the same as for the non-hwaccel code, the VA-API code
was not tested to still work, and adding regression testing even
as a quick hack is much more complicated for it.Signed-off-by : Reimar Döffinger <Reimar.Doeffinger@gmx.de>
-
Cannot find ffmpeg when moving the code to a new computer
20 septembre 2021, par OmersrI have a code that works on my computer but when I moved it to a new one it doesn't find the ffmpeg dependency.
It happens on these lines of code :


var videoshow = require('videoshow')
 var image = [{path: './screenshot.jpg'}]
 var videoOption = { 
 loop: 10,
 fps: 25,
 transition: false,
 transitionDuration: 0, // seconds
 videoBitrate: 1024,
 videoCodec: 'libx264',
 size: '640x?',
 audioBitrate: '128k',
 audioChannels: 2,
 format: 'mp4',
 pixelFormat: 'yuv420p'
 }
 //call the videoshow library
 videoshow(image,videoOption).save(filename+"_"+"movie.mp4").on('start',function(command){
 console.log("conversion started" + command)
 }).on('error',function(err,stdout,stderr){
 console.log("some error occured"+ err)
 }).on('end',function(output){
 console.log("conversion complete "+ output)



It throws an error "Cannot find ffmpeg".
I tried to do npm install or npm install ffmpeg but it didn't help.
I think this happens because I don't know how to make dependencies work on a different computer.
Any help would be appreciated !


-
FFMPEG not working in php code
19 avril 2015, par UserI have tried with ffmpeg for video thumbnail creation.
In windows its working fine, but in Linux(centos) it’s not working.i have tried the following command :
$cmd = "/usr/local/bin/ffmpeg -i /opt/lampp/htdocs/mydashboard/sites/default/files/content_videos/".$video."
-ss 00:00:01.435 -f image2 -vframes 1 /opt/lampp/htdocs/mydashboard/sites/default/files/content_images/".$videoname."-thumb.jpg";
echo exec($cmd);The abovecommand is working in the Linux command line and thumbnails are creating in destination folder, i have given static video file.
But the same command is not working as expected in the php script.
Any help is greatly appreciated.