[FFmpeg-trac] #2689(undetermined:new): Set-top boxes show wrong Aspect Ratio on HD content
FFmpeg
trac at avcodec.org
Tue May 6 16:45:02 CEST 2014
#2689: Set-top boxes show wrong Aspect Ratio on HD content
-------------------------------------+-------------------------------------
Reporter: jdachik01 | Owner:
Type: defect | Status: new
Priority: normal | Component:
Version: git-master | undetermined
Keywords: aspect | Resolution:
mpeg2video mpegts | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by fredt):
Based on code analysis and looking at the ffmbc fix, the solution is to
modify mpeg12enc.c
When the aspect ratio equal exactly a valid mpeg2 aspect ratio, the wrong
aspect ratio is sent in the aspect_ratio field in the mpeg sequence
header.
STB use the sequence header to display the right format on screen.
The fix is to change line 267 in function mpeg1_encode_sequence_header:
if (error < best_aspect_error) {
best_aspect_error = error;
s->aspect_ratio_info = i;
}
To this:
if (error <= best_aspect_error) {
best_aspect_error = error;
s->aspect_ratio_info = i;
}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/2689#comment:12>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list