Recherche avancée

Médias (91)

Autres articles (76)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (11403)

  • ffmpeg converting RTSP to HLS stops working after hours

    28 juin 2019, par lin wang

    I’m using ffmpeg to convert RTSP stream to HLS, here is the command :

    ffmpeg -rtsp_transport tcp -i rtsp ://address/9012120.smil -vcodec copy -acodec copy -fflags +genpts -f hls -hls_wrap 5 -hls_list_size 2 -hls_time 3 /dev/shm/live/1/v.m3u8

    It worked properly at the beginning, but after hours(sometimes 8 hours sometimes less),it just stopped updating .ts files but the ffmpeg process was still running, so the hls stream just stuck.
    Check the log, no error log at the moment of the converting stopping,but before that there were some warning logs as below :

    [hls @ 0x57602c0] Non-monotonous DTS in output stream 0:1 ; previous : 5957536600,
    current : 2744367719 ; changing to 5957536601. This may result in incorrect timestamps in the output file.

    Any idea how to fix this ?

  • 3 Hours video opens as 3 minutes [ffmpeg][vegas][Windows]

    20 avril 2018, par CrazyFrog

    I have a mp4 video that is 3:55:00 long. However, when I try to edit it with Vegas 13 or ffmpeg, the softwares only find the first 00:03:16 part.

    I tried to search for similar questions, but did not find any answers.

    Video details(Windows explorer) :
    Length : 03:55:00
    Res : 1280x720
    Data rate:1342 kbps
    Total bitrate : 1408 kbps
    Frame rate : 25 f/s

    Audio
    Bit rate:65 kbps
    Channels : 2(stereo)
    Audio sample rate : 44.1 kHz

    Video details(Vegas, ffmpeg) :
    Format : AVC
    ffmpeg compatible_brands : isomiso2avc1mp41

    I tried using ffmpeg to convert it to a regular mp4. Unfortunately it only finds the first 3:16 minutes too.

    UPDATE

    .\ffmpeg.exe -i origin.mp4 -c copy test.mp4

    ffmpeg version N-88514-gd5995c531d Copyright (c) 2000-2017 the FFmpeg developers
    built with gcc 7.2.0 (GCC)
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-cuda --enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth --enable-libmfx
     libavutil      56.  0.100 / 56.  0.100
     libavcodec     58.  1.100 / 58.  1.100
     libavformat    58.  0.102 / 58.  0.102
     libavdevice    58.  0.100 / 58.  0.100
     libavfilter     7.  0.101 /  7.  0.101
     libswscale      5.  0.101 /  5.  0.101
     libswresample   3.  0.101 /  3.  0.101
     libpostproc    55.  0.100 / 55.  0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'origin.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
     Duration: 03:55:00.64, start: 0.000000, bitrate: 1414 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720, 1343 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 65 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Output #0, mp4, to 'test.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.0.102
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720, q=2-31, 1343 kb/s, 25 fps, 25 tbr, 12800 tbn, 12800 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 65 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    frame= 4921 fps=0.0 q=-1.0 Lsize=   26141kB time=00:03:16.72 bitrate=1088.6kbits/s speed=1.68e+003x
    video:24412kB audio:1569kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.619153%
  • "Non-monotonous DTS in output stream" every 13 hours 14 minutes

    29 mars 2018, par Gnitry

    I have a problem with the latest ffmpeg from zeranoe.
    Every 13h14m ffmpeg stops recording.

    ffmpeg started on 2017-09-28 at 10:36:49
    Report written to "ffmpeg-20170928-103649.log"
    Command line:
    "D:\\ffmpeg\\ffmpeg.exe" -report
    ffmpeg version N-87353-g183fd30 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 7.2.0 (GCC)
     configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib
     libavutil      55. 76.100 / 55. 76.100
     libavcodec     57.106.101 / 57.106.101
     libavformat    57. 82.101 / 57. 82.101
     libavdevice    57.  8.101 / 57.  8.101
     libavfilter     6.105.100 /  6.105.100
     libswscale      4.  7.103 /  4.  7.103
     libswresample   2.  8.100 /  2.  8.100
     libpostproc    54.  6.100 / 54.  6.100
    Splitting the commandline.
    Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
    Finished splitting the commandline.
    Parsing a group of options: global .
    Applying option report (generate a report) with argument 1.
    Successfully parsed a group of options.
    Hyper fast Audio and Video encoder

    I record video streams from 3 cameras.

    Stream 1 :

    Input #0, rtp, from 'rtp://225.1.1.1:1024':
     Duration: N/A, start: 60424.501000, bitrate: N/A
     Program 1
       Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressiv
    e), 1920x1080 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
       Stream #0:1(eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, mono,
    fltp, 164 kb/s

    Streams 2,3 :

    Input #0, rtsp, from 'rtsp://192.168.3.36:554/stream1':
     Metadata:
       title           : Session streamed by "Pelco Streaming Server"
       comment         : stream1
     Duration: N/A, start: 0.219167, bitrate: N/A
       Stream #0:0: Video: h264 (Baseline), yuv420p(progressive), 640x480, 25 fps,
    25 tbr, 90k tbn, 50 tbc

    I record each of them with segmentation every 1 minute using separated ffmpeg instances like :

    ffmpeg -i "rtsp://192.168.3.36:554/stream1" -vcodec copy -an -f segment -strftime 1 -segment_time 60 "novus-%Y-%m-%d_%H-%M-%S.ts"

    Every 13 hours 14 minutes (from beginning of recording) each ffmpeg stops recording with messages like "Non-monotonous DTS in output stream 0:0". And it doesn’t matter when I started every ffmpeg intance : if I started instance №2 1 minute later that instance №1, it will stop recording in 1 minute after №1 accordingly. I tried it on two PC : Windows Server 2012 x64 and Windows 10 x64.

    ...
    [NULL @ 000000000034a900] SEI type 5 size 408 truncated at 160
    [segment @ 000000000034e780] stream:0 start_pts_time:47640.5 pts:4289549528 pts_time:47661.7 dts:4289549528 dts_time:47661.7 -> pts:4289549528 pts_time:47661.7 dts:4289549528 dts_time:47661.7
    [NULL @ 000000000034a900] SEI type 5 size 408 truncated at 160
    [segment @ 000000000034e780] stream:0 start_pts_time:47640.5 pts:4289553131 pts_time:47661.7 dts:4289553131 dts_time:47661.7 -> pts:4289553131 pts_time:47661.7 dts:4289553131 dts_time:47661.7
    [NULL @ 000000000034a900] SEI type 5 size 408 truncated at 160
    [segment @ 000000000034e780] stream:0 start_pts_time:47640.5 pts:4289556734 pts_time:47661.7 dts:4289556734 dts_time:47661.7 -> pts:4289556734 pts_time:47661.7 dts:4289556734 dts_time:47661.7
    [NULL @ 000000000034a900] SEI type 5 size 336 truncated at 160
    [segment @ 000000000034e780] Non-monotonous DTS in output stream 0:0; previous: 4289535114, current: -5428580; changing to 4289535115. This may result in incorrect timestamps in the output file.
    [segment @ 000000000034e780] stream:0 start_pts_time:47640.5 pts:4289556735 pts_time:47661.7 dts:4289556735 dts_time:47661.7 -> pts:4289556735 pts_time:47661.7 dts:4289556735 dts_time:47661.7
    [NULL @ 000000000034a900] SEI type 5 size 408 truncated at 160
    [segment @ 000000000034e780] Non-monotonous DTS in output stream 0:0; previous: 4289535115, current: -5424977; changing to 4289535116. This may result in incorrect timestamps in the output file.
    [segment @ 000000000034e780] stream:0 start_pts_time:47640.5 pts:4289556736 pts_time:47661.7 dts:4289556736 dts_time:47661.7 -> pts:4289556736 pts_time:47661.7 dts:4289556736 dts_time:47661.7
    [NULL @ 000000000034a900] SEI type 5 size 408 truncated at 160
    [segment @ 000000000034e780] Non-monotonous DTS in output stream 0:0; previous: 4289535116, current: -5421374; changing to 4289535117. This may result in incorrect timestamps in the output file.
    [segment @ 000000000034e780] stream:0 start_pts_time:47640.5 pts:4289556737 pts_time:47661.7 dts:4289556737 dts_time:47661.7 -> pts:4289556737 pts_time:47661.7 dts:4289556737 dts_time:47661.7
    frame=1190370 fps= 25 q=-1.0 size=N/A time=13:14:21.50 bitrate=N/A speed=   1x    
    [NULL @ 000000000034a900] SEI type 5 size 408 truncated at 160
    [segment @ 000000000034e780] Non-monotonous DTS in output stream 0:0; previous: 4289535117, current: -5417772; changing to 4289535118. This may result in incorrect timestamps in the output file.
    ...

    The full debug log with this problem is here (25 Mb, zipped) :
    https://drive.google.com/file/d/0B1LIS8G55R7-OGY4QkdkQ0J1cVE/view?usp=sharing
    I can’t record video infinitely. Every 13 hours I have broken recording. I tried to record with "copytb 1", "genpts" but it doesn’t help. I don’t think it is the network problem, because I tried to record the same rtsp stream by two instances of ffmpeg with time shift of start : they stuck separately at separate time.
    Does anyone know how to solve it ? I can provide you with another information you need about this.

    Update : If I wait 13 hours after bug appeared, the recording starts again.