Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP 0.2

Autres articles (58)

  • 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

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

  • ffmpeg incorrect duration when converting video to HLS

    12 octobre 2016, par Julie Bsd

    I’m facing an issue using ffmpeg to convert video, precisely mp4 video => Http Live Streaming (HLS)

    Once converted to HLS, the .m3u8 file has a wrong duration (e.g : 20,1s instead of 20.00s), causing bugs when playing it with AVPlayer on iOS.
    Playing the video with Safari cause the same issue.

    Example :
    1) Open Safari
    2) Play this video that i’ve converted
    3) Look at the download progression, stopped at 98% cause of wrong duration.
    enter image description here
    4) When you slide between 98% and 100%, the video player can crash.


    EDIT 1 :

    I’ve edited the command line

    ffmpeg -i  video.mp4 \
    -codec copy \
    -acodec copy \
    -map 0 -f ssegment -g 60 -sc_threshold 0 \
    -segment_list playlist.m3u8 \
    -segment_list_flags +live \
    -segment_time 2 media%05d.ts \
     >./log_ffmpeg 2>./log_ffmpeg

    LOG :

    ffmpeg version 3.1.4-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 5.4.1 (Debian 5.4.1-2) 20160904
     configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls --enable-libvidstab --enable-libsoxr --enable-frei0r --enable-libfribidi --disable-indev=sndio --disable-outdev=sndio --enable-librtmp --enable-libzimg --cc=gcc-5 --disable-ffplay
     libavutil      55. 28.100 / 55. 28.100
     libavcodec     57. 48.101 / 57. 48.101
     libavformat    57. 41.100 / 57. 41.100
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 47.100 /  6. 47.100
     libswscale      4.  1.100 /  4.  1.100
     libswresample   2.  1.100 /  2.  1.100
     libpostproc    54.  0.100 / 54.  0.100

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './Comptes/1/Photos/306/original_video.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 1
       compatible_brands: mp41mp42isom
       creation_time   : 2016-10-12 14:29:51
     Duration: 00:00:20.00, start: 0.000000, bitrate: 1673 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 540x960, 1563 kb/s, 30 fps, 30 tbr, 600 tbn, 1200 tbc (default)
       Metadata:
         creation_time   : 2016-10-12 14:29:51
         handler_name    : Core Media Video
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 101 kb/s (default)
       Metadata:
         creation_time   : 2016-10-12 14:29:51
         handler_name    : Core Media Audio
    [stream_segment,ssegment @ 0x652ed80] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
       Last message repeated 1 times

    Output #0, stream_segment,ssegment, to './Comptes/1/Photos/306/media%05d.ts':
     Metadata:
       major_brand     : mp42
       minor_version   : 1
       compatible_brands: mp41mp42isom
       encoder         : Lavf57.41.100
       Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt709), 540x960, q=2-31, 1563 kb/s, 30 fps, 30 tbr, 90k tbn, 600 tbc (default)
       Metadata:
         creation_time   : 2016-10-12 14:29:51
         handler_name    : Core Media Video
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, 101 kb/s (default)
       Metadata:
         creation_time   : 2016-10-12 14:29:51
         handler_name    : Core Media Audio
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    frame=  601 fps=0.0 q=-1.0 Lsize=N/A time=00:00:20.10 bitrate=N/A speed= 917x    
    video:3823kB audio:249kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

    m3u8 file :

    #EXTM3U
    #EXT-X-VERSION:3
    #EXT-X-MEDIA-SEQUENCE:0
    #EXT-X-ALLOW-CACHE:YES
    #EXT-X-TARGETDURATION:3
    #EXTINF:2.033333,
    media00000.ts
    #EXTINF:2.000000,
    media00001.ts
    #EXTINF:2.000000,
    media00002.ts
    #EXTINF:2.000000,
    media00003.ts
    #EXTINF:2.000000,
    media00004.ts
    #EXTINF:2.000000,
    media00005.ts
    #EXTINF:2.000000,
    media00006.ts
    #EXTINF:2.000000,
    media00007.ts
    #EXTINF:2.000000,
    media00008.ts
    #EXTINF:2.000000,
    media00009.ts
    #EXTINF:0.033333,
    media00010.ts
    #EXT-X-ENDLIST

    As you can see input duration =/= output duration
    input duration : 20s
    output duration 20.1s

  • How do you display closed caption format of HLS video stream from an m3u8 URL

    7 décembre 2016, par rynop

    I’m working on a Roku and TVOS app that is going to play HLS videos (VOD and live) as well as MP4. According to the Roku docs EIA-608 is supported on both and should also work on TVOS.

    My question is, given URL to the m3u8 how can I tell what specific format (EIA-608,WebVTT etc) of closed captioning is being used in each stream ?

    Contents of the main m3u8 (note 1st stream says no CC, but it really does have it) :

    #EXTM3U
    #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=380000,RESOLUTION=400x228,CODECS="avc1.66.30, mp4a.40.2",CLOSED-CAPTIONS=NONE
    http://d.com/i/video/2426832/2426832_,350,640,1000,2000,.mp4.csmil/index_0_av.m3u8
    #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=750000,RESOLUTION=640x360,CODECS="avc1.77.30, mp4a.40.2",CLOSED-CAPTIONS=NONE
    http://d.com/i/video/2426832/2426832_,350,640,1000,2000,.mp4.csmil/index_1_av.m3u8
    #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1044000,RESOLUTION=1280x720,CODECS="avc1.64001f, mp4a.40.2",CLOSED-CAPTIONS=NONE
    http://d.com/i/video/2426832/2426832_,350,640,1000,2000,.mp4.csmil/index_2_av.m3u8
    #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=2127000,RESOLUTION=1280x720,CODECS="avc1.64001f, mp4a.40.2",CLOSED-CAPTIONS=NONE
    http://d.com/i/video/2426832/2426832_,350,640,1000,2000,.mp4.csmil/index_3_av.m3u8

    Contents of the 1st stream’s m3u8

    #EXTM3U
    #EXT-X-TARGETDURATION:4
    #EXT-X-ALLOW-CACHE:YES
    #EXT-X-PLAYLIST-TYPE:VOD
    #EXT-X-VERSION:3
    #EXT-X-MEDIA-SEQUENCE:1
    #EXTINF:4.000,
    http://d.com/i/video/2426832/2426832_,350,640,1000,2000,.mp4.csmil/segment1_0_av.ts
    ...

    I can use ffprobe -hide_banner to show the 1st program’s stream has closed captioning. Ex :

    Duration: 00:02:36.76, start: 0.100511, bitrate: 0 kb/s
     Program 0
       Metadata:
         variant_bitrate : 380000
       Stream #0:0: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p, 400x228 [SAR 1:1 DAR 100:57], Closed Captions, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
       Metadata:
         variant_bitrate : 380000
       Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, mono, fltp, 48 kb/s
       Metadata:
         variant_bitrate : 380000

    However, as you can see, Program 0 > Stream 0 just says that is has Closed captions - it does not list the type/spec of closed captioning technology being used.

    How do I display the format of the Closed Captions ?

  • concatenate encrypted m3u8 ts video segments into a whole

    20 octobre 2016, par iMath

    The m3u8 content

    #EXTM3U
    #EXT-X-VERSION:3
    #EXT-X-ALLOW-CACHE:YES
    #EXT-X-TARGETDURATION:5
    #EXT-X-MEDIA-SEQUENCE:0
    #EXT-X-KEY:METHOD=AES-128,URI="http://www.gaiamount.com/keys/3958/4k",IV=0x440796ac5ac10cc577f9bec05cd042ef
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0000.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0001.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0002.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0003.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0004.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0005.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0006.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0007.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0008.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0009.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0010.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0011.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0012.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0013.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0014.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0015.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0016.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0017.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0018.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0019.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0020.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0021.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0022.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0023.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0024.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0025.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0026.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0027.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0028.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0029.ts
    #EXTINF:4.760000,
    /seg/u116/v810_mp4_0030.ts
    #EXT-X-ENDLIST

    I’ve already download all the ts video segments using another Downloader , then try to follow the method to concatenate these ts video segments into a whole , however the ffmpeg complains the following

    C:\Users\i>ffmpeg -f concat -i mylist.txt -c copy output.ts
    ffmpeg version N-81475-gdc7e5ad Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 5.4.0 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dx
    va2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-lib
    ebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --ena
    ble-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfree
    type --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enab
    le-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-lib
    openh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschr
    oedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheor
    a --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvo
    rbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --ena
    ble-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --e
    nable-decklink --enable-zlib
     libavutil      55. 29.100 / 55. 29.100
     libavcodec     57. 54.100 / 57. 54.100
     libavformat    57. 48.100 / 57. 48.100
     libavdevice    57.  0.102 / 57.  0.102
     libavfilter     6. 57.100 /  6. 57.100
     libswscale      4.  1.100 /  4.  1.100
     libswresample   2.  1.100 /  2.  1.100
     libpostproc    54.  0.100 / 54.  0.100
    [concat @ 03e30fe0] Impossible to open 'C:/Users/i/AppData/Roaming/iMath/01.ts'
    mylist.txt: Invalid data found when processing input

    C:\Users\i>

    so (1)what should I do to concatenate these encrypted m3u8 ts video segments into a whole ?
    (2) Any way to get the video byte size an m3u8 url referenced to ?