[FFmpeg-user] Regarding video compression

Shailesh kumar Dangi shaileshkumar.dangi at maventus.com
Tue Oct 5 13:55:59 EEST 2021


Please find an attachment as a command with the console.

On Tue, Oct 5, 2021 at 4:19 PM Michael Koch <astroelectronic at t-online.de>
wrote:

> Am 05.10.2021 um 12:39 schrieb Shailesh kumar Dangi via ffmpeg-user:
> > Hi,
> >
> > When I use to stop rotation.  -noautorotate. it is working fine in my
> local
> > system, But when I upload the code on the Linux server after compression
> > video itself gets to rotate.
> >
> > Original Video-
> > https://maventus-us-east.s3.amazonaws.com/videos/6155981eac83d208.mp4
> >
> > Compressed Video -
> > https://maventus-us-east.s3.amazonaws.com/videos/615c22997dd6a208.mp4
> >
> > I don't want to be rotated after compression and it should look the same
> as
> > the original one.
>
> You should always show the command line and the console output when
> asking here.
>
> Michael
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>
-------------- next part --------------
ffmpeg -y -noautorotate -i /var/www/laravel_5_8/public/video/6155981eac83d208.mov -b:v 4.5M -map_metadata 0:s:0 -c:v libx264 -preset superfast -tune film -ac 2 -c:a aac -maxrate 4M -bufsize 3M -strict -2 -f mp4 test1.mp4 2<&1



ffmpeg version 2.8.17-0ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.12) 20160609
  configuration: --prefix=/usr --extra-version=0ubuntu0.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 --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-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 '/var/www/laravel_5_8/public/video/6155981eac83d208.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 0
    compatible_brands: qt  
    creation_time   : 2021-09-28 05:35:49
  Duration: 00:00:11.17, start: 0.000000, bitrate: 15137 kb/s
    Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 85 kb/s (default)
    Metadata:
      creation_time   : 2021-09-28 05:35:49
      handler_name    : Core Media Data Handler
    Stream #0:1(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 15008 kb/s, 30 fps, 30 tbr, 600 tbn, 1200 tbc (default)
    Metadata:
      rotate          : 90
      creation_time   : 2021-09-28 05:35:49
      handler_name    : Core Media Data Handler
      encoder         : H.264
    Side data:
      displaymatrix: rotation of -90.00 degrees
    Stream #0:2(und): Data: none (mebx / 0x7862656D), 0 kb/s (default)
    Metadata:
      creation_time   : 2021-09-28 05:35:49
      handler_name    : Core Media Data Handler
    Stream #0:3(und): Data: none (mebx / 0x7862656D), 0 kb/s (default)
    Metadata:
      creation_time   : 2021-09-28 05:35:49
      handler_name    : Core Media Data Handler
    Stream #0:4(und): Data: none (mebx / 0x7862656D), 34 kb/s (default)
    Metadata:
      creation_time   : 2021-09-28 05:35:49
      handler_name    : Core Media Data Handler
[libx264 @ 0x17a36c0] max bitrate less than average bitrate, assuming CBR
[libx264 @ 0x17a36c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x17a36c0] profile High, level 4.0
[libx264 @ 0x17a36c0] 264 - core 148 r2643 5c65704 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:-1:-1 analyse=0x3:0x3 me=dia subme=1 psy=1 psy_rd=1.00:0.15 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=0 rc=cbr mbtree=0 bitrate=4000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=4000 vbv_bufsize=3000 nal_hrd=none filler=0 ip_ratio=1.40 pb_ratio=1.30 aq=1:1.00
Output #0, mp4, to 'test1.mp4':
  Metadata:
    creation_time   : 2021-09-28 05:35:49
    handler_name    : Core Media Data Handler
    encoder         : Lavf56.40.101
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1920x1080, q=-1--1, 4500 kb/s, 30 fps, 15360 tbn, 30 tbc (default)
    Metadata:
      encoder         : Lavc56.60.100 libx264
    Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      encoder         : Lavc56.60.100 aac
Stream mapping:
  Stream #0:1 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:0 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
