Recherche avancée

Médias (0)

Mot : - Tags -/objet éditorial

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (74)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

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

Sur d’autres sites (10138)

  • CANNOT LINK EXECUTABLE error with required libs loaded. How to link them properly ? [duplicate]

    11 septembre 2019, par dentex

    edit : I’m aware of the possible duplicate, but the answer it’s not directly applicable. I’m using ProcessBuilder and not Runtime.getRuntime().exec :

    public int execProcess(List<string> cmds, ShellUtils.ShellCallback sc) {    
       StringBuilder cmdlog = new StringBuilder();
       for (String cmd : cmds) {
            cmdlog.append(' ');
       }
       Utils.logger("v", cmdlog.toString(), DEBUG_TAG);

       ProcessBuilder pb = new ProcessBuilder();
       pb.directory(mBinFileDir);
       pb.command(cmds);

       Process process = null;
       int exitVal = 1; // Default error
       try {
           process = pb.start();

           StreamGobbler errorGobbler = new
           StreamGobbler(process.getErrorStream(), "ERROR", sc);

           StreamGobbler outputGobbler = new
           StreamGobbler(process.getInputStream(), "OUTPUT", sc);

           errorGobbler.start();
           outputGobbler.start();

           exitVal = process.waitFor();

           sc.processComplete(exitVal);

        } catch (Exception e) {
            Log.e(DEBUG_TAG, "Error executing ffmpeg command!", e);
        } finally {
            if (process != null) {
                Utils.logger("w", "destroyng process", DEBUG_TAG);
                process.destroy();
            }
       }
       return exitVal;
    }
    </string>

    I have two versions on FFmpeg compiled for android : with and without liblame enabled.

    When I load in /data/data/&lt;>/app_bin/ the FFmpeg binary compiled with NO lame support, it extracts audio from video without an issue. But when I use the one with lame support enabled, I get the error below into the log.

    Required libs, also compiled for android, are correctly loaded when shipped into the libs project folder with System.loadLibrary("lame").

    I was wondering if there is something else to do in order to properly make the FFmpeg binary find the libs.
    Those are the same libs given to the NDK to build the FFmpeg binary.

    D/dalvikvm(13741): Trying to load lib /data/app-lib/&lt;>/liblame.so 0x40ffed08
    D/dalvikvm(13741): Added shared lib /data/app-lib/&lt;>/liblame.so 0x40ffed08
    D/dalvikvm(13741): No JNI_OnLoad found in /data/app-lib/&lt;>/liblame.so 0x40ffed08, skipping init
    D/FfmpegController(13741): Trying to chmod '/data/data/&lt;>/app_bin/ffmpeg' to: 755
    V/FfmpegController(13741): /data/data/&lt;>/app_bin/ffmpeg -y -i /storage/sdcard0/Download/video.webm -vn -acodec copy /storage/sdcard0/Download/audio.ogg
    >>>>>> ---------- &lt;&lt;&lt;&lt;&lt;&lt;
    D/DownloadsService(13741): soinfo_link_image(linker.cpp:1673): could not load library "liblame.so" needed by "/data/data/&lt;>/app_bin/ffmpeg"; caused by load_library(linker.cpp:771): library "liblame.so" not foundCANNOT LINK EXECUTABLE
    >>>>>> ---------- &lt;&lt;&lt;&lt;&lt;&lt;
    I/DownloadsService(13741): FFmpeg process exit value: 255

    I’m not attaching code because it’s fairly straightforward :

    • download the FFmpeg binary (it’s not shipped with the app) ;
    • copy the binary from the download folder to /data/data/&lt;>/app_bin/ ;
    • chmod 755 ;
    • execute from there and read the output.

    Please comment if something else is required.

  • How to concat MTS videos and apply filters without re-encoding using FFmpeg ?

    20 mars 2021, par Karp

    I have a txt file with many MTS video files. I want to merge them all together using FFmpeg and get one big MTS file. But I want to apply fade-in and fade-out to the final video. Can I do it without re-encoding ? Because re-encoding takes a lot of time, but I need to do it fast.

    &#xA;

    Edit

    &#xA;

    Here is the output when I run

    &#xA;

    ffmpeg -i C:/Users/aleks/Downloads/IMPORTANT/MTS_videos/my.MTS&#xA;

    &#xA;

    Output :

    &#xA;

    Input #0, mpegts, from &#x27;C:/Users/aleks/Downloads/IMPORTANT/MTS_videos/my.MTS&#x27;:&#xA;  Duration: 00:00:08.51, start: 1.433367, bitrate: 5275 kb/s&#xA;  Program 1&#xA;    Metadata:&#xA;      service_name    : Service01&#xA;      service_provider: FFmpeg&#xA;    Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 1920x1080, 59.94 fps, 59.94 tbr, 90k tbn, 120k tbc&#xA;

    &#xA;

    Edit 2

    &#xA;

    ok, I think I figured it out. The problem was in audio codec, I added -c:a mp3 and it seems to be working. However now I have the second problem. I have 3 videos. I apply fade in to the first one, fade out to the third one and nothing to the second one. I get them from one video by slicing using this command 3 times

    &#xA;

    ffmpeg -i &#x27;C:/Users/aleks/Downloads/video.MTS&#x27; -ss 20 -t 5 -c copy &#x27;C:/Users/aleks/Downloads/third.MTS&#x27;&#xA;

    &#xA;

    But when I run it my video is 2 seconds long (it must be 5 seconds long). Can you help me with fixing this problem.

    &#xA;

    PS. i have seen similar question and there was a suggestion to add -async 1. It didn't help. And moving -t 5 to the position before -i didn't help as well.

    &#xA;

    Also if I delete -c copy everything works fine. But I need to keep it because I don't want to re-encode.

    &#xA;

  • Using ffmpeg apply filters to a Video memory stream. Is it possible ?

    1er octobre 2015, par Faisal Mq

    I have a requirement where I will be downloading my Video file data present on an Azure BLOB. I will get this Video file data in the form of a MemoryStream.

    Is there any way that using ffmpeg I can process this MemoryStream e.g removing audio, blurring video etc ?

    If its not possible then I will have to download the BLOB file somewhere on my Server in the form of .mp4 and then do the processing by ffmpeg. But actually I want to avoid this step of creating file on hard disk downloaded via MemoryStream.

    Here is the sample/pseudo code :

    public void ProcessVideoFile(string containerName, string blobURI)
    {
       CloudBlockBlob blob = GetBlockBlobReference(containerName, blobURI);

       using (var memStream = new MemoryStream())
       {
           blob.DownloadToStream(memStream);

           // Process this memStream using ffmpeg for different filters e.g blurring, remove audio etc.
           // ......................
       }
    }