Recherche avancée

Médias (2)

Mot : - Tags -/kml

Autres articles (8)

  • Qualité du média après traitement

    21 juin 2013, par

    Le bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
    Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...)

  • 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.

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (4927)

  • The SSIM values calculated using FFMPEG are not what I expected

    18 mai 2020, par fd-alexer

    I'm trying to encode an m2ts (MPEG-2 Transport Stream) file to mp4 (H.264) and get the ssim value.
    
I did get some SSIM values, but the results were contrary to my expectations.

    



    Are there wrong command options for ffmpeg ?

    



    Encoding and SSIM calculation commands

    



    # encode&#xA;$ ffmpeg -hide_banner -fflags &#x2B;discardcorrupt -i input.m2ts \&#xA;  -c:v libx264 -crf <crf> -preset:v medium \&#xA;  -c:a copy -bsf:a aac_adtstoasc \&#xA;  output_ff_crf-<crf>.mp4&#xA;&#xA;# calculate ssim&#xA;$ ffmpeg -hide_banner -i <a> -i <b> \&#xA;  -lavfi  "[0:v]settb=AVTB,setpts=PTS-STARTPTS[main];[1:v]settb=AVTB,setpts=PTS-STARTPTS[ref];[main][ref]ssim" \&#xA;  -f null -&#xA;</b></a></crf></crf>

    &#xA;&#xA;

    The results of the SSIM

    &#xA;&#xA;

    (a) A=input.m2ts,          B=input.m2ts,           ssim=0.973266&#xA;(b) A=input.m2ts,          B=output_ff_crf-0.mp4,  ssim=0.813347&#xA;(c) A=input.m2ts,          B=output_ff_crf-30.mp4, ssim=0.819897&#xA;(d) A=output_ff_crf-0.mp4, B=output_ff_crf-0.mp4,  ssim=1.000000&#xA;(e) A=output_ff_crf-0.mp4, B=output_ff_crf-30.mp4, ssim=0.972911&#xA;

    &#xA;&#xA;

      &#xA;
    • (d)(e) : These are what I expected.
    • &#xA;

    • (a) : The files are the same, but ssim≠1.
    • &#xA;

    • (b)(c) : SSIMs with CRF=0 and CRF=30 have almost the same value, although the image quality is different.
    • &#xA;

    &#xA;&#xA;

    In the case of HandBrakeCLI

    &#xA;&#xA;

    To determine if there was a problem with input.m2ts, I ran HandBrakeCLI with almost the same parameters as ffmpeg.

    &#xA;&#xA;

    # encode&#xA;HandBrakeCLI --verbose --format av_mp4 --encoder x264 --quality <crf> --x264-preset medium \&#xA;  --aencoder copy \&#xA;  --input input.m2ts --output output_hb_crf-<crf>.mp4&#xA;&#xA;# calculate ssim (same as ffmpeg)&#xA;$ ffmpeg -hide_banner -i <a> -i <b> \&#xA;  -lavfi  "[0:v]settb=AVTB,setpts=PTS-STARTPTS[main];[1:v]settb=AVTB,setpts=PTS-STARTPTS[ref];[main][ref]ssim" \&#xA;  -f null -&#xA;</b></a></crf></crf>

    &#xA;&#xA;

    (b&#x27;) A=input.m2ts,          B=output_hb_crf-0.mp4,  ssim=0.999999&#xA;(c&#x27;) A=input.m2ts,          B=output_hb_crf-30.mp4, ssim=0.972886&#xA;(d&#x27;) A=output_hb_crf-0.mp4, B=output_hb_crf-0.mp4,  ssim=1.000000&#xA;(e&#x27;) A=output_hb_crf-0.mp4, B=output_hb_crf-30.mp4, ssim=0.972886&#xA;

    &#xA;&#xA;

    It's all as I expected. (although A is not ssim=1.0) &#xA;Therefore, I don't see a problem with input.m2ts.

    &#xA;&#xA;

    Informations about video files and tools

    &#xA;&#xA;

    Results of the ffprobe

    &#xA;&#xA;

    input.m2ts

    &#xA;&#xA;

    [mpeg2video @ 0x5655577c1680] Invalid frame dimensions 0x0.&#xA;    Last message repeated 1 times&#xA;[mpegts @ 0x5655577bd080] start time for stream 2 is not set in estimate_timings_from_pts&#xA;[mpegts @ 0x5655577bd080] PES packet size mismatch&#xA;Input #0, mpegts, from &#x27;input.m2ts&#x27;:&#xA;  Duration: 00:30:02.68, start: 39593.392600, bitrate: 19019 kb/s&#xA;  Program 211&#xA;    Stream #0:0[0x140]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc&#xA;    Stream #0:1[0x141]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 255 kb/s&#xA;    Stream #0:2[0x138]: Data: bin_data ([6][0][0][0] / 0x0006)&#xA;Unsupported codec with id 100359 for input stream 2&#xA;

    &#xA;&#xA;

    output_ff_crf-0.mp4

    &#xA;&#xA;

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;output_ff_crf-0.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf57.83.100&#xA;  Duration: 00:30:02.67, start: 0.000000, bitrate: 109301 kb/s&#xA;    Stream #0:0(und): Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 109040 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)&#xA;    Metadata:&#xA;      handler_name    : VideoHandler&#xA;    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 252 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : SoundHandler&#xA;

    &#xA;&#xA;

    output_hb_crf-0.mp4

    &#xA;&#xA;

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;output_hb_crf-0.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    creation_time   : 2020-05-17T06:22:06.000000Z&#xA;    encoder         : HandBrake 1.1.0 2018042400&#xA;  Duration: 00:30:02.22, start: 0.000000, bitrate: 109661 kb/s&#xA;    Stream #0:0(und): Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 109405 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 180k tbc (default)&#xA;    Metadata:&#xA;      creation_time   : 2020-05-17T06:22:06.000000Z&#xA;      handler_name    : VideoHandler&#xA;    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 252 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2020-05-17T06:22:06.000000Z&#xA;      handler_name    : Stereo&#xA;

    &#xA;&#xA;

    Tools

    &#xA;&#xA;

    version

    &#xA;&#xA;

      &#xA;
    • ffmpeg : 3.4.6-0ubuntu0.18.04.1
    • &#xA;

    • HandBrakeCLI : 1.1.0
    • &#xA;

    &#xA;&#xA;

    ldd

    &#xA;&#xA;

    $ ldd /usr/bin/ffmpeg&#xA;...&#xA;libx264.so.152 => /usr/lib/x86_64-linux-gnu/libx264.so.152 (0x00007efbf1f33000)&#xA;...&#xA;&#xA;$ ldd /usr/bin/HandBrakeCLI&#xA;...&#xA;libx264.so.152 => /usr/lib/x86_64-linux-gnu/libx264.so.152 (0x00007efbfb38f000)&#xA;...&#xA;

    &#xA;&#xA;

    ffmpeg and HandBrakeCLI are using the same libx264.

    &#xA;

  • FFmpeg Error "No such filter : 'libvmaf' Mac

    4 janvier 2021, par ringola27

    I want to use FFmpeg to calculate PSNR for video sequences.&#xA;At first I installed libvmaf with the instruction from here and here. I installed ffmpeg like here. I tried for a test :

    &#xA;&#xA;

    ffmpeg -i output4.mpg -i output1.mpg -lavfi libvmaf -f null -&#xA;

    &#xA;&#xA;

    But I get an Error (below). I think I could solve it with ./configure --enable-libvmaf --enable-version3 or ./configure --enable-libvmaf but unfortunately I can not run it (I don't know how).

    &#xA;&#xA;

    I hope anyone can help me to solve this problem.

    &#xA;&#xA;

    ffmpeg version 4.2.3 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with Apple clang version 11.0.3 (clang-1103.0.32.59)&#xA;  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.2.3 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags=-fno-stack-check --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack&#xA;  libavutil      56. 31.100 / 56. 31.100&#xA;  libavcodec     58. 54.100 / 58. 54.100&#xA;  libavformat    58. 29.100 / 58. 29.100&#xA;  libavdevice    58.  8.100 / 58.  8.100&#xA;  libavfilter     7. 57.100 /  7. 57.100&#xA;  libavresample   4.  0.  0 /  4.  0.  0&#xA;  libswscale      5.  5.100 /  5.  5.100&#xA;  libswresample   3.  5.100 /  3.  5.100&#xA;  libpostproc    55.  5.100 / 55.  5.100&#xA;Input #0, mpeg, from &#x27;output4.mpg&#x27;:&#xA;  Duration: 00:00:09.88, start: 0.533367, bitrate: 363 kb/s&#xA;    Stream #0:0[0x1e0]: Video: mpeg1video, yuv420p(tv), 352x288 [SAR 178:163 DAR 1958:1467], 104857 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 29.97 tbc&#xA;Input #1, mpeg, from &#x27;output1.mpg&#x27;:&#xA;  Duration: 00:00:10.01, start: 0.533367, bitrate: 345 kb/s&#xA;    Stream #1:0[0x1e0]: Video: mpeg1video, yuv420p(tv), 352x288 [SAR 178:163 DAR 1958:1467], 104857 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 29.97 tbc&#xA;[AVFilterGraph @ 0x7ffedbe23180] No such filter: &#x27;libvmaf&#x27;&#xA;Error initializing complex filters.&#xA;Invalid argument&#xA;

    &#xA;

  • Evolution #4493 (Nouveau) : Ajouter des robots à l’écran de sécurité

    17 mai 2020

    Bonjour,

    J’ai quelques sites qui ont des nombres de visites bizarres (trop grand, d’un facteur 10 à 30 certains jours).

    J’ai fait un patch : https://git.spip.net/RealET/spip/commit/ce2ce832b697ab0754a78e0fc8b298ae1e9c992b
    Mais je ne sais pas comment en faire un PR.

    Pour info, voici un extrait d’awstats pour le serveur concerné :
    Pour info :
    MJ12bot 2 241 164+29470 32.60 Go 17 Mai 2020 - 11:50
    AhrefsBot 1 388 315+9242 28.07 Go 17 Mai 2020 - 11:50
    SemrushBot 1 251 075+74309 23.91 Go 17 Mai 2020 - 11:50
    bingbot 619 488+28872 22.38 Go 17 Mai 2020 - 11:50
    DotBot 394 445+7038 22.52 Go 17 Mai 2020 - 11:50
    Googlebot 297 801+35895 11.64 Go 17 Mai 2020 - 11:50
    crawl 243 784+325 4.66 Go 17 Mai 2020 - 11:39
    MegaIndex.ru 172 567+51 5.41 Go 17 Mai 2020 - 04:50
    BLEXBot 161 178+4405 4.24 Go 17 Mai 2020 - 06:42
    Applebot 136 660+2443 3.20 Go 17 Mai 2020 - 11:50
    robot 129 533+3017 7.80 Go 17 Mai 2020 - 11:50
    empty user agent string 117 782+778 6.55 Go 17 Mai 2020 - 11:49
    Firefox version 10 and lower - various robots 106 252+366 1.87 Go 17 Mai 2020 - 11:50
    qwantify 83 743+3013 3.61 Go 17 Mai 2020 - 11:50
    Unknown robot identified by bot* 53 246+1846 2.25 Go 17 Mai 2020 - 11:37
    spip 46 253 554.75 Mo 17 Mai 2020 - 11:50
    link 44 510+567 761.38 Mo 17 Mai 2020 - 11:50
    Googlebot-Image 36 704 1.24 Go 17 Mai 2020 - 11:48
    facebookexternalhit 35 176+1 1.31 Go 17 Mai 2020 - 11:49
    MSIE 6 - ( Rogue Robot ) 33 090 1.10 Go 17 Mai 2020 - 11:47
    YandexBot 21 272+9245 822.57 Mo 17 Mai 2020 - 11:50
    Unknown robot (identified by hit on robots.txt) 0+27213 98.21 Mo 17 Mai 2020 - 11:48
    LinkpadBot 17 954 289.02 Mo 17 Mai 2020 - 06:46
    infobot 15 038+1887 198.28 Mo 17 Mai 2020 - 04:19
    MSIE 5 - ( Rogue Robot ) 16 110+1 980.04 Mo 17 Mai 2020 - 11:18
    Sogou web spider 14 514+453 239.14 Mo 17 Mai 2020 - 11:49
    ltx71 10 593+3663 378.89 Mo 17 Mai 2020 - 11:50
    BingPreview 11 920 1.87 Go 17 Mai 2020 - 11:40
    nbot 8 476+1023 230.66 Mo 17 Mai 2020 - 11:42
    Apache-HttpClient 7 897+43 99.64 Mo 17 Mai 2020 - 11:01
    Curl 7 752 151.93 Mo 17 Mai 2020 - 11:49
    CFNetwork 7 313 779.65 Mo 17 Mai 2020 - 11:25
    core 7 295+2 174.93 Mo 17 Mai 2020 - 11:35
    oBot 7 064+230 338.14 Mo 17 Mai 2020 - 08:06
    SeznamBot 3 677+3204 148.02 Mo 16 Mai 2020 - 22:36
    twitterbot 4 264+2518 100.64 Mo 17 Mai 2020 - 11:44
    panscient 6 298+397 97.66 Mo 17 Mai 2020 - 06:37
    A PHP script 6 395 13.36 Mo 17 Mai 2020 - 11:50
    archive.org_bot 4 917+385 157.65 Mo 17 Mai 2020 - 11:50
    vagabondo 5 022+12 197.93 Mo 17 Mai 2020 - 09:58
    Feedfetcher-Google 4 808 137.78 Mo 17 Mai 2020 - 11:41
    zend_http_client 4 535 20.98 Mo 17 Mai 2020 - 11:34
    ia_archiver 4 411+98 302.37 Mo 17 Mai 2020 - 03:58
    feed 4 401 127.40 Mo 17 Mai 2020 - 11:45
    dataprovider.com 4 003+167 169.38 Mo 17 Mai 2020 - 10:31
    universalfeedparser 4 156 82.26 Mo 17 Mai 2020 - 11:36
    Baidu ( catchall ) 3 956 260.02 Mo 17 Mai 2020 - 11:11
    coccoc 1 509+2374 33.71 Mo 17 Mai 2020 - 10:37
    python 3 607+87 54.82 Mo 17 Mai 2020 - 11:44
    Mail.RU Bot 1 969+1492 177.25 Mo 17 Mai 2020 - 11:13