[Bug 682211] New: gst_element_query_duration returns incorrect duration on mpeg2ts file
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Sun Aug 19 15:34:18 PDT 2012
https://bugzilla.gnome.org/show_bug.cgi?id=682211
GStreamer | don't know | 0.10.35
Summary: gst_element_query_duration returns incorrect duration
on mpeg2ts file
Classification: Platform
Product: GStreamer
Version: 0.10.35
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: don't know
AssignedTo: gstreamer-bugs at lists.freedesktop.org
ReportedBy: lips.john at gmail.com
QAContact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
Here is the output from ffmpeg -i filename.mpg:
Input #0, mpegts, from
Duration: 03:59:59.65, start: 50177.007422, bitrate: 14276 kb/s
Stream #0:0[0x31]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 14950 kb/s, 64.96 fps, 59.94
tbr, 90k tbn, 119.88 tbc
Stream #0:1[0x34](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
5.1(side), s16, 448 kb/s
Stream #0:2[0x35](spa): Audio: ac3 (AC-3 / 0x332D4341), 48000
Hz, stereo, s16, 192 kb/s (visual impaired)
Here is the output from gst_element_query_duration:
3:37:14.178723991
As you can see there a difference of more than 20 minutes. I looked for any
existing bugs, but did not find anything. Here is how it is implemented:
case GDK_k:
{
gint64 dur_ns;
GstFormat format;
format = GST_FORMAT_TIME;
gst_element_query_duration(pipeline,&format,&dur_ns);
g_print ("%" GST_TIME_FORMAT "\n", GST_TIME_ARGS (dur_ns));
return TRUE;
}
break;
Am I missing something? I can't attach the file as it is ~25 GB. Is there a
simple way to trim off a couple minutes of the file without changing the
encoding?
Here are my gst related packages:
dev-python/gst-python-0.10.21
media-libs/gst-plugins-bad-0.10.22
media-libs/gst-plugins-base-0.10.35
media-libs/gst-plugins-good-0.10.30
media-libs/gst-plugins-ugly-0.10.18
media-libs/gstreamer-0.10.35
media-plugins/gst-plugins-a52dec-0.10.18
media-plugins/gst-plugins-alsa-0.10.35
media-plugins/gst-plugins-ffmpeg-0.10.13-r2
media-plugins/gst-plugins-gconf-0.10.30
media-plugins/gst-plugins-gl-0.10.2
media-plugins/gst-plugins-jack-0.10.30
media-plugins/gst-plugins-meta-0.10-r7
media-plugins/gst-plugins-mpeg2dec-0.10.18
media-plugins/gst-plugins-ogg-0.10.35
media-plugins/gst-plugins-vorbis-0.10.35
media-plugins/gst-plugins-x-0.10.35
media-plugins/gst-plugins-x264-0.10.18
media-plugins/gst-plugins-xvideo-0.10.35
This is a gentoo amd64 system.
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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