Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (38)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • 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

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (8521)

  • ffmpeg screen blending mode makes transparent png pink

    28 janvier 2014, par gilad s

    I have a sequence of PNG files with transparency - I'd like screen-blend them on top of a video

    ffmpeg -i video.mp4 -i "Images/%03d.png" -filter_complex "blend=all_mode='screen':all_opacity=0.7" output.mp4

    the images are indeed merged on top of the video but with a pink overlay ?!

    I also tried to add "-vcodec png" and "-vcodec libx264" and to try a .mov video but got the same result.

    ffmpeg version N-58061-g5231eec Copyright (c) 2000-2013 the FFmpeg developers
    built on Nov 14 2013 05:35:15 with gcc 4.6 (Debian 4.6.3-1)
    configuration: --prefix=/root/ffmpeg-static/64bit --extra-cflags='-I/root/ffmpeg-
    static/64bit/include -static' --extra-ldflags='-L/root/ffmpeg-static/64bit/lib -static'
    --extra-libs='-lxml2 -lexpat -lfreetype' --enable-static --disable-shared --disable-
    ffserver --disable-doc --enable-bzlib --enable-zlib --enable-postproc --enable-runtime-
    cpudetect --enable-libx264 --enable-gpl --enable-libtheora --enable-libvorbis --enable-
    libmp3lame --enable-gray --enable-libass --enable-libfreetype --enable-libopenjpeg --
    enable-libspeex --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-version3 --
    enable-libvpx
    libavutil      52. 52.100 / 52. 52.100
    libavcodec     55. 41.101 / 55. 41.101
    libavformat    55. 21.100 / 55. 21.100
    libavdevice    55.  5.100 / 55.  5.100
    libavfilter     3. 91.100 /  3. 91.100
    libswscale      2.  5.101 /  2.  5.101
    libswresample   0. 17.104 /  0. 17.104
    libpostproc    52.  3.100 / 52.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1.mp4':
    Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf54.2.100
    Duration: 00:00:18.88, start: 0.000000, bitrate: 595 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 640x480, 461 kb/s,  
    25.16 fps, 25 tbr, 1000k tbn, 2000k tbc (default)
    Metadata:
    handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s
    (default)
    Metadata:
    handler_name    : SoundHandler
    Input #1, image2, from 'Dots2/%03d.png':
    Duration: 00:00:10.00, start: 0.000000, bitrate: N/A
    Stream #1:0: Video: png, rgba, 640x480, 25 fps, 25 tbr, 25 tbn, 25 tbc
    [libx264 @ 0x292ad60] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
    [libx264 @ 0x292ad60] profile High, level 3.0
    [libx264 @ 0x292ad60] 264 - core 129 r2230 1cffe9f - H.264/MPEG-4 AVC codec - Copyleft
    2003-2012 - 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=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 'output_Dots.mp4':
    Metadata:
    major_brand     : isom
    Stream #0:1(und): Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 44100 Hz, stereo,
    s16, 128 kb/s (default)
    Metadata:
    handler_name    : SoundHandler
    Stream mapping:
    Stream #0:0 (h264) -> blend:top (graph 0)
    Stream #1:0 (png) -> blend:bottom (graph 0)
    blend (graph 0) -> Stream #0:0 (libx264)
    Stream #0:1 -> #0:1 (aac -> libvo_aacenc)
    Press [q] to stop, [?] for help
    frame=  475 fps=105 q=-1.0 Lsize=    1660kB time=00:00:18.92 bitrate= 718.7kbits/s    
    video:1349kB audio:295kB subtitle:0 global headers:0kB muxing overhead 0.993598%
    [libx264 @ 0x292ad60] frame I:2     Avg QP:19.79  size: 33501
    [libx264 @ 0x292ad60] frame P:176   Avg QP:23.16  size:  5651
    [libx264 @ 0x292ad60] frame B:297   Avg QP:27.76  size:  1074
    [libx264 @ 0x292ad60] consecutive B-frames: 13.3%  8.8%  3.8% 74.1%
    [libx264 @ 0x292ad60] mb I  I16..4:  1.7% 69.9% 28.4%
    [libx264 @ 0x292ad60] mb P  I16..4:  3.3%  8.1%  1.0%  P16..4: 47.1% 14.7%  7.5%  0.0%  
    0.0%    skip:18.3%
    [libx264 @ 0x292ad60] mb B  I16..4:  0.1%  0.0%  0.0%  B16..8: 44.4%  2.6%  0.8%  
    direct: 0.9%  skip:51.2%  L0:46.0% L1:50.5% BI: 3.5%
    [libx264 @ 0x292ad60] 8x8 transform intra:64.9% inter:74.0%
    [libx264 @ 0x292ad60] coded y,uvDC,uvAC intra: 47.0% 50.4% 13.1% inter: 11.8% 12.7% 0.5%
    [libx264 @ 0x292ad60] i16 v,h,dc,p: 50% 18%  9% 23%
    [libx264 @ 0x292ad60] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 15% 22%  4%  6%  6%  7%  5%  5%
    [libx264 @ 0x292ad60] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 19% 19%  4%  6%  6%  6%  4%  4%
    [libx264 @ 0x292ad60] i8c dc,h,v,p: 55% 17% 25%  2%
    [libx264 @ 0x292ad60] Weighted P-Frames: Y:29.0% UV:23.9%
    [libx264 @ 0x292ad60] ref P L0: 63.5% 20.9% 13.2%  2.3%  0.2%
    [libx264 @ 0x292ad60] ref B L0: 96.8%  2.8%  0.4%
    [libx264 @ 0x292ad60] ref B L1: 98.4%  1.6%
    [libx264 @ 0x292ad60] kb/s:581.24
  • Dropped frames in ffmpeg when adding an overlay

    31 janvier 2016, par Juanan

    I’m trying to add a white overlay box using ffmpeg to an mp4 file downloaded from YouTube. I know the syntax and it is working OK with small videos, but I’m struggling to get it to work in a longer one. This is the exact command :

    ffmpeg -i intro.mp4 -strict -2 -vf "color=white:200x50 [over]; [in][over] overlay=250:320:enable=between(t\,0\,52) [out]" out.mp4

    Initially, it works like a charm :

    $ ffmpeg -i intro.mp4 -preset slow -strict -2 -vf "color=white:200x50 [over]; [in][over] overlay=250:320:enable=between(t\,0\,52) [out]" -t 60 out.mp4
    ffmpeg version 2.5.3 Copyright (c) 2000-2015 the FFmpeg developers
     built on Mar 26 2015 23:00:53 with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
     configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-avresample --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex --enable-libass --enable-libbluray --enable-lzma --enable-gnutls --enable-fontconfig --enable-libfreetype --enable-libfribidi --disable-indev=jack --disable-outdev=xv --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --enable-vda --arch=x86_64 --enable-yasm --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid
     libavutil      54. 15.100 / 54. 15.100
     libavcodec     56. 13.100 / 56. 13.100
     libavformat    56. 15.102 / 56. 15.102
     libavdevice    56.  3.100 / 56.  3.100
     libavfilter     5.  2.103 /  5.  2.103
     libavresample   2.  1.  0 /  2.  1.  0
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'intro.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       creation_time   : 2014-01-30 16:48:50
     Duration: 00:13:30.70, start: 0.000000, bitrate: 692 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 497 kb/s, 25 fps, 25 tbr, 50 tbn, 50 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 192 kb/s (default)
       Metadata:
         creation_time   : 2014-01-30 16:48:54
         handler_name    : IsoMedia File Produced by Google, 5-11-2011
    File 'out.mp4' already exists. Overwrite ? [y/N] y
    [libx264 @ 0x7fa8cb82fa00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64
    [libx264 @ 0x7fa8cb82fa00] profile High, level 3.1
    [libx264 @ 0x7fa8cb82fa00] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=5 deblock=1:0:0 analyse=0x3:0x113 me=umh subme=8 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=3 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=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=50 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 'out.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       encoder         : Lavf56.15.102
       Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1280x720, q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
       Metadata:
         handler_name    : VideoHandler
         encoder         : Lavc56.13.100 libx264
       Stream #0:1(und): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 128 kb/s (default)
       Metadata:
         creation_time   : 2014-01-30 16:48:54
         handler_name    : IsoMedia File Produced by Google, 5-11-2011
         encoder         : Lavc56.13.100 aac
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
     Stream #0:1 -> #0:1 (aac (native) -> aac (native))
    Press [q] to stop, [?] for help
    frame= 1500 fps= 47 q=-1.0 Lsize=    2518kB time=00:01:00.00 bitrate= 343.8kbits/s

    But after some time, that command starts yelling dropped frames :

    frame=20269 fps= 21 q=-1.0 Lsize=   23283kB time=00:13:30.70 bitrate= 235.3kbits/s dup=0 drop=548431

    and it never ends. Any clue ?

  • FFMpeg batch convert video files hangs

    13 juin 2017, par Benson Chang

    I have some .avi file contains video encoded in h264, and I would like to change to .mp4 and change the rates if needed. You can see the code used to convert below. My problem is that ffmpeg will hang when I try to convert all files, and the file it hangs changes from time to time, I wonder why ? Below the code is the output where ffmpeg hangs. I’m running under windows 10, python 2.7.

    import subprocess
    import os

    def convert(fileName):
       sourceFile = fileName
       print sourceFile.split('.')
       targetFile = fileName.split('.')[0] + ".mp4"
       subprocess.call(['ffmpeg', '-y', '-i', sourceFile, '-r',
            '30000/1001', '-b:a', '2M', '-bt', '4M', '-vcodec',
             'libx264', '-pass', '1', '-coder', '0', '-bf', '0',
              '-flags', '-loop', '-wpredp', '0', '-an', targetFile])



    # Set the directory you want to start from
    def convertBatch(rootDir = '.'):
       for dirName, subdirList, fileList in os.walk(rootDir):
           print('Found directory: %s' % dirName)

           for fname in fileList:
               if fname.endswith(".avi"):
                   convert('%s/%s' % (dirName,fname))
                   #os.remove('%s/%s' % (dirName,fname))


    convertBatch("F:\\data\\mp4")

    ffmpeg version 3.1.4 Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 5.4.0 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --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-libschroedinger --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-decklink --enable-zlib
     libavutil      55. 28.100 / 55. 28.100
     libavcodec     57. 48.101 / 57. 48.101
     libavformat    57. 41.100 / 57. 41.100
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 47.100 /  6. 47.100
     libswscale      4.  1.100 /  4.  1.100
     libswresample   2.  1.100 /  2.  1.100
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, avi, from 'filename.avi':
     Metadata:
       encoder         : Lavf57.56.100
     Duration: 00:00:01.00, start: 0.000000, bitrate: 611 kb/s
       Stream #0:0: Video: h264 (Constrained Baseline) (x264 / 0x34363278), yuv420p, 1024x1024, 578 kb/s, 30 fps, 30 tbr, 30 tbn, 60 tbc
    Codec AVOption b (set bitrate (in bits/s)) specified for output file #0 (F:\data\mp4_1_16\11\14\512/11_14_512_16.mp4) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
    [libx264 @ 00000000028e42c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
    [libx264 @ 00000000028e42c0] profile Constrained Baseline, level 3.2
    [libx264 @ 00000000028e42c0] 264 - core 148 r2721 72d53ab - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=18 lookahead_threads=6 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 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
    [mp4 @ 0000000002bd00a0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
    Output #0, mp4, to 'filename.mp4':
     Metadata:
       encoder         : Lavf57.41.100
       Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1024x1024, q=-1--1, 29.97 fps, 30k tbn, 29.97 tbc
       Metadata:
         encoder         : Lavc57.48.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 (h264 (native) -> h264 (libx264))
    Press [q] to stop, [?] for help