frame=   12 fps=0.0 q=0.0 size=       0kB time=00:00:01.48 bitrate=   0.3kbits/sframe=   19 fps= 18 q=34.0 size=     177kB time=00:00:01.71 bitrate= 845.4kbits/frame=   29 fps= 19 q=32.0 size=     296kB time=00:00:02.06 bitrate=1173.7kbits/frame=   36 fps= 17 q=34.0 size=     446kB time=00:00:02.29 bitrate=1587.7kbits/frame=   48 fps= 18 q=31.0 size=     594kB time=00:00:02.69 bitrate=1805.5kbits/frame=   57 fps= 18 q=30.0 size=     712kB time=00:00:02.99 bitrate=1947.9kbits/frame=   65 fps= 18 q=31.0 size=     836kB time=00:00:03.25 bitrate=2107.1kbits/frame=   74 fps= 17 q=30.0 size=    1061kB time=00:00:03.55 bitrate=2446.7kbits/frame=   83 fps= 17 q=31.0 size=    1243kB time=00:00:03.85 bitrate=2642.6kbits/frame=   92 fps= 17 q=32.0 size=    1443kB time=00:00:04.15 bitrate=2844.7kbits/frame=  104 fps= 18 q=31.0 size=    1631kB time=00:00:04.55 bitrate=2934.9kbits/frame=  113 fps= 18 q=31.0 size=    1765kB time=00:00:04.85 bitrate=2978.9kbits/frame=  125 fps= 18 q=34.0 size=    1988kB time=00:00:05.24 bitrate=3103.5kbits/frame=  135 fps= 18 q=34.0 size=    2173kB time=00:00:05.59 bitrate=3180.8kbits/frame=  147 fps= 18 q=36.0 size=    2404kB time=00:00:05.99 bitrate=3287.6kbits/frame=  157 fps= 18 q=35.0 size=    2553kB time=00:00:06.31 bitrate=3311.4kbits/frame=  165 fps= 18 q=35.0 size=    2681kB time=00:00:06.59 bitrate=3331.0kbits/frame=  177 fps= 18 q=35.0 size=    2842kB time=00:00:06.98 bitrate=3331.3kbits/frame=  188 fps= 18 q=35.0 size=    2981kB time=00:00:07.36 bitrate=3317.8kbits/frame=  197 fps= 18 q=33.0 size=    3135kB time=00:00:07.66 bitrate=3351.2kbits/frame=  208 fps= 18 q=33.0 size=    3329kB time=00:00:08.01 bitrate=3404.3kbits/frame=  219 fps= 18 q=35.0 size=    3526kB time=00:00:08.38 bitrate=3445.8kbits/frame=  230 fps= 18 q=35.0 size=    3666kB time=00:00:08.75 bitrate=3431.0kbits/frame=  238 fps= 18 q=35.0 size=    3804kB time=00:00:09.00 bitrate=3459.3kbits/frame=  250 fps= 18 q=32.0 size=    3964kB time=00:00:09.42 bitrate=3444.6kbits/frame=  257 fps= 18 q=32.0 size=    4090kB time=00:00:09.65 bitrate=3468.2kbits/frame=  266 fps= 18 q=32.0 size=    4309kB time=00:00:09.96 bitrate=3544.0kbits/frame=  275 fps= 18 q=32.0 size=    4504kB time=00:00:10.26 bitrate=3595.0kbits/frame=  285 fps= 18 q=32.0 size=    4666kB time=00:00:10.58 bitrate=3610.0kbits/frame=  296 fps= 18 q=34.0 size=    4834kB time=00:00:10.95 bitrate=3613.4kbits/frame=  306 fps= 18 q=33.0 size=    4942kB time=00:00:11.16 bitrate=3625.0kbits/frame=  319 fps= 18 q=35.0 size=    5141kB time=00:00:11.16 bitrate=3770.6kbits/frame=  330 fps= 18 q=34.0 size=    5301kB time=00:00:11.16 bitrate=3887.9kbits/frame=  335 fps= 18 q=-1.0 Lsize=    5523kB time=00:00:11.21 bitrate=4034.4kbits/s dup=1 drop=0    
video:5303kB audio:208kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.225301%
[libx264 @ 0x17a36c0] frame I:2     Avg QP:30.62  size: 52922
[libx264 @ 0x17a36c0] frame P:190   Avg QP:31.75  size: 22441
[libx264 @ 0x17a36c0] frame B:143   Avg QP:34.48  size:  7410
[libx264 @ 0x17a36c0] consecutive B-frames: 32.2% 20.3% 36.7% 10.7%
[libx264 @ 0x17a36c0] mb I  I16..4:  9.2% 79.8% 11.0%
[libx264 @ 0x17a36c0] mb P  I16..4:  2.8%  7.6%  0.5%  P16..4: 56.6%  0.0%  0.0%  0.0%  0.0%    skip:32.4%
[libx264 @ 0x17a36c0] mb B  I16..4:  0.5%  0.5%  0.0%  B16..8: 27.7%  0.0%  0.0%  direct: 5.0%  skip:66.3%  L0:30.2% L1:63.8% BI: 5.9%
[libx264 @ 0x17a36c0] 8x8 transform intra:69.4% inter:46.7%
[libx264 @ 0x17a36c0] coded y,uvDC,uvAC intra: 37.9% 33.5% 4.5% inter: 8.2% 9.0% 0.0%
[libx264 @ 0x17a36c0] i16 v,h,dc,p: 36% 25% 26% 13%
[libx264 @ 0x17a36c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 15% 22%  8%  6%  8%  7%  7%  9%
[libx264 @ 0x17a36c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 18% 23%  9%  5%  6%  5%  6%  6%
[libx264 @ 0x17a36c0] i8c dc,h,v,p: 43% 23% 24% 10%
[libx264 @ 0x17a36c0] Weighted P-Frames: Y:6.3% UV:1.6%
[libx264 @ 0x17a36c0] kb/s:3889.61


More information about the ffmpeg-user mailing list