
Recherche avancée
Médias (1)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (95)
-
Encodage et transformation en formats lisibles sur Internet
10 avril 2011MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...) -
MediaSPIP Init et Diogène : types de publications de MediaSPIP
11 novembre 2010, parÀ l’installation d’un site MediaSPIP, le plugin MediaSPIP Init réalise certaines opérations dont la principale consiste à créer quatre rubriques principales dans le site et de créer cinq templates de formulaire pour Diogène.
Ces quatre rubriques principales (aussi appelées secteurs) sont : Medias ; Sites ; Editos ; Actualités ;
Pour chacune de ces rubriques est créé un template de formulaire spécifique éponyme. Pour la rubrique "Medias" un second template "catégorie" est créé permettant d’ajouter (...) -
Dépôt de média et thèmes par FTP
31 mai 2013, parL’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)
Sur d’autres sites (9639)
-
Android ICS FFMPEG scale video not working
20 avril 2015, par Android-DeveloperI am using Guardian Project Android Java FFMPEG library to resize videos. Current code which is working on
android 5.0.1 / 5.1.0 / 4.4.4
:File fileTmp = getCacheDir();
FfmpegController fc = null;
try {
fc = new FfmpegController(this, fileTmp);
} catch (IOException e) {
e.printStackTrace();
}
String path = Environment.getExternalStorageDirectory().getPath() + "/Movies/nexus.mp4";
final String outPath = Environment.getExternalStorageDirectory().getPath() + "/Movies/test.mp4";
final Clip out = new Clip(path);
try {
if (fc != null) {
fc.convert(out, outPath, new ShellUtils.ShellCallback() {
@Override
public void shellOut(String shellLine) {
Log.e("", "SHELL OUT: " + shellLine);
}
@Override
public void processComplete(int exitValue) {
Log.e("", "PROCESS COMPLETE: " + exitValue);
}
});
}
} catch (Exception e) {
e.printStackTrace();
}Using this code on Android 4.0.4 (Ice Cream Sandwich) doesn’t do anything. While testing on other devices
exitValue
inprocessComplete
is always equal to0
, but on ICS it’s11
. Here is the output in LogCat :SHELL OUT: /data/data/org.hardartcore.ffmpeg/app_bin/ffmpeg -y -i /mnt/sdcard/Movies/NEXUS.mp4 -ab 160k -r ntsc-film -vf scale=568:320 -strict -2 /mnt/sdcard/Movies/Test.mp4
PROCESS COMPLETE: 11I don’t think it’s something from ffmpeg, more like a problem when the library is trying to execute ffmpeg executable from raw folder in internal memory, but I can’t see any logs or errors which indicate that too.
So my question is, if there is any mistake which I am doing using / running this code or something which can prevent ffmpeg executable from running on old devices with Android ICS ?
Thanks in advance !
-
Extract Images from video and rebuild video with these images
6 mars 2015, par David ZenouI have a very interesting question i think, i did a simple test.
First step : I extract images from a little video (duration : 1 minute and 4 seconds) :
ffmpeg -i C:\test\video.mp4 -r 30 -s 640x360 -f image2 C:\test\foo-%05d.jpeg
Second step : I want to rebuild the initial video with these extracted images with same parameters :
ffmpeg -f image2 -i C:\test\foo-%05d.jpeg -r 30 -s 640x360 C:\test\final.mp4
Special result : Initial video (video.mp4) duration was 1 minute and 4 seconds and new video generated (final.mp4) duration is 1 minute and 17 seconds : the new video is longer and the new film seems slightly slower than the initial video.
My question : Is it possible to get exactly the same film like initial (same duration, same speed) rebuilding the video from its exctrated images ?
-
create thumbnail from video URL in C#
23 mai 2016, par Hashem AboonajmiI want to generate thumbnail from a video URL in C#. I have searched a lot to find a neat way but no success. I have used
Nreco
andMediaToolKit
but none of them extract thumbnail image. using ffmpeg also has mumbo jumbos which didn’t worked !using NReco :
var ffMpeg = new NReco.VideoConverter.FFMpegConverter();
string thumbnailJPEGpath = "http://localhost:81882/content/hashem.jpeg";
ffMpeg.GetVideoThumbnail(videoUrl,thumbnailJPEGpath);using ffmpeg :
try
{
System.Diagnostics.Process ffmpeg;
string video;
string thumb;
video = Server.MapPath("~/Content/Movies/bye.mp4");
thumb = Server.MapPath("~/Content/frame.jpg");
ffmpeg = new System.Diagnostics.Process();
ffmpeg.StartInfo.Arguments = " -i " + video + " -ss 00:00:07 -vframes 1 -f image2 -vcodec mjpeg " + thumb;
ffmpeg.StartInfo.FileName = Server.MapPath("~/Content/ffmpeg.exe");
ffmpeg.Start();
ffmpeg.WaitForExit();
ffmpeg.Close();
}
catch (Exception ex)
{
Response.Write("Error: " + ex.Message);
}to consider video files are not local and I have only a direct link to the file :
e.g. :http://phytonord.com/Film-Series/hana/26.mp4
does anyone has any solution ? any sample code that works ?