Recherche avancée

Médias (91)

Autres articles (29)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

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

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

  • ffmpeg hls muxer is missing codec info in master playlist when codecs are copied from input

    21 septembre 2021, par dogan

    ffmpeg hls muxer has the option to set master playlist but the created playlist is missing the important codec information.

    


    Example :

    


    ffmpeg -hide_banner -i <input /> -c copy -f hls -master_pl_name master.m3u8  stream.m3u8&#xA;

    &#xA;

    Expected :

    &#xA;

    #EXTM3U&#xA;#EXT-X-VERSION:3&#xA;#EXT-X-STREAM-INF:BANDWIDTH=77595,RESOLUTION=1280x720,CODECS="avc1.64001f,mp4a.40.2"&#xA;stream.m3u8&#xA;

    &#xA;

    Instead I get this

    &#xA;

    #EXTM3U&#xA;#EXT-X-VERSION:3&#xA;#EXT-X-STREAM-INF:BANDWIDTH=77595,RESOLUTION=1280x720&#xA;stream.m3u8&#xA;

    &#xA;

    Is there a way to make ffmpeg set the codec info in playlist from the input source ? It works as expected if I encode the input using libx264 but I do not want to do any expensive encoding but copy the codecs from the input.

    &#xA;

  • Video append of 5656b failed for segment #2 in playlist Gstreamer RTSP to HLS

    28 juin 2021, par 55597

    I'm trying to forward an RTSP stream(video and audio) using GStreamer and stream it to HLS.

    &#xA;

    Here is what I'm running on the RTSP server send :

    &#xA;

        ./test-launch &#x27;v4l2src device=/dev/video0 ! clockoverlay ! nvvidconv ! nvv4l2h264enc ! h264parse ! rtph264pay name=pay0 pt=96 alsasrc device="hw:2,0" ! voaacenc ! rtpmp4apay pt=97 name=pay1&#x27;&#xA;

    &#xA;

    The command I'm trying to use to receive is :

    &#xA;

        gst-launch-1.0 rtspsrc location=rtsp://127.0.0.1:8554/test name=rtspsrchls ! queue ! rtph264depay ! h264parse ! mpegtsmux name=mux ! hlssink location="/home/nano128/tdservice/hls_rtsp/public/segment%05d.ts" playlist-location=/home/nano128/tdservice/hls_rtsp/public/playlist.m3u8 target-duration=20 max-files=5 rtspsrchls. ! queue ! rtpmp4adepay ! aacparse ! audio/mpeg ! mux.&#xA;

    &#xA;

    The HLS stream starts and I am able to see it on my browser. But I get these errors on the browser.

    &#xA;

    video append of 5656b failed for segment #2 in playlist&#xA;

    &#xA;

    When I try to play the segment0.ts on vlc it is playing properly but when I l play sement1.ts I hear only audio.

    &#xA;

    What is wrong with my GStreamer command ?

    &#xA;

  • How to add a subtitle to an HLS playlist using FFmpeg ?

    24 mai 2021, par Arad

    I have a video (video.mp4) and a subtitle file (subtitle.srt).

    &#xA;

    I'm trying to use FFmpeg to generate a VoD HLS playlist with 3 different resolutions for the video ; and I also want the subtitle file to turn into segmented .vtt files.

    &#xA;

    I've tried the following command, but it doesn't work, it gives me a "Conversion failed !" message without any further information :

    &#xA;

    ffmpeg -i video.mp4 -i subtitle.srt \&#xA;-preset slow -g 60 -sc_threshold 0 \&#xA;-map 0 -map 0 -map 0 -map 1 \&#xA;-s:v:0 640x360 -c:v:0 h264 -b:v:0 500k \&#xA;-s:v:1 854x480 -c:v:1 h264 -b:v:1 1000k \&#xA;-s:v:2 1280x720 -c:v:2 h264 -b:v:2 2000K \&#xA;-c:a copy -c:s webvtt \&#xA;-f hls -hls_playlist_type vod -var_stream_map "v:0,a:0 v:1,a:1 v:2,a:2" \&#xA;-master_pl_name master.m3u8 -hls_time 6 -hls_list_size 0 -hls_allow_cache 1 -start_number 1 \&#xA;-hls_segment_filename "output/hls/%v/seg-%d.ts" output/hls/%v/index.m3u8&#xA;

    &#xA;

    I'm struggling to find any useful information in FFmpeg docs or anywhere else regarding how subtitles can be added to an HLS playlist. What should the command be like exactly ? What am I missing in mine ?

    &#xA;