After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 726752 - h264parser: should also expose a framerate in the case of interlaced samples
h264parser: should also expose a framerate in the case of interlaced samples
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: 1.3.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-03-19 23:21 UTC by Mathieu Duponchelle
Modified: 2014-04-10 07:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
This patch corrects the observed bug. (1.12 KB, patch)
2014-03-19 23:22 UTC, Mathieu Duponchelle
committed Details | Review

Description Mathieu Duponchelle 2014-03-19 23:21:56 UTC
That patch lets h264parser calculates a framerate even in the case of interlaced samples.
Comment 1 Mathieu Duponchelle 2014-03-19 23:22:17 UTC
Created attachment 272447 [details] [review]
This patch corrects the observed bug.
Comment 2 Sebastian Dröge (slomo) 2014-04-07 19:22:11 UTC
Review of attachment 272447 [details] [review]:

::: gst-libs/gst/codecparsers/gsth264parser.c
@@ -1346,3 @@
 
-    if (parse_vui_params && vui->fixed_frame_rate_flag &&
-        sps->frame_mbs_only_flag && !vui->pic_struct_present_flag) {

Can you explain the reasoning a bit more? Why remove these two checks here, what do these flags mean and why can't they be ignored?
Comment 3 Thibault Saunier 2014-04-08 15:37:06 UTC
(In reply to comment #2)
> Review of attachment 272447 [details] [review]:
> 
> ::: gst-libs/gst/codecparsers/gsth264parser.c
> @@ -1346,3 @@
> 
> -    if (parse_vui_params && vui->fixed_frame_rate_flag &&
> -        sps->frame_mbs_only_flag && !vui->pic_struct_present_flag) {
> 
> Can you explain the reasoning a bit more? Why remove these two checks here,
> what do these flags mean and why can't they be ignored?

Basically the frame_mbs_only_flag determine whether the stream is interlaced or not and pic_struct_present_flag will tell whether timestamps can be computed for each frame, but in all cases the framerate is contained in the stream and can be used. At least this is how I understand it.
Comment 4 Aurélien Zanelli 2014-04-08 16:27:28 UTC
This thread may be more or less linked to https://bugzilla.gnome.org/show_bug.cgi?id=723352
Comment 5 Sebastian Dröge (slomo) 2014-04-10 07:09:53 UTC
commit 15d00a32fd5dabf1a2186bde402f179cc1db1076
Author: Thibault Saunier <tsaunier@gnome.org>
Date:   Mon Mar 17 16:39:42 2014 +0100

    h264parse: Set framerate even for interlaced videos
    
    Co-Authored by: Mathieu Duponchelle <mathieu.duponchelle@opencreed.com>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=726752