Recherche avancée

Médias (91)

Autres articles (109)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

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

Sur d’autres sites (12345)

  • Issue with video.js playing AES encrypted video

    2 septembre 2021, par r3dge

    I'm trying to use video.js to play an encrypted HLS video. The AES 128 encryption has been done using this method : FFmpeg video encryption

    


    Here is the html code :

    


    &#xA;    &#xA;    <source src="http://192.168.56.1/enc/prog_index.m3u8" type="application/x-mpegURL">&#xA;</source>

    &#xA; &#xA; &#xA; &#xA;

    Video.js is loaded using CDN :

    &#xA;

    <code class="echappe-js">&lt;script src=&quot;https://unpkg.com/video.js/dist/video.js&quot;&gt;&lt;/script&gt;&#xA;&#xA;&#xA;&lt;script src=&quot;https://unpkg.com/@videojs/http-streaming/dist/videojs-http-streaming.js&quot;&gt;&lt;/script&gt;&#xA;

    &#xA;

    The player is loading and appears in the browser but the video can not be played.

    &#xA;

    I get two warnings in the console :

    &#xA;

    video.js:159 VIDEOJS : WARN : A plugin named "reloadSourceOnError" already exists. You may want to avoid re-registering plugins !

    &#xA;

    VIDEOJS : WARN : Problem encountered with playlist 0-http://192.168.56.1/enc/prog_index.m3u8. Trying again since it is the only playlist.

    &#xA;

    Server side i'm using Apache with Symphony 5. The server return a HTTP 200 status for the first ts file of the video. When i press the play button of the player seems to retry downloading. It get a 200 each time but the video is not played.

    &#xA;

    Update : i tried to play the same video without encryption and it works. The problem seems to be due to the encryption itself.

    &#xA;

    Thanks in advance for any help on that issue.

    &#xA;

  • How to make ffmpeg respect the "start_time" variable when combining cdg and mp3 ?

    5 juillet 2020, par Steffen Poulsen

    I'm trying to combine two .cdg and .mp3 files because I want to make a single .mkv file out of them.

    &#xA;&#xA;

    When I do it I get a .mkv file alright, but the audio is unfortunately not synced with the video.

    &#xA;&#xA;

    So, I was wondering why this is ? Apparently I must be missing a parameter on my command or something.

    &#xA;&#xA;

    What I do is this :

    &#xA;&#xA;

    ffmpeg -y -i song.cdg -i song.mp3 -pix_fmt yuv420p -vcodec libx264 -acodec copy song.mkv&#xA;

    &#xA;&#xA;

    It works fine, but in this particular case the result is out of sync by 1.2 seconds. This varies per song, from 0 to a couple of seconds.

    &#xA;&#xA;

    However, if I do a ffprobe on the .cdg file I notice that this number is already present, as the "start_time" variable :

    &#xA;&#xA;

    ffprobe -v error -show_format -show_streams song.cdg&#xA;...&#xA;start_time=1.186667&#xA;...&#xA;

    &#xA;&#xA;

    So, if I just use this number directly as this for the -itsoffset parameter :

    &#xA;&#xA;

    ffmpeg -y -itsoffset 1.186667 -i song.cdg -i song.mp3 -pix_fmt yuv420p -vcodec libx264 -acodec copy song.mkv&#xA;

    &#xA;&#xA;

    Then the video and audio is in perfect sync.

    &#xA;&#xA;

    So, I am wondering - what parameter do I need to add to my command to have ffmpeg respect this variable ?

    &#xA;

  • audio of second video is missing after combining video

    2 avril 2021, par Captain_Zaraki

    I am trying to concat 2 videos but audio of second video is missing -

    &#xA;

    ffmpeg -i  1.mp4 -i 1.mp4 -filter_complex &#x27;[0]scale=1280:720,setsar=1[v0];[1]scale=1280:720,setsar=1[v1];[v0][v1]concat=n=2:v=1:a=0&#x27; -vsync 2  output.mp4&#xA;

    &#xA;

    if I set a=1 then it is giving an error-

    &#xA;

    [Parsed_setsar_3 @ 0x564e387d0340] Media type mismatch between the &#x27;Parsed_setsar_3&#x27; filter output pad 0 (video) and the &#x27;Parsed_concat_4&#x27; filter input pad 1 (audio)&#xA;[AVFilterGraph @ 0x564e3888fac0] Cannot create the link setsar:0 -> concat:1&#xA;Error initializing complex filters.&#xA;

    &#xA;