Recherche avancée

Médias (0)

Mot : - Tags -/tags

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

Autres articles (5)

  • Que fait exactement ce script ?

    18 janvier 2011, par

    Ce script est écrit en bash. Il est donc facilement utilisable sur n’importe quel serveur.
    Il n’est compatible qu’avec une liste de distributions précises (voir Liste des distributions compatibles).
    Installation de dépendances de MediaSPIP
    Son rôle principal est d’installer l’ensemble des dépendances logicielles nécessaires coté serveur à savoir :
    Les outils de base pour pouvoir installer le reste des dépendances Les outils de développements : build-essential (via APT depuis les dépôts officiels) ; (...)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (2976)

  • How to get the output resolution after successful encode ?

    11 janvier 2021, par Daniel Birowsky Popeski

    I'm using fluent-ffmpeg and I'm already able to get the output resolution in the 'on end' event :

    


    createFfmpegCommand()
  .input(fs.createReadStream(readPath))
  .noAudio()
  .fps(30)
  .format('mp4')
  .videoCodec('libx264')
  .videoFilter([
   {filter: 'scale', options: '1920:1920:force_original_aspect_ratio=decrease'},
   {filter: 'setpts', options: '1.5*PTS'},
  ])
  .outputOption('-crf 30')
  .outputOption('-movflags frag_keyframe')
  .outputOption('-movflags +faststart')
  .output(mp4WriteStream)
  .on('start', () => console.log('processing started'))
  .on('error', err => console.error('err', err))
  .on('end', (_,res) => console.log('processing success',res))
  .run();


    


    However, i'd like it to be machine-readable (json or xml). Instead, it looks like this :

    


     ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with Apple clang version 12.0.0 (clang-1200.0.32.28)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.1_8 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --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 --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'pipe:0':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41
    creation_time   : 2020-05-28T09:51:18.000000Z
  Duration: 00:00:02.23, start: 0.000000, bitrate: N/A
    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 9108 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc (default)
    Metadata:
      creation_time   : 2020-05-28T09:51:18.000000Z
      handler_name    : ?Mainconcept Video Media Handler
      encoder         : AVC Coding
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
[libx264 @ 0x7f92d9808e00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x7f92d9808e00] profile High, level 4.0, 4:2:0, 8-bit
[libx264 @ 0x7f92d9808e00] 264 - core 161 r3027 4121277 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - 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=12 lookahead_threads=2 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=30.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'pipe:1':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41
    encoder         : Lavf58.45.100
    Stream #0:0(eng): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1920x1080, q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
    Metadata:
      creation_time   : 2020-05-28T09:51:18.000000Z
      handler_name    : ?Mainconcept Video Media Handler
      encoder         : Lavc58.91.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
