Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (71)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (8018)

  • FFmpeg saving rtmp live stream cuts off after 3 minutes

    29 octobre 2022, par user1636922

    I was playing with ffmpeg and was able to save a live stream to a file. The command to do so is :

    



    ffmpeg -re -i "rtmp://<ip addr="addr">/livestream live=1" -f h264 test.flv&#xA;</ip>

    &#xA;&#xA;

    However, I have tested this twice, and both times ffmpeg stops after grabbing 3:28 worth of live video.

    &#xA;&#xA;

    The entire output is here :

    &#xA;&#xA;

    bash-4.2$ ffmpeg -re -i "rtmp://<ip addr="addr">/livestream live=1" -vcodec libx264 -f h264 test.flv&#xA;WARNING: gnome-keyring:: couldn&#x27;t connect to: /home/me/.cache/keyring-bpajcJ/pkcs11: No such file or directory&#xA;ffmpeg version 0.10.4 Copyright (c) 2000-2012 the FFmpeg developers&#xA;  built on Jul 20 2012 22:01:52 with gcc 4.7.0 20120507 (Red Hat 4.7.0-5)&#xA;  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib --mandir=/usr/share/man --arch=i686 --extra-cflags=&#x27;-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables&#x27; --enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass --enable-libcdio --enable-libcelt --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib --cpu=i686 --enable-runtime-cpudetect&#xA;  libavutil      51. 35.100 / 51. 35.100&#xA;  libavcodec     53. 61.100 / 53. 61.100&#xA;  libavformat    53. 32.100 / 53. 32.100&#xA;  libavdevice    53.  4.100 / 53.  4.100&#xA;  libavfilter     2. 61.100 /  2. 61.100&#xA;  libswscale      2.  1.100 /  2.  1.100&#xA;  libswresample   0.  6.100 /  0.  6.100&#xA;  libpostproc    52.  0.100 / 52.  0.100&#xA;WARNING: gnome-keyring:: couldn&#x27;t connect to: /home/me/.cache/keyring-bpajcJ/pkcs11: No such file or directory&#xA;Metadata:&#xA;  videocodecid          avc1&#xA;  width                 320.00&#xA;  height                240.00&#xA;  frameWidth            320.00&#xA;  frameHeight           240.00&#xA;  displayWidth          320.00&#xA;  displayHeight         240.00&#xA;  framerate             29.97&#xA;trackinfo:&#xA;  timescale             90000.00&#xA;  language              eng&#xA;sampledescription:&#xA;  sampletype            H264&#xA;  type                  video&#xA;  profile-level-id      42e00c&#xA;  sprop-parameter-sets  Z0LgDNoFB&#x2B;wEQAAC7sAAr8gh,aM4zyA==&#xA;  description           {H264CodecConfigInfo: profile: "Baseline", level: 1.2, frameSize: 320x240, displaySize: 320x240, PAR: 1:1, frameRate: 29.97}&#xA;rtpsessioninfo:&#xA;  name                  H264 Stream 1&#xA;  origin                - 1486490083 118668671 IN IP4 10.93.183.3&#xA;  timing                0 0&#xA;  protocolversion       0&#xA;attributes:&#xA;  range                 npt=now-&#xA;[flv @ 0x9578ee0] Estimating duration from bitrate, this may be inaccurate&#xA;Input #0, flv, from &#x27;rtmp://<ip addr="addr">/livestream live=1&#x27;:&#xA;  Duration: N/A, start: 0.000000, bitrate: N/A&#xA;    Stream #0:0: Video: h264 (Constrained Baseline), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 14.99 tbr, 1k tbn, 59.94 tbc&#xA;[buffer @ 0x99ee900] w:320 h:240 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:&#xA;[libx264 @ 0x9584540] using SAR=1/1&#xA;[libx264 @ 0x9584540] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2&#xA;[libx264 @ 0x9584540] profile High, level 1.2&#xA;Output #0, h264, to &#x27;test.flv&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf53.32.100&#xA;    Stream #0:0: Video: h264, yuv420p, 320x240 [SAR 1:1 DAR 4:3], q=-1--1, 90k tbn, 14.99 tbc&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (h264 -> libx264)&#xA;Press [q] to stop, [?] for help&#xA;RTMP_ReadPacket, failed to read RTMP packet body. len: 16582bitrate= 212.1kbits/s    &#xA;frame= 3111 fps= 15 q=-2.0 Lsize=    5385kB time=00:03:27.47 bitrate= 212.6kbits/s    &#xA;video:5385kB audio:0kB global headers:0kB muxing overhead 0.000000%&#xA;[libx264 @ 0x9584540] frame I:13    Avg QP:18.70  size: 31866&#xA;[libx264 @ 0x9584540] frame P:1908  Avg QP:22.29  size:  2392&#xA;[libx264 @ 0x9584540] frame B:1190  Avg QP:29.24  size:   451&#xA;[libx264 @ 0x9584540] consecutive B-frames: 39.5% 24.0% 13.0% 23.4%&#xA;[libx264 @ 0x9584540] mb I  I16..4:  0.2%  1.2% 98.6%&#xA;[libx264 @ 0x9584540] mb P  I16..4:  0.0%  0.0%  0.7%  P16..4: 22.0%  3.5%  2.6%  0.0%  0.0%    skip:71.2%&#xA;[libx264 @ 0x9584540] mb B  I16..4:  0.0%  0.0%  0.2%  B16..8: 15.6%  2.8%  1.1%  direct: 1.3%  skip:78.9%  L0:47.0% L1:42.2% BI:10.8%&#xA;[libx264 @ 0x9584540] 8x8 transform intra:2.2% inter:8.5%&#xA;[libx264 @ 0x9584540] coded y,uvDC,uvAC intra: 98.0% 94.9% 73.9% inter: 14.5% 16.0% 11.3%&#xA;[libx264 @ 0x9584540] i16 v,h,dc,p:  0% 50% 17% 33%&#xA;[libx264 @ 0x9584540] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  7% 21% 11%  3% 13%  6% 21%  4% 14%&#xA;[libx264 @ 0x9584540] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 21% 14%  5% 11%  7% 14%  5% 12%&#xA;[libx264 @ 0x9584540] i8c dc,h,v,p: 65% 15% 10% 10%&#xA;[libx264 @ 0x9584540] Weighted P-Frames: Y:0.5% UV:0.1%&#xA;[libx264 @ 0x9584540] ref P L0: 80.8% 10.4%  7.6%  1.2%  0.0%&#xA;[libx264 @ 0x9584540] ref B L0: 94.9%  4.8%  0.2%&#xA;[libx264 @ 0x9584540] ref B L1: 96.4%  3.6%&#xA;[libx264 @ 0x9584540] kb/s:212.48&#xA;</ip></ip>

    &#xA;&#xA;

    Although I don't see any errors. It just looks like ffmpeg thought the stream had ended ? But that's not possible since it's a live stream.

    &#xA;

  • FFMPEG - Overlay stop updating after few minutes

    27 décembre 2018, par Vincent Carretero

    First im sorry for my english :-(

    I do streaming from RTSP to Facebook live (RTMP).
    I overlay PNG file, on the stream left corner, with score information and time (like tv soccer match).

    After few minutes, the image overlay dont refresh, and i dont know why...
    Image is updated by vbscript, and its correctly done.

    This is my code :

    cmd.exe /K ffmpeg.exe ^
    -f lavfi -y ^
    -i anullsrc -rtsp_transport tcp ^
    -i "rtsp://xxx:xxx@xxx:8080/videoMain" ^
    -r 1 -loop 1 -f image2pipe -i 762141_marquage.png ^
    -filter_complex "[2:v]setpts=PTS-STARTPTS[a];[1:v][a]overlay=10:10" ^
    -tune zerolatency -vcodec libx264 -c:v libx264 -crf 30 -preset ultrafast -c:a aac -strict experimental ^
    -f flv "rtmp://xxx"

    Some one can help me ? please :-)

  • ffmpeg posting to nginx hangs after 90 minutes

    22 octobre 2018, par Harnek Gulati

    I’m using a very simple program to push an ffmpeg stream from my raspberry pi camera to a nginx server. However, it fails after 90 minutes, with almost every single Raspberry Pi I use (I have this code on 12 Raspberry Pis).
    Here is my ffmpeg command :

    raspivid -o - -t 0 -w 640 -h 480 -fps 25 | ffmpeg -re -i - -vcodec copy -hls_time 4 -f hls -hls_list_size 5 -hls_wrap 5 -threads 0  -timeout 5000 -max_reload 20000 -method PUT http://{}:{}/live/{}

    And here is my configuration for nginx.conf :

    #user nobody;
    load_module /usr/lib/nginx/modules/ndk_http_module.so;
    load_module /usr/lib/nginx/modules/ngx_http_lua_module.so;

    worker_processes auto;
    env CONTROL_SERVER_IP;


    #error_log /var/log/nginx/error.log;
    error_log /dev/stdout info;
    events {
       worker_connections 1024;
    }

    http {
       include     mime.types;
       default_type    application/octet-stream;
       access_log /dev/stdout;
       sendfile on;
       keepalive_requests 100000;
       keepalive_timeout 30;

     client_max_body_size 10M;
     server {
       listen 80;
       server_name localhost;

       location /live {
         root /var/static;
               client_body_temp_path   /var/static/client_temp;

               dav_methods PUT;
               create_full_put_path on;
               dav_access user:rw  group:r     all:r;

               types {
                   application/vnd.apple.mpegurl m3u8;
               }

               # Disable Cache
               add_header Cache-Control no-cache;
               include cors.conf;
     }
     }
    }

    daemon off;

    If anyone can help me, I would deeply appreciate it. I’ve been pulling my hair out trying to figure out this bug. On the raspberry pi, it hangs on this :

    [hls @ 0x25a8c90] Opening 'http://192.168.8.1:80/live/c35d8935-0a31-4d22-b71a-ad3f4f1d47631.ts' for writing
    frame=105609 fps= 25 q=-1.0 q=1.6 size=N/A time=01:11:40.00 bitrate=N/A dup=0 drop=105518 speed=1.02xframe=105623 fps= 25 q=-1.0 q=1.6 size=N/A time=01:11:40.00 bitrate=N/A dup=0 drop=105532 speed=1.02xframe=105636 fps= 25 q=-1.0 q=1.6 size=N/A time=01:11:40.00 bitrate=N/A dup=0 drop=105545 speed=1.02xframe=105648 fps= 25 q=-1.0 q=1.6 size=N/A time=01:11:40.00 bitrate=N/A dup=0 drop=105557 speed=1.02xframe=105662 fps= 25 q=-1.0 q=1.6 size=N/A time=01:11:40.00 bitrate=N/A dup=0 drop=105571 speed=1.02xframe=105674 fps= 25 q=-1.0 q=1.6 size=N/A time=01:11:40.00 bitrate=N/A dup=0 drop=105583 speed=1.02xframe=105688 fps= 25 q=-1.0 q=1.6 size=N/A time=01:11:40.00 bitrate=N/A dup=0 drop=105597 speed=1.02xframe=105700 fps= 25 q=-1.0 q=1.6 size=N/A time=01:11:40.00 bitrate=N/A dup=0 drop=105609 speed=1.02xframe=105714 fps= 25 q=-1.0 q=1.6 size=N/A time=01:11:40.00 bitrate=N/A dup=0 drop=105623 speed=1.02x[hls muxer @ 0x25a9200] Duplicated segment filename detected: c35d8935-0a31-4d22-b71a-ad3f4f1d47631.ts
    [hls @ 0x25a8c90] Opening 'http://192.168.8.1:80/live/c35d8935-0a31-4d22-b71a-ad3f4f1d47632.ts' for writing

    And on the nginx logs, I get :

    192.168.10.242 - - [21/Oct/2018:22:34:01 +0000] "PUT /live/c35d8935-0a31-4d22-b71a-ad3f4f1d4763.m3u8 HTTP/1.1" 204 0 "-" "Lavf/57.83.100"
    192.168.10.242 - - [21/Oct/2018:22:35:04 +0000] "PUT /live/c35d8935-0a31-4d22-b71a-ad3f4f1d47633.ts HTTP/1.1" 408 0 "-" "Lavf/57.83.100"

    I need to set up a way to either a) keep consistent connections longer than 90 minutes or b) detect when the 408 error happens and stop it from hanging.

    FFMPEG version : 3.4.1