Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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

Autres articles (56)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

Sur d’autres sites (11540)

  • 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 link libav* libraries of FFmpeg in my own program ?

    20 août 2019, par zuguorui

    I am new to FFmpeg, now I want to use the FFmpeg codec compenet in my own program. I’ve followed the guide on FFmpeg wiki to complie the libraries the FFmpeg and get them done. But when I compile my own program it always tips ld: library not found for -lavutil or something like this.

    Environment:MacOS 10.14.6

    Compile tool : clang++

    steps :

    (1)Install all needed libraries follow the wiki.

    (2)./configuure --prefix=host --enable-shared --disable-static

    (3)make

    (4)make install, after this step, I got compiled files in dictionary host.

    (5)copy the source code in FFmpeg/doc/examples/decode_audio.c to create a new project, and copy includes and dylib files to my project dictionary. The structure of my project is :

    ./
    |----FFmpeg
        |----include
             |----libavcodec
                  |----*headers*
             |----libavformat
                  |----*headers*
             |----libavutil
                  |----*headers*
        |----lib
             |----libavutil.dylib
             |----libavcodec.dylib
             |----libavformat.dylib
    |----main.cpp

    (6)compile the project.

    clang++ *.cpp -L./FFmpeg/lib/ -lavutil -lavformat -lavcodec -I ./FFmpeg/include -o main.out

    But it always fail with tip ld: library not found for -lavutil or something like this. I don’t know why. Do I need to install those libraries in /usr/local dictionary instead of host ? Or I miss some variables when configing or compiling ?

    update:I solved this problem, I copyed the links of dylib files but not dylib itself, which caused this problem. But a new problem rised, when I run the program, it tips dyld: Library not loaded: @executable_path/lib/libavcodec.dylib. Reason: image not loaded.

  • ffmpeg Gets 403 forbidden error from youtube-dl link

    3 août 2019, par Yaron Brodsky

    I’m trying to download a part of a video from youtube. I use youtube-dl to get the direct link and then pass it to ffmpeg as an input to trim it, but I get an HTTP error 403.

    I ran

    youtube-dl --get-url --extract-audio https://www.youtube.com/watch?v=ZR38JWEsSD0

    and got the following link :

    https://r7---sn-oxu8pnpvo-i45z.googlevideo.com/videoplayback?expire=1564846578&ei=klVFXd6FC4XogAf-47GICw&ip=85.250.45.15&id=o-AMfpl2KOmnqRGbb0gEcD7JTFM8awtSjeWx7CQJm3Csqk&itag=137&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398&source=youtube&requiressl=yes&mm=31%2C29&mn=sn-oxu8pnpvo-i45z%2Csn-4g5ednld&ms=au%2Crdu&mv=m&mvi=6&pl=22&initcwndbps=677500&mime=video%2Fmp4&gir=yes&clen=2099900448&dur=11050.237&lmt=1547649487971312&mt=1564824828&fvip=1&keepalive=yes&c=WEB&txp=5535432&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=ALgxI2wwRQIhALaTrtemlISkaeXNsOxd_ATWy0yEfnq8nDVMYLyIOuLiAiBKPpei6otB6YAT-EyQrU6wn7CuGDGxygQcdL4W6SWAgQ%3D%3D&lsparams=mm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AHylml4wRgIhANcKwG0py-_mx8W4faiiby4evTcJT1b3pFHhpFsQthKQAiEAzVkXDYl4c4bvEWMSNWlkkiJkBvk2jQGk6dlMQkLMYiY%3D&ratebypass=yes

    I then used it in

    ffmpeg -ss 00:00:00 -t 00:00:10 -vn -acodec mp3 test.mp3 -i [...].

    I got the following error -

    HTTP error 403 Forbidden
    https://r7---sn-oxu8pnpvo-i45z.googlevideo.com/videoplayback?expire=1564846578: Server returned 403 Forbidden (access denied)

    Any help please ?