[FFmpeg-devel] [PATCH] mov: Evaluate the movie display matrix

Vittorio Giovara vittorio.giovara at gmail.com
Thu Oct 6 23:40:12 EEST 2016


On Thu, Oct 6, 2016 at 4:07 PM, Michael Niedermayer
<michael at niedermayer.cc> wrote:
> On Thu, Oct 06, 2016 at 12:12:07AM -0400, Vittorio Giovara wrote:
>> On Wed, Oct 5, 2016 at 10:07 PM, Michael Niedermayer
>> <michael at niedermayer.cc> wrote:
>> > On Wed, Oct 05, 2016 at 05:25:33PM -0400, Vittorio Giovara wrote:
>> >> This matrix needs to be applied after all others have (currently only
>> >> display matrix from trak), but cannot be handled in movie box, since
>> >> streams are not allocated yet.
>> >>
>> >> So store it in main context and if not identity, apply it when appropriate,
>> >> handling the case when trak display matrix is identity and when it is not.
>> >
>> > do you have a testcase for this which you can share ?
>> >
>> > thx
>> >
>> > [...]
>> > --
>>
>> I created one for the occasion
>> https://www.dropbox.com/s/w2uu37o11rvoz1q/moviedispmat.mp4?dl=1
>
> with ffplay before the patch the image looks round, after the patch
> it looks quite squished, is that intended ?

yes that is correct

> what is the intended / correct SAR / DAR for this sample ?

without the patch     Stream #0:0(und): Video: h264 (High) (avc1 /
0x31637661), yuv420p, 540x576 [SAR 1:1 DAR 15:16], 102 kb/s, 25 fps,
25 tbr, 12800 tbn, 50 tbc (default)

with the patch     Stream #0:0(und): Video: h264 (High) (avc1 /
0x31637661), yuv420p, 540x576 [SAR 1:1 DAR 15:16], 102 kb/s, SAR
93207:65536 DAR 1016804:762601, 25 fps, 25 tbr, 12800 tbn, 50 tbc
(default)

This last one is the intended and correct one.
-- 
Vittorio


More information about the ffmpeg-devel mailing list