Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (112)

Sur d’autres sites (11313)

  • FLAC__stream_encoder_finish : Sanity improvement

    30 janvier 2017, par Erik de Castro Lopo
    FLAC__stream_encoder_finish : Sanity improvement
    

    Previously this function would abort or crash if passed `NULL` for
    the encoder. Now it just returns without crashing or aborting which
    is far more sane behaviour (ie much like FLAC__stream_encoder_delete).

    • [DH] src/libFLAC/stream_encoder.c
  • FFMPEG exec exit code 126

    17 mai 2020, par Ali Lord

    here is my code for FFMPEG

    



    $mp3path=realpath("1.mp3");&#xA;$cmd = "/usr/include/ffmpeg -i $mp3path -ab 128 /home/swiftfa1/public_html/output.mp3 2>&amp;1";&#xA;exec($cmd, $output, $value);&#xA;echo &#x27;<pre>&#x27;; print_r($output); echo &#x27;</pre>&#x27;;&#xA;echo &#x27;<pre>&#x27;; print_r($value); echo &#x27;</pre>&#x27;;&#xA;exit;&#xA;

    &#xA;&#xA;

    and here is my result :

    &#xA;&#xA;

    Array&#xA;(&#xA;    [0] => sh: /usr/include/ffmpeg: Is a directory&#xA;)&#xA;126&#xA;

    &#xA;&#xA;

    I used whereis for ffmpeg path and searched a lot but can't solve my issue. any command returns 126 !

    &#xA;

  • editly - Where can I get the return value after a video is created ?

    21 février 2021, par rom

    Quick question...

    &#xA;

    Following along the README of editly, I managed to create videos after calling editly like this :

    &#xA;

        // create video&#xA;    editly(editSpec)&#xA;        .catch(console.error);&#xA;

    &#xA;

    Unfortunately, I am using ExpressJS to do this and I need to send back a response when video creation completes.

    &#xA;

    However, when I tried to extract any value using .then, it returns undefined :

    &#xA;

        // create video&#xA;    editly(editSpec)&#xA;    .then(r => {&#xA;        console.log(`Is this undefined? Probably yes! r: `, r)&#xA;        res.json(r)&#xA;    })&#xA;        .catch(console.error);&#xA;

    &#xA;

    How can I accomplish this ?

    &#xA;