frame=   64 fps=0.0 q=36.0 size=       0kB time=00:00:00.16 bitrate=   1.7kbits/s dup=21 drop=0 speed=0.316x    
frame=  100 fps=0.0 q=-1.0 Lsize=     108kB time=00:00:03.23 bitrate= 274.7kbits/s dup=33 drop=0 speed=3.25x    
video:106kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.906519%
[libx264 @ 0x7f92d9808e00] frame I:1     Avg QP:25.71  size:  8782
[libx264 @ 0x7f92d9808e00] frame P:25    Avg QP:30.10  size:  2308
[libx264 @ 0x7f92d9808e00] frame B:74    Avg QP:27.92  size:   564
[libx264 @ 0x7f92d9808e00] consecutive B-frames:  1.0%  0.0%  3.0% 96.0%
[libx264 @ 0x7f92d9808e00] mb I  I16..4: 19.4% 77.2%  3.3%
[libx264 @ 0x7f92d9808e00] mb P  I16..4:  0.3%  0.8%  0.1%  P16..4:  4.6%  1.3%  0.4%  0.0%  0.0%    skip:92.5%
[libx264 @ 0x7f92d9808e00] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  4.0%  0.2%  0.0%  direct: 0.0%  skip:95.7%  L0:44.2% L1:54.8% BI: 1.0%
[libx264 @ 0x7f92d9808e00] 8x8 transform intra:75.0% inter:78.3%
[libx264 @ 0x7f92d9808e00] coded y,uvDC,uvAC intra: 8.8% 8.8% 2.4% inter: 0.3% 0.2% 0.0%
[libx264 @ 0x7f92d9808e00] i16 v,h,dc,p: 77%  7% 10%  6%
[libx264 @ 0x7f92d9808e00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 48%  3% 42%  1%  1%  1%  1%  1%  1%
[libx264 @ 0x7f92d9808e00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 16% 26%  7%  4%  4%  3%  5%  6%
[libx264 @ 0x7f92d9808e00] i8c dc,h,v,p: 89%  5%  5%  1%
[libx264 @ 0x7f92d9808e00] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x7f92d9808e00] ref P L0: 66.9% 11.1% 16.7%  5.3%
[libx264 @ 0x7f92d9808e00] ref B L0: 87.5%  9.9%  2.6%
[libx264 @ 0x7f92d9808e00] ref B L1: 96.4%  3.6%
[libx264 @ 0x7f92d9808e00] kb/s:259.80


    


    Which doesn't let me be comfortable that my regex to extract the output resolution is always going to work.

    


    Also, I don't wanna make another call/fileread just to get the resolution. Mainly because my files are stored in S3, where ffprobe doesn't work.

    


  • FFmpeg-Invalid PNG signature,Error while decoding stream,Invalid data found when processing input

    27 octobre 2018, par Bhuvnesh Varma

    I am using below ffmpeg command to convert images to video-

    "-y", "-f", "concat", "-safe", "0", "-i", src.getAbsolutePath(),
    "-vsync", "vfr", "-vf",
    "scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720 :(ow-iw)/2 :(oh-ih)/2,format=yuv420p",
    dest.getAbsolutePath()

    But sometimes I get below failure error-

    Invalid PNG signature 0x21F904050A000400.\nError while decoding stream
    Invalid data found when processing input\n[png @ 0xf0fec400] Invalid
    PNG signature

    Complete error

    ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers\n
    built with gcc 4.8 (GCC)\n configuration : —target-os=linux
    —cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi-
    —arch=arm —cpu=cortex-a8 —enable-runtime-cpudetect —sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot
    —enable-pic —enable-libx264 —enable-libass —enable-libfreetype —enable-libfribidi —enable-libmp3lame —enable-fontconfig —enable-pthreads —disable-debug —disable-ffserver —enable-version3 —enable-hardcoded-tables —disable-ffplay —disable-ffprobe —enable-gpl —enable-yasm —disable-doc —disable-shared —enable-static —pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config —prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a —extra-cflags=’-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include
    -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all’ —extra-ldflags=’-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib
    -Wl,-z,relro -Wl,-z,now -pie’ —extra-libs=’-lpng -lexpat -lm’ —extra-cxxflags=\n libavutil 55. 17.103 / 55. 17.103\n libavcodec 57. 24.102 / 57. 24.102\n libavformat 57. 25.100 /
    57. 25.100\n libavdevice 57. 0.101 / 57. 0.101\n libavfilter 6. 31.100 / 6. 31.100\n libswscale 4. 0.100 / 4. 0.100\n libswresample 2. 0.101 / 2. 0.101\n libpostproc 54. 0.100 /
    54. 0.100\nInput #0, concat, from ’/storage/emulated/0/Movies/videoffmeg.txt’ :\n Duration : N/A, start :
    0.000000, bitrate : N/A\n Stream #0:0 : Video : png, rgb24(pc), 1080x1920, 25 tbr, 25 tbn, 25 tbc\n[libx264 @ 0xf0feb000] using cpu
    capabilities : none !\n[libx264 @ 0xf0feb000] profile High, level
    3.1\n[libx264 @ 0xf0feb000] 264 - core 148 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - 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=12 lookahead_threads=2 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\nOutput #0, mp4, to
    ’/storage/emulated/0/Movies/slideshow_video.mp4’ :\n Metadata :\n
    encoder : Lavf57.25.100\n Stream #0:0 : Video : h264
    (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1280x720, q=-1—1, 25
    fps, 12800 tbn, 25 tbc\n Metadata :\n encoder :
    Lavc57.24.102 libx264\n Side data :\n unknown side data type 10
    (24 bytes)\nStream mapping :\n Stream #0:0 -> #0:0 (png (native) ->
    h264 (libx264))\nPress [q] to stop, [?] for help\n[png @ 0xf0feb800]
    Invalid PNG signature 0x474946383961F401.\n[png @ 0xf0febc00] Invalid
    PNG signature 0x21F904050A000400.\n[png @ 0xf0fec000] Invalid PNG
    signature 0x21F904050A000400.\n[png @ 0xf0fec400] Invalid PNG
    signature 0x21F904050A000400.\n[png @ 0xf0fec800] Invalid PNG
    signature 0x21F904050A000400.\n[png @ 0xf0fecc00] Invalid PNG
    signature 0x21F904050A000400.\n[png @ 0xf0aff000] Invalid PNG
    signature 0x21F904050A000400.\nError while decoding stream #0:0 :
    Invalid data found when processing input\n[png @ 0xf0feb400] Invalid
    PNG signature 0x21F904050A000400.\nError while decoding stream #0:0 :
    Invalid data found when processing input\n[png @ 0xf0feb800] Invalid
    PNG signature 0x21F904050A000400.\nError while decoding stream #0:0 :
    Invalid data found when processing input\n[png @ 0xf0febc00] Invalid
    PNG signature 0x21F904050A000400.\nError while decoding stream #0:0 :
    Invalid data found when processing input\n[png @ 0xf0fec000] Invalid
    PNG signature 0x21F904050A000400.\nError while decoding stream #0:0 :
    Invalid data found when processing input\n[png @ 0xf0fec400] Invalid
    PNG signature 0x21F904050A000400. input\n[png @ 0xf0aff000] Invalid
    PNG signature 0x21F904050A000200.\nError while decoding stream #0:0 :
    Invalid data found when processing input\n[png @ 0xf0feb400] Invalid
    PNG signature 0x21F904050A000200.\nError while decoding stream #0:0 :
    Invalid data found when processing input\n[png @ 0xf0feb800] Invalid
    PNG signature 0x21F904050A000200.\nError while decoding stream #0:0 :
    Invalid data found when processing input\nframe= 1 fps=0.0 q=28.0
    Lsize= 26kB time=00:00:00.04 bitrate=5366.4kbits/s speed=0.0635x
    \nvideo:25kB audio:0kB subtitle:0kB other streams:0kB global
    headers:0kB muxing overhead : 3.073141%\n[libx264 @ 0xf0feb000] frame
    I:1 Avg QP:31.22 size : 25356\n[libx264 @ 0xf0feb000] mb I
    I16..4 : 5.9% 79.7% 14.5%\n[libx264 @ 0xf0feb000] 8x8 transform
    intra:79.7%\n[libx264 @ 0xf0feb000] coded y,uvDC,uvAC intra : 22.3%
    26.6% 14.1%\n[libx264 @ 0xf0feb000] i16 v,h,dc,p : 33% 12% 27% 28%\n[libx264 @ 0xf0feb000] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu : 41% 4% 47%
    2% 1% 2% 1% 2% 1%\n[libx264 @ 0xf0feb000] i4
    v,h,dc,ddl,ddr,vr,hd,vl,hu : 28% 23% 13% 6% 6% 7% 7% 5%
    5%\n[libx264 @ 0xf0feb000] i8c dc,h,v,p : 81% 7% 9% 3%\n[libx264 @
    0xf0feb000] kb/s:5071.20\nConversion failed !\n

    By what I understand is that there might be some image file which can be corrupt which causes ffmpeg to fail in creating video from images.Is there any way FFmpeg can ignore that corrupt image file and create video from other image files ? Is there any change i can make in command to prevent this failure ?

  • stream 0, timescale not set when concat video using ffmpeg

    17 février 2018, par no name

    I have 2 video which i want to add them together so i make a text file which contains the file names

    file No-fade_25fps.mp4
    file video.mp4

    then i start using this command

    ffmpeg -f concat -i ffmpeg-sound.txt -c copy final_output.mp4

    the problem is i got this from ffmpeg

       [mov,mp4,m4a,3gp,3g2,mj2 @ 0561dbc0] stream 0, timescale not set
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0561dbc0] Auto-inserting h264_mp4toannexb bitstream filter
    Input #0, concat, from 'out.txt':
     Duration: N/A, start: 0.000000, bitrate: 464 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 464 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc
       Metadata:
         creation_time   : 2018-02-09T10:36:18.000000Z
         handler_name    : Core Media Video
       Stream #0:1: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1280x720 [SAR 72:72 DAR 16:9], 90k tbr, 90k tbn, 90k tbc
    Output #0, mp4, to 'final_output.mp4':
     Metadata:
       encoder         : Lavf58.7.100
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 464 kb/s, 25 fps, 25 tbr, 12800 tbn, 25 tbc
       Metadata:
         creation_time   : 2018-02-09T10:36:18.000000Z
         handler_name    : Core Media Video
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
    Press [q] to stop, [?] for help
    [mov,mp4,m4a,3gp,3g2,mj2 @ 05c3e940] Auto-inserting h264_mp4toannexb bitstream filter
    frame= 8194 fps=0.0 q=-1.0 Lsize=    2254kB time=46:35:51.68 bitrate=   0.1kbits/s speed=1.19e+006x
    video:2157kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 4.486598%

    the result give me a video mp4 file with a long duration like 46:33:20 and it not work, and iam sure that both videos have same reslution.
    what i tried is to use this command to convert the video

    ffmpeg -y -i No-fade_25fps.mp4 -r 25 -s 1280x720 -c:v libx264 -b:v 3M -strict -2 -movflags faststart destination.mp4

    and when i concate them again it worked and give me result mp4 file which have a right duration and worked fine but without a sound, because the first video file i use is muted no sound in it and second one contains a sound.
    my question is how to concate those videos togther without this problem also what make the video have the problem of this long duration and when i convert them using the command line it worked ?
    first video info which is No-fade_25fps.mp4

       [mov,mp4,m4a,3gp,3g2,mj2 @ 03e05000] stream 0, timescale not set
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'No-fade_25fps.mp4':
     Metadata:
       major_brand     : M4V
       minor_version   : 1
       compatible_brands: M4V M4A mp42isom
       creation_time   : 2018-02-09T10:36:18.000000Z
       keywords        : tunepro,orange
       album_artist    : Kiran Khan
       description     : This video is about new tunepro
       artist          : Kiran Khan
       title           : new tunepro
     Duration: 00:00:06.48, start: 0.000000, bitrate: 497 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 464 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc (default)
       Metadata:
         creation_time   : 2018-02-09T10:36:18.000000Z
         handler_name    : Core Media Video
       Stream #0:1: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1280x720 [SAR 72:72 DAR 16:9], 90k tbr, 90k tbn, 90k tbc
    At least one output file must be specified

    second video video.mp4

       Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.7.100
     Duration: 00:05:21.28, start: 0.000000, bitrate: 181 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc), 1280x720 [SAR 1:1 DAR 16:9], 45 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, stereo, s16p, 127 kb/s (default)
       Metadata:
         handler_name    : SoundHandler

    what i want is to add any number of videos togthers without a problems like this they all have same reslution and frame per second is there something else need to be checked before i start merge videos ?
    Update
    this what i get when i use the command without copy codec

    [mov,mp4,m4a,3gp,3g2,mj2 @ 058ddb80] stream 0, timescale not set
    [mov,mp4,m4a,3gp,3g2,mj2 @ 058ddb80] Auto-inserting h264_mp4toannexb bitstream filter
    Input #0, concat, from 'out.txt':
     Duration: N/A, start: 0.000000, bitrate: 464 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 464 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc
       Metadata:
         creation_time   : 2018-02-09T10:36:18.000000Z
         handler_name    : Core Media Video
       Stream #0:1: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1280x720 [SAR 72:72 DAR 16:9], 90k tbr, 90k tbn, 90k tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    [libx264 @ 05937d00] using SAR=1/1
    [libx264 @ 05937d00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 05937d00] profile High, level 3.1
    [libx264 @ 05937d00] 264 - core 155 r2901 7d0ff22 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - 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=12 lookahead_threads=2 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 'final_output.mp4':
     Metadata:
       encoder         : Lavf58.7.100
       Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc
       Metadata:
         creation_time   : 2018-02-09T10:36:18.000000Z
         handler_name    : Core Media Video
         encoder         : Lavc58.9.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    [mov,mp4,m4a,3gp,3g2,mj2 @ 058ddb80] Auto-inserting h264_mp4toannexb bitstream filtered=3.41x
    More than 1000 frames duplicated

    and it stop like it’s in infinite loop