Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (33)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (5136)

  • FFMPEG RGB Lossless conversion video

    29 août 2017, par DCDCDC

    I have been experiencing difficulty in finding many answers with FFMPEG documentation, forums and here.
    What I am trying to do is a compress a screen capture video but with just RGB data.
    The steps I am currently taking are ;

    ffmpeg -f avfoundation -pix_fmt 0rgb -r "30" -i "1" -vcodec libx264rgb -pix_fmt rgb24 -crf 0 -t 25 -q 0 -y ~/Desktop/RGB.mkv

    south-58-45:~ danielcarter$ ffmpeg -f avfoundation -pix_fmt 0rgb -r "30" -i "1" -vcodec libx264rgb -pix_fmt rgb24 -crf 0 -t 170 -q 0 -y -v info ~/Desktop/output.mkv
    ffmpeg version 3.3 Copyright (c) 2000-2017 the FFmpeg developers
     built with Apple LLVM version 8.1.0 (clang-802.0.41)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/3.3 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
     libavutil      55. 58.100 / 55. 58.100
     libavcodec     57. 89.100 / 57. 89.100
     libavformat    57. 71.100 / 57. 71.100
     libavdevice    57.  6.100 / 57.  6.100
     libavfilter     6. 82.100 /  6. 82.100
     libavresample   3.  5.  0 /  3.  5.  0
     libswscale      4.  6.100 /  4.  6.100
     libswresample   2.  7.100 /  2.  7.100
     libpostproc    54.  5.100 / 54.  5.100
    [avfoundation @ 0x7fc39d004c00] Stream #0: not enough frames to estimate rate; consider increasing probesize
    Input #0, avfoundation, from '1':
     Duration: N/A, start: 175270.249500, bitrate: N/A
       Stream #0:0: Video: rawvideo ([0]RGB / 0x42475200), 0rgb, 1440x900, 1000k tbr, 1000k tbn, 1000k tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264rgb))
    Press [q] to stop, [?] for help
    [libx264rgb @ 0x7fc39d13ea00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
    [libx264rgb @ 0x7fc39d13ea00] profile High 4:4:4 Predictive, level 4.0, 4:4:4 8-bit
    [libx264rgb @ 0x7fc39d13ea00] 264 - core 148 r2748 97eaef2 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=0 mixed_ref=1 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=0 chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=0
    Output #0, matroska, to '/Users/danielcarter/Desktop/output.mkv':
     Metadata:
       encoder         : Lavf57.71.100
       Stream #0:0: Video: h264 (libx264rgb) (H264 / 0x34363248), rgb24, 1440x900, q=-1--1, 30 fps, 1k tbn, 30 tbc
       Metadata:
         encoder         : Lavc57.89.100 libx264rgb
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    frame= 5100 fps= 30 q=-1.0 Lsize=   12167kB time=00:02:49.96 bitrate= 586.4kbits/s speed=0.999x    
    video:12134kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.267659%
    [libx264rgb @ 0x7fc39d13ea00] frame I:21    Avg QP: 0.00  size:430796
    [libx264rgb @ 0x7fc39d13ea00] frame P:5079  Avg QP: 0.00  size:   665
    [libx264rgb @ 0x7fc39d13ea00] mb I  I16..4: 61.3%  0.0% 38.7%
    [libx264rgb @ 0x7fc39d13ea00] mb P  I16..4:  0.1%  0.0%  0.0%  P16..4:  0.0%  0.0%  0.0%  0.0%  0.0%    skip:99.9%
    [libx264rgb @ 0x7fc39d13ea00] 8x8 transform intra:0.0% inter:11.2%
    [libx264rgb @ 0x7fc39d13ea00] coded y,u,v intra: 48.0% 31.6% 29.0% inter: 0.0% 0.0% 0.0%
    [libx264rgb @ 0x7fc39d13ea00] i16 v,h,dc,p: 76% 22%  2%  0%
    [libx264rgb @ 0x7fc39d13ea00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 46% 35%  7%  2%  2%  1%  1%  1%  3%
    [libx264rgb @ 0x7fc39d13ea00] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264rgb @ 0x7fc39d13ea00] ref P L0: 83.1%  6.4%  5.3%  5.2%
    [libx264rgb @ 0x7fc39d13ea00] kb/s:584.71

    This captures the screen on my mac. To the best of my knowledge, this creates a lossless file and I have compared screen shots that confirm this.
    The next step is where I think I have an issue.
    Because I want to run the compression on raw RGB data I need to convert the MKV to an RGB file ;

    ffmpeg -i ~/Desktop/RGB.mkv -c:v rawvideo -pix_fmt rgb24 -crf 0 -ss 00:00:03 -to 00:02:01 -q 0 -y ~/Desktop/out.rgb

    south-58-45:~ danielcarter$ ffmpeg -i ~/Desktop/output.mkv -c:v rawvideo -pix_fmt rgb24 -crf 0 -ss 00:00:03 -to 00:02:01 -q 0 -y ~/Desktop/out.rgb
    ffmpeg version 3.3 Copyright (c) 2000-2017 the FFmpeg developers
     built with Apple LLVM version 8.1.0 (clang-802.0.41)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/3.3 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
     libavutil      55. 58.100 / 55. 58.100
     libavcodec     57. 89.100 / 57. 89.100
     libavformat    57. 71.100 / 57. 71.100
     libavdevice    57.  6.100 / 57.  6.100
     libavfilter     6. 82.100 /  6. 82.100
     libavresample   3.  5.  0 /  3.  5.  0
     libswscale      4.  6.100 /  4.  6.100
     libswresample   2.  7.100 /  2.  7.100
     libpostproc    54.  5.100 / 54.  5.100
    Input #0, matroska,webm, from '/Users/danielcarter/Desktop/output.mkv':
     Metadata:
       ENCODER         : Lavf57.71.100
     Duration: 00:02:50.00, start: 0.000000, bitrate: 586 kb/s
       Stream #0:0: Video: h264 (High 4:4:4 Predictive), gbrp(tv, gbr/unknown/unknown, progressive), 1440x900, 30 fps, 30 tbr, 1k tbn, 60 tbc (default)
       Metadata:
         ENCODER         : Lavc57.89.100 libx264rgb
         DURATION        : 00:02:50.000000000
    Codec AVOption crf (Select the quality for constant quality mode) specified for output file #0 (/Users/danielcarter/Desktop/out.rgb) 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.
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> rawvideo (native))
    Press [q] to stop, [?] for help
    Output #0, rawvideo, to '/Users/danielcarter/Desktop/out.rgb':
     Metadata:
       encoder         : Lavf57.71.100
       Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 1440x900, q=2-31, 933120 kb/s, 30 fps, 30 tbn, 30 tbc (default)
       Metadata:
         DURATION        : 00:02:50.000000000
         encoder         : Lavc57.89.100 rawvideo
    frame= 3540 fps=111 q=-0.0 Lsize=13440938kB time=00:01:58.00 bitrate=933120.0kbits/s speed=3.68x    
    video:13440938kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%

    Once I have this I can then compress and decompress successfully. I then get a working file to play back using ;

    ffmpeg -f rawvideo -vcodec rawvideo -s 1440x900 -r 30 -pix_fmt rgb24 -i ~/Desktop/out.rgb -c:v libx264rgb -pix_fmt rgb24 -x264opts keyint=300:min-keyint=300:no-scenecut -y -crf 0 ~/Desktop/rgbplay.mkv

    south-58-45:~ danielcarter$ ffmpeg -f rawvideo -vcodec rawvideo -s 1440x900 -r 30 -pix_fmt rgb24 -i ~/Desktop/out.rgb -c:v libx264rgb -pix_fmt rgb24 -x264opts keyint=300:min-keyint=300:no-scenecut -y -crf 0 ~/Desktop/rgbplay.mkv
    ffmpeg version 3.3 Copyright (c) 2000-2017 the FFmpeg developers
     built with Apple LLVM version 8.1.0 (clang-802.0.41)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/3.3 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
     libavutil      55. 58.100 / 55. 58.100
     libavcodec     57. 89.100 / 57. 89.100
     libavformat    57. 71.100 / 57. 71.100
     libavdevice    57.  6.100 / 57.  6.100
     libavfilter     6. 82.100 /  6. 82.100
     libavresample   3.  5.  0 /  3.  5.  0
     libswscale      4.  6.100 /  4.  6.100
     libswresample   2.  7.100 /  2.  7.100
     libpostproc    54.  5.100 / 54.  5.100
    [rawvideo @ 0x7fb1f9002600] Estimating duration from bitrate, this may be inaccurate
    Input #0, rawvideo, from '/Users/danielcarter/Desktop/out.rgb':
     Duration: 00:01:58.00, start: 0.000000, bitrate: 933120 kb/s
       Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 1440x900, 933120 kb/s, 30 tbr, 30 tbn, 30 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264rgb))
    Press [q] to stop, [?] for help
    [libx264rgb @ 0x7fb1f9010c00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
    [libx264rgb @ 0x7fb1f9010c00] profile High 4:4:4 Predictive, level 4.0, 4:4:4 8-bit
    [libx264rgb @ 0x7fb1f9010c00] 264 - core 148 r2748 97eaef2 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=0 mixed_ref=1 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=0 chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=2 keyint=300 keyint_min=151 scenecut=0 intra_refresh=0 rc=cqp mbtree=0 qp=0
    Output #0, matroska, to '/Users/danielcarter/Desktop/rgbplay.mkv':
     Metadata:
       encoder         : Lavf57.71.100
       Stream #0:0: Video: h264 (libx264rgb) (H264 / 0x34363248), rgb24, 1440x900, q=-1--1, 30 fps, 1k tbn, 30 tbc
       Metadata:
         encoder         : Lavc57.89.100 libx264rgb
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    frame= 3540 fps= 64 q=-1.0 Lsize=    8319kB time=00:01:57.96 bitrate= 577.7kbits/s speed=2.13x    
    video:8297kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.273154%
    [libx264rgb @ 0x7fb1f9010c00] frame I:12    Avg QP: 0.00  size:437670
    [libx264rgb @ 0x7fb1f9010c00] frame P:3528  Avg QP: 0.00  size:   919
    [libx264rgb @ 0x7fb1f9010c00] mb I  I16..4: 61.9%  0.0% 38.1%
    [libx264rgb @ 0x7fb1f9010c00] mb P  I16..4:  0.1%  0.0%  0.0%  P16..4:  0.0%  0.0%  0.0%  0.0%  0.0%    skip:99.8%
    [libx264rgb @ 0x7fb1f9010c00] 8x8 transform intra:0.0% inter:15.1%
    [libx264rgb @ 0x7fb1f9010c00] coded y,u,v intra: 49.7% 36.5% 33.7% inter: 0.0% 0.0% 0.0%
    [libx264rgb @ 0x7fb1f9010c00] i16 v,h,dc,p: 73% 25%  1%  0%
    [libx264rgb @ 0x7fb1f9010c00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 45% 36%  7%  2%  2%  2%  2%  1%  3%
    [libx264rgb @ 0x7fb1f9010c00] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264rgb @ 0x7fb1f9010c00] ref P L0: 81.3%  7.7%  6.7%  4.3%
    [libx264rgb @ 0x7fb1f9010c00] kb/s:575.96

    But here I have pixel variance. My guess is there is a RGB-YUV-RGB conversion happening somewhere but I am not smart enough to work out where.
    If any of you can help I would forever grateful.

    Here is a picture of the two stills side by side that shows the differences ;

    pixel difference

    If you need anything more I can post it also.
    Cheers,
    DC

  • Ffmpeg concat images doesn't finish all images

    18 septembre 2015, par Simon

    I’m trying to do a simple task with ffmpeg. I’ve pre-generated about 100 png images (all same resolution) and separetely generated a list of them to be used by ffmpeg to concat them into a video. Each frame is likely to be used more than once. The output video is to be about 10,000 frames.

    The problem is that ffmpeg stops at about frame 4000 with no error. The final video works with no error.

    ffmpeg command :

    ffmpeg  -f concat -i frame_list.txt -vf fps=10 output.mov

    frame_list.txt sample :

       file 'frame_0045.png'
       file 'frame_0046.png'
       file 'frame_0047.png'
       file 'frame_0046.png'
       file 'frame_0047.png'

    ffmpeg output :

    ffmpeg version 2.3.3-   http://johnvansickle.com/ffmpeg/    Copyright (c) 2000-2014 the FFmpeg developers
    built on Sep  2 2014 16:32:53 with gcc 4.8 (Debian 4.8.3-9)

     configuration: --enable-gpl --enable-version3 --disable-shared
     --disable-debug --enable-runtime-cpudetect --enable-libmp3lame
     --enable-libx264 --enable-libwebp --enable-libspeex
     --enable-libvorbis --enable-libvpx --enable-libfreetype
     --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb
     --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc
     --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg
     --enable-libopus --disable-ffserver --enable-libass --enable-gnutls
     --cc=gcc-4.8

     libavutil      52. 92.100 / 52. 92.100
     libavcodec     55. 69.100 / 55. 69.100
     libavformat    55. 48.100 / 55. 48.100
     libavdevice    55. 13.102 / 55. 13.102
     libavfilter     4. 11.100 /  4. 11.100
     libswscale      2.  6.100 /  2.  6.100
     libswresample   0. 19.100 /  0. 19.100
     libpostproc    52.  3.100 / 52.  3.100

    Input #0, concat, from 'frame_list.txt':
    Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: png, rgba64be, 1920x400 [SAR 72:72 DAR 24:5], 25 tbr, 25 tbn, 25 tbc

    File 'output.mov' already exists. Overwrite ? [y/N] No pixel format
    specified, yuv444p for H.264 encoding chosen.

    Use -pix_fmt yuv420p for compatibility with outdated media players.

    [libx264 @ 0x38a6e20] using SAR=1/1
    [libx264 @ 0x38a6e20] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 0x38a6e20] profile High 4:4:4 Predictive, level 3.1, 4:4:4 8-bit

    [libx264 @ 0x38a6e20] 264 - core 142 r50 dd79a61 - H.264/MPEG-4 AVC
    codec - Copyleft 2003-2014 - 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=10 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, mov, to 'output.mov':
     Metadata:
       encoder         : Lavf55.48.100
       Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv444p,
       1920x400 [SAR 1:1 DAR 24:5], q=-1--1, 10 fps, 10240 tbn, 10 tbc
       Metadata:
         encoder         : Lavc55.69.100 libx264
    Stream mapping:
     Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))

    Press [q] to stop, [?] for help

    Blah blah does all concat-ing and then stops at frame 4040 for unknown reason

    frame= 4040 fps= 13 q=-1.0 Lsize=    2301kB time=00:06:43.80 bitrate=      46.7kbits/s
    video:2254kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB         muxing overhead: 2.067943%
    [libx264 @ 0x38a6e20] frame I:17    Avg QP:13.43  size: 22332
    [libx264 @ 0x38a6e20] frame P:1297  Avg QP:12.44  size:  1003
    [libx264 @ 0x38a6e20] frame B:2726  Avg QP:13.00  size:   230
    [libx264 @ 0x38a6e20] consecutive B-frames:  9.9%  0.4%  0.2% 89.5%
    [libx264 @ 0x38a6e20] mb I  I16..4: 15.8% 68.5% 15.7%
    [libx264 @ 0x38a6e20] mb P  I16..4:  0.1%  0.5%  0.3%  P16..4:  0.8%  0.2%  0.2%  0.0%  0.0%    skip:98.0%
    [libx264 @ 0x38a6e20] mb B  I16..4:  0.0%  0.1%  0.0%  B16..8:  1.6%  0.1%  0.0%  direct: 0.0%  skip:98.2%  L0:51.6% L1:45.9% BI: 2.6%
    [libx264 @ 0x38a6e20] 8x8 transform intra:62.7% inter:16.1%
    [libx264 @ 0x38a6e20] coded y,u,v intra: 14.7% 8.5% 9.2% inter: 0.1% 0.0% 0.0%
    [libx264 @ 0x38a6e20] i16 v,h,dc,p: 60% 35%  4%  0%
    [libx264 @ 0x38a6e20] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 41%  2% 56%  0%  0%  0%  0%  0%  0%
    [libx264 @ 0x38a6e20] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 14% 21%  6%  4%          5%  5%  6%  4%
    [libx264 @ 0x38a6e20] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 0x38a6e20] ref P L0: 59.3%  5.1% 20.4% 15.2%
    [libx264 @ 0x38a6e20] ref B L0: 72.2% 22.5%  5.3%
    [libx264 @ 0x38a6e20] ref B L1: 97.2%  2.8%
    [libx264 @ 0x38a6e20] kb/s:45.70
  • FFMpeg frame drop when merging a image sequence and overlaying during video creation process

    29 juillet 2018, par Killer

    I have reviewed both the answer as mentioned in Similar Issue But still, I am having some frame drops.

    Here is what I was doing :
    Question 1
    Question 2

    Currently, I am showing a few images (one after another each with
    duration ’x’) on a sample background along with a music playing in the
    background.

    This is the command I am using to get the desired functionality :

    ffmpeg
    -hide_banner
    -y
    -loop 1
    -r 1
    -i /data/user/0/mojo.wed.com.wedmojo/cache/wedding_video/Images/IMG_WED_MOJO_WEDDING_FRAME.png
    -r 1/4
    -i /data/user/0/mojo.wed.com.wedmojo/cache/wedding_video/Images/IMG_WED_MOJO_SELECTED_IMAGE_%d.png
    -filter_complex overlay=(W-w)/2:(H-h)/2,drawtext=text=WedMojo:fontcolor=white:fontfile=/data/user/0/mojo.wed.com.wedmojo/cache/wedding_video/Files/FONT_WED_MOJO_WEDDING.ttf:fontsize=30:x=w-tw-20:y=h-th-20
    -c:v libx264
    -profile:v high
    -crf 17 -pix_fmt yuv420p
    -preset ultrafast
    -t 16 -strict experimental
    -r 24
    /data/user/0/mojo.wed.com.wedmojo/cache/wedding_video/Videos/VID_WED_MOJO_WEDDING_OUTPUT.mp4

    note : -r 1/4 for each image to be shown for 4 sec.

    I have checked the format of the images. All are the same. Also on changing preset and other values, the problem seems to be same. Log states drop=0, however, there are gaps as the overlay image is removed in between.

    Video sample with the duration set to 4 i.e each image to be set for 4 seconds.

    -> -> Video Output with 4 sec duration for each image

    However, there are no frame drops when the duration set to 1 or 2.

    -> -> Video Output with 2 sec duration for each image, ignore zoompan

    Log details :

    D/CreateVideoActivity: COMMAND: -hide_banner -y -loop 1 -r 1 -i /data/user/0/mojo.wed.com.wedmojo/cache/wedding_video/Images/IMG_WED_MOJO_WEDDING_FRAME.png -r 1/4 -i /data/user/0/mojo.wed.com.wedmojo/cache/wedding_video/Images/IMG_WED_MOJO_SELECTED_IMAGE_%d.png -filter_complex overlay=(W-w)/2:(H-h)/2,drawtext=text=WedMojo:fontcolor=white:fontfile=/data/user/0/mojo.wed.com.wedmojo/cache/wedding_video/Files/FONT_WED_MOJO_WEDDING.ttf:fontsize=30:x=w-tw-20:y=h-th-20 -c:v libx264 -profile:v high -crf 17 -pix_fmt yuv420p -preset ultrafast -t 16 -strict experimental -r 24 /data/user/0/mojo.wed.com.wedmojo/cache/wedding_video/Videos/VID_WED_MOJO_WEDDING_OUTPUT.mp4
    D/SurfaceUtils: disconnecting from surface 0x8a091008, reason disconnectFromSurface
    D/FFmpeg: Running publishing updates method
    D/CreateVideoActivity: onProgress() => Input #0, png_pipe, from '/data/user/0/mojo.wed.com.wedmojo/cache/wedding_video/Images/IMG_WED_MOJO_WEDDING_FRAME.png':
       onProgress() =>   Duration: N/A, bitrate: N/A
       onProgress() =>     Stream #0:0: Video: png, rgb24(pc), 1280x720, 25 fps, 25 tbr, 25 tbn, 25 tbc
       onProgress() => Input #1, image2, from '/data/user/0/mojo.wed.com.wedmojo/cache/wedding_video/Images/IMG_WED_MOJO_SELECTED_IMAGE_%d.png':
       onProgress() =>   Duration: 00:00:00.16, start: 0.000000, bitrate: N/A
    D/CreateVideoActivity: onProgress() =>     Stream #1:0: Video: png, rgb24(pc), 600x600 [SAR 1:1 DAR 1:1], 25 fps, 25 tbr, 25 tbn, 25 tbc
       onProgress() => Stream mapping:
       onProgress() =>   Stream #0:0 (png) -> overlay:main
       onProgress() =>   Stream #1:0 (png) -> overlay:overlay
       onProgress() =>   drawtext -> Stream #0:0 (libx264)
       onProgress() => Press [q] to stop, [?] for help
    D/CreateVideoActivity: onProgress() => [libx264 @ 0xb0857c00] using cpu capabilities: none!
    D/CreateVideoActivity: onProgress() => [libx264 @ 0xb0857c00] profile Constrained Baseline, level 3.1
       onProgress() => [libx264 @ 0xb0857c00] 264 - core 152 r2851M ba24899 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 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=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=24 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=17.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
       onProgress() => Output #0, mp4, to '/data/user/0/mojo.wed.com.wedmojo/cache/wedding_video/Videos/VID_WED_MOJO_WEDDING_OUTPUT.mp4':
    D/CreateVideoActivity: onProgress() =>   Metadata:
    D/CreateVideoActivity: onProgress() =>     encoder         : Lavf58.12.100
       onProgress() =>     Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1280x720, q=-1--1, 24 fps, 12288 tbn, 24 tbc (default)
       onProgress() =>     Metadata:
    D/CreateVideoActivity: onProgress() =>       encoder         : Lavc58.18.100 libx264
       onProgress() =>     Side data:
       onProgress() =>       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    D/CreateVideoActivity: onProgress() => frame=   96 fps=0.0 q=6.0 size=     256kB time=00:00:03.79 bitrate= 553.2kbits/s dup=93 drop=0 speed=3.94x    
    D/CreateVideoActivity: onProgress() => frame=  120 fps= 79 q=6.0 size=     512kB time=00:00:04.79 bitrate= 875.4kbits/s dup=116 drop=0 speed=3.13x    
    D/CreateVideoActivity: onProgress() => frame=  192 fps= 91 q=6.0 size=     512kB time=00:00:07.79 bitrate= 538.4kbits/s dup=185 drop=0 speed=3.68x    
    D/CreateVideoActivity: onProgress() => frame=  216 fps= 79 q=6.0 size=     768kB time=00:00:08.79 bitrate= 715.7kbits/s dup=208 drop=0 speed=3.21x    
    D/CreateVideoActivity: onProgress() => frame=  288 fps= 88 q=6.0 size=    1024kB time=00:00:11.79 bitrate= 711.4kbits/s dup=278 drop=0 speed= 3.6x    
    D/CreateVideoActivity: onProgress() => frame=  312 fps= 82 q=6.0 size=    1536kB time=00:00:12.79 bitrate= 983.7kbits/s dup=301 drop=0 speed=3.37x    
    D/CreateVideoActivity: onProgress() => frame=  384 fps= 86 q=6.0 size=    1536kB time=00:00:15.79 bitrate= 796.8kbits/s dup=370 drop=0 speed=3.52x    
    D/CreateVideoActivity: onProgress() => frame=  384 fps= 78 q=-1.0 Lsize=    1783kB time=00:00:15.95 bitrate= 915.4kbits/s dup=393 drop=0 speed=3.24x    
    D/CreateVideoActivity: onProgress() => video:1781kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.130068%
    D/CreateVideoActivity: onProgress() => [libx264 @ 0xb0857c00] frame I:2     Avg QP: 9.00  size:152054
       onProgress() => [libx264 @ 0xb0857c00] frame P:382   Avg QP: 6.69  size:  3976
       onProgress() => [libx264 @ 0xb0857c00] mb I  I16..4: 100.0%  0.0%  0.0%
       onProgress() => [libx264 @ 0xb0857c00] mb P  I16..4:  0.5%  0.0%  0.0%  P16..4: 10.7%  0.0%  0.0%  0.0%  0.0%    skip:88.7%
       onProgress() => [libx264 @ 0xb0857c00] coded y,uvDC,uvAC intra: 56.4% 68.7% 52.5% inter: 4.2% 2.0% 1.5%
       onProgress() => [libx264 @ 0xb0857c00] i16 v,h,dc,p: 49% 25% 15% 11%
       onProgress() => [libx264 @ 0xb0857c00] i8c dc,h,v,p: 38% 28% 23% 11%
       onProgress() => [libx264 @ 0xb0857c00] kb/s:911.53
    D/CreateVideoActivity: onSuccess() => Input #0, png_pipe, from '/data/user/0/mojo.wed.com.wedmojo/cache/wedding_video/Images/IMG_WED_MOJO_WEDDING_FRAME.png':
         Duration: N/A, bitrate: N/A
           Stream #0:0: Video: png, rgb24(pc), 1280x720, 25 fps, 25 tbr, 25 tbn, 25 tbc
       Input #1, image2, from '/data/user/0/mojo.wed.com.wedmojo/cache/wedding_video/Images/IMG_WED_MOJO_SELECTED_IMAGE_%d.png':
         Duration: 00:00:00.16, start: 0.000000, bitrate: N/A
           Stream #1:0: Video: png, rgb24(pc), 600x600 [SAR 1:1 DAR 1:1], 25 fps, 25 tbr, 25 tbn, 25 tbc
       Stream mapping:
         Stream #0:0 (png) -> overlay:main
         Stream #1:0 (png) -> overlay:overlay
         drawtext -> Stream #0:0 (libx264)
       Press [q] to stop, [?] for help
       [libx264 @ 0xb0857c00] using cpu capabilities: none!
       [libx264 @ 0xb0857c00] profile Constrained Baseline, level 3.1
       [libx264 @ 0xb0857c00] 264 - core 152 r2851M ba24899 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 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=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=24 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=17.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
       Output #0, mp4, to '/data/user/0/mojo.wed.com.wedmojo/cache/wedding_video/Videos/VID_WED_MOJO_WEDDING_OUTPUT.mp4':
         Metadata:
           encoder         : Lavf58.12.100
           Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1280x720, q=-1--1, 24 fps, 12288 tbn, 24 tbc (default)
           Metadata:
             encoder         : Lavc58.18.100 libx264
           Side data:
             cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
       frame=   96 fps=0.0 q=6.0 size=     256kB time=00:00:03.79 bitrate= 553.2kbits/s dup=93 drop=0 speed=3.94x    
       frame=  120 fps= 79 q=6.0 size=     512kB time=00:00:04.79 bitrate= 875.4kbits/s dup=116 drop=0 speed=3.13x    
       frame=  192 fps= 91 q=6.0 size=     512kB time=00:00:07.79 bitrate= 538.4kbits/s dup=185 drop=0 speed=3.68x    
       frame=  216 fps= 79 q=6.0 size=     768kB time=00:00:08.79 bitrate= 715.7kbits/s dup=208 drop=0 speed=3.21x    
       frame=  288 fps= 88 q=6.0 size=    1024kB time=00:00:11.79 bitrate= 711.4kbits/s dup=278 drop=0 speed= 3.6x    
       frame=  312 fps= 82 q=6.0 size=    1536kB time=00:00:12.79 bitrate= 983.7kbits/s dup=301 drop=0 speed=3.37x    
       frame=  384 fps= 86 q=6.0 size=    1536kB time=00:00:15.79 bitrate= 796.8kbits/s dup=370 drop=0 speed=3.52x    
       frame=  384 fps= 78 q=-1.0 Lsize=    1783kB time=00:00:15.95 bitrate= 915.4kbits/s dup=393 drop=0 speed=3.24x    
       video:1781kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.130068%
       [libx264 @ 0xb0857c00] frame I:2     Avg QP: 9.00  size:152054
       [libx264 @ 0xb0857c00] frame P:382   Avg QP: 6.69  size:  3976
       [libx264 @ 0xb0857c00] mb I  I16..4: 100.0%  0.0%  0.0%
       [libx264 @ 0xb0857c00] mb P  I16..4:  0.5%  0.0%  0.0%  P16..4: 10.7%  0.0%  0.0%  0.0%  0.0%    skip:88.7%
       [libx264 @ 0xb0857c00] coded y,uvDC,uvAC intra: 56.4% 68.7% 52.5% inter: 4.2% 2.0% 1.5%
       [libx264 @ 0xb0857c00] i16 v,h,dc,p: 49% 25% 15% 11%
       [libx264 @ 0xb0857c00] i8c dc,h,v,p: 38% 28% 23% 11%
       [libx264 @ 0xb0857c00] kb/s:911.53
    I/OMXClient: Treble IOmx obtained
    D/SurfaceUtils: connecting to surface 0x8c6ef008, reason connectToSurface
    I/MediaCodec: [OMX.google.h264.decoder] setting surface generation to 23113736
    D/SurfaceUtils: disconnecting from surface 0x8c6ef008, reason connectToSurface(reconnect)
    D/SurfaceUtils: connecting to surface 0x8c6ef008, reason connectToSurface(reconnect)
    E/ACodec: [OMX.google.h264.decoder] setPortMode on output to DynamicANWBuffer failed w/ err -1010
    I/ACodec: codec does not support config priority (err -1010)
    D/MediaCodec: [OMX.google.h264.decoder] setting dataspace on output surface to #104
    D/SoftwareRenderer: setting dataspace on output surface to #104

    Let me know if any details required from my side. Your valuable suggestions are welcomed.