[Bug 740130] matroskamux: wrong duration on some files
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Fri Nov 14 15:39:41 PST 2014
https://bugzilla.gnome.org/show_bug.cgi?id=740130
GStreamer | gst-plugins-good | 1.4.4
--- Comment #3 from Nicola <lists at svrinformatica.it> 2014-11-14 23:39:39 UTC ---
Created an attachment (id=290744)
--> (https://bugzilla.gnome.org/attachment.cgi?id=290744)
file that show the initial problem
The initial problem can be see with the attached file:
gst-launch-1.0 -v filesrc location=/tmp/test.gdp ! gdpdepay ! fakesink
show:
/GstPipeline:pipeline0/GstFakeSink:fakesink0.GstPad:sink: caps =
"video/x-h264\,\ stream-format\=\(string\)avc\,\ alignment\=\(string\)au\,\
codec_data\=\(buffer\)014d401effe1000f674d401e9a6604012d80b50501050201000468ee3c80\,\
width\=\(int\)512\,\ height\=\(int\)288\,\ framerate\=\(fraction\)0/1\,\
parsed\=\(boolean\)true\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\
level\=\(string\)3\,\ profile\=\(string\)main"
so framerate is 0/1
now:
gst-launch-1.0 -v filesrc location=/tmp/test.gdp ! gdpdepay ! matroskamux !
filesink location=/tmp/test.mkv
and finally:
gst-launch-1.0 -v filesrc location=/tmp/test.mkv ! matroskademux
streamable=true ! fakesink
show:
/GstPipeline:pipeline0/GstFakeSink:fakesink0.GstPad:sink: caps =
"video/x-h264\,\ level\=\(string\)3\,\ profile\=\(string\)main\,\
codec_data\=\(buffer\)014d401effe1000f674d401e9a6604012d80b50501050201000468ee3c80\,\
stream-format\=\(string\)avc\,\ alignment\=\(string\)au\,\ width\=\(int\)512\,\
height\=\(int\)288\,\ framerate\=\(fraction\)25/1"
so the framerate is now 25/1 and this cause a wrong 40 milliseconds duration
and so a wrong duration in matroska header if you remux to add indexes
--
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