
Recherche avancée
Autres articles (112)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)
Sur d’autres sites (14984)
-
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() -
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 -
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 ?