GNOME Bugzilla – Bug 704192
h264parse: unable to determine framerate
Last modified: 2015-02-02 19:02:48 UTC
When parsing vui timing info the following condition in h264parser.c is not true if (parse_vui_params && vui->fixed_frame_rate_flag && sps->frame_mbs_only_flag && !vui->pic_struct_present_flag) { Both frame_mbs_only_flag and !vui->pic_struct_present_flag are 0. Can anyone tell me what the check is for? Sample file: https://s3.amazonaws.com/MatejK/Samples/bbc1hd-freeviewhd-example.ts
From what I saw from the code there's no relation between these two flags and knowing a framerate, and others confirmed... some more testing needed :)
Looking at the spec, I see no reason why frame_mbs_only_flag nor vui->pic_struct_present_flag should be used to determine whether to read those values. I've removed those two checks here but for master doesn't even try to parse the SPS (and thus doesn't even reach that check). Does it for you on that file ? I've just updated to latest git.
I tested this with revision from 3 days ago, don't t think there was anything committed that would affect this since then. I have the parser output AVC, could that make a difference? There is bunch of stuff that needs to be ignored at the beginning of file until it reaches SPS, but the parser does that in bytestream->avc mode.
Testing now, that block is executed. Since the fields that were irrelevant are removed, and that framerate is detected, I think this can now be closed.
-> OBSOLETE (unless we know what fixed it or when it was fixed).