[FFmpeg-trac] #8329(ffmpeg:new): Rotation metadata not overridden when the input video has rotation metadata set to 180
FFmpeg
trac at avcodec.org
Wed Oct 23 20:20:34 EEST 2019
#8329: Rotation metadata not overridden when the input video has rotation metadata
set to 180
-------------------------------------+----------------------------------
Reporter: hungryTux | Owner:
Type: defect | Status: new
Priority: normal | Component: ffmpeg
Version: unspecified | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+----------------------------------
Comment (by hungryTux):
It is also reproducible with the latest version. I made use of the Mac OS
binary, since I do not have access to a Windows machine.
Complete logs: https://paste.ee/p/ds9MM
ffmpeg version:
{{{
%./ffmpeg -version
ffmpeg version git-2019-10-23-1f327f5 Copyright (c) 2000-2019 the FFmpeg
developers
built with Apple clang version 11.0.0 (clang-1100.0.33.8)
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-
fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-
libdav1d --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-appkit
--enable-avfoundation --enable-coreimage --enable-audiotoolbox
libavutil 56. 35.101 / 56. 35.101
libavcodec 58. 59.102 / 58. 59.102
libavformat 58. 33.100 / 58. 33.100
libavdevice 58. 9.100 / 58. 9.100
libavfilter 7. 64.100 / 7. 64.100
libswscale 5. 6.100 / 5. 6.100
libswresample 3. 6.100 / 3. 6.100
libpostproc 55. 6.100 / 55. 6.100
}}}
ffmpeg command:
{{{
%./ffmpeg -loglevel debug -y -noautorotate -i 2019-02-11_16-51-38_000.MOV
-threads 0 -map_chapters -1 -f mp4 -movflags faststart -filter_complex
'[0:v:0]yadif=deint=interlaced,scale=1280:720:flags=bicubic,setdar=1.7778[v0];[v0]concat=n=1:v=1:a=0[cat_v]'
-an -sn -map [cat_v] -vcodec libx264 -profile:v main -level 3.1 -maxrate
2048k -bufsize 20480k -preset medium -crf 22 -x264opts ref=3:keyint=90 -r
24.0 -vsync 1 -metadata:s:v rotate=0 -pix_fmt yuv420p -metadata:s:v
language=eng test-mov.mp4
}}}
ffprobe output on the transcoded file (rotation metadata copied over):
{{{
%./ffprobe -v quiet -print_format json -show_format -show_streams test-
mov.mp4
{
"streams": [
{
"index": 0,
"codec_name": "h264",
"codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part
10",
"profile": "Main",
"codec_type": "video",
"codec_time_base": "1/48",
"codec_tag_string": "avc1",
"codec_tag": "0x31637661",
"width": 1280,
"height": 720,
"coded_width": 1280,
"coded_height": 720,
"has_b_frames": 2,
"sample_aspect_ratio": "1:1",
"display_aspect_ratio": "16:9",
"pix_fmt": "yuv420p",
"level": 31,
"chroma_location": "left",
"refs": 1,
"is_avc": "true",
"nal_length_size": "4",
"r_frame_rate": "24/1",
"avg_frame_rate": "24/1",
"time_base": "1/12288",
"start_pts": 0,
"start_time": "0.000000",
"duration_ts": 432640,
"duration": "35.208333",
"bit_rate": "2271865",
"bits_per_raw_sample": "8",
"nb_frames": "845",
"disposition": {
"default": 1,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0,
"timed_thumbnails": 0
},
"tags": {
"rotate": "180",
"language": "eng",
"handler_name": "VideoHandler"
},
"side_data_list": [
{
"side_data_type": "Display Matrix",
"displaymatrix": "\n00000000: -65536 0
0\n00000001: 0 -65536 0\n00000002: 0
0 1073741824\n",
"rotation": -180
}
]
}
],
"format": {
"filename": "test-mov.mp4",
"nb_streams": 1,
"nb_programs": 0,
"format_name": "mov,mp4,m4a,3gp,3g2,mj2",
"format_long_name": "QuickTime / MOV",
"start_time": "0.000000",
"duration": "35.209000",
"size": "10009672",
"bit_rate": "2274343",
"probe_score": 100,
"tags": {
"major_brand": "isom",
"minor_version": "512",
"compatible_brands": "isomiso2avc1mp41",
"encoder": "Lavf58.33.100"
}
}
}
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8329#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list