Recherche avancée

Médias (1)

Mot : - Tags -/net art

Autres articles (33)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • 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

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (6480)

  • Why does ffmpeg stop recording at midnight ?

    22 septembre 2019, par peter

    I have a shellscript like this under Kubuntu 19.10,

    #!/bin/bash

    while true
    do
       FILE=/media/petermc/Security5/Camera2/Camera2_.mp4  
       FILE=${FILE%.*}`date +%Y-%m-%d_%H-%M-%S-%N`.${FILE#*.}
       echo $FILE

       ffmpeg -rtsp_transport tcp -t 00:15:00 -i rtsp://*user*:*password*@192.168.1.60:554/ch02/0 -c copy -map 0 $FILE
    done

    It records files like this,

    Camera2_2019-09-21_23-36-57-874602376.mp4
    Camera2_2019-09-21_23-51-57-876639147.mp4

    Basically recording 15 minutes at a time from the RTSP feed, then starting a new file.

    However it stops working at midnight, the last few lines from the log file are this,

    frame= 3987 fps= 13 q=-1.0 size=  117760kB time=00:05:06.51 bitrate=3147.3kbits/s speed=1.01x    
    frame= 3994 fps= 13 q=-1.0 size=  118016kB time=00:05:07.07 bitrate=3148.4kbits/s speed=1.01x    
    frame= 4001 fps= 13 q=-1.0 size=  118016kB time=00:05:07.59 bitrate=3143.1kbits/s speed=1.01x    
    frame= 4008 fps= 13 q=-1.0 size=  118272kB time=00:05:08.11 bitrate=3144.6kbits/s speed=1.01x

    So there doesn’t seem to be any error, it stops recording at 5 minutes into the last file with no error.

    Another piece of information is that I have 6 cameras, and 4 stopped recording, the ones connected to a DVR. I have a couple of IP cameras and they kept recording.

    What could be the cause of this ? Plus, what else could I do to work around this or diagnose this ?

    UPDATE :

    I believe the issue is because the DVR has a maintenance setup to restart once at week at midnight. If this is what happened, is there any way I can configure ffmpeg to restart if it has lost the stream ?

  • prevent ffmpeg from opening console window

    10 février 2020, par Yesub

    I have a node/express server which is used to give streams from IP camera to a website. Everything is working well. I run that webserver with PM2 on a windows server.

    The problem : for each stream I have a windows console opening with just nothing logged in. The console reopen when I try to close it.

    Is there a way to prevent those console to open ?

    Here is the related node.js code :

    const { NodeMediaServer } = require('node-media-server');

    private _initiate_streams(): void{
       DatabaseProvider.instance.camerasDao.getCamerasList().pipe(
         take(1)
       ).subscribe(
           (databaseReadOperationResult: DatabaseReadOperationResult) => {
               if (databaseReadOperationResult.successful === true){
                 const cameras = databaseReadOperationResult.result;
                 const tasks = [];
                 cameras.forEach( camera => {
                   tasks.push(
                     {
                       app : config.get('media_server.app_name'),
                       mode: 'static',
                       edge: camera.rtsp_url,
                       name: camera.stream_name,
                       rtsp_transport: 'tcp'
                     }
                   )
                 });

                 const configMediaServer = {
                   logType: 3, // 3 - Log everything (debug)
                   rtmp: {
                       port: 1935,
                       chunk_size: 60000,
                       gop_cache: true,
                       ping: 60,
                       ping_timeout: 30
                   },
                   http: {
                       port: config.get('media_server.port'),
                       allow_origin: '*'
                   },
                   auth: {
                       play: true,
                       api: true,
                       publish: true,
                       secret: config.get('salt'),
                       api_user: 'user',
                       api_pass: 'password',
                   },
                   relay: {
                       ffmpeg: 'C:\\FFmpeg\\bin\\ffmpeg.exe',
                       tasks: tasks
                   }
                 };

                 var nms = new NodeMediaServer(configMediaServer)
                 nms.run();
               } else {
                   // catch exception
               }
           }
       );
     }
  • Encode videos to send with WhatsApp

    28 avril 2017, par piegames

    I have a series of PNG images of a video I rendered and now I want so send it via WhatsApp. I used to encode my videos with the command from this answer, but apparently the videos can only be played from WhatsApp web ; on the phone I still get an error message. How do I convert them so that they can also be played on phone ?

    Command used :

    %PATH_TO_FFMPEG%\ffmpeg.exe -i paint\out%04d.png -c:v libx264 -c:a aac ./videos/out7.mp4

    Log :

    ffmpeg version 3.2.4 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 6.3.0 (GCC)
     configuration: --enable-gpl --enable-version3 --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-libzimg --enable-lzma --enable-zlib
     libavutil      55. 34.101 / 55. 34.101
     libavcodec     57. 64.101 / 57. 64.101
     libavformat    57. 56.101 / 57. 56.101
     libavdevice    57.  1.100 / 57.  1.100
     libavfilter     6. 65.100 /  6. 65.100
     libswscale      4.  2.100 /  4.  2.100
     libswresample   2.  3.100 /  2.  3.100
     libpostproc    54.  1.100 / 54.  1.100
    Input #0, image2, from 'paint2\out%04d.png':
     Duration: 00:00:45.00, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: png, rgba(pc), 384x240 [SAR 2835:2835 DAR 8:5], 25 fps, 25 tbr, 25 tbn, 25 tbc
    No pixel format specified, yuv444p for H.264 encoding chosen.
    Use -pix_fmt yuv420p for compatibility with outdated media players.
    [libx264 @ 000000000061a660] using SAR=1/1
    [libx264 @ 000000000061a660] using cpu capabilities: MMX2 SSE2Fast LZCNT
    [libx264 @ 000000000061a660] profile High 4:4:4 Predictive, level 1.3, 4:4:4 8-bit
    [libx264 @ 000000000061a660] 264 - core 148 r2762 90a61ec - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=4 threads=6 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=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to './videos/out6.mp4':
     Metadata:
       encoder         : Lavf57.56.101
       Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv444p, 384x240 [SAR 1:1 DAR 8:5], q=-1--1, 25 fps, 12800 tbn, 25 tbc
       Metadata:
         encoder         : Lavc57.64.101 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    Stream mapping:
     Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    frame=   79 fps=0.0 q=28.0 size=      19kB time=00:00:01.04 bitrate= 152.5kbits/frame=  171 fps=168 q=28.0 size=      21kB time=00:00:04.72 bitrate=  36.4kbits/frame=  255 fps=168 q=28.0 size=      24kB time=00:00:08.08 bitrate=  24.1kbits/frame=  309 fps=153 q=28.0 size=      48kB time=00:00:10.24 bitrate=  38.6kbits/frame=  383 fps=151 q=28.0 size=      51kB time=00:00:13.20 bitrate=  31.7kbits/frame=  452 fps=148 q=28.0 size=      54kB time=00:00:15.96 bitrate=  27.7kbits/frame=  534 fps=151 q=28.0 size=      59kB time=00:00:19.24 bitrate=  25.1kbits/frame=  622 fps=154 q=28.0 size=      85kB time=00:00:22.76 bitrate=  30.7kbits/frame=  706 fps=155 q=28.0 size=      90kB time=00:00:26.12 bitrate=  28.1kbits/frame=  795 fps=157 q=28.0 size=      94kB time=00:00:29.68 bitrate=  25.9kbits/frame=  893 fps=161 q=28.0 size=     121kB time=00:00:33.60 bitrate=  29.5kbits/frame=  985 fps=162 q=28.0 size=     126kB time=00:00:37.28 bitrate=  27.6kbits/frame= 1084 fps=165 q=28.0 size=     153kB time=00:00:41.24 bitrate=  30.3kbits/frame= 1125 fps=163 q=-1.0 Lsize=     168kB time=00:00:44.88 bitrate=  30.6kbits/s speed=6.52x
    video:154kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 8.859178%
    [libx264 @ 000000000061a660] frame I:5     Avg QP:14.73  size: 22873
    [libx264 @ 000000000061a660] frame P:384   Avg QP:14.24  size:    65
    [libx264 @ 000000000061a660] frame B:736   Avg QP:16.11  size:    24
    [libx264 @ 000000000061a660] consecutive B-frames:  7.3% 13.7%  8.3% 70.8%
    [libx264 @ 000000000061a660] mb I  I16..4: 35.6% 47.1% 17.3%
    [libx264 @ 000000000061a660] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  1.2%  0.1%  0.0%  0.0%  0.0%    skip:98.6%
    [libx264 @ 000000000061a660] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.4%  0.0%  0.0%  direct: 0.0%  skip:99.6%  L0:53.1% L1:46.0% BI: 0.9%
    [libx264 @ 000000000061a660] 8x8 transform intra:47.2% inter:15.9%
    [libx264 @ 000000000061a660] coded y,u,v intra: 80.7% 29.5% 0.9% inter: 0.1% 0.0% 0.0%
    [libx264 @ 000000000061a660] i16 v,h,dc,p: 24% 15% 55%  6%
    [libx264 @ 000000000061a660] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  5%  7% 62% 14%  6%  1%  2%  1%  2%
    [libx264 @ 000000000061a660] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10%  9% 29% 11%  8%  5% 14%  5%  9%
    [libx264 @ 000000000061a660] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 000000000061a660] ref P L0: 27.3%  0.7% 36.5% 35.6%
    [libx264 @ 000000000061a660] ref B L0: 59.9% 29.7% 10.4%
    [libx264 @ 000000000061a660] ref B L1: 96.7%  3.3%
    [libx264 @ 000000000061a660] kb/s:27.91

    Error on my Phone : "Dieses Video kann leider nicht wiedergegeben werden"