Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#5682 closed defect (needs_more_info)

3D HOU/HSBS resolution issue with ffmpeg > 2.8.6

Reported by: .bismarck Owned by:
Priority: normal Component: avformat
Version: unspecified Keywords: regression mkv stereo3d
Cc: fritsch@kodi.tv Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by Carl Eugen Hoyos)

The resolution of 3D HOU/HSBS formats is in all kodi builds with ffmpeg > 2.8.6 on my Intel NUC5CPYH broken. All my mkv container have set the StereoMode flag!

  • 3D-HOU: vertical compressed movie

https://abload.de/thumb/3d_hou_vertical_comprd9jen.png

...
NOTICE: FFmpeg version: 3.0.1
...
INFO: ffmpeg[7F7D597FA700]: Stream #0:0: Video: h264 (High), yuv420p, 1920x1080, SAR 1:2 DAR 8:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
INFO: ffmpeg[7F7D597FA700]: Metadata:
INFO: ffmpeg[7F7D597FA700]: title : 300.Rise.Of.An.Empire.2014.3D.1080p.Bluray.HOU.X264.DL.GER.DTSD-zman
INFO: ffmpeg[7F7D597FA700]: stereo_mode : top_bottom
INFO: ffmpeg[7F7D597FA700]: Side data:
INFO: ffmpeg[7F7D597FA700]: stereo3d: top and bottom
...
DEBUG: StereoscopicsManager: autodetected stereo mode for movie mode top_bottom is: split_horizontal
DEBUG: StereoscopicsManager: stereo mode setting changed to split_horizontal
DEBUG: StereoscopicsManager::ApplyStereoMode: trying to apply stereo mode. Current: off | Target: split_horizontal
DEBUG: StereoscopicsManager: stereo mode changed to split_horizontal
...
DEBUG: CRenderManager::Configure - change configuration. 1920x1080. display: 960x1080. framerate: 23.98. format: VAAPI

  • 3D-HSBS: horizontal compressed movie

https://abload.de/thumb/3d_hsbs_horizontal_coefkq2.png


...
NOTICE: FFmpeg version: 3.0.1
...
INFO: ffmpeg[7F7D3AFF5700]: Stream #0:0: Video: h264 (High), yuv420p, 1920x1080, SAR 2:1 DAR 32:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
INFO: ffmpeg[7F7D3AFF5700]: Metadata:
INFO: ffmpeg[7F7D3AFF5700]: stereo_mode : left_right
INFO: ffmpeg[7F7D3AFF5700]: Side data:
INFO: ffmpeg[7F7D3AFF5700]: stereo3d: side by side
...

DEBUG: CRenderManager::Configure - change configuration. 1920x1080. display: 3840x1080. framerate: 23.98. format: VAAPI

DEBUG: StereoscopicsManager: autodetected stereo mode for movie mode left_right is: split_vertical
DEBUG: StereoscopicsManager: stereo mode setting changed to split_vertical
DEBUG: StereoscopicsManager::ApplyStereoMode: trying to apply stereo mode. Current: off | Target: split_vertical
DEBUG: StereoscopicsManager: stereo mode changed to split_vertical

Same result with FFmpeg version: 3.0.2 and 3.1.0!


Working version:

...
NOTICE: FFmpeg version: 2.8.6
...
INFO: ffmpeg[7FC68D7F2700]: Stream #0:0: Video: h264 (High), yuv420p, 1920x1080, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
INFO: ffmpeg[7FC68D7F2700]: Metadata:
INFO: ffmpeg[7FC68D7F2700]: title : 300.Rise.Of.An.Empire.2014.3D.1080p.Bluray.HOU.X264.DL.GER.DTSD-zman
INFO: ffmpeg[7FC68D7F2700]: stereo_mode : top_bottom
INFO: ffmpeg[7FC68D7F2700]: Side data:
INFO: ffmpeg[7FC68D7F2700]: stereo3d: top and bottom
...
DEBUG: CRenderManager::Configure - change configuration. 1920x1080. display: 1920x1080. framerate: 23.98. format: VAAPI



samples:
3D-HOU sample with StereoMode-Flag
3D-HSBS sample with StereoMode-Flag

http://trac.kodi.tv/ticket/16774

revert febfb49a70e82f5ac46dc7ea34dabd4d56b19b31 - matroskadec: Fix sample_aspect_ratio for stereo matroska content - solved that issue.


.bismarck

Attachments (5)

300_Rise_of_an_Empire_sample_cut.mkv (2.4 MB ) - added by Carl Eugen Hoyos 8 years ago.
The_Art_of_Flight_sample_cut.mkv (2.4 MB ) - added by Carl Eugen Hoyos 8 years ago.
ffmpeg-20160701-181805.log (7.1 KB ) - added by .bismarck 8 years ago.
ffmpeg head with 3D-HOU sample
ffmpeg-20160701-183122.log (7.1 KB ) - added by .bismarck 8 years ago.
ffmpeg head with 3D-HOU sample and revert commit
ffmpeg-20160701-184807.log (7.0 KB ) - added by .bismarck 8 years ago.
ffmpeg head with 3D-HOU sample without StereoMode-flag

Change History (10)

comment:1 by Carl Eugen Hoyos, 8 years ago

Component: ffmpegundetermined
Description: modified (diff)
Version: 3.0.2unspecified

Is the issue reproducible with ffmpeg (the application)?
If yes, please test current FFmpeg git head and provide a simple command line that allows to reproduce the issue together with the complete, uncut console output to make this a valid ticket.

From a quick look, reverting the offending commit seems wrong to me.

comment:2 by Carl Eugen Hoyos, 8 years ago

Component: undeterminedavformat
Keywords: regression mkv added

by Carl Eugen Hoyos, 8 years ago

by Carl Eugen Hoyos, 8 years ago

comment:3 by Hendrik, 8 years ago

FFmpeg seems to behave correctly.

For example:
When you have H-SBS 1920x1080, you need to double its width to restore the original aspect ratio, so a SAR of 2:1 and a final output image of 3840x1080 would seem correct to me, as you need to stretch the H-SBS image to Full-SBS.

Maybe interpretation/handling on Kodis side needs to be updated, now that FFmpeg behaves properly.

Last edited 8 years ago by Hendrik (previous) (diff)

by .bismarck, 8 years ago

Attachment: ffmpeg-20160701-181805.log added

ffmpeg head with 3D-HOU sample

by .bismarck, 8 years ago

Attachment: ffmpeg-20160701-183122.log added

ffmpeg head with 3D-HOU sample and revert commit

by .bismarck, 8 years ago

Attachment: ffmpeg-20160701-184807.log added

ffmpeg head with 3D-HOU sample without StereoMode-flag

comment:4 by Carl Eugen Hoyos, 8 years ago

Resolution: needs_more_info
Status: newclosed

The command lines you attached do not produce output files, they therefore cannot be used to reproduce an issue.
Afaict, ffmpeg would produce incorrect output files if the mentioned commit gets reverted, I therefore don't think there is a bug.

comment:5 by Carl Eugen Hoyos, 7 years ago

Keywords: stereo3d added
Note: See TracTickets for help on using tickets.