Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (35)

  • 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

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

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

Sur d’autres sites (4260)

  • Converting video with ffmpeg from a script not in the root folder

    30 octobre 2017, par Daniel Ormerod

    I am using ffmpeg to convert videos, create thumbnails etc.

    I made the below function to convert a video and when I run it in a script in the root folder it converts ok.

    However, I am using ajax to upload the video and the script is located /ajax/upload-video.php and when I run it in that folder it fails to convert.

    I have tried sending the $src and $dest up with ../ before the filenames to go back a folder but it isn’t working.

    Can anybody help ?

    Do I need to add something to the $command line to tell it to go back a folder ?

    These are the variables being used in the function :

    $ffmpegpath = 'ffmpeg.exe';
    $src = 'videos/video1.wmv';
    $dest = 'videos/video1.mp4';

    I have tried :

    $ffmpegpath = 'ffmpeg.exe';
    $src = '../videos/video1.wmv';
    $dest = '../videos/video1.mp4';

    And the function :

    function convert_video($src, $dest) {

       global $ffmpegpath;

       if (!file_exists($src)) {

           echo '<p>The file does not exist</p>';

       } else {

           $command = "$ffmpegpath -i $src $dest";

           @exec($command, $ret);

           if (!file_exists($dest)) {

               echo '<p>The file failed to create</p>';

           } else {

               if (filesize($dest)==0) {

                   echo '<p>The file created but has not filesize</p>';

               } else {

                   echo '<p>File Created Successfully</p>';

               }

           }

       }

    }
  • matroskaenc : factor ts_offset into block timecode computation

    15 février 2017, par John Stebbins
    matroskaenc : factor ts_offset into block timecode computation
    

    ts_offset was added to cluster timecode, but then effectively subtracted
    back off the block timecode

    When setting initial_padding for an audio stream, the timestamps are
    written incorrectly to the mkv file. cluster timecode gets written
    as pts0 + ts_offset which is correct, but then block timecode gets
    written as pts - cluster timecode which expanded is
    pts - (pts0 + ts_offset). Adding cluster and block tc back together :
    cluster + block = (pts0 + ts_offset) + (pts - (pts0 + ts_offset)) = pts
    But the result should be pts + ts_offset since demux will subtract the
    CodecDelay element from pts and set initial_padding to CodecDelay.
    This patch gives the correct result.

    • [DBH] libavformat/matroskaenc.c
  • FFmpeg RTP network issue in Ubuntu

    4 mai 2017, par Ivan Kolesnikov

    I want to copy a bunch of SD sources from mpegts transported with RTP on local files. (VBR mpeg2video, mp2 audio). It works fine for one multicast source with the following command :

    ffmpeg -i rtp://@IP1:PORT -c copy video1.mpg

    but when I ran a second ffmpeg instance with the following command :

    ffmpeg -i rtp://@IP2:PORT -c copy video2.mpg

    then I got errors from both FFmpeg instances ("RTP : dropping old packet received too late") and in both files (video1.mpg and video2.mpg) recorded video from the second source (rtp ://@IP2:PORT).

    This issue occurs only in Linux (I checked Ubuntu 14.04 - 16.04). I have no problems in Windows and can transcoding video correctly in parallel from files. Under Ubuntu even two ffplay instances tuned to different sources play back the same content (from the source which was opened last). I tried playing back with VLC and there is no such problem.

    I can resolve this issue when using FFmpeg with the -f option :
    ffmpeg -f mpegts -i rtp ://@IP1:PORT -c copy video1.mpg
    and
    ffmpeg -f mpegts -i rtp ://@IP2:PORT -c copy video2.mpg, but then I’m getting the following errors : "[mpegts @ 0x306e240] PES packet size mismatch" and receive both files (video1.mpg and video2.mpg) with artifacts and freeze effects. This issue appears for both operating systems.

    How can I record|transcode videos from multiple RTP streams with FFmpeg simultaneously under Ubuntu without errors and artifacts ?