Recherche avancée

Médias (0)

Mot : - Tags -/clipboard

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

Autres articles (53)

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

  • 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

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

Sur d’autres sites (6388)

  • Fatal Exception : java.lang.UnsatisfiedLinkError lopen failed : library name "/data/packagename/lib/arm64/libmobileffmpeg_abidetect.so" too long

    23 septembre 2020, par Android198
    Fatal Exception: java.lang.UnsatisfiedLinkError lopen failed: library name "/data/packagename/lib/arm64/libmobileffmpeg_abidetect.so" too long 


    


    I got this error in android 5 devices because my app packagename is too long. i build apk with abi filters armeabi-v7a, arm64-v8a

    


     &#x27;java.lang.System.loadLibrary (System.java:989)&#xA;    com.arthenica.mobileffmpeg.AbiDetect.<clinit> (AbiDetect.java)&#xA;    com.arthenica.mobileffmpeg.AbiDetect.getNativeAbi (AbiDetect.java)&#xA;    com.arthenica.mobileffmpeg.AbiDetect.setArmV7aNeonLoaded (AbiDetect.java)&#xA;    com.arthenica.mobileffmpeg.Config.enableLogCallback (Config.java:5)&#x27;&#xA;</clinit>

    &#xA;

  • electron app fluent-ffmpeg " Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height"

    27 juillet 2020, par Martin

    I am trying to run an ffmpeg command in my electron app. I have created the function ffmpegTest() based off instructions for setting up ffmpeg here :

    &#xA;

    https://alexandercleasby.dev/blog/use-ffmpeg-electron

    &#xA;

    and the example query for ffmpeg-fluent here :

    &#xA;

    https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/blob/master/examples/image2video.js

    &#xA;

    function ffmpegTest(){&#xA;    console.log(&#x27;ffmpeg-test&#x27;)&#xA;    //require the ffmpeg package so we can use ffmpeg using JS&#xA;    const ffmpeg = require(&#x27;fluent-ffmpeg&#x27;);&#xA;    //Get the paths to the packaged versions of the binaries we want to use&#xA;    const ffmpegPath = require(&#x27;ffmpeg-static&#x27;).replace(&#xA;        &#x27;app.asar&#x27;,&#xA;        &#x27;app.asar.unpacked&#x27;&#xA;    );&#xA;    const ffprobePath = require(&#x27;ffprobe-static&#x27;).path.replace(&#xA;        &#x27;app.asar&#x27;,&#xA;        &#x27;app.asar.unpacked&#x27;&#xA;    );&#xA;    //tell the ffmpeg package where it can find the needed binaries.&#xA;    ffmpeg.setFfmpegPath(ffmpegPath);&#xA;    ffmpeg.setFfprobePath(ffprobePath);&#xA;    &#xA;    var imgPath = "C:\\Users\\marti\\Documents\\martinradio\\uploads\\israel song festival 1979\\front.jpg"&#xA;    var outputPath = "C:\\Users\\marti\\Documents\\martinradio\\uploads\\israel song festival 1979\\output.m4v"&#xA;&#xA;    // make sure you set the correct path to your video file&#xA;    var proc = ffmpeg(imgPath)&#xA;    // loop for 5 seconds&#xA;    .loop(5)&#xA;    // using 25 fps&#xA;    .fps(25)&#xA;    // setup event handlers&#xA;    .on(&#x27;end&#x27;, function() {&#xA;    console.log(&#x27;file has been converted succesfully&#x27;);&#xA;    })&#xA;    .on(&#x27;error&#x27;, function(err) {&#xA;    console.log(&#x27;an error happened: &#x27; &#x2B; err.message);&#xA;    })&#xA;    // save to file&#xA;    .save(outputPath);&#xA;&#xA;    console.log("end of ffmpeg-test")&#xA;}&#xA;

    &#xA;

    it is trying to convert an image to a video, my filepaths are accurate, but when I run this function, I get this output in console :

    &#xA;

    ffmpeg-test&#xA;index.js:137 end of ffmpeg-test&#xA;index.js:132 an error happened: ffmpeg exited with code 1: Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height&#xA;Conversion failed!&#xA;

    &#xA;

    After the error prints out, I can see my output.m4v file inside my output folder, but it is 0KB in size and wont open. Is there some way I can specify my bit_rate / rate / width / height in my fluent-ffmpeg command so I can run this simple ffmpeg command ?

    &#xA;

    thanks

    &#xA;

  • Error of FFmpeg on Java in "av_image_copy_to_buffer" method during decoding H.264 stream

    26 mai 2020, par maru2213

    I'm trying to decode H.264 stream, which is sent over Socket from an Android application to a computer. And I also want to show the decoded stream using JavaFX. I searched for a long time, and decided to use JavaCV / FFmpeg. However I got error from FFmpeg. (I was inspired by this code.)

    &#xA;&#xA;

    Questions :

    &#xA;&#xA;

      &#xA;
    • Why does FFmpeg make error ?
    • &#xA;

    • Is it a correct way to convert AVFrame to javafx.scene.image.Image ?
    • &#xA;

    &#xA;&#xA;

    I'm using :

    &#xA;&#xA;

      &#xA;
    • javacv-platform 1.4.4
    • &#xA;

    • ffmpeg-platform 4.1-1.4.4
    • &#xA;

    &#xA;&#xA;

    Code :

    &#xA;&#xA;

    This is a part of import and class fields, and method which runs once at the first time. (Actually the content of initialize() is wrapped by try catch.)

    &#xA;&#xA;

        import javafx.scene.image.Image;&#xA;&#xA;    private avcodec.AVCodec avCodec;&#xA;    private avcodec.AVCodecContext avCodecContext;&#xA;    private avutil.AVDictionary avDictionary;&#xA;    private avutil.AVFrame avFrame;&#xA;&#xA;    public void initialize() {&#xA;        avCodec = avcodec_find_decoder(AV_CODEC_ID_H264);&#xA;        if (avCodec == null) {&#xA;            throw new RuntimeException("Can&#x27;t find decoder");&#xA;        }&#xA;        avCodecContext = avcodec_alloc_context3(avCodec);&#xA;        if (avCodecContext == null) {&#xA;            throw new RuntimeException("Can&#x27;t allocate decoder context");&#xA;        }&#xA;        int result = avcodec_open2(avCodecContext, avCodec, (AVDictionary) null);&#xA;        if (result &lt; 0) {&#xA;            throw new RuntimeException("Can&#x27;t open decoder");&#xA;        }&#xA;        avFrame = av_frame_alloc();&#xA;        if (avFrame == null) {&#xA;            throw new RuntimeException("Can&#x27;t allocate frame");&#xA;        }&#xA;    }&#xA;

    &#xA;&#xA;

    And this is a method which is called every time when I receive a packet from Android. byte[] data is the packet data starting with 0x00, 0x00, 0x00, 0x01.

    &#xA;&#xA;

    The place where I get error is number_of_written_bytes. It always gets <0.

    &#xA;&#xA;

        private void decode(byte[] data) {&#xA;        AVPacket avPacket = new AVPacket();&#xA;        av_init_packet(avPacket);&#xA;        avPacket.pts(AV_NOPTS_VALUE);&#xA;        avPacket.dts(AV_NOPTS_VALUE);&#xA;        BytePointer bytePointer = new BytePointer(data);&#xA;        bytePointer.capacity(data.length);&#xA;        avPacket.data(bytePointer);&#xA;        avPacket.size(data.length);&#xA;        avPacket.pos(-1);&#xA;&#xA;        avcodec_send_packet(avCodecContext, avPacket);&#xA;        int result = avcodec_receive_frame(avCodecContext, avFrame);&#xA;        if (result >= 0) {&#xA;            int bufferOutputSize = av_image_get_buffer_size(avFrame.format(), avFrame.width(), avFrame.height(), 16);&#xA;            Pointer pointer = av_malloc(bufferOutputSize);&#xA;            BytePointer outputPointer = new BytePointer(pointer);&#xA;            int number_of_written_bytes = av_image_copy_to_buffer(outputPointer, bufferOutputSize, avFrame.data(), avFrame.linesize(), avFrame.chroma_location(), avFrame.width(), avFrame.height(), 1);&#xA;            if (number_of_written_bytes &lt; 0) {&#xA;                //The process always come here.&#xA;                throw new RuntimeException("Can&#x27;t copy image to buffer");&#xA;            }&#xA;&#xA;            System.out.println("decode success");&#xA;            Image image = new Image(new ByteArrayInputStream(outputPointer.asBuffer().array()));&#xA;        } else {&#xA;            System.out.println("decode failed");&#xA;        }&#xA;    }&#xA;

    &#xA;&#xA;

    Anything is helpful for me. Thanks.

    &#xA;