
Recherche avancée
Médias (91)
-
Géodiversité
9 septembre 2011, par ,
Mis à jour : Août 2018
Langue : français
Type : Texte
-
USGS Real-time Earthquakes
8 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
SWFUpload Process
6 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
-
Creativecommons informational flyer
16 mai 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (68)
-
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...) -
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...) -
Problèmes fréquents
10 mars 2010, parPHP et safe_mode activé
Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site
Sur d’autres sites (5316)
-
FFMPEG Convert HTML 5 Video NOT Working
2 juillet 2016, par BradI am using FFMPEG to convert a video to .mp4, ,ogg, .webm so that it may be viewed in all HTML5 capable browsers using the video tag. The problem is that I manage to convert the video to the 3 required formats but it does not display the video in the video tag, all I get is IE9 : red cross, Firefox : Grey cross, could it be a problem with the conversion or is it something to do with the way I am adding them to the source of the video tag. Here is what I have done :
-
FFmpeg command line(s) :
ffmpeg -i test.mp4 test.mp4
ffmpeg -i test.mp4 test.ogg
ffmpeg -i test.mp4 test.webm -
Here is the video tag :
<video height="340" width="470" preload="true" autobuffer="true" controls="true">
<source src="test.ogg" type="video/ogg"></source>
<source src="test.mp4" type="video/mp4"></source>
</video> -
Webconfig lines for the video support :
<staticcontent>
<mimemap fileextension=".mp4" mimetype="video/mp4"></mimemap>
<mimemap fileextension=".ogg" mimetype="audio/ogg"></mimemap>
<mimemap fileextension=".oga" mimetype="audio/ogg"></mimemap>
<mimemap fileextension=".ogv" mimetype="video/ogg"></mimemap>
<mimemap fileextension=".webm" mimetype="video/webm"></mimemap>
</staticcontent>
It would be great if someone could send me the required parameters for ffmpeg to convert the video to the 3 required formats and an example of how they setting the source in the video tag to display them again. And any other advise would be great like how to set the quality up etc when doing the conversion.
Thanks in advance.
-
-
Merge videos in c# asp.net using ffmpeg
3 juillet 2012, par Arun KumarIs it possible to merge the two videos by c# asp.net with the help of ffmpeg. In the ffmpeg documentation they gave us cat command. But it wont works in asp.net. I thought it only for linux.
cat intermediate1.mpg intermediate2.mpg > intermediate_all.mpg
asp.net execute this command but there is no output. Help me.
namespace demo
{
public partial class Default : System.Web.UI.Page
{
protected void Button2_Click(object sender, EventArgs e)
{
string strFile = "cars1.flv";
MergeFiles(strFile);
}
public void MergeFiles(string strFile)
{
string strParam;
string Path_FFMPEG = Server.MapPath("~/ffmpeg/bin/ffmpeg.exe");
//Converting a video into mp4 format
string strOrginal = Server.MapPath("~/Videos/");
strOrginal = strOrginal + strFile;
string strConvert = Server.MapPath("~/Videos/ConvertedFiles/");
string strExtn = Path.GetExtension(strOrginal);
if (strExtn != ".mp4")
{
strConvert = strConvert + strFile.Replace(strExtn, ".mp4");
strParam = "-i " + strOrginal + " " + strConvert;
//strParam = "-i " + strOrginal + " -same_quant " + strConvert;
process(Path_FFMPEG, strParam);
}
//Merging two videos
String video1 = Server.MapPath("~/Videos/Cars1.mp4");
String video2 = Server.MapPath("~/Videos/ConvertedFiles/Cars2.mp4");
String strResult = Server.MapPath("~/Videos/ConvertedFiles/Merge.mp4");
//strParam = "-loop_input -shortest -y -i " + video1 + " -i " + video2 + " -acodec copy -vcodec mjpeg " + strResult;
strParam = " -i " + video1 + " -i " + video2 + " -acodec copy -vcodec mjpeg " + strResult;
process(Path_FFMPEG, strParam);
}
public void process(string Path_FFMPEG, string strParam)
{
try
{
Process ffmpeg = new Process();
ProcessStartInfo ffmpeg_StartInfo = new ProcessStartInfo(Path_FFMPEG, strParam);
ffmpeg_StartInfo.UseShellExecute = false;
ffmpeg_StartInfo.RedirectStandardError = true;
ffmpeg_StartInfo.RedirectStandardOutput = true;
ffmpeg.StartInfo = ffmpeg_StartInfo;
ffmpeg_StartInfo.CreateNoWindow = true;
ffmpeg.EnableRaisingEvents = true;
ffmpeg.Start();
ffmpeg.WaitForExit();
ffmpeg.Close();
ffmpeg.Dispose();
ffmpeg = null;
}
catch (Exception ex)
{
}
}
}
} -
How to extract all the frames from video file instead only one frame ?
14 avril 2023, par Sheron BlumentalI tried this parameters :


"-r 1 -i" + ts + " -r 1" + _infilepath+"\"$filename%03d.png"



but it does nothing it's not extracting any frames in the output window :




the original paramters are :


"-ss " + ts + " "
 + "-i \"" + _infilepath + "\" "
 + "-frames:v 1 "
 + "-hide_banner -y -sn "
 + "\"" + outfile + "\""



but this extract only one the first frame.


_ffpath contains the ffmpeg exe file
_infilepath contains the mp4 video file
outfile contains the saved frame file


The method CommandRunner is in the bottom.


private void Extract(){
 if (_infilepath.Length == 0) {
 MessageBox.Show(this, "The input file cannot be empty", "Validation error", MessageBoxButtons.OK,
 MessageBoxIcon.None);
 return;
 }
 if (_outfilepath.Length == 0) {
 MessageBox.Show(this, "The output file cannot be empty", "Validation error", MessageBoxButtons.OK,
 MessageBoxIcon.None);
 return;
 }
 File.Delete(_outfilepath);
 var exf = new ExtractProgressForm();
 exf.Show(this);
 string ts = tsin.Text.Replace(" ", "0");
 string outfile = _outfilepath.Replace("%t", ts.Replace(":", "-").Replace(".", "_"));
 _extractcr = new CommandRunner(
 _ffpath, 

 "-r 1 -i" + ts + " -r 1" + _infilepath+"\"$filename%03d.png"

 /*"-ss " + ts + " "
 + "-i \"" + _infilepath + "\" "
 + "-frames:v 1 "
 + "-hide_banner -y -sn "
 + "\"" + outfile + "\""*/,
 false
 );



The method CommandRunner :


public CommandRunner(string fname, string args = "", bool autostart = true){
 _fname = fname;
 _args = args;

 if (!_fileExists())
 throw new FileNotFoundException(fname + " cannot be found");

 Proc = new Process();
 Proc.StartInfo.RedirectStandardOutput = true;
 Proc.StartInfo.RedirectStandardError = true;
 Proc.StartInfo.FileName = _fname;
 if (_args.Length > 0)
 Proc.StartInfo.Arguments = _args;
 Proc.StartInfo.UseShellExecute = false;
 Proc.StartInfo.CreateNoWindow = true;
 if (autostart)
 Start();
 }