Recherche avancée

Médias (1)

Mot : - Tags -/censure

Autres articles (25)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

  • Librairies et logiciels spécifiques aux médias

    10 décembre 2010, par

    Pour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
    Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)

Sur d’autres sites (2772)

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

    


  • How to deal with "Buffer queue overflow, dropping." (ffmpeg)

    1er mai 2015, par whitesiroi

    Sometimes it works great and sometimes I’m getting this message
    [Parsed_overlay_0 @ 0x7f9520518800] [framesync @ 0x7f9521021e28] Buffer queue overflow, dropping.

    by running this command
    ffmpeg -i a1.mp4 -i watermark150x125.png -filter_complex 'overlay=10:10' output.mp4

    I tried different variation of "overlay" like overlay=W-w-5:H-h-5, overlay=10:main_h-overlay_h-10, overlay=main_w-overlay_w-10:main_h-overlay_h-10 - getting the same result.

    Here is the output of the ffmpeg command.

    ffmpeg version 2.6.2 Copyright (c) 2000-2015 the FFmpeg developers
     built with Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/2.6.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-vda
     libavutil      54. 20.100 / 54. 20.100
     libavcodec     56. 26.100 / 56. 26.100
     libavformat    56. 25.101 / 56. 25.101
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 11.102 /  5. 11.102
     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
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f952101d200] stream 0, timescale not set
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'a1.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       artist          : a1
       album           :
       comment         :
       date            : 0
       genre           :
       title           : a1
       encoder         : Lavf56.4.101
     Duration: 00:01:41.51, start: 0.000000, bitrate: 227 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 426x240 [SAR 1:1 DAR 71:40], 97 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
       Stream #0:2: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 120x90 [SAR 1:1 DAR 4:3], 90k tbr, 90k tbn, 90k tbc
    Input #1, png_pipe, from 'watermark150x125.png':
     Duration: N/A, bitrate: N/A
       Stream #1:0: Video: png, rgba, 150x125 [SAR 2835:2835 DAR 6:5], 25 tbr, 25 tbn, 25 tbc
    [swscaler @ 0x7f9521013e00] deprecated pixel format used, make sure you did set range correctly
    [libx264 @ 0x7f9521030e00] using SAR=1/1
    [libx264 @ 0x7f9521030e00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
    [libx264 @ 0x7f9521030e00] profile High, level 2.1
    [libx264 @ 0x7f9521030e00] 264 - core 144 r2533 c8a773e - 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=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.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       artist          : a1
       album           :
       comment         :
       date            : 0
       genre           :
       title           : a1
       encoder         : Lavf56.25.101
       Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 426x240 [SAR 1:1 DAR 71:40], q=-1--1, 29.97 fps, 30k tbn, 29.97 tbc (default)
       Metadata:
         encoder         : Lavc56.26.100 libx264
       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
         encoder         : Lavc56.26.100 libvo_aacenc
    Stream mapping:
     Stream #0:0 (h264) -> overlay:main (graph 0)
     Stream #0:2 (mjpeg) -> overlay:overlay (graph 0)
     overlay (graph 0) -> Stream #0:0 (libx264)
     Stream #0:1 -> #0:1 (aac (native) -> aac (libvo_aacenc))
    Press [q] to stop, [?] for help
    [Parsed_overlay_0 @ 0x7f9520518800] [framesync @ 0x7f9521021e28] Buffer queue overflow, dropping.
       Last message repeated 385 times
    [Parsed_overlay_0 @ 0x7f9520518800] [framesync @ 0x7f9521021e28] Buffer queue overflow, dropping.
       Last message repeated 564 times
    [Parsed_overlay_0 @ 0x7f9520518800] [framesync @ 0x7f9521021e28] Buffer queue overflow, dropping.
       Last message repeated 546 times
    [Parsed_overlay_0 @ 0x7f9520518800] [framesync @ 0x7f9521021e28] Buffer queue overflow, dropping.
       Last message repeated 569 times
    [Parsed_overlay_0 @ 0x7f9520518800] [framesync @ 0x7f9521021e28] Buffer queue overflow, dropping.
       Last message repeated 593 times
    [Parsed_overlay_0 @ 0x7f9520518800] [framesync @ 0x7f9521021e28] Buffer queue overflow, dropping.
       Last message repeated 312 times
    frame= 3041 fps=645 q=-1.0 Lsize=    1800kB time=00:01:41.52 bitrate= 145.3kbits/s dup=2975 drop=0
    video:149kB audio:1587kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 3.700745%
    [libx264 @ 0x7f9521030e00] frame I:14    Avg QP:19.91  size:  6947
    [libx264 @ 0x7f9521030e00] frame P:768   Avg QP:10.30  size:    27
    [libx264 @ 0x7f9521030e00] frame B:2259  Avg QP:13.67  size:    15
    [libx264 @ 0x7f9521030e00] consecutive B-frames:  0.9%  0.1%  0.1% 98.9%
    [libx264 @ 0x7f9521030e00] mb I  I16..4: 18.7% 59.0% 22.3%
    [libx264 @ 0x7f9521030e00] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.1%  0.0%  0.0%  0.0%  0.0%    skip:99.9%
    [libx264 @ 0x7f9521030e00] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.1%  0.0%  0.0%  direct: 0.0%  skip:99.9%  L0:50.7% L1:49.3% BI: 0.0%
    [libx264 @ 0x7f9521030e00] 8x8 transform intra:59.1% inter:31.9%
    [libx264 @ 0x7f9521030e00] coded y,uvDC,uvAC intra: 21.4% 12.4% 7.4% inter: 0.0% 0.0% 0.0%
    [libx264 @ 0x7f9521030e00] i16 v,h,dc,p: 39% 30% 30%  0%
    [libx264 @ 0x7f9521030e00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 47% 16%  1%  0%  0%  1%  0%  1%
    [libx264 @ 0x7f9521030e00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 38% 15%  3%  3%  3%  6%  4%  7%
    [libx264 @ 0x7f9521030e00] i8c dc,h,v,p: 80% 15%  4%  1%
    [libx264 @ 0x7f9521030e00] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 0x7f9521030e00] ref P L0: 96.5%  1.2%  2.3%
    [libx264 @ 0x7f9521030e00] ref B L0: 51.5% 48.5%
    [libx264 @ 0x7f9521030e00] ref B L1: 99.6%  0.4%
    [libx264 @ 0x7f9521030e00] kb/s:11.97
  • ffmpeg : Command Execution failed

    29 janvier 2019, par PRABHJOT SINGH

    I am using this plugin plugin link and I am uploading mp4 videos and trying to compress the video on the server using node js FFmpeg module

    var vid = new ffmpeg( './' + req.file_name + '.mp4');
    vid.then(function (video) {
       video.setVideoSize('640x?', true, true)
           .save('./' + req.file_name + '_cp.mp4',
               function (err,file) {
                   if(err) {
                       res.send({status: 404, message: 'Unable to save video' })
                   } else {
                       revealCtrl.GetVideoData(req, res, next);
                   }
               })
    }, function (err) { });

    but it is not compressing my video and gives this error

    Here is the final command

    Command failed: ffmpeg -i ./jrbze37i.mp4  -strict -2  -filter_complex "scale=iw*sar:ih, pad=max(iw\,ih*(16/9)):ow/(16/9):(ow                                                                                                        -iw)/2:(oh-ih)/2" ./jrbze37i_cp.mp4

    and here is the error

    Error: Command failed: ffmpeg -i ./jrbze37i.mp4  -strict -2  -filter_complex "scale=iw*sar:ih, pad=max(iw\,ih*(16/9)):ow/(16/9):(ow                                                                                                        -iw)/2:(oh-ih)/2" ./jrbze37i_cp.mp4
    ffmpeg version 2.8.15-0ubuntu0.16.04.1 Copyright (c) 2000-2018 the FFmpeg
    developers
    built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609
    configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-
    suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-                                                                                                        
    linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --
    enable-gpl --enable-shared --disable-stripping --disable-decoder                                                                                                        
    =libopenjpeg --disable-decoder=libschroedinger --enable-avresample --
    enable-avisynth --enable-gnutls --enable-ladspa --enable-libass                                                                                                        
    --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --
    enable-libflite --enable-libfontconfig --enable-libfreetype -                                                                                                        
    -enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --
    enable-libmp3lame --enable-libopenjpeg --enable-libopus --en                                                                                                        
    able-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine
    --enable-libsnappy --enable-libsoxr --enable-libspeex --ena                                                                                                        
    ble-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --
    enable-libvpx --enable-libwavpack --enable-libwebp --enable-li                                                                                                        
    bx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --
    enable-x11grab --enable-libdc1394 --enable-libiec61883 --en                                                                                                        
    able-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
    libavutil      54. 31.100 / 54. 31.100
    libavcodec     56. 60.100 / 56. 60.100
    libavformat    56. 40.101 / 56. 40.101
    libavdevice    56.  4.100 / 56.  4.100
    libavfilter     5. 40.101 /  5. 40.101
    libavresample   2.  1.  0 /  2.  1.  0
    libswscale      3.  1.101 /  3.  1.101
    libswresample   1.  2.101 /  1.  2.101
    libpostproc    53.  3.100 / 53.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './jrbze37i.mp4':
    Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.26.100
    Duration: 00:00:53.22, start: 0.023220, bitrate: 1553 kb/s
    Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661),
    yuv420p, 1920x1080, 1418 kb/s, 30 fps, 30 tbr, 15360 tb                                                                                                        
    n, 60 tbc (default)
    Metadata:
     handler_name    : Core Media Video
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono,
    fltp, 128 kb/s (default)
    Metadata:
     handler_name    : Core Media Audio
    [libx264 @ 0x1567760] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
    AVX FMA3 AVX2 LZCNT BMI2
    [libx264 @ 0x1567760] profile High, level 4.0
    [libx264 @ 0x1567760] 264 - core 148 r2643 5c65704 - 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 tr                                                                                                        
    ellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2
    threads=1 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 ke                                                                                                        
    yint=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_r                                                                                                        
    atio=1.40 aq=1:1.00
    Output #0, mp4, to './jrbze37i_cp.mp4':
     Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf56.40.101
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p,
      1920x1080, q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
    Metadata:
     encoder         : Lavc56.60.100 libx264
    Stream #0:1(und): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, mono,
    fltp, 128 kb/s (default)
    Metadata:
     handler_name    : Core Media Audio
     encoder         : Lavc56.60.100 aac
    Stream mapping:
      Stream #0:0 (h264) -> scale (graph 0)
      pad (graph 0) -> Stream #0:0 (libx264)
      Stream #0:1 -> #0:1 (aac (native) -> aac (native))
      Press [q] to stop, [?] for help
      Killed   42 fps=5.1 q=29.0 size=      94kB time=00:00:01.34 bitrate=
       574.7kbits/s dup=1 drop=0

      at ChildProcess.exithandler (child_process.js:276:12)
      at emitTwo (events.js:126:13)
      at ChildProcess.emit (events.js:214:7)
      at maybeClose (internal/child_process.js:915:16)
      at Socket.stream.socket.on (internal/child_process.js:336:11)
      at emitOne (events.js:116:13)
      at Socket.emit (events.js:211:7)
      at Pipe._handle.close [as _onclose] (net.js:561:12)
    killed: false,
    code: 137,
    signal: null,
    cmd: 'ffmpeg -i ./jrbze37i.mp4  -strict -2  -filter_complex
       "scale=iw*sar:ih, pad=max(iw\\,ih*(16/9)):ow/(16/9):(ow-iw)/2:(oh-
      ih)/2 " ./jrbze37i_cp.mp4'

    My problem is that sometimes its work or sometimes it doesn’t work.