Recherche avancée

Médias (21)

Mot : - Tags -/Nine Inch Nails

Autres articles (61)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • 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 (...)

Sur d’autres sites (7406)

  • Opencv VideoCapture always returns false on Heroku

    27 juin 2022, par Dacian Mujdar

    I'm using the following code to open a video stream :

    


    import cv2
video = cv2.VideoCapture()
video.open("some_m3u8_link")
success, image = video.read()


    


    However, even if the code works as intended locally, on Heroku success is always false.

    


    I'm using cedar-14 stack with the following buildpacks :

    


    


    heroku/python

    


    https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git

    


    


    (I tried several buildpack options for ffmpeg)

    


    Running ffmpeg --version on heroku instance will return ffmpeg version 4.0-static https://johnvansickle.com/ffmpeg/

    


    Is there any setting/configuration I missed in order to make it work on deployment ? Thank you !

    


    Later edit : I tried several links for "some_m3u8_link" including from twitch and other streaming services (including traffic streaming li
An example for reproducing :

    


    python -c "import cv2; video=cv2.VideoCapture(); video.open('https://hddn01.skylinewebcams.com/live.m3u8?a=5tm6kfqrhqbpblan9j5d4bmua4'); success, image = video.read(); print(success)"


    


    Returns True on local machine and False on Heroku.

    


    (the link is taken from here)

    


  • Ajax call returns 500 error

    26 mars 2018, par user3080392

    I have an Ajax call to a PHP script. The PHP script uses FFmpeg to concatenate several .ts files into one, and then converts it into an MP4 file.

    The PHP script manages to concatenate the files and convert the file to an MP4. However, none of the code after the FFmpeg commands is carried out.

    Furthermore, my Ajax "success" function always returns a "500 Internal Server Error"

    Here’s the Ajax :

    function makeVid(vidUrl) {

     $.ajax({
       type: "POST",
       url: 'make_vid.php',
       data: {url: vidUrl},
       cache: false,
       success: function(data){        
         $("#vidResult").append(data);
         document.getElementById(#myBtn).disabled = false;
       },
       error: function (jqXHR, exception) {
         var msg = '';
         if (jqXHR.status === 0) {
           msg = 'Not connect.\n Verify Network.';
         } else if (jqXHR.status == 404) {
           msg = 'Requested page not found. [404]';
         } else if (jqXHR.status == 500) {
           msg = 'Internal Server Error [500].';
         } else if (exception === 'parsererror') {
           msg = 'Requested JSON parse failed.';
         } else if (exception === 'timeout') {
           msg = 'Time out error.';
         } else if (exception === 'abort') {
           msg = 'Ajax request aborted.';
         } else {
           msg = 'Uncaught Error.\n' + jqXHR.responseText;
         }
         $('#vidResult').html(msg);
       }

     });

    }

    And here’s the PHP/FFmpeg :

    shell_exec("$ffmpeg -f concat -safe 0 -i $vidClipsListTxtFile -c copy $combinedFileTs 1> $makeVidProgTxtFileTs 2>&1");
    shell_exec("$ffmpeg -i $combinedFileTs -f mpegts -codec:v mpeg1video -bf 0 -codec:a mp2 -q 12 $combinedFileMp4 1> $makeVidProgTxtFileMp4 2>&1");
    echo "video completed.";

    The PHP error log includes the following errors :

    File does not exist: /home/mysite/public_html/favicon.ico
    File does not exist: /home/mysite/public_html/404.shtml
    File does not exist: /home/mysite/public_html/505.shtml
    File does not exist: /home/mysite/public_html/robots.txt

    And here are some of the things I’ve tried to correct the problem :

    1. Created the above files in the public_html folder

    2. Increased the max_execution_time and memory_limit in my php.ini file

    3. Changed the Ajax success() function to a complete() function

    I still get the 500 error. What else can I try ?

  • lavfi : drop the requirement that request_frame returns a frame.

    25 août 2015, par Nicolas George
    lavfi : drop the requirement that request_frame returns a frame.
    

    It requires a loop in filters or the framework,
    that makes the scheduling less efficient and more complex.
    This is purely an internal change since the loop is now
    present in buffersink.
    Note that no filter except buffersink did rely on the requirement.

    • [DH] doc/filter_design.txt
    • [DH] libavfilter/avfilter.c
    • [DH] libavfilter/avfilter.h
    • [DH] libavfilter/internal.h