Recherche avancée

Médias (3)

Mot : - Tags -/collection

Autres articles (29)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Qu’est ce qu’un masque de formulaire

    13 juin 2013, par

    Un masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
    Chaque formulaire de publication d’objet peut donc être personnalisé.
    Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
    Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

Sur d’autres sites (6464)

  • On concatinating two videos in FFmpeg, the output video is far longer than expected

    15 août 2019, par Ngo Van Phuc

    I want to ask about FFmpeg.

    • Video A (time : 00:31:51 - 1280x720)
    • Video B (time : 00:00:22 - 1280x720)
    • output video : (time : 01:20:38)

    The code I use : ffmpeg -f concat -i file-list.txt -c copy outputfile.mp4

    I hear people say, need to encode videos, How to encode video ?

    please help me.

  • 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 - How to bypass uneven segmentation with basic encoding ? [closed]

    2 juin 2021, par valextt

    Example request :

    &#xA;

    ffmpeg -i &#x27;input.mp4&#x27; -c:v libx264 -force_key_frames "expr:gte(t,n_forced*1)" -segment_time 20 -reset_timestamps 1 -f segment output%03d.mp4

    &#xA;

    If I use -c:v libx264 in the request, then the split time lasts for a long, but it works out correctly. In general, I am satisfied with the source codec, so I tried -c:v copy, so we do not change the codec, which makes the split process almost instantly, but the problem is, that the output segments are not 20 seconds each, but for example :&#xA;20.5 sec, 18.5 sec, 21 sec.&#xA;How to deal with it ? Why does the -c:v copy modify the split unevenly ?

    &#xA;