
Recherche avancée
Médias (3)
-
Elephants Dream - Cover of the soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (65)
-
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 -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
L’agrémenter visuellement
10 avril 2011MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté.
Sur d’autres sites (7976)
-
FFMPEG PHP - Converting gif to mpeg
15 août 2014, par Kyle GoodrichI’d like to create a simple script that converts gifs to mpegs using FFMPEG PHP. The script works when using FFMPEG in terminal. When I use a similar script using FFMEG PHP and host it on my domain, the script converts the gif to an mpeg, but only converts one frame of it. This is strange because the FFMPEG line of code that is responsible for the conversion is essentially the same line used previously in terminal. I’ve made sure that my web host (cirtex) has FFMPEG installed in their server. Also, I made sure to edit my php.ini file for FFMPEG use.
The script I created consists of two parts - uploader.php and uploader_02.php.
uploader.php is a simple submit form, where the user uploads and submits a gif.
uploader_02.php receives the gif and copies it over to another directory on the server. Then, the script applies the FFMPEG conversion to the saved gif.
Here’s are the lines of php that are responsible for the conversion :
<?php
// ffmpeg
$ffmpeg = "/usr/bin/ffmpeg";
$videoFile = "test_videos/" . $name;
$output = "test_videos/instagram.mpg";
$cmd = "$ffmpeg -i $videoFile -vb 5M -y $output";
exec($cmd);
?>For some reason, only one frame of the gif is converted into mpeg format. Not sure what is causing this problem.
Any information regarding this issue will help out a lot.
-
ffmpeg yield different results when used in the application
5 mai 2020, par xoailThis is perplexing me. I am using ffmpeg to convert
m4a
towav
audio. When I use it with fluent-ffmpeg the output mime isaudio/wave
while when I do it using terminal I getaudio/wav
. For extactly same commands. The application I am trying to play these files is rejecting myaudio/wave
file.


Using node (results in audio/wave) :



const ffmpegPath = require('@ffmpeg-installer/ffmpeg')
const ffmpeg = require('fluent-ffmpeg');
ffmpeg()
.setFfmpegPath(ffmpegPath)
.input('source.m4a')
.outputOptions(['-ac 1','-ar 16000'])
.save('out.wav')




Using terminal (results in audio/wav) :



/same/path/to/static-ffmpeg-as-in-node-program/ffmpeg -i source.m4a -ac 1 -ar 16000 out.wav




I've both of their encoding as, PCM S16 LE (s16l), 16 bits/sample, mono and 16khz samplerate audio files. I've tried adding other flags and got same results on both scenarios :
-vn -acodec pcm_s16le -ar 16000 -ac 1 -f wav
. Just that one doesnt work. And I have no idea why.


I've also tried not using
fluent-ffmpeg
but usingspawn
and got sameaudio/wave
file.


Any insight ?


-
ffmpeg lib/API to cut videos in java
23 janvier 2017, par João Paulo RaddI’m trying to use some FFmpeg’s lib/API to java to cut a video in several parts by time. I know that I can use RunTime with a command to this, but in my case I need use this in code using some API/lib.
Example command in terminal / runtime :ffmpeg -i /tmp/test.mp4 -ss 30 -c copy -to 40 /tmp/outTest.mp4
String url_str = "ffmpeg -i /tmp/"+fileName+".mp4 -ss "+secStart+" -c copy -to "+secEnd+" /tmp/"+outfile+".mp4 -y";
System.out.println("url_str :"+url_str);
try {
Runtime rt = Runtime.getRuntime();
Process p = rt.exec(url_str);
BufferedReader r = new BufferedReader(new InputStreamReader(p.getErrorStream()));
String s;
while ((s = r.readLine()) != null) {
//System.out.println(s); terminal response
}
r.close();Thus, I’ve a original video and a inicial time in seconds and a final time (some cases, optional) and create a new video with this part.
I’m trying to use the FFmpeg Java by Andrew Brampton (net.bramp.ffmpeg) to do the same thing as the example. But, if some one know by other API/lib, like FFMPEG-Java (net.sf.ffmpeg_java) for example, will be good too.