Recherche avancée

Médias (91)

Autres articles (67)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

  • 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 (6566)

  • avcodec/hevcdec : Avoid null pointer dereferences in MC

    25 mai 2023, par Michael Niedermayer
    avcodec/hevcdec : Avoid null pointer dereferences in MC
    

    Fixes : runtime error : pointer index expression with base 0x000000000000 overflowed to 0xfffffffffffffff8
    Fixes : 58440/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HEVC_fuzzer-5956015530311680

    Found-by : continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/hevcdec.c
  • FFMPEG — using 'amix' to combine short audio clip with a video results in final video's sound cutting off early

    12 avril 2022, par kilika

    I am trying to combine the following :

    &#xA;

    (a) : 29s video clip that has its own audio that lasts the entire duration

    &#xA;

    (b) : audio clip I want to play at the start of the video, in conjunction with original audio, and is 2 seconds long

    &#xA;

    I successfully use 'amix' to obtain a video at the end with combined audio, but the problem is that the final video's audio cuts off at around 26 out of the 29 seconds of the video and goes silent.

    &#xA;

    What doesn't make any sense is that the resulting video plays as it should, with the audio successfully mixed. But the output video's audio stream loses the last 3 seconds.

    &#xA;

    Here's the 'amix' command I'm using (sending via subprocess) :

    &#xA;

    subprocess.call([&#x27;ffmpeg&#x27;,&#x27;-i&#x27;, input.mp4&#x27;, &#x27;-i&#x27;, "audioclip.mp3", &#x27;-filter_complex&#x27;, &#x27;amix&#x27;, output.mp4&#x27;])&#xA;

    &#xA;

    I've also used versions of this command that spell out the -map "0:a" and -map "1:a", or tried using 'amix=inputs=2:duration:longest' among many other additions. All lead to the same problem : the final combined video's audio drops out with 3 seconds remaining in the video, even though the initial 'input.mp4' video has a full 29 out of 29 seconds of audio.

    &#xA;

    Does anyone know why these last several seconds of audio from [a] are missing in the final video ?

    &#xA;

    _________________________________________________________________

    &#xA;

    edit : Below is my output when I run the amix command listed above :

    &#xA;

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;RuneBearinstakill_advanced.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf59.20.101&#xA;  Duration: 00:00:29.77, start: 0.000000, bitrate: 5441 kb/s&#xA;  Stream #0:0[0x1](eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt470bg/bt470bg/smpte170m, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 5304 kb/s, 30 fps, 30 tbr, 15360 tbn (default)&#xA;    Metadata:&#xA;      handler_name    : Bento4 Video Handler&#xA;      vendor_id       : [0][0][0][0]&#xA;  Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : Bento4 Sound Handler&#xA;      vendor_id       : [0][0][0][0]&#xA;[mp3 @ 000001f0c8ec2040] Estimating duration from bitrate, this may be inaccurate&#xA;Input #1, mp3, from &#x27;TTS_clip.mp3&#x27;:&#xA;  Duration: 00:00:01.90, start: 0.000000, bitrate: 32 kb/s&#xA;  Stream #1:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s&#xA;Stream mapping:&#xA;  Stream #0:1 (aac) -> amix (graph 0)&#xA;  Stream #1:0 (mp3float) -> amix (graph 0)&#xA;  amix:default (graph 0) -> Stream #0:0 (aac)&#xA;  Stream #0:0 -> #0:1 (h264 (native) -> h264 (libx264))&#xA;Press [q] to stop, [?] for help&#xA;[libx264 @ 000001f0c8cbe5c0] using SAR=1/1&#xA;[libx264 @ 000001f0c8cbe5c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2&#xA;[libx264 @ 000001f0c8cbe5c0] profile High, level 4.0, 4:2:0, 8-bit&#xA;[libx264 @ 000001f0c8cbe5c0] 264 - core 164 r3094 bfc87b7 - H.264/MPEG-4 AVC codec - Copyleft 2003-2022 - 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=-2 threads=24 lookahead_threads=4 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&#xA;Output #0, mp4, to &#x27;RuneBearinstakill_advancedwithtts.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf59.20.101&#xA;  Stream #0:0: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s&#xA;    Metadata:&#xA;      encoder         : Lavc59.25.100 aac&#xA;  Stream #0:1(eng): Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt470bg/bt470bg/smpte170m, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 30 fps, 15360 tbn (default)&#xA;    Metadata:&#xA;      handler_name    : Bento4 Video Handler&#xA;      vendor_id       : [0][0][0][0]&#xA;      encoder         : Lavc59.25.100 libx264&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A&#xA;frame=  893 fps=110 q=-1.0 Lsize=   18717kB time=00:00:29.66 bitrate=5168.5kbits/s speed=3.66x    &#xA;video:18256kB audio:433kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.150179%&#xA;[aac @ 000001f0c8f9ebc0] Qavg: 921.259&#xA;[libx264 @ 000001f0c8cbe5c0] frame I:4     Avg QP:21.33  size: 71366&#xA;[libx264 @ 000001f0c8cbe5c0] frame P:633   Avg QP:23.32  size: 23837&#xA;[libx264 @ 000001f0c8cbe5c0] frame B:256   Avg QP:25.22  size: 12968&#xA;[libx264 @ 000001f0c8cbe5c0] consecutive B-frames: 57.2% 10.3% 10.1% 22.4%&#xA;[libx264 @ 000001f0c8cbe5c0] mb I  I16..4: 17.9% 71.4% 10.8%&#xA;[libx264 @ 000001f0c8cbe5c0] mb P  I16..4:  6.9% 17.6%  0.8%  P16..4: 43.1%  6.5%  1.5%  0.0%  0.0%    skip:23.6%&#xA;[libx264 @ 000001f0c8cbe5c0] mb B  I16..4:  1.5%  4.2%  0.3%  B16..8: 39.7%  4.6%  0.5%  direct: 1.6%  skip:47.6%  L0:55.9% L1:41.8% BI: 2.3%&#xA;[libx264 @ 000001f0c8cbe5c0] 8x8 transform intra:69.5% inter:87.3%&#xA;[libx264 @ 000001f0c8cbe5c0] coded y,uvDC,uvAC intra: 35.6% 26.8% 0.8% inter: 13.4% 10.8% 0.0%&#xA;[libx264 @ 000001f0c8cbe5c0] i16 v,h,dc,p: 21% 37% 12% 30%&#xA;[libx264 @ 000001f0c8cbe5c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 26% 21%  4%  5%  5%  6%  4%  5%&#xA;[libx264 @ 000001f0c8cbe5c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 28% 15%  5%  7%  7%  7%  5%  4%&#xA;[libx264 @ 000001f0c8cbe5c0] i8c dc,h,v,p: 67% 18% 14%  1%&#xA;[libx264 @ 000001f0c8cbe5c0] Weighted P-Frames: Y:0.2% UV:0.0%&#xA;[libx264 @ 000001f0c8cbe5c0] ref P L0: 72.3% 15.4%  8.7%  3.6%  0.0%&#xA;[libx264 @ 000001f0c8cbe5c0] ref B L0: 88.9%  9.5%  1.6%&#xA;[libx264 @ 000001f0c8cbe5c0] ref B L1: 97.7%  2.3%&#xA;[libx264 @ 000001f0c8cbe5c0] kb/s:5024.13&#xA;

    &#xA;

    And here is the output when I check the stream durations for the input video and the output video, showing how the output video's audio stream is somehow reduced by several seconds after the amix :

    &#xA;

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;RuneBearinstakill_advanced.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf59.20.101&#xA;  Duration: 00:00:29.77, start: 0.000000, bitrate: 5403 kb/s&#xA;  Stream #0:0[0x1](eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt470bg/bt470bg/smpte170m, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 5266 kb/s, 30 fps, 30 tbr, 15360 tbn (default)&#xA;    Metadata:&#xA;      handler_name    : Bento4 Video Handler&#xA;      vendor_id       : [0][0][0][0]&#xA;  Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : Bento4 Sound Handler&#xA;      vendor_id       : [0][0][0][0]&#xA;[STREAM]&#xA;duration=29.766667&#xA;[/STREAM]&#xA;[STREAM]&#xA;duration=29.738000&#xA;[/STREAM]&#xA;&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;RuneBearinstakill_advancedwithtts.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf59.20.101&#xA;  Duration: 00:00:29.77, start: 0.000000, bitrate: 5098 kb/s&#xA;  Stream #0:0[0x1](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : SoundHandler&#xA;      vendor_id       : [0][0][0][0]&#xA;  Stream #0:1[0x2](eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt470bg/bt470bg/smpte170m, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 4971 kb/s, 30 fps, 30 tbr, 15360 tbn (default)&#xA;    Metadata:&#xA;      handler_name    : Bento4 Video Handler&#xA;      vendor_id       : [0][0][0][0]&#xA;[STREAM]&#xA;duration=27.477000&#xA;[/STREAM]&#xA;[STREAM]&#xA;duration=29.766667&#xA;

    &#xA;

  • avformat/http: check the auth string contents not the pointer which cannot be NULL

    14 octobre 2013, par Michael Niedermayer
    avformat/http: check the auth string contents not the pointer which cannot be NULL
    

    It appears this bug originates from a "work in progress" patch from
    ffmpeg-devel that was heavily redesigned by and integrated in libav

    And that patch even had a reply and review on the mailing list pointing
    out that it had a bug.

    This fixes a deadlock with ffserver

    See : [FFmpeg-devel] [PATCH] Fix HTTP authentication problem for POST actions.
    [FFmpeg-devel] [PATCH 1/3] Introduce auth_phase flag, which will be true if authorization needs to be sent, but the type of authorization is not known yet Partial fix #3036
    [FFmpeg-devel] [PATCH 2/3] Only add Transfer-Encoding header when not in authorization phase, because server will wait (indefinitely) for data when receiving this header Partial fix #3036
    [FFmpeg-devel] [PATCH 3/3] Only allow posting data and/or forcing a 200 code, enabling posting isml chunks, -after- we did a possible first request to get a 403 from the server telling us which type of authentication to apply Final part fix #3036
    See : 71549a857b13edf4c4f95037de6ed5bb4c4bd4af
    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavformat/http.c