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 657950 - ffmpegdec: post QoS messages when dropping a frame
ffmpegdec: post QoS messages when dropping a frame
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-libav
unspecified
Other All
: Normal normal
: 0.10.13
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 617023 (view as bug list)
Depends on:
Blocks: 657835
 
 
Reported: 2011-09-01 15:50 UTC by Vincent Penquerc'h
Modified: 2011-09-26 23:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
ffmpegdec: post QoS messages when dropping a frame (2.88 KB, patch)
2011-09-01 15:50 UTC, Vincent Penquerc'h
reviewed Details | Review
ffmpegdec: post QoS messages when dropping a frame (2.88 KB, patch)
2011-09-26 19:06 UTC, Vincent Penquerc'h
committed Details | Review

Description Vincent Penquerc'h 2011-09-01 15:50:11 UTC
Note that I am not 100% certain the posting when setting ffmpeg
to discard is totally correct. It just seems to most likely
correct way to me, but depends on the exact ffmpeg semantics.
Comment 1 Vincent Penquerc'h 2011-09-01 15:50:13 UTC
Created attachment 195398 [details] [review]
ffmpegdec: post QoS messages when dropping a frame

There seems to be a little bit of non obvious logic where
the QoS logic can decide to not drop decoding a frame and
pass it to ffmpeg, telling it to drop.
In this case, the QoS logic does not drop the frame itself,
but since the frame will end up being dropped, we still
mark it as dropped and post a QoS message.
Comment 2 Tim-Philipp Müller 2011-09-26 18:29:25 UTC
Comment on attachment 195398 [details] [review]
ffmpegdec: post QoS messages when dropping a frame

>+drop_qos:
>+  {
>+    GstClockTime stream_time, jitter, outtime;
>+    ...
>+    stream_time =
>+        gst_segment_to_stream_time (&ffmpegdec->segment, GST_FORMAT_TIME,
>+        outtime);

outtime seems to be used ununinitialised here?
Comment 3 Tim-Philipp Müller 2011-09-26 18:30:03 UTC
*** Bug 617023 has been marked as a duplicate of this bug. ***
Comment 4 Vincent Penquerc'h 2011-09-26 19:06:43 UTC
Created attachment 197507 [details] [review]
ffmpegdec: post QoS messages when dropping a frame

There seems to be a little bit of non obvious logic where
the QoS logic can decide to not drop decoding a frame and
pass it to ffmpeg, telling it to drop.
In this case, the QoS logic does not drop the frame itself,
but since the frame will end up being dropped, we still
mark it as dropped and post a QoS message.
Comment 5 Vincent Penquerc'h 2011-09-26 19:07:17 UTC
Indeed. That code gets removed by the next patch to move that logic to libgstvideo, so I've updated that next patch as well.
Comment 6 Tim-Philipp Müller 2011-09-26 19:28:04 UTC
Oh well, let's get it in:

 commit 8bf3d5a2b77eff15e130bde36366457c26b7f66a
 Author: Vincent Penquerc'h <vincent.penquerch@collabora.co.uk>
 Date:   Thu Sep 1 16:46:47 2011 +0100

    ffmpegdec: post QoS messages when dropping a frame
    
    There seems to be a little bit of non obvious logic where
    the QoS logic can decide to not drop decoding a frame and
    pass it to ffmpeg, telling it to drop.
    In this case, the QoS logic does not drop the frame itself,
    but since the frame will end up being dropped, we still
    mark it as dropped and post a QoS message.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=657950


The 'live' bit is always FALSE now though, not sure that's entirely correct.
Comment 7 Tim-Philipp Müller 2011-09-26 23:40:38 UTC
> The 'live' bit is always FALSE now though, not sure that's entirely correct.

Nevermind that, that's fine, since it's about whether *dec syncs against a clock (and drops stuff because of that), and not about whether the pipeline/upstream is live.