Bug 54715 - [SNB IVB] Lossing Frame while playing mp4 files using gstreamer
Summary: [SNB IVB] Lossing Frame while playing mp4 files using gstreamer
Status: RESOLVED FIXED
Alias: None
Product: libva
Classification: Unclassified
Component: intel (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Wind Yuan
QA Contact:
URL:
Whiteboard:
Keywords:
: 54714 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-09-10 08:10 UTC by cc
Modified: 2012-09-13 03:04 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
EOS-flush (1.37 KB, patch)
2012-09-13 02:58 UTC, Wind Yuan
Details | Splinter Review
decode residual bitstream for all codecs (5.18 KB, patch)
2012-09-13 03:00 UTC, Wind Yuan
Details | Splinter Review

Description cc 2012-09-10 08:10:39 UTC
Environment:
------------
Service Arch (ia32/ia32e/IA64): AMD64
Guest Arch : AMD64
Guest OS Type : Linux
Hardware: SandyBridge
gstreamer:
# pkg-config --modversion gstreamer-0.10 
0.10.36.1
gstreamer-vaapi:
commit 0b3d75f14b4a275d13eefadc81ff7e1734d2fd0f
libva:
commit 376075a6e6ffa9eb0e8d3c99c298fca6332095a0
intel-driver:
commit 560ab2c9b116ddaddd90c24f520c4dc66310c9e7
we used mplayer on the same driver to decode, there isn't any lost frames.


Bug detailed description:
--------------------------
I found that one or more frames lost while playing mp4 files using gstreamer.
we add "printf("  %s, %s, %d\n", __FILE__, __FUNCTION__, __LINE__)" in the
function "vaPutSurface", then play a 50-frames MP4 file with gst-launch, and
there are 49 vaPutSurface print in log, so it seems gstreamer lost 1 frame. 
if playing raw video files, gstreamer lost more frames, about 15 frames.

Reproduce steps:
----------------
1.# xinit&
2.# gst-launch-0.10 playbin2 uri=file:///file.mp4
Comment 1 Tim Müller 2012-09-11 12:57:03 UTC
This is not the right bug tracker to file bugs about GStreamer, this bug tracker is for git account requests only.

Please file your bugs in bugzilla.gnome.org as per http://gstreamer.freedesktop.org/bugs/

(Didn't you file this there already?)
Comment 2 Wind Yuan 2012-09-12 01:46:45 UTC
Actually it's not the gstreamer's bug. It was caused by gstreamer-vaapi. A project based on libva to do hw decoding/encoding. I'm going to fix it.
Comment 3 Wind Yuan 2012-09-13 02:58:17 UTC
Created attachment 67068 [details] [review]
EOS-flush

patch to gstreamer-vaapi to flush end of stream buffers
Comment 4 Wind Yuan 2012-09-13 03:00:55 UTC
Created attachment 67069 [details] [review]
decode residual bitstream for all codecs

depends on 0001 patch. Fix core dump at end of video playing
Comment 5 Wind Yuan 2012-09-13 03:02:20 UTC
Please try attachment 67068 [details] [review] and 67069 to check whether this bugs was fixed.
Comment 6 Wind Yuan 2012-09-13 03:04:30 UTC
*** Bug 54714 has been marked as a duplicate of this bug. ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.