Recherche avancée

Médias (91)

Autres articles (41)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • 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" (...)

  • Other interesting software

    13 avril 2011, par

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website : http://videopress.com/
    License : GNU/GPL v2
    Source code : (...)

Sur d’autres sites (7904)

  • Revert "avcodec/bsf : Forbid packet without payload in av_bsf_send_packet"

    23 avril 2017, par James Almer
    Revert "avcodec/bsf : Forbid packet without payload in av_bsf_send_packet"
    

    This reverts commit bfdca87ab55c7f69087d962dc47aa45c8c6436fb.

    Packets with no data or side data will be valid EOF signal in an
    upcoming merge.

    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] libavcodec/avcodec.h
    • [DH] libavcodec/bsf.c
  • What format/protocol does ffmpeg use for "raw" output ?

    18 avril 2017, par MSalters

    Given a commandline ffmpeg -f lavfi -i "sine=frequency=1000:duration=5" -ar 8000 -c:a FOO pipe:1, ffmpeg might complain it’s "unable to find a suitable output format". For some codecs, ffmpeg has a default container format, e.g. -c:a libmp3lame will produce MP3’s. For other codecs, you just repeat yourself (sort of) : -c:a pcm_alaw -f alaw

    But what if I want to stream the raw codec output, and there’s no matching -f ? Can I just take -f alaw and assume that it doesn’t do anything ? (G711 alaw is a simple codec which produces a byte stream, so -f alaw presumably just copies that byte stream)

    Obviously the other side of the pipe needs to know how the data stream needs to be interpreted, if there’s no container info. But assume that I already know the other side of the pipe is expecting an audio stream, sampled at 8 kHz, encoded with -c:a FOO.

  • FFmpeg HLS input stream shows "Packet corrupt" and "timestamp discontinuity" errors when pushing to RTMP server [closed]

    22 mai, par Amul Bhatia

    I'm trying to restream an HLS URL (https://cache.fastcdn.com.my/edge/53-1.stream/index_0.m3u8?misc=87uq4HjbDEDE3TzIY95ja1ZMxA-Cm1PbOXAk16riVlU&uid=139322&ts=1747931206&e=43200&lat=1747931206&sil=5&sk=no&uip=MTEwLjIyNC4yNDIuOTg&head=aHR0cF94X2ZvcndhcmRlZF9mb3I&chid=53-1') into my RTMP server with FFmpeg. The command I use is :

    &#xA;

    ffmpeg -i "https://cache.fastcdn.com.my/edge/53-1.stream/index_0.m3u8?misc=87uq4HjbDEDE3TzIY95ja1ZMxA-Cm1PbOXAk16riVlU&amp;uid=139322&amp;ts=1747931206&amp;e=43200&amp;lat=1747931206&amp;sil=5&amp;sk=no&amp;uip=MTEwLjIyNC4yNDIuOTg&amp;head=aHR0cF94X2ZvcndhcmRlZF9mb3I&amp;chid=53-1" -c:v libx264 -preset veryfast -b:v 1000k -c:a aac -b:a 128k -f flv rtmp://69.62.85.241/live/streamkey&#xA;

    &#xA;

    getting error

    &#xA;

    ffmpeg version 6.1.1-3ubuntu5 Copyright (c) 2000-2023 the FFmpeg developers&#xA;  built with gcc 13 (Ubuntu 13.2.0-23ubuntu3)&#xA;  configuration: --prefix=/usr --extra-version=3ubuntu5 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --disable-omx --enable-gnutls --enable-libaom --enable-libass --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libharfbuzz --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-openal --enable-opencl --enable-opengl --disable-sndio --enable-libvpl --disable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-ladspa --enable-libbluray --enable-libjack --enable-libpulse --enable-librabbitmq --enable-librist --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libx264 --enable-libzmq --enable-libzvbi --enable-lv2 --enable-sdl2 --enable-libplacebo --enable-librav1e --enable-pocketsphinx --enable-librsvg --enable-libjxl --enable-shared&#xA;  libavutil      58. 29.100 / 58. 29.100&#xA;  libavcodec     60. 31.102 / 60. 31.102&#xA;  libavformat    60. 16.100 / 60. 16.100&#xA;  libavdevice    60.  3.100 / 60.  3.100&#xA;  libavfilter     9. 12.100 /  9. 12.100&#xA;  libswscale      7.  5.100 /  7.  5.100&#xA;  libswresample   4. 12.100 /  4. 12.100&#xA;  libpostproc    57.  3.100 / 57.  3.100&#xA;[hls @ 0x60992c0c8880] Skip (&#x27;#EXT-X-VERSION:3&#x27;)&#xA;[hls @ 0x60992c0c8880] Skip (&#x27;#EXT-X-DISCONTINUITY&#x27;)&#xA;    Last message repeated 9 times&#xA;[hls @ 0x60992c0c8880] Opening &#x27;https://cache.fastcdn.com.my/error/chunks/407.ts&#x27; for reading&#xA;    Last message repeated 1 times&#xA;Input #0, hls, from &#x27;https://cache.fastcdn.com.my/edge/53-1.stream/index_0.m3u8?misc=87uq4HjbDEDE3TzIY95ja1ZMxA-Cm1PbOXAk16riVlU&amp;uid=139322&amp;ts=1747931206&amp;e=43200&amp;lat=1747931206&amp;sil=5&amp;sk=no&amp;uip=MTEwLjIyNC4yNDIuOTg&amp;head=aHR0cF94X2ZvcndhcmRlZF9mb3I&amp;chid=53-1&#x27;:&#xA;  Duration: 00:01:00.00, start: 1.466667, bitrate: 0 kb/s&#xA;  Program 0&#xA;    Metadata:&#xA;      variant_bitrate : 0&#xA;  Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, unknown/bt709/iec61966-2-1), 854x480 [SAR 1:1 DAR 427:240], 30 fps, 30 tbr, 90k tbn&#xA;    Metadata:&#xA;      variant_bitrate : 0&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))&#xA;Press [q] to stop, [?] for help&#xA;[libx264 @ 0x60992cd68b00] using SAR=1/1&#xA;[libx264 @ 0x60992cd68b00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512&#xA;[libx264 @ 0x60992cd68b00] profile High, level 3.1, 4:2:0, 8-bit&#xA;[libx264 @ 0x60992cd68b00] 264 - core 164 r3108 31e19f9 - H.264/MPEG-4 AVC codec - Copyleft 2003-2023 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=abr mbtree=1 bitrate=1000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00&#xA;Output #0, flv, to &#x27;rtmp://69.62.85.241/live/streamkey&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf60.16.100&#xA;  Stream #0:0: Video: h264 ([7][0][0][0] / 0x0007), yuv420p(tv, unknown/bt709/iec61966-2-1, progressive), 854x480 [SAR 1:1 DAR 427:240], q=2-31, 1000 kb/s, 30 fps, 1k tbn&#xA;    Metadata:&#xA;      variant_bitrate : 0&#xA;      encoder         : Lavc60.31.102 libx264&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/1000000 buffer size: 0 vbv_delay: N/A&#xA;[https @ 0x60992c48fc40] Opening &#x27;https://cache.fastcdn.com.my/error/chunks/407.ts&#x27; for reading&#xA;[mpegts @ 0x60992c161940] Packet corrupt (stream = 0, dts = 663000).&#xA;[hls @ 0x60992c0c8880] Packet corrupt (stream = 0, dts = 660000).&#xA;[in#0/hls @ 0x60992c0c8780] corrupt input packet in stream 0&#xA;[vist#0:0/h264 @ 0x60992c47ae80] timestamp discontinuity (stream id=0): -6000000, new offset= 6000000&#xA;[https @ 0x60992c4a9d40] Opening &#x27;https://cache.fastcdn.com.my/error/chunks/407.ts&#x27; for reading&#xA;[mpegts @ 0x60992c161940] Packet corrupt (stream = 0, dts = 663000).&#xA;[hls @ 0x60992c0c8880] Packet corrupt (stream = 0, dts = 660000).&#xA;[in#0/hls @ 0x60992c0c8780] corrupt input packet in stream 0&#xA;[vist#0:0/h264 @ 0x60992c47ae80] timestamp discontinuity (stream id=0): -6000000, new offset= 12000000&#xA;[https @ 0x60992c48fc40] Opening &#x27;https://cache.fastcdn.com.my/error/chunks/407.ts&#x27; for reading&#xA;[mpegts @ 0x60992c161940] Packet corrupt (stream = 0, dts = 663000).&#xA;[hls @ 0x60992c0c8880] Packet corrupt (stream = 0, dts = 660000).&#xA;[in#0/hls @ 0x60992c0c8780] corrupt input packet in stream 0&#xA;[vist#0:0/h264 @ 0x60992c47ae80] timestamp discontinuity (stream id=0): -6000000, new offset= 18000000&#xA;[https @ 0x60992c4a9d40] Opening &#x27;https://cache.fastcdn.com.my/error/chunks/407.ts&#x27; for reading&#xA;[mpegts @ 0x60992c161940] Packet corrupt (stream = 0, dts = 663000).&#xA;[hls @ 0x60992c0c8880] Packet corrupt (stream = 0, dts = 660000).&#xA;[in#0/hls @ 0x60992c0c8780] corrupt input packet in stream 0&#xA;[vist#0:0/h264 @ 0x60992c47ae80] timestamp discontinuity (stream id=0): -6000000, new offset= 24000000&#xA;[https @ 0x60992c48fc40] Opening &#x27;https://cache.fastcdn.com.my/error/chunks/407.ts&#x27; for reading&#xA;[mpegts @ 0x60992c161940] Packet corrupt (stream = 0, dts = 663000).&#xA;[hls @ 0x60992c0c8880] Packet corrupt (stream = 0, dts = 660000).&#xA;[in#0/hls @ 0x60992c0c8780] corrupt input packet in stream 0&#xA;[vist#0:0/h264 @ 0x60992c47ae80] timestamp discontinuity (stream id=0): -6000000, new offset= 30000000&#xA;[https @ 0x60992c4a9d40] Opening &#x27;https://cache.fastcdn.com.my/error/chunks/407.ts&#x27; for reading&#xA;[mpegts @ 0x60992c161940] Packet corrupt (stream = 0, dts = 663000).&#xA;[hls @ 0x60992c0c8880] Packet corrupt (stream = 0, dts = 660000).&#xA;[in#0/hls @ 0x60992c0c8780] corrupt input packet in stream 0&#xA;[vist#0:0/h264 @ 0x60992c47ae80] timestamp discontinuity (stream id=0): -6000000, new offset= 36000000&#xA;[https @ 0x60992c48fc40] Opening &#x27;https://cache.fastcdn.com.my/error/chunks/407.ts&#x27; for reading&#xA;[mpegts @ 0x60992c161940] Packet corrupt (stream = 0, dts = 663000).&#xA;[hls @ 0x60992c0c8880] Packet corrupt (stream = 0, dts = 660000).&#xA;[in#0/hls @ 0x60992c0c8780] corrupt input packet in stream 0&#xA;[vist#0:0/h264 @ 0x60992c47ae80] timestamp discontinuity (stream id=0): -6000000, new offset= 42000000&#xA;[https @ 0x60992c4a9d40] Opening &#x27;https://cache.fastcdn.com.my/error/chunks/407.ts&#x27; for reading&#xA;[mpegts @ 0x60992c161940] Packet corrupt (stream = 0, dts = 663000).&#xA;[hls @ 0x60992c0c8880] Packet corrupt (stream = 0, dts = 660000).&#xA;[in#0/hls @ 0x60992c0c8780] corrupt input packet in stream 0&#xA;[vist#0:0/h264 @ 0x60992c47ae80] timestamp discontinuity (stream id=0): -6000000, new offset= 48000000&#xA;[mpegts @ 0x60992c161940] Packet corrupt (stream = 0, dts = 663000).&#xA;[hls @ 0x60992c0c8880] Packet corrupt (stream = 0, dts = 660000).&#xA;[in#0/hls @ 0x60992c0c8780] corrupt input packet in stream 0&#xA;[vist#0:0/h264 @ 0x60992c47ae80] timestamp discontinuity (stream id=0): -6000000, new offset= 54000000&#xA;[flv @ 0x60992c88a340] Failed to update header with correct duration.44.8kbits/s speed=22.6x&#xA;[flv @ 0x60992c88a340] Failed to update header with correct filesize.&#xA;[out#0/flv @ 0x60992cc36180] video:304kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 11.671993%&#xA;frame= 1800 fps=685 q=-1.0 Lsize=     339kB time=00:00:59.90 bitrate=  46.4kbits/s speed=22.8x&#xA;[libx264 @ 0x60992cd68b00] frame I:8     Avg QP: 2.07  size: 20330&#xA;[libx264 @ 0x60992cd68b00] frame P:454   Avg QP: 0.23  size:   218&#xA;[libx264 @ 0x60992cd68b00] frame B:1338  Avg QP: 0.21  size:    37&#xA;[libx264 @ 0x60992cd68b00] consecutive B-frames:  0.9%  0.0%  0.0% 99.1%&#xA;[libx264 @ 0x60992cd68b00] mb I  I16..4: 86.7%  0.3% 13.0%&#xA;[libx264 @ 0x60992cd68b00] mb P  I16..4:  0.1%  0.0%  0.0%  P16..4:  1.4%  0.0%  0.0%  0.0%  0.0%    skip:98.6%&#xA;[libx264 @ 0x60992cd68b00] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.1%  0.0%  0.0%  direct: 0.1%  skip:99.8%  L0:59.9% L1:40.1% BI: 0.0%&#xA;[libx264 @ 0x60992cd68b00] final ratefactor: -25.04&#xA;[libx264 @ 0x60992cd68b00] 8x8 transform intra:0.3% inter:1.8%&#xA;[libx264 @ 0x60992cd68b00] coded y,uvDC,uvAC intra: 13.5% 0.0% 0.0% inter: 0.2% 0.0% 0.0%&#xA;[libx264 @ 0x60992cd68b00] i16 v,h,dc,p: 90%  6%  4%  0%&#xA;[libx264 @ 0x60992cd68b00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 59% 12% 28%  0%  1%  1%  0%  0%  0%&#xA;[libx264 @ 0x60992cd68b00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 41% 18% 19%  4%  4%  4%  3%  4%  3%&#xA;[libx264 @ 0x60992cd68b00] i8c dc,h,v,p: 100%  0%  0%  0%&#xA;[libx264 @ 0x60992cd68b00] Weighted P-Frames: Y:0.0% UV:0.0%&#xA;[libx264 @ 0x60992cd68b00] kb/s:41.38&#xA;

    &#xA;

    However, I get repeated errors like :

    &#xA;

    Packet corrupt (stream = 0, dts = xxxx)

    &#xA;

    timestamp discontinuity (stream id=0)

    &#xA;

    corrupt input packet in stream 0

    &#xA;

    The stream partially works but seems unstable. How can I fix this error ?

    &#xA;

    my nginx.conf

    &#xA;

    rtmp {&#xA;    server {&#xA;        listen 1935;&#xA;        chunk_size 4096;&#xA;&#xA;        application live {&#xA;            live on;&#xA;            record off;&#xA;&#xA;            hls on;&#xA;            hls_path /var/www/hls;&#xA;            hls_fragment 5;                  # each TS segment = 5s&#xA;            hls_playlist_length 120;         # keep last 2 minutes of stream&#xA;            hls_cleanup off;                 # do not delete old segments&#xA;        }&#xA;    }&#xA;}&#xA;&#xA;http {&#xA;    include       mime.types;&#xA;    default_type  application/octet-stream;&#xA;&#xA;    sendfile on;&#xA;    keepalive_timeout 65;&#xA;&#xA;    server {&#xA;        listen 81;&#xA;&#xA;        location /hls {&#xA;            root /var/www;&#xA;            types {&#xA;                application/vnd.apple.mpegurl m3u8;&#xA;                video/mp2t ts;&#xA;            }&#xA;&#xA;            add_header Cache-Control no-cache;&#xA;            add_header Access-Control-Allow-Origin *;&#xA;            add_header Access-Control-Allow-Methods &#x27;GET, POST, OPTIONS&#x27;;&#xA;            add_header Access-Control-Allow-Headers &#x27;Range&#x27;;&#xA;            add_header Access-Control-Expose-Headers &#x27;Content-Length, Content-Range&#x27;;&#xA;        }&#xA;    }&#xA;}&#xA;

    &#xA;

    The same url is working fine when used in browser, but extracting the stream and putting it in RTMP server and accessing my RTMP server at rtmp ://69.62.85.241/live/streamkey not working

    &#xA;