Recherche avancée

Médias (91)

Autres articles (59)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

Sur d’autres sites (3130)

  • "does not contain any stream" if "EXT-X-MEDIA-SEQUENCE" > 0

    6 mars 2019, par Wonson

    I have a list of .ts files and want to save them as multiple video files.


    First I have a .m3u8 like this obtained from streaming :

    #EXTM3U
    #EXT-X-VERSION:3
    #EXT-X-TARGETDURATION:5
    #EXT-X-MEDIA-SEQUENCE:0
    #EXT-X-KEY:METHOD=AES-128,URI="aaa001_00001.key"
    #EXTINF:3.01,
    aaa001_00002.ts
    #EXTINF:3.01,
    aaa001_00003.ts

    ...

    #EXTINF:3.01,
    aaa001_01944.ts
    #EXT-X-ENDLIST

    Step 1 :

    So, I tried to convert it into several m3u8 like the followings :

    segment1.m3u8

    #EXTM3U
    #EXT-X-VERSION:3
    #EXT-X-TARGETDURATION:5
    #EXT-X-MEDIA-SEQUENCE:0
    #EXT-X-KEY:METHOD=AES-128,URI="aaa001_00001.key"
    #EXTINF:3.01,
    aaa001_00002.ts
    #EXTINF:3.01,
    aaa001_00003.ts

    ...

    #EXTINF:3.01,
    aaa001_00569.ts
    #EXT-X-ENDLIST

    segment2.m3u8

    #EXTM3U
    #EXT-X-VERSION:3
    #EXT-X-TARGETDURATION:5
    #EXT-X-MEDIA-SEQUENCE:567
    #EXT-X-KEY:METHOD=AES-128,URI="aaa001_00001.key"
    #EXTINF:3.01,
    aaa001_00002.ts
    #EXTINF:3.01,
    aaa001_00003.ts

    ...

    #EXTINF:3.01,
    aaa001_01288.ts
    #EXT-X-ENDLIST

    and so on...

    then do the ffmpeg cmd one by one..

    ffmpeg -i /fs/segment2.m3u8 -safe 0 -map 0:v -map 0:a -cpu-used 4 -threads 0 -preset veryfast -c copy -bsf:a aac_adtstoasc output.mp4


    But those EXT-X-MEDIA-SEQUENCE > 0 (i.e. since segment2.m3u8...) will result in

    "Output file #0 does not contain any stream"


    Then I tried to make the ’segment2.m3u8’ looks like this

    #EXTM3U
    #EXT-X-VERSION:3
    #EXT-X-TARGETDURATION:5
    #EXT-X-MEDIA-SEQUENCE:0
    #EXT-X-KEY:METHOD=AES-128,URI="aaa001_00001.key"
    #EXTINF:3.01,
    aaa001_00002.ts <--the first video chunk
    #EXTINF:3.01,
    aaa001_00570.ts <--the start point of segment 2
    #EXTINF:3.01,
    aaa001_00571.ts

    ...

    #EXTINF:3.01,
    aaa001_01288.ts
    #EXT-X-ENDLIST

    ffmpeg works fine, and gives me an output video, so it seems the stream channel info is in the first chunk.

    However, there are still several problems

    1. the first chunk of video is in segment2.mp4 which I clearly do not want it here.

    2. the segment2 output video plays first the 3.01s, then freezed the image until the time reach aaa001_00570.ts and play again


    So, any suggestion so that I can reference the stream info from first chunk ? or ignore it in the playlist, etc ?


    UPDATE SOLUTION

    As it works when #EXT-X-MEDIA-SEQUENCE:0, and #EXT-X-KEY : IV = by default

    So I add IV=hex(#EXT-X-MEDIA-SEQUENCE)in every playlist

    segment1.m3u8

    #EXTM3U
    #EXT-X-VERSION:3
    #EXT-X-TARGETDURATION:5
    #EXT-X-MEDIA-SEQUENCE:0
    #EXT-X-KEY:METHOD=AES-128,URI="aaa001_00001.key",IV=0x00000000000000000000000000000000
    #EXTINF:3.01,
    aaa001_00002.ts
    #EXTINF:3.01,
    aaa001_00003.ts

    ...

    #EXTINF:3.01,
    aaa001_00569.ts
    #EXT-X-ENDLIST

    segment2.m3u8

    #EXTM3U
    #EXT-X-VERSION:3
    #EXT-X-TARGETDURATION:5
    #EXT-X-MEDIA-SEQUENCE:567
    #EXT-X-KEY:METHOD=AES-128,URI="aaa001_00001.key",IV=0x00000000000000000000000000000237
    #EXTINF:3.01,
    aaa001_00570.ts

    ...

    #EXTINF:3.01,
    aaa001_01288.ts
    #EXT-X-ENDLIST
  • Android Media player by FFmpeg2.3.3 and SDL2-2.0.3 has a error when SDL_init().The error is about SDL_main.h

    25 avril 2019, par Hanamaki

    I use FFmpeg2.3.3 and SDL2-2.0.3 to develop an Android video player.I built the .apk success,but when I ran it,it’s an error at SDL_init().I got message by SDL_error().The message was :

    SDL_Init(14144) : Application didn’t initialize properly, did you include SDL_main.h in the file containing your main() function ?

    but I have #include "SDL_main.h" in the source.

  • ffmpeg - recorded video stream is not displayed in vlc media player

    2 janvier 2024, par DeThe92

    I am trying to record an RTSP video stream from a Techage IP camera on my home network. I am using ffmpeg on my Raspberry Pi to do this and want to save the recorded video and audio data. My problem is that there seems to be video data coming through, but when I try to download the recorded file, there is only an audio stream, no video is displayed.

    


    I try :

    


    > ffmpeg -y -rtsp_transport tcp -re -i "rtsp://:554/user=admin&password=&channel=0&stream=0.sdp" -c copy -t 2 "output.avi"


    


    The result output is :

    


    ffmpeg version git-2016-07-02-0c6bedc Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 8 (Raspbian 8.3.0-6+rpi1)
  configuration: --extra-ldflags=-latomic --arch=armel --target-os=linux --enable-gpl --enable-omx --enable-omx-rpi --enable-libx264 --enable-nonfree
  libavutil      55. 28.100 / 55. 28.100
  libavcodec     57. 48.101 / 57. 48.101
  libavformat    57. 41.100 / 57. 41.100
  libavdevice    57.  0.102 / 57.  0.102
  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
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, rtsp, from 'rtsp://192.168.178.60:554/user=admin&password=&channel=0&stream=0.sdp':
  Metadata:
    title           : RTSP Session
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: hevc (Main), yuvj420p(pc), 3840x2160, 10 fps, 10 tbr, 90k tbn, 10 tbc
    Stream #0:1: Audio: pcm_alaw, 8000 Hz, 1 channels, s16, 64 kb/s
[avi @ 0x1c4a1a0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
    Last message repeated 1 times
Output #0, avi, to 'a0.avi':
  Metadata:
    INAM            : RTSP Session
    ISFT            : Lavf57.41.100
    Stream #0:0: Video: hevc, yuvj420p(pc), 3840x2160, q=2-31, 10 fps, 10 tbr, 20 tbn, 20 tbc
    Stream #0:1: Audio: pcm_alaw ([6][0][0][0] / 0x0006), 8000 Hz, mono, 64 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[avi @ 0x1c4a1a0] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
frame=    3 fps=0.0 q=-1.0 size=     220kB time=00:00:00.60 bitrate=3002.0kbits/s speed=1.1
frame=   10 fps=9.9 q=-1.0 size=     303kB time=00:00:01.12 bitrate=2214.9kbits/s speed=1.1
frame=   15 fps=9.9 q=-1.0 size=     367kB time=00:00:01.60 bitrate=1878.5kbits/s speed=1.0
frame=   20 fps=9.9 q=-1.0 size=     431kB time=00:00:02.00 bitrate=1766.1kbits/s speed=0.9
frame=   20 fps=9.1 q=-1.0 Lsize=     433kB time=00:00:02.00 bitrate=1774.5kbits/s speed=0.908x
video:406kB audio:16kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.827832%


    


    Does someone has any idea what could be wrong ? Thanks in advance.