[FFmpeg-user] Autorotation issues - portrait orientation screen
Andrey Goreev
aegoreev at gmail.com
Mon Jan 8 16:52:53 EET 2018
Hello Davood,
Thanks for the tip. I will give it a try.
Best regards,
On Mon, Jan 8, 2018 at 7:51 AM, Andrey Goreev <aegoreev at gmail.com> wrote:
> Hello,
>
> Here is the terminal output:
>
> ffmpeg -y -i /mnt/data/Pictures/2017/2017-11/2017-11-25/20171125-174553-174442.mp4
> -f mp4 -c:a libfdk_aac -b:a 192k -c:v libx264 -crf 23 -preset slow
> -map_metadata 0 /mnt/data/Pictures/2017/2017-
> 11/2017-11-25/20171125-174553-174442_x264.mp4
>
> ffmpeg version 3.4.1 Copyright (c) 2000-2017 the FFmpeg developers
> built with gcc 7 (SUSE Linux)
> configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64
> --incdir=/usr/include/ffmpeg --extra-cflags='-fmessage-length=0
> -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2
> -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables
> -fstack-clash-protection -g' --optflags='-fmessage-length=0
> -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2
> -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables
> -fstack-clash-protection -g' --disable-htmlpages --enable-pic
> --disable-stripping --enable-shared --disable-static --enable-gpl
> --disable-openssl --enable-avresample --enable-libcdio --enable-gnutls
> --enable-ladspa --enable-libass --enable-libbluray --enable-libcelt
> --enable-libcdio --enable-libdc1394 --enable-libfreetype --enable-libgsm
> --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse
> --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvorbis
> --enable-libvpx --enable-libwebp --enable-vaapi --enable-vdpau
> --enable-libfdk_aac --enable-nonfree --enable-libx264 --enable-libx265
> --enable-libxvid
> libavutil 55. 78.100 / 55. 78.100
> libavcodec 57.107.100 / 57.107.100
> libavformat 57. 83.100 / 57. 83.100
> libavdevice 57. 10.100 / 57. 10.100
> libavfilter 6.107.100 / 6.107.100
> libavresample 3. 7. 0 / 3. 7. 0
> libswscale 4. 8.100 / 4. 8.100
> libswresample 2. 9.100 / 2. 9.100
> libpostproc 54. 7.100 / 54. 7.100
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/mnt/data/Pictures/2017/2017-
> 11/2017-11-25/20171125-174553-174442.mp4':
> Metadata:
> major_brand : mp42
> minor_version : 0
> compatible_brands: isommp42
> creation_time : 2017-11-26T00:45:53.000000Z
> location : (hidden)
> location-eng : (hidden)
> com.android.version: 7.0
> Duration: 00:00:50.89, start: 0.000000, bitrate: 17267 kb/s
> Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv,
> bt709), 1920x1080, 17007 kb/s, SAR 1:1 DAR 16:9, 30.01 fps, 30 tbr, 90k
> tbn, 180k tbc (default)
> Metadata:
>
> rotate : 90
>
> creation_time : 2017-11-26T00:45:53.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, 255 kb/s (default)
>
> Metadata:
>
> creation_time : 2017-11-26T00:45:53.000000Z
>
> handler_name : SoundHandle
>
> Stream mapping:
>
> Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
>
> Stream #0:1 -> #0:1 (aac (native) -> aac (libfdk_aac))
>
> Press [q] to stop, [?] for help
>
> [libx264 @ 0x561dcf506060] using SAR=1/1
>
> [libx264 @ 0x561dcf506060] using cpu capabilities: MMX2 SSE2Fast SSSE3
> SSE4.2 AVX
> [libx264 @ 0x561dcf506060] profile High, level
> 5.0
> [libx264 @ 0x561dcf506060] 264 - core 148 - H.264/MPEG-4 AVC codec -
> Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1
> ref=5 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=8 psy=1 psy_rd=1.00:0.00
> mixed_ref=1 me_range=16 chroma_me=1 trellis=2 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=3
> weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40
> intra_refresh=0 rc_lookahead=50 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 '/mnt/data/Pictures/2017/2017-
> 11/2017-11-25/20171125-174553-174442_x264.mp4':
>
> Metadata:
>
> major_brand : mp42
> minor_version : 0
> compatible_brands: isommp42
> creation_time : 2017-11-26T00:45:53.000000Z
> location : (hidden)
> location-eng : (hidden)
> com.android.version: 7.0
> encoder : Lavf57.83.100
> Stream #0:0(eng): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p,
> 1080x1920 [SAR 1:1 DAR 9:16], q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
> Metadata:
> encoder : Lavc57.107.100 libx264
> creation_time : 2017-11-26T00:45:53.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: aac (libfdk_aac) (mp4a / 0x6134706D), 48000
> Hz, stereo, s16, 192 kb/s (default)
> Metadata:
> creation_time : 2017-11-26T00:45:53.000000Z
> handler_name : SoundHandle
> encoder : Lavc57.107.100 libfdk_aac
>
>
> Best regards,
>
> On Sun, Jan 7, 2018 at 5:33 PM, Davood Falahati <falahati.davood at gmail.com
> > wrote:
>
>> >> So what I want is:
>> >>Turn off the autorotation for files with
>>
>> >>rotation flag
>>
>>
>> It's been a long time since ffmpeg automatically applies display_matrix
>> side data to the video stream. Have you tried -noautorotate option in your
>> script?
>>
>>
>> Thank you,
>> Davood Falahati
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>
>
>
More information about the ffmpeg-user
mailing list