Recherche avancée

Médias (0)

Mot : - Tags -/formulaire

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (67)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (10176)

  • FFMPEG generates an empty master playlist

    23 octobre 2019, par Сергей Барахтенко

    I use the following FFMPEG command to generate playlists and a master-playlist for later insertion into a player with HLS support :

    ffmpeg/ffmpeg.exe -i input/test.mp4
    -preset fast  
    -g 150
    -sc_threshold 0
    -threads 4
    -map 0:v:0 -map 0:a:0 -map 0:v:0 -map 0:a:0 -map 0:v:0 -map 0:a:0 -map 0:v:0 -map 0:a:0
    -filter:v:0 scale=h=240:w=-2  -minrate:v:0 75k  -maxrate:v:0 218k  -bufsize:v:0 300k -b:v:0 150k  
    -filter:v:1 scale=h=360:w=-2  -minrate:v:1 138k -maxrate:v:1 400k -bufsize:v:1 552k -b:v:1 276k
    -filter:v:2 scale=h=480:w=-2 -minrate:v:2 375k -maxrate:v:2 1088k -bufsize:v:2 1500k -b:v:2 750k
    -filter:v:3 scale=h=720:w=-2  -minrate:v:3 512k -maxrate:v:3 1485k -bufsize:v:3 2048k -b:v:3 1024k
    -var_stream_map "v:0,a:0 v:1,a:1 v:2,a:2 v:3,a:3"
    -master_pl_name master.m3u8
    -f hls -hls_time 6 -segment_time 6 -hls_list_size 0 -segment_format mpegts
    -hls_playlist_type vod -hls_segment_filename "output/conversion/K8eYn1X1/res-%v/segment-%d.ts"  output/conversion/K8eYn1X1/res-%v/playlist.m3u8

    Based on information from various sources, this command line should do the following :

    1. take a video stream from the input file,

    2. apply filters with different settings four times,

    3. combine it into one stream,

    4. cut into TS-fragments for 6 seconds,

    5. write information about each resolution to the playlist.m3u8,

    6. create a master-playlist and write information about upcoming playlists in it

    Everything works correctly, BUT : fragments are created, playlists are created, but the master file is empty

    If you play with the command line, more precisely, leave only one filter, then everything works fine : and fragments are cut and playlists are created and a master-playlist is also created

    Also, I noticed that if I watched the folder in which all the files are stored, I noticed one thing : when using the command given above, a 7kb file is created, and then in the same second, it seems to be cleared . Why is this happening, I do not understand

    Upon completion of processing in the log, the last line :

    [hls @ 000001ff73b87200] Opening 'output/conversion/K8eYn1X1/master.m3u8' for writing

    Maybe I’m doing something wrong ? Maybe the commands are in the wrong order ? Tell me, who knows ?

    Thanks

  • How to download m3u8 playlist with URL redirection ? (blob URL,HydraX, JW Player version 8.4.2)

    17 novembre 2019, par wltprgm

    The video in https://hydrax.net/ is using HLS, .m3u8 file, direct link is https://hydrax.net/demo/hydrax.html (from the iframe src).

    However, youtube-dl couldn’t read from the .m3u8 file I downloaded from blob in chrome.

    And using ffmpeg method (which usually works) to download from the .m3u8 file failed because the first segment of the file is a URL redirect

    Error when loading first segment 'https://i.donald-gaines.xyz/redirect/7qC173pnWiDwe2TumUTYnzX4WdbPn8XJDzhqDzXPo39PWtX4EaAxLq7FLUW17aI/WhsiWh1RO6oSXzr6QqkTOgljgRrXBgpJtQf6gMBAC5Jq95JkuQlWKpfpgPoo/BSGGloj6MOe7cO4K9HoDj76PRzjSVoiwcJ1Xl34kc3Z5/Bl2WS3KO8WsicRVG8l1EBoi3RN2DnqZx6o13U56YnDBv'
    2b0bdf87-656f-4880-8357-f7fd6329b2f8.m3u8: Invalid data found when processing input

    Somebody asked the same question in reddit some days ago : link

  • How to convert mp4 to HLS and add subtitles to master playlist with ffmpeg

    26 septembre 2023, par light01

    I'm trying to use ffmpeg to convert an mp4 file to HLS, add subtitles, and have them in the master playlist.

    



    I managed to get it to create index_vtt.m3u8 files that contain the subtitles, but it doesn't want to add the stream to the master playlist.
I'm new to this so I don't fully understand how the whole ffmpeg works (I'm mainly just trying out bunch of resources I found on the net)

    



    I'm using the following command :

    



    ../ffmpeg-4.2.1/ffmpeg -i ../input.mp4 -i ../subtitile.vtt -c:s webvtt -profile:v baseline -level 21 -s 1280x720 -start_number 0 -hls_playlist_type vod -hls_time 10 -hls_list_size 3 -f hls -master_pl_name master.m3u8 index.m3u8`


    



    It generates master.m3u8

    



    #EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:BANDWIDTH=140800,RESOLUTION=1280x720,CODECS="avc1.42c015,mp4a.40.2"
index.m3u8


    



    I can play it in vlc, but it doesn't recognize any subtitles.
Then I modify the master.m3u8 so it looks like this :

    



    #EXTM3U
#EXT-X-VERSION:6

#EXT-X-MEDIA:TYPE=SUBTITLES,URI="index_vtt.m3u8",GROUP-ID="default-text-group",LANGUAGE="hr",NAME="Croatian",AUTOSELECT=YES

#EXT-X-STREAM-INF:BANDWIDTH=140800,RESOLUTION=1280x720,CODECS="avc1.42c01e,mp4a.40.2",SUBTITLES="default-text-group"
index.m3u8


    



    And everything is fine. How can I tell ffmpeg to do this for me ?