[Bug 750131] mp3: Duration reported on short MP3 file is 0
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Wed Jul 8 01:42:32 PDT 2015
https://bugzilla.gnome.org/show_bug.cgi?id=750131
Vineeth <vineeth.tm at samsung.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |vineeth.tm at samsung.com
--- Comment #6 from Vineeth <vineeth.tm at samsung.com> ---
In case of the file, tiny_duration_example.mp3
there is a xing header in the file.
So in mpegaudioparse, the duration is calculated based on the xing header and
updated
gst_base_parse_set_duration (GST_BASE_PARSE (mp3parse), GST_FORMAT_TIME,
mp3parse->xing_total_time, 0);
But in case of mp3 encoded by lame encoder, there will be no xing header. So
duration is not being updated.
But in case of files having more than 57 frames(1.5 second duration, varies on
framerate)
here parse->priv->update_interval is calculated to be 57
in baseparse, the duration gets updated
else if (parse->priv->update_interval > 0 &&
(parse->priv->framecount % parse->priv->update_interval) == 0)
gst_base_parse_update_duration (parse);
So for files with less than 57 frames the duration is never being calculated.
--
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