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 777094 - videodecoder: Don't queue frames in TRICKMODE_KEY_UNITS
videodecoder: Don't queue frames in TRICKMODE_KEY_UNITS
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
unspecified
Other All
: Normal normal
: 1.13.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-01-10 15:00 UTC by Edward Hervey
Modified: 2018-05-04 12:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
videodecoder: Don't queue frames in TRICKMODE_KEY_UNITS (1.17 KB, patch)
2017-01-10 15:00 UTC, Edward Hervey
reviewed Details | Review
videodecoder: Don't queue frames in TRICKMODE_KEY_UNITS (1.17 KB, patch)
2017-01-11 14:55 UTC, Edward Hervey
none Details | Review
videodecoder: Don't queue frames in TRICKMODE_KEY_UNITS (1.69 KB, patch)
2017-01-11 15:42 UTC, Edward Hervey
committed Details | Review

Description Edward Hervey 2017-01-10 15:00:50 UTC
See commit message
Comment 1 Edward Hervey 2017-01-10 15:00:54 UTC
Created attachment 343249 [details] [review]
videodecoder: Don't queue frames in TRICKMODE_KEY_UNITS

When the input is TRICKMODE_KEY_UNITS, we expect to only receive keyframes
which we want to decode/push immediately. Therefore don't queue them
Comment 2 Sebastian Dröge (slomo) 2017-01-10 15:34:26 UTC
Comment on attachment 343249 [details] [review]
videodecoder: Don't queue frames in TRICKMODE_KEY_UNITS

This probably breaks things if the decoder or upstream does not pass only keyframes because they don't support that.
Comment 3 Edward Hervey 2017-01-11 14:55:58 UTC
Created attachment 343310 [details] [review]
videodecoder: Don't queue frames in TRICKMODE_KEY_UNITS

When the input is TRICKMODE_KEY_UNITS, we expect to only receive keyframes
which we want to decode/push immediately. Therefore don't queue them
Comment 4 Edward Hervey 2017-01-11 15:42:39 UTC
Created attachment 343314 [details] [review]
videodecoder: Don't queue frames in TRICKMODE_KEY_UNITS

When the input is TRICKMODE_KEY_UNITS, we expect to only receive keyframes
which we want to decode/push immediately. Therefore don't queue them.

If upstream didn't send just keyframes (which is the ideal situation), two
different things can happen:
1) Either the subclass checks the segment flags and properly configures
 the decoder implementation to only decode/output keyframes,
2) Or the subclass really decodes and outputs everything, in which case
 the reverse frames will end up arriving "late" downstream (and will
 be dropped). If upstream did properly send GOP in reverse order, we
 still end up just showing keyframes (but at the overhead of decoding
 everything).
Comment 5 Jan Schmidt 2017-05-20 12:15:43 UTC
Review of attachment 343314 [details] [review]:

OK
Comment 6 Edward Hervey 2017-05-20 15:38:28 UTC
commit dfa548dc5b88d52e46c81d33d3f96193e68f8efe
Author: Edward Hervey <edward@centricular.com>
Date:   Tue Jan 10 15:59:55 2017 +0100

    videodecoder: Don't queue frames in TRICKMODE_KEY_UNITS
    
    When the input is TRICKMODE_KEY_UNITS, we expect to only receive keyframes
    which we want to decode/push immediately. Therefore don't queue them.
    
    If upstream didn't send just keyframes (which is the ideal situation), two
    different things can happen:
    1) Either the subclass checks the segment flags and properly configures
     the decoder implementation to only decode/output keyframes,
    2) Or the subclass really decodes and outputs everything, in which case
     the reverse frames will end up arriving "late" downstream (and will
     be dropped). If upstream did properly send GOP in reverse order, we
     still end up just showing keyframes (but at the overhead of decoding
     everything).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=777094
Comment 7 Edward Hervey 2018-05-04 12:42:50 UTC
lol, forgot to close it :D