[Bug 750131] mp3: Duration reported on short MP3 file is 0
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Wed Jul 8 17:52:32 PDT 2015
https://bugzilla.gnome.org/show_bug.cgi?id=750131
--- Comment #8 from Vineeth <vineeth.tm at samsung.com> ---
Created attachment 307115
--> https://bugzilla.gnome.org/attachment.cgi?id=307115&action=edit
estimate duration as soon as we have 3 frames.
Right now the duration estimation happens after every 1.5 seconds
So in case of files which are less than 1.5 seconds,
the estimation never happens. But to estimate the duration
3 frames are enough. So instead of waiting till 1.5 seconds,
estimate the duration as soon as we get 3 frames and then continue
estimating every 1.5 seconds from that time
The update interval is calculated as
parse->priv->update_interval = fps_num * 3 / (fps_den * 2)
for default framerate, it comes out to be 57 frames for 1.5 seconds.
Previously the estimation was
57, 114, 171, ......
after the patch it will be
3, 60, 117, 174, ......
Even this case, it needs a minimum of 2 buffers while encoding. As with 1
buffer there is not enough data to estimate.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list