From: GStreamer (bugzilla.gnome.org) <bug...@bu...> - 2006-03-01 17:26:23
|
Do not reply to this via email (we are currently unable to handle email responses and they get discarded). You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=3D332339 GStreamer | gst-ffmpeg | Ver: HEAD CVS ------- Comment #9 from Michal Benes 2006-03-01 17:26 UTC ------- /* set time */ + pkt.pts =3D GST_BUFFER_TIMESTAMP (buf) * 9 / (GST_SECOND / 10000); Hi, the following code is from our hacked vesrion. I have included it acciden= taly. The packet timestamping code should not be changed. I am sorry about that pkt.pts =3D gst_ffmpeg_time_gst_to_ff (GST_BUFFER_TIMESTAMP (buf), - ffmpegmux->context->streams[bufnum]->time_base); - pkt.dts =3D pkt.pts; + ffmpegmux->context->streams[best_pad->padnum]->time_base); + if (GST_BUFFER_DATA (buf) !=3D GST_BUFFER_MALLOCDATA (buf)) { + pkt.dts =3D *((GstClockTime *) GST_BUFFER_MALLOCDATA (buf)) + * 9 / (GST_SECOND / 10000); + } else { + pkt.dts =3D pkt.pts; + } + Just leave pkt.pts =3D gst_ffmpeg_time_gst_to_ff (GST_BUFFER_TIMESTAMP (buf), ffmpegmux->context->streams[bufnum]->time_base); pkt.dts =3D pkt.pts; in the code. --=20 Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=3Demail ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. |