Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (18)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Other interesting software

    13 avril 2011, par

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website : http://videopress.com/
    License : GNU/GPL v2
    Source code : (...)

Sur d’autres sites (7153)

  • FFmpeg scaling issue

    12 janvier 2018, par DonX

    I am trying to down scale a video from 607x1080 to 440 width with the height automatically being calculated using the following command. It does scale the video but not to the specified dimension. The video is scaled to 216x384 even though the output below indicates 440x384.

    ffmpeg -i video.mp4 -vf scale=440:-2 -c:v libx264 -c:a aac -y video-out.mp4

    The output is as follows :

    ffmpeg version N-87043-gf0f48884b0-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 6.4.0 (Debian 6.4.0-2) 20170724
     configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libfribidi --enable-libass --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
     libavutil      55. 74.100 / 55. 74.100
     libavcodec     57.103.100 / 57.103.100
     libavformat    57. 77.100 / 57. 77.100
     libavdevice    57.  7.101 / 57.  7.101
     libavfilter     6.100.100 /  6.100.100
     libswscale      4.  7.103 /  4.  7.103
     libswresample   2.  8.100 /  2.  8.100
     libpostproc    54.  6.100 / 54.  6.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       creation_time   : 2017-12-13T19:49:15.000000Z
       encoder         : HandBrake 1.0.7 2017040900
     Duration: 00:00:04.37, start: 0.000000, bitrate: 10080 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1238x1080 [SAR 27:55 DAR 619:1100], 10244 kb/s, 30 fps, 30 tbr, 90k tbn, 180k tbc (default)
       Metadata:
         creation_time   : 2017-12-13T19:49:15.000000Z
         handler_name    : VideoHandler
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 2 kb/s (default)
       Metadata:
         creation_time   : 2017-12-13T19:49:15.000000Z
         handler_name    : Stereo
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
     Stream #0:1 -> #0:1 (aac (native) -> aac (native))
    Press [q] to stop, [?] for help
    [libx264 @ 0x5aef920] using SAR=1215/2474
    [libx264 @ 0x5aef920] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 0x5aef920] profile High, level 2.2
    [libx264 @ 0x5aef920] 264 - core 152 r19 ba24899 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - 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 'video-out.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf57.77.100
       Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 440x384 [SAR 7428:15125 DAR 619:1100], q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
       Metadata:
         creation_time   : 2017-12-13T19:49:15.000000Z
         handler_name    : VideoHandler
         encoder         : Lavc57.103.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
       Metadata:
         creation_time   : 2017-12-13T19:49:15.000000Z
         handler_name    : Stereo
         encoder         : Lavc57.103.100 aac
    frame=  121 fps=0.0 q=29.0 size=       0kB time=00:00:04.33 bitrate=   0.1kbits/s speed=8.65x    
    frame=  129 fps=0.0 q=-1.0 Lsize=     255kB time=00:00:04.37 bitrate= 478.0kbits/s speed=6.81x    
    video:248kB audio:1kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.344491%
    [libx264 @ 0x5aef920] frame I:1     Avg QP:22.07  size:  5065
    [libx264 @ 0x5aef920] frame P:52    Avg QP:23.68  size:  4248
    [libx264 @ 0x5aef920] frame B:76    Avg QP:24.30  size:   361
    [libx264 @ 0x5aef920] consecutive B-frames: 12.4% 20.2% 20.9% 46.5%
    [libx264 @ 0x5aef920] mb I  I16..4: 13.1% 81.7%  5.2%
    [libx264 @ 0x5aef920] mb P  I16..4:  2.1%  5.2%  1.5%  P16..4: 36.4% 12.2%  8.2%  0.0%  0.0%    skip:34.4%
    [libx264 @ 0x5aef920] mb B  I16..4:  0.2%  0.2%  0.1%  B16..8: 16.3%  1.3%  0.2%  direct: 0.5%  skip:81.2%  L0:42.2% L1:52.1% BI: 5.8%
    [libx264 @ 0x5aef920] 8x8 transform intra:62.0% inter:70.3%
    [libx264 @ 0x5aef920] coded y,uvDC,uvAC intra: 52.3% 45.2% 20.0% inter: 13.3% 10.0% 2.6%
    [libx264 @ 0x5aef920] i16 v,h,dc,p: 17% 48% 11% 24%
    [libx264 @ 0x5aef920] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  8% 35% 23%  5%  3%  2%  6%  3% 14%
    [libx264 @ 0x5aef920] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu:  8% 29% 16%  6%  7%  4% 12%  4% 14%
    [libx264 @ 0x5aef920] i8c dc,h,v,p: 64% 26%  7%  2%
    [libx264 @ 0x5aef920] Weighted P-Frames: Y:32.7% UV:5.8%
    [libx264 @ 0x5aef920] ref P L0: 55.7% 22.1% 15.8%  5.8%  0.7%
    [libx264 @ 0x5aef920] ref B L0: 77.8% 15.9%  6.3%
    [libx264 @ 0x5aef920] ref B L1: 97.6%  2.4%
    [libx264 @ 0x5aef920] kb/s:471.40
    [aac @ 0x5b7e180] Qavg: 65536.000

    I did some searching and learned this may be an issue scaling with libx264 codec and the input width being an odd number ? If so, is there a workaround so get the video to scale to the specified size ? Thank you.

  • ffmpeg video won't play in certain players

    25 janvier 2021, par Thomas Tiotto

    I'm generating a video in /folder/ from a stack of images in /folder/tmp/ using the following command :

    


     ffmpeg -pattern_type glob -i 'folder/tmp/*.png' -c:v libx264 -preset veryslow -crf 17 -tune stillimage -y -pix_fmt yuv420p folder/weight_evolution.mp4


    


    but my video won't play in, for example, QuickTime ("The file isn’t compatible with QuickTime Player.") and even sending it in Telegram gives really strange results. The video plays fine in IINA and VLC.

    


    As you can see, this is what is encoded by Telegram :

    


    Telegram encoding

    


    and this is what the video should look like :

    


    Original video

    


    The output of the command is :

    


    ffmpeg -pattern_type glob -i 'tmp/*.png' -c:v libx264 -preset veryslow -crf 17 -tune stillimage -y -pix_fmt yuv420p weight_evolution.mp4
    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_7 --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, image2, from 'tmp/*.png':
      Duration: 00:00:10.28, start: 0.000000, bitrate: N/A
        Stream #0:0: Video: png, rgba(pc), 1280x720 [SAR 3937:3937 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 25 tbc
    Stream mapping:
      Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    [libx264 @ 0x7f804c009400] using SAR=1/1
    [libx264 @ 0x7f804c009400] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 0x7f804c009400] profile High, level 5.0, 4:2:0, 8-bit
    [libx264 @ 0x7f804c009400] 264 - core 161 r3027 4121277 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=1 ref=16 deblock=1:-3:-3 analyse=0x3:0x133 me=umh subme=10 psy=1 psy_rd=2.00:0.70 mixed_ref=1 me_range=24 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-4 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=8 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=60 rc=crf mbtree=1 crf=17.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.20
    Output #0, mp4, to 'weight_evolution.mp4':
      Metadata:
        encoder         : Lavf58.45.100
        Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc
        Metadata:
          encoder         : Lavc58.91.100 libx264
        Side data:
          cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
    frame=   72 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   frame=  126 fps=110 q=22.0 size=       0kB time=00:00:01.68 bitrate=   0.2kbits/frame=  185 fps=112 q=22.0 size=       0kB time=00:00:04.04 bitrate=   0.1kbits/frame=  245 fps=113 q=22.0 size=       0kB time=00:00:06.44 bitrate=   0.1kbits/frame=  257 fps= 97 q=-1.0 Lsize=     209kB time=00:00:10.16 bitrate= 168.7kbits/s speed=3.83x
    video:206kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.448294%
    [libx264 @ 0x7f804c009400] frame I:2     Avg QP: 4.16  size: 92234
    [libx264 @ 0x7f804c009400] frame P:36    Avg QP:24.07  size:   156
    [libx264 @ 0x7f804c009400] frame B:219   Avg QP:26.50  size:    93
    [libx264 @ 0x7f804c009400] consecutive B-frames:  0.8%  0.0%  0.0%  1.6%  9.7% 23.3% 10.9% 18.7% 35.0%
    [libx264 @ 0x7f804c009400] mb I  I16..4: 87.5%  4.4%  8.2%
    [libx264 @ 0x7f804c009400] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.8%  0.0%  0.0%  0.0%  0.0%    skip:99.1%
    [libx264 @ 0x7f804c009400] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.3%  0.0%  0.0%  direct: 0.0%  skip:99.7%  L0:71.2% L1:28.4% BI: 0.4%
    [libx264 @ 0x7f804c009400] 8x8 transform intra:4.7% inter:22.5%
    [libx264 @ 0x7f804c009400] direct mvs  spatial:96.8% temporal:3.2%
    [libx264 @ 0x7f804c009400] coded y,uvDC,uvAC intra: 14.7% 14.6% 14.6% inter: 0.0% 0.0% 0.0%
    [libx264 @ 0x7f804c009400] i16 v,h,dc,p: 89%  2%  9%  0%
    [libx264 @ 0x7f804c009400] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 40% 31%  1%  1%  1%  1%  1%  2%
    [libx264 @ 0x7f804c009400] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 41% 27% 22%  2%  2%  2%  1%  2%  2%
    [libx264 @ 0x7f804c009400] i8c dc,h,v,p: 91%  4%  3%  2%
    [libx264 @ 0x7f804c009400] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 0x7f804c009400] ref P L0: 89.1%  0.5%  4.8%  1.1%  1.5%  0.7%  0.2%  0.9%  0.2%  0.1%  0.1%  0.3%  0.1%  0.2%  0.1%  0.1%
    [libx264 @ 0x7f804c009400] ref B L0: 37.4% 17.9% 11.7%  7.0%  5.5%  5.5%  4.4%  2.0%  1.5%  1.6%  1.2%  1.9%  1.5%  0.7%  0.1%
    [libx264 @ 0x7f804c009400] ref B L1: 92.0%  8.0%
    [libx264 @ 0x7f804c009400] kb/s:163.83


    


  • FFMPEG convert .mpg video to .mp4 without lose quality

    10 août 2022, par reterius

    How can i convert video .mpg to .mp4 wihtout love quality. My codes below :

    



     $INCPATH       = dirname(__FILE__).'/';

 $id = 99999;
 $ext = "MPG" ;

  $input_dir = $INCPATH."../img/videos/".$id.".".$ext ;   
  $output_dir2 = $INCPATH."../img/videos/".$id.".mp4" ;

    $q = '/usr/bin/ffmpeg -i '.$input_dir.' -c:v libx264 -c:a libfaac -r     30 '.$output_dir2." 2>&1" ;

    $out = shell_exec($q) ;
    $input_dir  = $output_dir2 ;

     echo var_dump($out);


    



    Response that :

    



                string(5735) "ffmpeg version N-76539-g480bad7-syslint Copyright (c) 2000-2015 the FFmpeg developers
              built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-16)
              configuration: --prefix=/usr/local/cpffmpeg --enable-shared --enable-nonfree --enable-gpl --enable-pthreads --enable-libopencore-amrnb --enable-decoder=liba52 --enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --extra-cflags=-I/usr/local/cpffmpeg/include/ --extra-ldflags=-L/usr/local/cpffmpeg/lib --enable-version3 --extra-version=syslint
              libavutil      55.  5.100 / 55.  5.100
              libavcodec     57. 15.100 / 57. 15.100
              libavformat    57. 14.100 / 57. 14.100
              libavdevice    57.  0.100 / 57.  0.100
              libavfilter     6. 15.100 /  6. 15.100
              libswscale      4.  0.100 /  4.  0.100
              libswresample   2.  0.101 /  2.  0.101
              libpostproc    54.  0.100 / 54.  0.100
            Input #0, mpeg, from '/home/imcajans/public_html/kzmk/../img/videos/99999.MPG':
              Duration: 00:00:08.16, start: 0.116600, bitrate: 2955 kb/s
                Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 9100 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
                Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
            [libx264 @ 0x161e820] using SAR=64/45
            [libx264 @ 0x161e820] using cpu capabilities: none!
            [libx264 @ 0x161e820] profile High, level 3.1
            [libx264 @ 0x161e820] 264 - core 148 r2638 7599210 - 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=18 lookahead_threads=3 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 '/home/imcajans/public_html/kzmk/../img/videos/99999.mp4':
              Metadata:
                encoder         : Lavf57.14.100
                Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=-1--1, 30 fps, 15360 tbn, 30 tbc
                Metadata:
                  encoder         : Lavc57.15.100 libx264
                Stream #0:1: Audio: aac (libfaac) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, s16, 128 kb/s
                Metadata:
                  encoder         : Lavc57.15.100 libfaac
            Stream mapping:
              Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (libx264))
              Stream #0:1 -> #0:1 (ac3 (native) -> aac (libfaac))
            Press [q] to stop, [?] for help
            frame=   48 fps=0.0 q=0.0 size=       0kB time=00:00:01.19 bitrate=   0.3kbits/s dup=8 drop=0    
            frame=   66 fps= 58 q=29.0 size=      20kB time=00:00:01.83 bitrate=  87.2kbits/s dup=11 drop=0    
            frame=   77 fps= 43 q=29.0 size=      51kB time=00:00:02.17 bitrate= 190.3kbits/s dup=13 drop=0    
            frame=   89 fps= 38 q=29.0 size=      86kB time=00:00:02.60 bitrate= 272.2kbits/s dup=15 drop=0    
            frame=  101 fps= 34 q=29.0 size=     124kB time=00:00:02.98 bitrate= 340.6kbits/s dup=17 drop=0    
            frame=  114 fps= 32 q=29.0 size=     166kB time=00:00:03.39 bitrate= 400.3kbits/s dup=19 drop=0    
            frame=  126 fps= 31 q=29.0 size=     201kB time=00:00:03.84 bitrate= 428.3kbits/s dup=21 drop=0    
            frame=  137 fps= 30 q=29.0 size=     236kB time=00:00:04.20 bitrate= 459.6kbits/s dup=23 drop=0    
            frame=  151 fps= 29 q=29.0 size=     275kB time=00:00:04.65 bitrate= 484.2kbits/s dup=25 drop=0    
            frame=  165 fps= 29 q=29.0 size=     316kB time=00:00:05.12 bitrate= 505.4kbits/s dup=27 drop=0    
            frame=  177 fps= 28 q=29.0 size=     350kB time=00:00:05.50 bitrate= 521.3kbits/s dup=29 drop=0    
            frame=  188 fps= 27 q=29.0 size=     387kB time=00:00:05.93 bitrate= 534.6kbits/s dup=31 drop=0    
            frame=  198 fps= 27 q=29.0 size=     419kB time=00:00:06.25 bitrate= 548.7kbits/s dup=33 drop=0    
            frame=  212 fps= 27 q=29.0 size=     461kB time=00:00:06.72 bitrate= 562.4kbits/s dup=35 drop=0    
            frame=  223 fps= 26 q=29.0 size=     495kB time=00:00:07.04 bitrate= 576.6kbits/s dup=37 drop=0    
            frame=  240 fps= 26 q=29.0 size=     574kB time=00:00:07.59 bitrate= 618.9kbits/s dup=40 drop=0    
            frame=  245 fps= 20 q=-1.0 Lsize=     834kB time=00:00:08.17 bitrate= 835.9kbits/s dup=41 drop=0    
            video:696kB audio:128kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.134396%
            [libx264 @ 0x161e820] frame I:2     Avg QP:22.05  size: 10777
            [libx264 @ 0x161e820] frame P:187   Avg QP:22.67  size:  3323
            [libx264 @ 0x161e820] frame B:56    Avg QP:23.98  size:  1242
            [libx264 @ 0x161e820] consecutive B-frames: 54.7% 44.1%  1.2%  0.0%
            [libx264 @ 0x161e820] mb I  I16..4: 33.5% 63.9%  2.5%
            [libx264 @ 0x161e820] mb P  I16..4:  1.9%  1.8%  0.0%  P16..4: 46.9%  4.7%  6.4%  0.0%  0.0%    skip:38.3%
            [libx264 @ 0x161e820] mb B  I16..4:  0.1%  0.1%  0.0%  B16..8: 34.4%  0.5%  0.0%  direct: 3.1%  skip:61.8%  L0:41.1% L1:57.8% BI: 1.1%
            [libx264 @ 0x161e820] 8x8 transform intra:51.1% inter:96.1%
            [libx264 @ 0x161e820] coded y,uvDC,uvAC intra: 25.1% 86.2% 30.4% inter: 9.5% 38.5% 1.1%
            [libx264 @ 0x161e820] i16 v,h,dc,p: 41%  5% 11% 43%
            [libx264 @ 0x161e820] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36%  6% 48%  1%  1%  3%  1%  3%  1%
            [libx264 @ 0x161e820] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 54% 10% 15%  3%  3%  8%  2%  5%  2%
            [libx264 @ 0x161e820] i8c dc,h,v,p: 66% 12% 18%  3%
            [libx264 @ 0x161e820] Weighted P-Frames: Y:0.0% UV:0.0%
            [libx264 @ 0x161e820] ref P L0: 66.7%  5.8% 17.5% 10.0%
            [libx264 @ 0x161e820] ref B L0: 81.1% 18.9%  0.0%
            [libx264 @ 0x161e820] ref B L1: 99.5%  0.5%
            [libx264 @ 0x161e820] kb/s:697.87
            "


    



    And my video which has .mpg extention its best quality : https://imcajans.com/img/videos/99999.mpg

    



    And my video which coverted from .mpg to .mp4 its bad quality : https://imcajans.com/img/videos/99999.mp4