
Recherche avancée
Autres articles (45)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...)
Sur d’autres sites (11782)
-
how can I set GOP size to be a multiple of the input framerate ?
3 septembre 2020, par agcontiQuestion :


How can I set GOP size to be a multiple of the input framerate ?


Context :


My ideal GOP size formula is
source_fps * 2
. My source's framerate can be either 30 or 60 fps so I'm unable to set a static value that works for both. Is there a variable that ffmpeg exposes that I can use ? I know you can get metadata about the source input when using the-vf
option with variables likeiw
orih
. Is there a similar method for FPS ?

Example command where GOP size and keyint_min is hardcoded :


ffmpeg -i <input /> -keyint_min 120 -g 120 -f dash /path/to/out.mpd



Desired command where e GOP size and keyint_min are based on the source framerate :


ffmpeg -i <input /> -keyint_min source_framerate * 2 -g source_framerate * 2 -f dash /path/to/out.mpd



-
launch ffmpeg on Maui Android
4 décembre 2024, par lolveleyI have an Maui app which is deployed on an Android tablet, a Samsung tab S9 FE.
I have copied the ARM8 version of the ffmpeg executable in the AppDataDirectory of my deployed app. The executable, named "ffmpeg", has the rights _rwxrwxrwx (the underscore means this is a file, and not a directory).


I try to execute the file with the command Process.Start :


private void GetThumbnail(string inputFile, string imageFullPath, string ffmpegFullPath)
{
 ProcessStartInfo startInfo = new ProcessStartInfo();

 string arguments = $"-i {inputFile} -ss 00:01:00.000 -vframes 1 {imageFullPath}";

 startInfo.FileName = ffmpegFullPath;
 startInfo.CreateNoWindow = false;
 startInfo.UseShellExecute = false;
 startInfo.RedirectStandardError = true;
 startInfo.RedirectStandardOutput = true;
 startInfo.Arguments = arguments;

 try
 {
 Process process = Process.Start(startInfo);
 process.WaitForExit(5000);
 process.Close();
 }
 catch(Exception ex)
 {
 Console.WriteLine(ex.Message);
 }
}



There is an exception saying the access is denied :




System.ComponentModel.Win32Exception (13) : An error occurred trying to
start process '/data/user/0/sxb.explorateur.de.fichiers/files/ffmpeg'
with working directory '/data/data/sxb.explorateur.de.fichiers/files'.
Permission denied




The error message doesn't say more, and I do not see what to do, the directory usually is dedicated to the application, and the file is executable.


I know that Android has restricted policies with file execution, and maybe it's even harder for the Samsung operating system, namely One UI 6.1.1 and Android 14.


thank you.


-
Ffmpeg sbs 3d mkv to 3d baked into 2d video
27 octobre 2020, par goodkid38I have a couple of 3d blu-ray rips I'd like to stream to a tv that is not 3d compatible. I have a samsung smart tv with an app that I made to stream the video locally. I'm using ffmpeg on my backend to transcode video. I'm curoius to see if ffmpeg can take a 3d sbs mkv and bake the 3d elements into a 2d image. That way the stream is still 3d even on non-compatible devices.