Recherche avancée

Médias (91)

Autres articles (48)

  • 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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (6701)

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

  • How to ffmpeg livestream video from link google drive ?

    20 décembre 2017, par Kenji Nguyễn

    How to ffmpeg livestream video from link google drive ?

    I tried to do this, but it doesn’t work :

    for /F "delims=;" %%F in (linkdrive.txt) DO ffmpeg -re -i "%%F" -ar 44100 -vcodec copy -f flv "out.mp4"
  • What video codecs work on Google Chromebook

    3 mars 2019, par MonkeyDLuffy

    I’m trying to put a show on my friends Google Chromebook but the mp4 files show up black when trying to watch them on said Chromebook, audio works fine. I found out that it is a video encoding problem but I cannot find a list of video formats that work on the Chromebook. I have ffmpeg and handbrake to try and test some things, but if someone could tell me a ffmpeg code that will convert the video files into a format that works on a Google Chromebook that would help a lot.

    What I’ve tried :

    ffmpeg -i "Game of Thrones S02E01 The North Remembers.mkv" codec mpeg "Game of Thrones S02E01 The North Remembers.mp4"

    Which gives error :

    [NULL @ 00000177196ea500] Unable to find a suitable output format for
    ’codec’ codec : Invalid argument