
Recherche avancée
Autres articles (64)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
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 (...)
Sur d’autres sites (7585)
-
Anomalie #2542 : forum interne
8 mars 2012, par Ben .confirmé : forum.log ::::::::::::: : Mar 08 16:50:23 127.0.0.1 (pid 5299) :Pri:ERREUR : /home/ben/www/spip-3.0/extensions/forum/inc/forum_insert.php_59Erreur insertion forum sur objet=’’, id_objet=
-
How to convert a GIF to optimized mp4 video using FFMPEG on android ?
6 novembre 2017, par Omar HeziI successfully integrated FFMPEG as a library on android and I am using JNI to communicate my JAVA classes with C and C++ classes.
Background and my question
A chat app where GIFs can be sent, the issue is that one GIF could weigh up to 2MB, after a lot of research I found that the best solution is converting those gifs to mp4 (Something that Facebook messenger, whatsapp and telegram do).My question is, how can I convert a gif to mp4 in order to reduce its size, using ffmpeg (not in command line, in android) as Telegram mentions here ?
What I have attempted
- Understanding and implementing the gifvdeo.cpp from Telegram (it was extremely complicated and I could not understand it fully)
- Converting the gif to frames of bitmaps, and compressing each bitmap and then converting those bitmaps to mp4 (I was not able to pass the bitmap object to C through JNI because of " Fatal signal 11 (SIGSEGV), code 1, fault addr 0x31f in tid 26952" which is another question)
Research I have done
- using ffmpeg to convert gif to mp4 , output doesn’t play on android
- How to convert GIF to Mp4 is it possible ?
- Convert GIF to Video in Android
- https://unix.stackexchange.com/questions/40638/how-to-do-i-convert-an-animated-gif-to-an-mp4-or-mv4-on-the-command-line
the problem with above questions is that they use command line FFMPEG which is not what I am doing, I am using JNI and direct access to c classes of mentioned library.
-
Windows 2003 using php popen "start /b" because of executing ffmpeg.exe
1er juillet 2013, par Oh Seung KwonI have some problem.
There is a php code that convert audio(wav) to mp3 file with using ffmpeg.exe.
Here is some code.
$cmd = "./inc/ffmpeg.exe -i ".$file_name." -acodec mp3 -y -ac 1 -ab 96k ".$mp3_file_name;
echo $cmd;
echo "Windows";
$handle = popen("start /B ".$cmd, "r");
while(!feof($handle)) {
$read = fread($handle, 2096);
echo $read;
}
pclose($handle);Problem is when I execute this code, ffmpeg.exe process isn't terminated. And not gonna die when I stop process with using Windows task manager.
Do you have a solution for this situation ?