
Recherche avancée
Autres articles (74)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
-
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 (10557)
-
Using video from raw folder in ffmpeg
5 août 2018, par varmashrivastavaHow can i use video from raw folder of android studio as an input source in ffmpeg command ?Like in below command i want to use from raw folder video as an input-
{ "-y", "-i", input,"-ss", "5000", "-t", "10000", "-c","copy", output};
-
FFMPEG Process not ending when encoding libx264
17 janvier 2015, par Jamie HartnollWell, I’m very new and inexperienced with using
Process
and usingFFMPEG
, and command line processes in ASP.NET in general... but, have something working, nearly !I’m trying to convert AVI files to MP4 files which can be streamed to an HTML5 player.
After a lot of messing around, I have found that for this to work it has to be encoded with X264, but, for some reason, when I do this the FFMPEG process does not close/end.
The code I am using is below and works perfectly if I use
-vcodec mpeg4
, but when I use-vcodec libx264
, whilst it works and produces the file I need toProcess
never ends.To get round this, I am temporarily adding 5 second time out to
WaitForExit
in theProcess
, but this is definitely a hack and whilst is OK with what I am doing at the moment is not a robust solution.Can anyone point me in the direction of why this is happening ?!
Public Shared Sub AviToMP4(VideoFileName As String, Optional DeleteSource As Boolean = True)
Dim SourceFile As String = VideoFileName.Replace(".avi", "")
Dim DestinationFile As String = SourceFile
Dim FFMPEG_EXE_PATH As String = """" & System.AppDomain.CurrentDomain.BaseDirectory() & "ffMPEG.exe"""
Dim Codec = "libx264" ' libx264 || mpeg4
Dim cdml = " -i """ & SourceFile & ".avi"" -acodec aac -strict -2 -b:a 128k -vcodec " & Codec & " -b:v 1200k -flags +aic+mv4 """ & DestinationFile & ".mp4"""
Dim ProcessorLocation As String = FFMPEG_EXE_PATH
Dim CommandLines As String = cdml
Try
Dim ProcessingResponse As String = ""
Using myProcess As New Process()
myProcess.StartInfo.UseShellExecute = False
myProcess.StartInfo.RedirectStandardInput = True
myProcess.StartInfo.RedirectStandardOutput = True
myProcess.StartInfo.RedirectStandardError = True
myProcess.StartInfo.CreateNoWindow = True
myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
myProcess.StartInfo.FileName = ProcessorLocation
myProcess.StartInfo.Arguments = CommandLines
myProcess.Start()
ProcessingResponse = myProcess.StandardError.ReadToEnd()
myProcess.WaitForExit(5000) ' <<< Have to put a timeout here for libx264 or it will never end!!
End Using
HttpContext.Current.Response.Write("<pre>" & ProcessingResponse & "</pre><hr />")
If File.Exists(SourceFile) AndAlso DeleteSource Then
File.Delete(SourceFile)
End If
Catch ex As Exception
HttpContext.Current.Response.Write(ex.ToString & "<p>")
End Try
End Sub
</p> -
Streaming x264 with packet loss
6 octobre 2014, par user2629511I write the program where I use x264 as the coder.
I use the following parameters :av_opt_set (codecContextH264[numberCoder]-&gt; priv_data, "profile", "baseline", 0);
av_opt_set (codecContextH264[numberCoder]-&gt; priv_data, "preset", "ultrafast", 0);
av_opt_set (codecContextH264[numberCoder]-&gt; priv_data, "tune", "zerolatency", 0);
codecContextH264[numberCoder]-&gt; bit_rate =bitrate;
codecContextH264[numberCoder]-&gt; bit_rate_tolerance=bitrate-5000;
codecContextH264[numberCoder]-&gt; width = w;
codecContextH264[numberCoder]-&gt; height = h;
codecContextH264[numberCoder]-&gt; time_base.den = fps;
codecContextH264[numberCoder]-&gt; time_base.num = 1;
codecContextH264[numberCoder]-&gt; pix_fmt = PIX_FMT_YUV420P;
codecContextH264[numberCoder]-&gt; gop_size = fps*3;
codecContextH264[numberCoder]-&gt; keyint_min = fps*3;
codecContextH264[numberCoder]-&gt; max_b_frames = 0;
codecContextH264[numberCoder]-&gt; slices = (int) (w*h)/1500+1;I use only I and P frames.
What x264 settings I shall use that could lose P frames ?
Perhaps x264 has no such opportunity ?!
I read that if to use a "base" profile, it is possible to lose P frames...
Help please.