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 (2277)

  • How to make HLS start from the begining

    15 juillet 2016, par Ariel Argañaraz

    I need some help with HLS streaming, I’m trying to create a playlist for streaming,

    I’m using ffmpeg to generate the files and the .m3u8 files. And for playing i’m using a web page with videojs player

    The idea is to simulate a live streaming using files already created.

    The problem is that in some version of iphone works and in another does not work.
    The problem is that when I start play the video in the Safari browser of my phone it freezes for a while and then download and play the last segment.

    for example if the video is split in 4 differents .ts files.
    It starts playing from the 4th .ts file and then stop.

    The problem is that I have 2 iphone mobile phone, one of them works perfectly but the other one not

    The not working cell phone is a iphone 6 (version 9.2.1)

    Here is my m3u8 file. Note that I’m using the #EXT-X-PLAYLIST-TYPE:EVENT and I remove the #EXT-X-ENDLIST from the botton. So it should be played as an live streaming.

    It works for another phones, it begins from the 0 second when I set the #EXT-X-START:TIME-OFFSET=0

    but in this version (9.2.1) the video freezes and then jumps to the last segment (webinar-3.ts) plays that segment and finally stop.

    #EXTM3U
    #EXT-X-VERSION:4
    #EXT-X-MEDIA-SEQUENCE:0
    #EXT-X-ALLOW-CACHE:NO
    #EXT-X-PLAYLIST-TYPE:EVENT
    #EXT-X-START:TIME-OFFSET=0
    #EXT-X-TARGETDURATION:6
    #EXTINF:5.046444,
    webinar-0.ts
    #EXTINF:5,
    webinar-1.ts
    #EXTINF:5,
    webinar-2.ts
    #EXTINF:5,
    webinar-3.ts

    Have anybody got an idea of what i’m doing wrong or how to get a m3u8 config that works for this iphone version ?

  • ffmpeg seeking in HLS m3u8 video

    15 décembre 2016, par VixinG

    I’m having problem seeking in m3u8 hls video.
    The m3u8 has 9-10 sec .ts fragments, with #EXTINF:<time>,</time> before each fragment.

    The entire video is 5 hours long and I’m trying to get clip from 3:10:00 to 3:45:00 like this :

    ffmpeg -ss 3:10:00 -i 'http://example.com/v/vod.m3u8' -t 0:35:00 -c:v copy -bsf:a aac_adtstoasc out.mp4

    When I execute that, it just waits forever. I tried both on Windows and Linux with the latest and older version of FFmpeg. I waited for like an hour yesterday and it didn’t do anything. Log :

    Input #0, hls,applehttp, from 'http://example.com/v/vod.m3u8':
     Duration: 05:25:27.08, start: 60.000000, bitrate: 0 kb/s
     Program 0
       Metadata:
         variant_bitrate : 0
       Stream #0:0: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 159 kb/s
       Stream #0:1: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080, 30 fps, 30 tbr, 90k tbn, 60 tbc
       Stream #0:2: Data: timed_id3 (ID3  / 0x20334449)
    Output #0, mp4, to 'out.mp4':
     Metadata:
       encoder         : Lavf57.41.100
       Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1920x1080, q=2-31, 30 fps, 30 tbr, 90k tbn, 90k tbc
       Stream #0:1: Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 128 kb/s
       Metadata:
         encoder         : Lavc57.48.101 aac
    Stream mapping:
     Stream #0:1 -> #0:0 (copy)
     Stream #0:0 -> #0:1 (aac (native) -> aac (native))
    Press [q] to stop, [?] for help

    And it stays like this forever.

    How can I seek to 3h10m without having to download the entire 5h25m ?
    -ss doesn’t seem to do much

    Is it supposed to go so slow or is the m3u8 corrupted ? It looks like this inside :

    #EXTM3U
    #EXT-X-VERSION:3
    #EXT-X-TARGETDURATION:6
    #ID3-EQUIV-TDTG:2015-12-16T03:24:26
    #EXT-X-PLAYLIST-TYPE:EVENT

    #EXT-X-ELAPSED-SECS:0.0
    #EXT-X-TOTAL-SECS:19527.08
    #EXTINF:9.268,
    index-00000-vdyz-0.ts
    #EXTINF:10.000,
    index-00001-AiD9-0.ts
    (...)

    And it has 12x #EXT-X-DISCONTINUITY, every 174 parts.

    When I use VLC or any other player to open the m3u8 directly I can seek without problem and it’s instant. FFmpeg doesn’t seem to use the same method of seeking, or it’s broken.

    To see what I mean, try seeking on this m3u8 :

    http://vod167-ttvnw.akamaized.net/07e4ac668a/lirik_7709808752_7709808752/chunked/index-dvr.m3u8

    and try fast-seeking (-ss before input) to 2:30:00 and exporting 1 frame with frames:v 1 out.jpg

  • ffmpeg hls with aes encryption

    24 novembre 2016, par Ankit Vimal

    I was trying to create an encrypted hls stream using ffmpeg. I’ve seen other questions related to this.
    I’ve created a video.key file with the following content :

    12345678901234567890123456789011

    I’ve also created a key_info file with the following contents :

    http://10.10.102.223:59164/trial/video.key
    video.key

    I have a mp4 file : jellies.mp4
    and I was trying to transcode and encrypt it using

    ffmpeg -i jellies.mp4 -hls_time 5 -hls_key_info_file key_info playlist.m3u8

    After I was done transcoding I put the folder on a server and tried to access it on a client android app.

    The app contains a VideoView to which the url is fed. And I believe that decryption is done automatically.

    But the app is not working . It shows the following errors :

    E/MediaPlayer: error (1, -1007)

    After this I tried the transcoding again ,this time without encryption ,using :

    ffmpeg -i jellies.mp4 -hls_time 5 playlist.m3u8

    This played perfectly on the app.

    Using packet capture I’m able to see the various packets sent and received .

    And the key is being received perfectly.

    Then why is the stream not working.

    Is it because I didn’t encrypt it properly ? And how do I fix it ?