Recherche avancée

Médias (0)

Mot : - Tags -/flash

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

Autres articles (65)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • 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

  • 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

Sur d’autres sites (9363)

  • Ffmpeg and ffprobe not showing subtitles stream in m3u8 file

    3 juin 2021, par DanielVip3

    I'm trying to get an mp4 video from a m3u8 playlist file (in simple HLS), with audio, video and subtitles.

    


    I've managed to extract the video and audio stream because they are relatively easy : the input m3u8, according to ffprobe, contains 3 different programs, and the third program (called Program 2) is the one I need, because it contains both the highest quality video and the English highest quality audio.

    


    So, what I really am doing is

    


    ffmpeg -i "blahblah.m3u8" -c copy -map 0:p:2:v:0 -map 0:p:2:a:m:language:eng -map 0:s:0 "output.mp4"


    


    Which means : select the first video stream for the third (index 2) program and the English language audio stream from the same third (index 2) program.

    


    My problem is : I can't seem to find the two subtitles streams.
The m3u8 has two subtitles : English and Spanish, as you can see in the m3u8 itself

    


    #EXTM3U
# Created with Bento4 mp4-hls.py version 1.2.0r637

#EXT-X-VERSION:4

# Subtitles
#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subtitles",NAME="English",LANGUAGE="en",URI="subtitles/en/subtitles.m3u8"
#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subtitles",NAME="Español",LANGUAGE="es",URI="subtitles/es/subtitles.m3u8"

# Audio
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio_aac",NAME="Français",LANGUAGE="fra",AUTOSELECT=YES,DEFAULT=YES,URI="audio/aac/fra/stream.m3u8"
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio_aac",NAME="English",LANGUAGE="eng",AUTOSELECT=YES,URI="audio/aac/eng/stream.m3u8"

# Media Playlists
#EXT-X-STREAM-INF:AVERAGE-BANDWIDTH=2198120,BANDWIDTH=2416640,CODECS="avc1.4D401F,mp4a.40.2",RESOLUTION=1280x720,AUDIO="audio_aac",SUBTITLES="subtitles"
media-1/stream.m3u8
#EXT-X-STREAM-INF:AVERAGE-BANDWIDTH=1001663,BANDWIDTH=1102896,CODECS="avc1.42C01E,mp4a.40.2",RESOLUTION=640x360,AUDIO="audio_aac",SUBTITLES="subtitles"
media-2/stream.m3u8
#EXT-X-STREAM-INF:AVERAGE-BANDWIDTH=4007581,BANDWIDTH=4391894,CODECS="avc1.4D4029,mp4a.40.2",RESOLUTION=1920x1080,AUDIO="audio_aac",SUBTITLES="subtitles"
media-3/stream.m3u8


    


    I thought it was easy : I added a -map 0:s:0 to get the first subtitles, but ffmpeg told me that there's no stream named like that.

    


    Then I ran ffprobe, which tells me there are no subtitles streams for him :

    


    ffprobe "blahblah.m3u8" -show_streams -select_streams s


    


    You can find here all the streams which the ffprobe command shows. There are lots of video and audio streams, but there are no subtitles streams.

    


    Why don't ffmpeg and ffprobe find the subtitles streams ? Is it because they are split in a different m3u8 playlist file ?

    


  • Is it real connect subtitles when streaming video (HLS, M3U8)

    12 avril 2019, par Mikhail Petrov

    I am trying to create a stream in which the tracks from the convertible file (in my case .mkv to .m3u8) will be played through m3u8. At the moment, it turns out to switch between multiple resolutions, and even select the audio track, but does not see the subtitles at all.

    Video works, audio tracks are switched, but no subtitles are visible at all

    ffprobe source file :
    https://paste2.org/czUePDPj

    Next, perform coding and splitting into tracks :

    ffmpeg -i '/home/mishkapetran/Загрузки/Rick.mkv' \
    -map 0:v:0 -c:v libx264 -profile:v baseline -preset:v superfast -strict -2 -s 426x240   -f hls -hls_time 10 -hls_list_size 0 -segment_list rick240p -hls_segment_filename '/home/mishkapetran/Загрузки/test/Rick240p_%d.ts'      '/home/mishkapetran/Загрузки/test/Rick240p.m3u8' \
    -map 0:a:0 -c:a aac                             -f hls -hls_time 10 -hls_list_size 0 -segment_list rick_ru -hls_segment_filename '/home/mishkapetran/Загрузки/test/RickTrack_ru_%d.aac'        '/home/mishkapetran/Загрузки/test/RickTrack_ru.m3u8' \
    -map 0:a:1 -c:a aac                             -f hls -hls_time 10 -hls_list_size 0 -segment_list rick_en -hls_segment_filename '/home/mishkapetran/Загрузки/test/RickTrack_en_%d.aac'        '/home/mishkapetran/Загрузки/test/RickTrack_en.m3u8' \
    -map 0:s:0 suben.vtt                          -f hls -hls_time 10 -hls_list_size 0 -segment_list en -hls_segment_filename '/home/mishkapetran/Загрузки/test/sub_en_%d.vtt'  '/home/mishkapetran/Загрузки/test/sub_en.m3u8' \
    -map 0:s:1 subru.vtt                          -f hls -hls_time 10 -hls_list_size 0 -segment_list ru -hls_segment_filename '/home/mishkapetran/Загрузки/test/sub_ru_%d.vtt'  '/home/mishkapetran/Загрузки/test/sub_ru.m3u8'

    Then in the same folder I create the m3u8 master :

    #EXTM3U
    #EXT-X-VERSION:5
    #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio",NAME="Russian",LANGUAGE="ru",AUTOSELECT=YES,URI="RickTrack_ru.m3u8"
    #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio",NAME="English",LANGUAGE="en",AUTOSELECT=NO,URI="RickTrack_en.m3u8"

    #EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="Russian",DEFAULT=YES,FORCED=NO,AUTOSELECT=YES,LANGUAGE="ru",URI="sub_ru.m3u8"
    #EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="English",DEFAULT=NO,FORCED=NO,AUTOSELECT=YES,LANGUAGE="en",URI="sub_en.m3u8"

    #EXT-X-STREAM-INF:BANDWIDTH=928000,CODECS="avc1.42c00d,mp4a.40.2",RESOLUTION=480x270,AUDIO="audio",SUBTITLES="subs"
    Rick240p.m3u8
  • Stream multiple docker container audio

    18 août 2021, par Sina Zand Karimi

    I want to run multiple docker containers on a machine and stream the audio via RTP. I can run apps with sound with this command :

    


    sudo docker run -it \
    --device /dev/snd \
    -e PULSE_SERVER=unix:${XDG_RUNTIME_DIR}/pulse/native \
    -v ${XDG_RUNTIME_DIR}/pulse/native:${XDG_RUNTIME_DIR}/pulse/native \
    -v ~/.config/pulse/cookie:/root/.config/pulse/cookie \
    --group-add $(getent group audio | cut -d: -f3) \
    
    ubuntu:16.04 /bin/bash


    


    It works fine and when i play any sound in the container it plays and i can hear it and i can stream it with FFmpeg. The problem is when i run multiple containers and play any sound from any container, it seems they are using the same sink in pulseaudio server so i can't separate them and each stream client hear all the sounds from all the running containers. How can i achieve my goal ?
My FFmpeg Stream code :

    


    ffmpeg -f alsa -i pulse -acodec libmp3lame -ab 128k -ac 2 -ar 48000 -c:a libopus -f rtp rtp://$IP:4001