Recherche avancée

Médias (1)

Mot : - Tags -/3GS

Autres articles (111)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

Sur d’autres sites (6430)

  • FFMPEG:merging Image and Audio duration getting increased [migrated]

    21 juin 2016, par Saikat Dey

    I am trying to create a video using a still image(.png) with audio(.wav) file using FFMPEG with video duration equal to audio duration but even keeping ’-shortest’ & ’-loop 1’ as flag, pegstill video duration is always 2 seconds more than audio duration.

    This is causing problem because, after the video creation i am merging several videos together to create a final video. Now what is happening is that in that 2 seconds extra time, the next video’s audio comes which is causing video-audio unsync. Even if I delay the audio stream, there is a blank sound while transition from one video to another.

    So i wanted to ask why there is extra 2 seconds and how can i remove it.
    My ffmpeg command :

    ffmpeg -loop 1 -i imgPath -i audioPath -c:v libx264 -c:a aac -strict experimental -pix_fmt yuv420p -vf resolution -b:a 192k -shortest videoPath

    Console Output :

    ffmpeg version N-78598-g98a0053 Copyright (c) 2000-2016 the FFmpeg developers
    built with gcc 5.3.0 (GCC)
    configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --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. 18.100 / 55. 18.100
    libavcodec     57. 24.103 / 57. 24.103
    libavformat    57. 25.101 / 57. 25.101
    libavdevice    57.  0.101 / 57.  0.101
    libavfilter     6. 34.100 /  6. 34.100
    libswscale      4.  0.100 /  4.  0.100
    libswresample   2.  0.101 /  2.  0.101
    libpostproc    54.  0.100 / 54.  0.100
    Input #0, png_pipe, from 'image.png':
    Duration: N/A, bitrate: N/A
     Stream #0:0: Video: png, rgb24(pc), 1058x794 [SAR 3779:3781 DAR 621141:466396], 25 fps, 25 tbr, 25 tbn, 25 tbc
    Guessed Channel Layout for  Input Stream #1.0 : stereo
    Input #1, wav, from 'audio.wav':
    Duration: 00:00:15.25, bitrate: 1411 kb/s
    Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s
    [libx264 @ 0068f820] using SAR=2587/2590
    [libx264 @ 0068f820] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 0068f820] profile High, level 3.1
    [libx264 @ 0068f820] 264 - core 148 r2665 a01e339 - 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=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 'video.mp4':
    Metadata:
    encoder         : Lavf57.25.101
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 800x600 [SAR 5997273:6004228 DAR 621141:466396], q=-1--1, 25 fps, 12800 tbn, 25 tbc
    Metadata:
     encoder         : Lavc57.24.103 libx264
    Side data:
     cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    Stream #0:1: Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 192 kb/s
    Metadata:
     encoder         : Lavc57.24.103 aac
    Stream mapping:
    Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
    Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (native))
    Press [q] to stop, [?] for help
    frame=   47 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   66 fps= 66 q=28.0 size=      16kB time=00:00:00.56 bitrate= 234.8kbits/s speed=0.559x    
    frame=   91 fps= 60 q=28.0 size=      40kB time=00:00:01.56 bitrate= 211.2kbits/s speed=1.04x    
    frame=  123 fps= 61 q=28.0 size=      72kB time=00:00:02.84 bitrate= 206.6kbits/s speed=1.41x    
    frame=  160 fps= 64 q=28.0 size=     108kB time=00:00:04.32 bitrate= 203.9kbits/s speed=1.72x    
    frame=  197 fps= 65 q=28.0 size=     143kB time=00:00:05.80 bitrate= 201.8kbits/s speed=1.92x    
    frame=  231 fps= 66 q=28.0 size=     176kB time=00:00:07.16 bitrate= 201.3kbits/s speed=2.03x    
    frame=  270 fps= 67 q=28.0 size=     214kB time=00:00:08.72 bitrate= 200.6kbits/s speed=2.17x    
    frame=  307 fps= 68 q=28.0 size=     252kB time=00:00:10.20 bitrate= 202.6kbits/s speed=2.25x    
    frame=  343 fps= 68 q=28.0 size=     286kB time=00:00:11.64 bitrate= 201.6kbits/s speed=2.31x    
    frame=  380 fps= 69 q=28.0 size=     323kB time=00:00:13.12 bitrate= 201.6kbits/s speed=2.37x    
    frame=  416 fps= 69 q=28.0 size=     357kB time=00:00:14.56 bitrate= 200.9kbits/s speed=2.41x    
    frame=  433 fps= 68 q=-1.0 Lsize=     391kB time=00:00:17.24 bitrate= 185.6kbits/s speed= 2.7x    
    video:18kB audio:358kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 3.837568%
    [libx264 @ 0068f820] frame I:2     Avg QP: 7.83  size:  2710
    [libx264 @ 0068f820] frame P:109   Avg QP: 9.51  size:    35
    [libx264 @ 0068f820] frame B:322   Avg QP:12.67  size:    27
    [libx264 @ 0068f820] consecutive B-frames:  0.7%  0.5%  0.0% 98.8%
    [libx264 @ 0068f820] mb I  I16..4: 97.9%  0.1%  2.1%
    [libx264 @ 0068f820] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.0%  0.0%  0.0%  0.0%  0.0%    skip:100.0%
    [libx264 @ 0068f820] 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:65.9% L1:34.1% BI: 0.0%
    [libx264 @ 0068f820] 8x8 transform intra:0.1% inter:28.6%
    [libx264 @ 0068f820] coded y,uvDC,uvAC intra: 1.6% 2.1% 2.1% inter: 0.0% 0.0% 0.0%
    [libx264 @ 0068f820] i16 v,h,dc,p: 97%  0%  3%  0%
    [libx264 @ 0068f820] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 50%  0% 50%  0%  0%  0%  0%  0%  0%
    [libx264 @ 0068f820] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 37% 18% 19%  3%  6%  4%  6%  2%  5%
    [libx264 @ 0068f820] i8c dc,h,v,p: 98%  1%  1%  0%
    [libx264 @ 0068f820] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 0068f820] ref P L0: 70.5% 11.4%  9.1%  9.1%
    [libx264 @ 0068f820] ref B L0: 50.2% 49.8%
    [libx264 @ 0068f820] ref B L1: 99.2%  0.8%
    [libx264 @ 0068f820] kb/s:8.23
    [aac @ 0067e4c0] Qavg: 439.702

    You can see here that my audio.wav Duration : 00:00:15.25, but output video.mp4 is 00:00:17.24.

  • Video and audio stretch calculations in ffmpeg

    30 janvier 2017, par garrettlynch

    I’m doing some extreme slow motion in ffmpeg on a video, both video and audio track, but can’t quite get my calculations correct.

    The input video is 00:06:41:00 at 24fps (9624 frames).
    I need the output video to be 34:00:00:00 at 24fps (2937600 frames).

    I tried these for the video and audio :

    setpts=305.237*PTS

    atempo=0.5, atempo=0.5, atempo=0.5, atempo=0.5, atempo=0.5, atempo=0.5, atempo=0.5, atempo=0.5, atempo=0.807668329177057

    However the video overshoots by 00:01:19:08 and the audio I’m unsure, on one player it stops somewhere around 8 hours but on another it just continues. What are the correct formulas ?

    Also on VLC the video has grey frames between video frames - do I need to interpolate to have continuous video frames ?


    Edit by @Mulvya :

    fred-macbookpro:~ srederiquefantune$ ffmpeg -i /Users/srederiquefantune/Desktop/test.mp4 -filter_complex "[0:v]setpts=305.237*PTS, scale=320:240[v];[0:a]atempo=0.5, atempo=0.5, atempo=0.5, atempo=0.5, atempo=0.5, atempo=0.5, atempo=0.5, atempo=0.5, atempo=0.807668329177057[a]" -map "[v]" -map "[a]" /Users/srederiquefantune/Desktop/output2.mp4
    ffmpeg version 3.2.2 Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 4.2.1 (GCC) (Apple Inc. build 5666) (dot 3)
     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-libsoxr --enable-libspeex --enable-libass --enable-libbluray --enable-lzma --enable-gnutls --enable-fontconfig --enable-libfreetype --enable-libfribidi --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --disable-indev=jack --disable-outdev=xv --disable-audiotoolbox --disable-videotoolbox --disable-sdl2 --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/gcc-4.2 --disable-filter=coreimage --disable-filter=coreimagesrc --enable-vda --disable-indev=avfoundation --arch=x86_64 --enable-yasm --enable-libx265 --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid
     libavutil      55. 34.100 / 55. 34.100
     libavcodec     57. 64.101 / 57. 64.101
     libavformat    57. 56.100 / 57. 56.100
     libavdevice    57.  1.100 / 57.  1.100
     libavfilter     6. 65.100 /  6. 65.100
     libavresample   3.  1.  0 /  3.  1.  0
     libswscale      4.  2.100 /  4.  2.100
     libswresample   2.  3.100 /  2.  3.100
     libpostproc    54.  1.100 / 54.  1.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/srederiquefantune/Desktop/test.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
     Duration: 00:06:41.25, start: 0.000000, bitrate: 2294 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 2172 kb/s, 24 fps, 120 tbr, 90k tbn, 48 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 112 kb/s (default)
       Metadata:
         handler_name    : VideoHandler
    [libx264 @ 0x104801200] using SAR=4/3
    [libx264 @ 0x104801200] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64
    [libx264 @ 0x104801200] profile High, level 1.3
    [libx264 @ 0x104801200] 264 - core 148 - 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=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=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=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=24 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 '/Users/srederiquefantune/Desktop/output2.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf57.56.100
       Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 320x240 [SAR 4:3 DAR 16:9], q=-1--1, 24 fps, 12288 tbn, 24 tbc (default)
       Metadata:
         encoder         : Lavc57.64.101 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
       Stream #0:1: Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 128 kb/s (default)
       Metadata:
         encoder         : Lavc57.64.101 aac
    Stream mapping:
     Stream #0:0 (h264) -> setpts
     Stream #0:1 (aac) -> atempo
     scale -> Stream #0:0 (libx264)
     atempo -> Stream #0:1 (aac)
    Press [q] to stop, [?] for help
    [output stream 0:1 @ 0x104105420] 100 buffers queued in output stream 0:1, something may be wrong.
    frame=    1 fps=0.0 q=0.0 size=       3kB time=00:00:22.01 bitrate=   1.2kbits/s

    frame=2938515 fps=281 q=-1.0 Lsize= 2439310kB time=35:19:08.66 bitrate= 157.2kbits/s dup=2928888 drop=1 speed=12.1x    
    video:389302kB audio:1994106kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.345466%
    [libx264 @ 0x104801200] frame I:15399 Avg QP:14.27  size: 20680
    [libx264 @ 0x104801200] frame P:740673 Avg QP:17.21  size:    68
    [libx264 @ 0x104801200] frame B:2182443 Avg QP:25.83  size:    14
    [libx264 @ 0x104801200] consecutive B-frames:  0.9%  0.2%  0.1% 98.8%
    [libx264 @ 0x104801200] mb I  I16..4:  7.9% 47.3% 44.8%
    [libx264 @ 0x104801200] mb P  I16..4:  0.0%  0.1%  0.1%  P16..4:  0.7%  0.1%  0.1%  0.0%  0.0%    skip:99.0%
    [libx264 @ 0x104801200] 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:14.0% L1:85.9% BI: 0.0%
    [libx264 @ 0x104801200] 8x8 transform intra:48.2% inter:52.8%
    [libx264 @ 0x104801200] coded y,uvDC,uvAC intra: 91.4% 90.7% 88.0% inter: 0.1% 0.1% 0.0%
    [libx264 @ 0x104801200] i16 v,h,dc,p: 78%  4% 11%  7%
    [libx264 @ 0x104801200] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 13% 17%  7%  8% 10%  7% 10% 10%
    [libx264 @ 0x104801200] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 13% 11%  8% 10% 11%  8% 10%  9%
    [libx264 @ 0x104801200] i8c dc,h,v,p: 62% 15% 16%  7%
    [libx264 @ 0x104801200] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 0x104801200] ref P L0: 87.6%  7.8%  4.0%  0.6%  0.0%
    [libx264 @ 0x104801200] ref B L0: 50.0% 49.6%  0.4%
    [libx264 @ 0x104801200] ref B L1: 91.3%  8.7%
    [libx264 @ 0x104801200] kb/s:26.05
    [aac @ 0x104802a00] Qavg: 632.499
    fred-macbookpro:~ srederiquefantune$
  • ffmpeg : Convertion to mkv with compatibility with Samsung BluRay

    25 octobre 2018, par Yehor

    I have several videos (FullHD resolution) which I want to convert to mkv format and play on my Samsung BluRay Player (model BD-J5900).
    Based on User Manual (http://media.datatail.com/docs/manual/252846_en.pdf , page 6) it supports mkv playing if codecs are :

    • Video : H.264 BP/MP/HP
    • Audio : MP3

    Thus, based on https://ffmpeg.org/ffmpeg.html the command to convert it into proper format is :

    ffmpeg -i input.avi -f matroska -vcodec libx264 -acodec mp3 output.mkv

    It converts, but file is not playable on player. It say "Video format is not supported".

    After checking info here : https://trac.ffmpeg.org/wiki/Encode/H.264 - I thought it may require some compatibility and change the command to :

    ffmpeg -i input.avi -f matroska -vcodec libx264 -profile:v baseline -level 3.0 -acodec mp3 output.mkv

    But it also didn’t help - player demonstrates the same error.

    How to fix that ?
    Thanks !

    Updated :
    Also tested following options

    ffmpeg -i input.file -f matroska -vcodec libx264 -preset veryslow -x264-params bluray_compat=1 -acodec mp3 output.mkv
    ffmpeg -i input.file -f matroska -vcodec libx264 -preset veryslow -profile:v high -level 4.2 -x264-params bluray_compat=1 -acodec mp3 output.mkv
    ffmpeg -i input.file -f matroska -vcodec libx264 -preset veryslow -profile:v baseline -level 3.0 -x264-params bluray_compat=1 -acodec mp3 output.mkv
    ffmpeg -i input.file -vcodec libx264 -vf format=yuv420p -preset veryslow -acodec mp3 output.mkv

    Also not supported.

    Updated :
    Console output for command without profile flag :

    ffmpeg version 4.0 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 7.3.0 (GCC)
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
     libavutil      56. 14.100 / 56. 14.100
     libavcodec     58. 18.100 / 58. 18.100
     libavformat    58. 12.100 / 58. 12.100
     libavdevice    58.  3.100 / 58.  3.100
     libavfilter     7. 16.100 /  7. 16.100
     libswscale      5.  1.100 /  5.  1.100
     libswresample   3.  1.100 /  3.  1.100
     libpostproc    55.  1.100 / 55.  1.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0000019abc2aa4c0] sample aspect ratio already set to 1:1, ignoring 'pasp' atom (65536:65536)
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\Yehor\Desktop\video_conversion\input\VID_20180620_165336103.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       creation_time   : 2018-06-20T22:55:12.000000Z
       com.android.version: 7.0
     Duration: 00:01:34.19, start: 0.000000, bitrate: 17178 kb/s
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, smpte170m), 1920x1080, 17016 kb/s, SAR 1:1 DAR 16:9, 29.97 fps, 30 tbr, 90k tbn, 180k tbc (default)
       Metadata:
         rotate          : 90
         creation_time   : 2018-06-20T22:55:12.000000Z
         handler_name    : VideoHandle
       Side data:
         displaymatrix: rotation of -90.00 degrees
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
       Metadata:
         creation_time   : 2018-06-20T22:55:12.000000Z
         handler_name    : SoundHandle
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
     Stream #0:1 -> #0:1 (aac (native) -> mp3 (libmp3lame))
    Press [q] to stop, [?] for help
    [libx264 @ 0000019abc348e00] using SAR=1/1time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
    [libx264 @ 0000019abc348e00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 0000019abc348e00] profile High, level 4.0
    [libx264 @ 0000019abc348e00] 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, matroska, to 'C:\Users\Yehor\Desktop\video_conversion\output\VID_20180620_165336103.mkv':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       com.android.version: 7.0
       encoder         : Lavf58.12.100
       Stream #0:0(eng): Video: h264 (libx264) (H264 / 0x34363248), yuvj420p(pc), 1080x1920 [SAR 1:1 DAR 9:16], q=-1--1, 30 fps, 1k tbn, 30 tbc (default)
       Metadata:
         encoder         : Lavc58.18.100 libx264
         creation_time   : 2018-06-20T22:55:12.000000Z
         handler_name    : VideoHandle
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
         displaymatrix: rotation of -0.00 degrees
       Stream #0:1(eng): Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055), 48000 Hz, stereo, fltp (default)
       Metadata:
         creation_time   : 2018-06-20T22:55:12.000000Z
         handler_name    : SoundHandle
         encoder         : Lavc58.18.100 libmp3lame
    frame= 2823 fps= 15 q=-1.0 Lsize=   80210kB time=00:01:34.10 bitrate=6982.7kbits/s speed=0.492x
    video:78692kB audio:1469kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.061441%
    [libx264 @ 0000019abc348e00] frame I:14    Avg QP:21.43  size:187644
    [libx264 @ 0000019abc348e00] frame P:728   Avg QP:23.93  size: 68336
    [libx264 @ 0000019abc348e00] frame B:2081  Avg QP:27.79  size: 13553
    [libx264 @ 0000019abc348e00] consecutive B-frames:  1.3%  0.6%  2.0% 96.1%
    [libx264 @ 0000019abc348e00] mb I  I16..4:  5.7% 71.5% 22.7%
    [libx264 @ 0000019abc348e00] mb P  I16..4:  2.0%  8.8%  0.9%  P16..4: 46.2% 20.0% 12.2%  0.0%  0.0%    skip:10.1%
    [libx264 @ 0000019abc348e00] mb B  I16..4:  0.2%  0.9%  0.1%  B16..8: 45.3%  4.9%  1.0%  direct: 2.8%  skip:44.9%  L0:45.7% L1:47.3% BI: 7.0%
    [libx264 @ 0000019abc348e00] 8x8 transform intra:75.1% inter:69.7%
    [libx264 @ 0000019abc348e00] coded y,uvDC,uvAC intra: 56.8% 70.0% 15.9% inter: 18.3% 19.2% 2.4%
    [libx264 @ 0000019abc348e00] i16 v,h,dc,p: 18% 33% 15% 34%
    [libx264 @ 0000019abc348e00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 20% 24%  5%  8%  8%  8%  5%  5%
    [libx264 @ 0000019abc348e00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 19% 13%  6%  9%  9%  9%  7%  5%
    [libx264 @ 0000019abc348e00] i8c dc,h,v,p: 53% 23% 17%  7%
    [libx264 @ 0000019abc348e00] Weighted P-Frames: Y:15.7% UV:2.6%
    [libx264 @ 0000019abc348e00] ref P L0: 49.7% 11.2% 25.9% 11.3%  1.9%
    [libx264 @ 0000019abc348e00] ref B L0: 88.2%  9.2%  2.6%
    [libx264 @ 0000019abc348e00] ref B L1: 96.2%  3.8%
    [libx264 @ 0000019abc348e00] kb/s:6843.33

    Console output for command with profile flag :

    ffmpeg version 4.0 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 7.3.0 (GCC)
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
     libavutil      56. 14.100 / 56. 14.100
     libavcodec     58. 18.100 / 58. 18.100
     libavformat    58. 12.100 / 58. 12.100
     libavdevice    58.  3.100 / 58.  3.100
     libavfilter     7. 16.100 /  7. 16.100
     libswscale      5.  1.100 /  5.  1.100
     libswresample   3.  1.100 /  3.  1.100
     libpostproc    55.  1.100 / 55.  1.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0000018124b5b080] sample aspect ratio already set to 1:1, ignoring 'pasp' atom (65536:65536)
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\Yehor\Desktop\video_conversion\input\VID_20180620_165336103.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       creation_time   : 2018-06-20T22:55:12.000000Z
       com.android.version: 7.0
     Duration: 00:01:34.19, start: 0.000000, bitrate: 17178 kb/s
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, smpte170m), 1920x1080, 17016 kb/s, SAR 1:1 DAR 16:9, 29.97 fps, 30 tbr, 90k tbn, 180k tbc (default)
       Metadata:
         rotate          : 90
         creation_time   : 2018-06-20T22:55:12.000000Z
         handler_name    : VideoHandle
       Side data:
         displaymatrix: rotation of -90.00 degrees
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
       Metadata:
         creation_time   : 2018-06-20T22:55:12.000000Z
         handler_name    : SoundHandle
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
     Stream #0:1 -> #0:1 (aac (native) -> mp3 (libmp3lame))
    Press [q] to stop, [?] for help
    [libx264 @ 0000018124bf9100] using SAR=1/1time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
    [libx264 @ 0000018124bf9100] frame MB size (68x120) > level limit (1620)
    [libx264 @ 0000018124bf9100] DPB size (1 frames, 8160 mbs) > level limit (0 frames, 8100 mbs)
    [libx264 @ 0000018124bf9100] MB rate (244800) > level limit (40500)
    [libx264 @ 0000018124bf9100] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 0000018124bf9100] profile Constrained Baseline, level 3.0
    [libx264 @ 0000018124bf9100] 264 - core 155 r2901 7d0ff22 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0x131 me=umh subme=10 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=24 chroma_me=1 trellis=2 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 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=25 scenecut=40 intra_refresh=0 rc_lookahead=60 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, matroska, to 'C:\Users\Yehor\Desktop\video_conversion\output\VID_20180620_165336103.mkv':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       com.android.version: 7.0
       encoder         : Lavf58.12.100
       Stream #0:0(eng): Video: h264 (libx264) (H264 / 0x34363248), yuvj420p(pc), 1080x1920 [SAR 1:1 DAR 9:16], q=-1--1, 30 fps, 1k tbn, 30 tbc (default)
       Metadata:
         encoder         : Lavc58.18.100 libx264
         creation_time   : 2018-06-20T22:55:12.000000Z
         handler_name    : VideoHandle
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
         displaymatrix: rotation of -0.00 degrees
       Stream #0:1(eng): Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055), 48000 Hz, stereo, fltp (default)
       Metadata:
         creation_time   : 2018-06-20T22:55:12.000000Z
         handler_name    : SoundHandle
         encoder         : Lavc58.18.100 libmp3lame
    frame= 2823 fps= 11 q=-1.0 Lsize=  106243kB time=00:01:34.16 bitrate=9242.5kbits/s speed=0.358x
    video:104723kB audio:1469kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.047877%
    [libx264 @ 0000018124bf9100] frame I:14    Avg QP:24.31  size:181656
    [libx264 @ 0000018124bf9100] frame P:2809  Avg QP:27.29  size: 37271
    [libx264 @ 0000018124bf9100] mb I  I16..4: 24.0%  0.0% 76.0%
    [libx264 @ 0000018124bf9100] mb P  I16..4:  2.7%  0.0%  2.0%  P16..4: 45.5% 15.6%  4.7%  0.4%  0.1%    skip:28.9%
    [libx264 @ 0000018124bf9100] coded y,uvDC,uvAC intra: 40.3% 61.3% 13.8% inter: 21.0% 20.2% 3.7%
    [libx264 @ 0000018124bf9100] i16 v,h,dc,p: 22% 30% 23% 26%
    [libx264 @ 0000018124bf9100] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 15% 12%  9% 12% 12% 12%  9%  7%
    [libx264 @ 0000018124bf9100] i8c dc,h,v,p: 52% 22% 18%  8%
    [libx264 @ 0000018124bf9100] kb/s:9107.11