Recherche avancée

Médias (91)

Autres articles (100)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains 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 ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-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 (5110)

  • lavfi : add a new struct for private link properties

    5 août 2024, par Anton Khirnov
    lavfi : add a new struct for private link properties
    

    Specifically those that should be visible to filters, but hidden from
    API callers. Such properties are currently located at the end of the
    public AVFilterLink struct, demarcated by a comment marking them as
    private. However it is generally better to hide them explicitly, using
    the same pattern already employed in avformat or avcodec.

    The new struct is currently trivial, but will become more useful in
    following commits.

    • [DH] libavfilter/avfilter.c
    • [DH] libavfilter/avfilter_internal.h
    • [DH] libavfilter/avfiltergraph.c
    • [DH] libavfilter/filters.h
  • avformat/matroskadec : Link to parents in syntax tables

    17 mai 2019, par Andreas Rheinhardt
    avformat/matroskadec : Link to parents in syntax tables
    

    By linking to the syntax of the parent (i.e. the containing master
    element) one can check whether an element is actually part of a higher
    level in the EBML hierarchy. Knowing this is important for
    unknown-length levels, because they end when an element that doesn't
    belong to this, but to a higher hierarchy level is encountered.

    Sometimes there are different syntaxes dealing with the same elements.
    In this case it is important to use a parent that contains all the
    elements at the parent level ; whether this is the syntax actually used
    to enter the child's level is irrelevant. This affects the list of level
    1 elements (which has been used as parent for matroska_cluster, too) and
    it affects recursive elements (currently only the SimpleTag), where the
    non-recursive parent has to be choosen.

    This is in preparation for a patch that redoes level handling.

    Finally, the segment id has been added to ebml_syntax. This will enable
    handling of unknown-length EBML headers.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavformat/matroskadec.c
  • Is there a way to use ffmpeg binary on anroid platform in MAUI project ?

    18 août 2023, par Mrand

    Currently I'm working on my test project about capabilities of MAUI and ffmpeg, so I can create my own applications. I got stuck on problem about using ffmpeg on platforms other than Windows (for example Anroid).

    &#xA;

    I tried googling the problem, didn't find anything helpful. Right now my ffmpeg for Android binary is situated inside Platforms/Android/Assets/libs as AndroidAsset. And I'm using code below to put my binary on Android to execute in the future

    &#xA;

    protected override void OnCreate(Bundle bundle)&#xA;{&#xA;    base.OnCreate(bundle);&#xA;&#xA;    if (ContextCompat.CheckSelfPermission(this, Manifest.Permission.ReadExternalStorage) != Permission.Granted &#xA;        || ContextCompat.CheckSelfPermission(this, Manifest.Permission.WriteExternalStorage) != Permission.Granted &#xA;        || ContextCompat.CheckSelfPermission(this, Manifest.Permission.Internet) != Permission.Granted) &#xA;    {&#xA;        ActivityCompat.RequestPermissions(this, new string[] {&#xA;          Manifest.Permission.ReadExternalStorage, Manifest.Permission.WriteExternalStorage, Manifest.Permission.Internet&#xA;        }, 0);&#xA;    }&#xA;&#xA;    PrepareFFmpeg();&#xA;}&#xA;&#xA;private void PrepareFFmpeg()&#xA;{&#xA;    var assetManager = Android.App.Application.Context.Assets;&#xA;    string path = "libs/ffmpeg";&#xA;    string destinationPath = Path.Combine(Android.App.Application.Context.ApplicationInfo.DataDir, "ffmpeg");&#xA;&#xA;    var directoryPath = Path.GetDirectoryName(destinationPath);&#xA;    if (!Directory.Exists(directoryPath))&#xA;    {&#xA;        Directory.CreateDirectory(directoryPath);&#xA;    }&#xA;&#xA;    using (var inputStream = assetManager.Open(path))&#xA;    {&#xA;        if (File.Exists(destinationPath)) &#xA;        {&#xA;            File.Delete(destinationPath);&#xA;        }&#xA;&#xA;        using (var outputStream = File.Create(destinationPath))&#xA;        {&#xA;            inputStream.CopyTo(outputStream);&#xA;        }&#xA;    }&#xA;&#xA;    Java.Lang.JavaSystem.SetProperty("java.io.tmpdir", destinationPath);&#xA;    Java.Lang.Runtime.GetRuntime().Exec("chmod 700 " &#x2B; destinationPath);&#xA;&#xA;    FFmpeg.SetExecutablesPath(destinationPath);&#xA;}&#xA;

    &#xA;

    public static class FFmpegService&#xA;{&#xA;    public static async Task ConvertVideoAsync(string inputPath, string outputPath, string format)&#xA;    {&#xA;        if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))&#xA;        {&#xA;            string ffmpegPath = GetFFmpegPath();&#xA;            string arguments = $"-i \"{inputPath}\" \"{outputPath}.{format}\"";&#xA;&#xA;            ProcessStartInfo startInfo = new ProcessStartInfo&#xA;            {&#xA;                FileName = ffmpegPath,&#xA;                Arguments = arguments,&#xA;                RedirectStandardOutput = true,&#xA;                RedirectStandardError = true,&#xA;                UseShellExecute = false,&#xA;                CreateNoWindow = true,&#xA;            };&#xA;&#xA;            using Process process = new Process { StartInfo = startInfo };&#xA;            process.Start();&#xA;            await process.WaitForExitAsync();&#xA;        }&#xA;        else&#xA;        {&#xA;            //IConversion conversion = await FFmpeg.Conversions.FromSnippet.Convert(inputPath, $"{outputPath}.{f*-  .ormat}");&#xA;            //string command = $"-i {inputPath} -f {format} {outputPath}";&#xA;&#xA;            //ProcessStartInfo psi = new ProcessStartInfo();&#xA;            //psi.FileName = FFmpeg.ExecutablesPath;&#xA;            //psi.Arguments = command;&#xA;            //psi.RedirectStandardOutput = true;&#xA;            //psi.RedirectStandardError = true;&#xA;            //psi.UseShellExecute = false;&#xA;&#xA;            //Process process = Process.Start(psi);&#xA;            //process.WaitForExit();&#xA;&#xA;            //string output = process.StandardOutput.ReadToEnd();&#xA;            //string error = process.StandardError.ReadToEnd();&#xA;&#xA;            string outputPathWithFormat = $"{outputPath}.{format}";&#xA;            IConversion conversion = await FFmpeg.Conversions.FromSnippet.Convert(inputPath, outputPathWithFormat);&#xA;            IConversionResult result = await conversion.Start();&#xA;        }&#xA;    }&#xA;&#xA;    private static string GetFFmpegPath()&#xA;    {&#xA;        //string platformFolder = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "Windows" : "Android";&#xA;        //return Path.Combine("Platforms", platformFolder, "ffmpeg", "ffmpeg");&#xA;        if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))&#xA;        {&#xA;            return Path.Combine("Platforms", "Windows", "ffmpeg", "ffmpeg");&#xA;        }&#xA;        else&#xA;        {&#xA;            return null;&#xA;        }&#xA;    }&#xA;}&#xA;

    &#xA;

    I'm trying to use FFmpegService to convert video in any desired format I can by passing it in the arguments of the method (Windows works fine).

    &#xA;

    In my service I also tried to use Xabe.FFmpeg but it always gives couldn&#x27;t find part of path (path here). When using more manual approach I face another problem every time : Permission denied.&#xA;For path I tried /data/data/APPNAME and cache directories. It always results in problems mentioned above.

    &#xA;

    I downloaded FFmpeg binary from this repository : https://github.com/tomaszzmuda/Xabe.FFmpeg/releases/tag/executables

    &#xA;

    My goal is to get conversion working for any format and for at least two platforms : Android and Windows, but if you can tell me how to do it on other platforms as well - I would be grateful.

    &#xA;

    Additional question : If you can tell me the best practice setting standard path for storing converted audio and video, thanks.

    &#xA;

    If you need more details, please specify I would happily provide them.&#xA;P.S. : don't look at the quality of code, I tried to code this for week so I didn't care about quality, I just want to learn how can I do this.

    &#xA;

    Thanks for your time and attention !

    &#xA;

    Project : Maui Blazor .Net 7.0

    &#xA;