2015-06-18, 12:42
I have a problem adjusting the video size inside video/CDVDDecoder::OpenStream().
In Helix the hints.aspect was normally set to a value giving me the possibility stretching the video by setting iDisplayWidth / height to get it visibly correct.
In Kodi Isengard I normally get the aspect value 0 and have no possibility to adjust the settings.
Regarding CDVDCodecAmlogic.cpp it is line 191ff:
For reproduction:
- TVHeadEnd
- PVR Addon
- Choose a german SD Channel (WDR3 / SAT1 or similar)
- My screen resolution: 1080p
- Latest release from Master with Odroid XU3 specific MFC Decoder for Video
Has there be anything changed? I could try to figure the problem out but then it would be great if somebody can explain in some words the internal workflow (files / methods would be optimal).
Currently this happens:
- Video is opened
- DVDDecoder say that its not decodable because hints are invalid (first frames do not contain enough information)
- FFMPEG Decoding is activated until the necessary information are present (width / height / fps, (aspect ratio?))
- DVDDecoder is opend again with success (hint are valid, but unfortunately aspect is 0)
Thanks for your support and the great kodi application!
In Helix the hints.aspect was normally set to a value giving me the possibility stretching the video by setting iDisplayWidth / height to get it visibly correct.
In Kodi Isengard I normally get the aspect value 0 and have no possibility to adjust the settings.
Regarding CDVDCodecAmlogic.cpp it is line 191ff:
Code:
if (m_hints.aspect > 0.0 && !m_hints.forced_aspect)
{
m_videobuffer.iDisplayWidth = ((int)lrint(m_videobuffer.iHeight * m_hints.aspect)) & -3;
if (m_videobuffer.iDisplayWidth > m_videobuffer.iWidth)
{
m_videobuffer.iDisplayWidth = m_videobuffer.iWidth;
m_videobuffer.iDisplayHeight = ((int)lrint(m_videobuffer.iWidth / m_hints.aspect)) & -3;
}
}
For reproduction:
- TVHeadEnd
- PVR Addon
- Choose a german SD Channel (WDR3 / SAT1 or similar)
- My screen resolution: 1080p
- Latest release from Master with Odroid XU3 specific MFC Decoder for Video
Has there be anything changed? I could try to figure the problem out but then it would be great if somebody can explain in some words the internal workflow (files / methods would be optimal).
Currently this happens:
- Video is opened
- DVDDecoder say that its not decodable because hints are invalid (first frames do not contain enough information)
- FFMPEG Decoding is activated until the necessary information are present (width / height / fps, (aspect ratio?))
- DVDDecoder is opend again with success (hint are valid, but unfortunately aspect is 0)
Thanks for your support and the great kodi application!