
Recherche avancée
Autres articles (96)
-
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
-
Les sons
15 mai 2013, par -
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
Sur d’autres sites (10685)
-
create multiple movie thumbnails using ffmpeg (one at a time) failing
2 septembre 2013, par Christopher JohnsonI'm using this small bit of code to create thumbnails of videos being uploaded to my site :
public static void GetThumbnail(string video, string thumbnail)
{
var cmd = "ffmpeg -itsoffset -1 -i " + '"' + video + '"' + " -vcodec mjpeg -vframes 1 -an -f rawvideo -s 320x240 " + '"' + thumbnail + '"';
var startInfo = new ProcessStartInfo
{
WindowStyle = ProcessWindowStyle.Hidden,
FileName = "cmd.exe",
Arguments = "/C " + cmd
};
var process = new Process
{
StartInfo = startInfo
};
process.Start();
}I'm uploading the videos one at a time asynchronously. The first video thumbnail gets created just fine, but each subsequent one does not get created. I've noticed that if I try to delete subsequent videos from the file system, it says it can not delete them because they are in use by ffmpeg. I can delete the first one that finished processing just fine. I have to kill the ffmpeg process from task manager for all of the others that it's holding open. Why is ffmpeg only working the first time through and then holding the video's open in an open process afterwards ?
I also tried creating multiple thumbnails one at a time from the command prompt and that worked fine (the process does not stay open either).
What am I missing in my c# code to make sure the process finishes, and then terminates ?
-
ffmpeg dont work in php shell_exec("ffmpeg -i $movie $pic &")
26 septembre 2016, par josefI’m running the following script without any problems :
<?php
echo $video = dirname(__FILE__)."\\MOVIES\\1.mp4";
echo "<br />";
echo $pic = dirname(__FILE__)."\\PICTURES\\1.jpg";
echo shell_exec("ffmpeg -i $video $pic &");But when I run this one i get nothing :
echo shell_exec("ffmpeg -i C:\xampp\htdocs\Video-share-script\MOVIES\1.mp4 C:\xampp\htdocs\Video-share-script\PICTURES\1.jpg &");
the value of $video is C :\xampp\htdocs\Video-share-script\MOVIES\1.mp4
and $pic is C :\xampp\htdocs\Video-share-script\PICTURES\1.jpg
thank you -
Python - saving movie with ffmpeg - alternative syntax
12 octobre 2016, par HonigdachsI want to save a real time plot using ffmpeg using a common python syntax below :
with writer.saving(fig, "anim.mp4", 100):
...
...
writer.grab_frame()Question : Is there an alternative way like possible for saving file in python ?
Instead of using the code above, similar to :
with open('Failed.py', 'w') as file:
file.write('whatever')I would like to use for saving the movie something similar to :
file = open('Failed.py', 'w')
file.write('whatever')
file.close()