GNOME Bugzilla – Bug 770375
TS play few seconds playback stuck(drop frame)
Last modified: 2018-11-03 13:54:55 UTC
Created attachment 334120 [details] mpegtspacketizer_basesink_level_6_log There is a TS file(https://pan.baidu.com/s/1gfgA9Kv) With ffplay, VLC playback is OK,but once with GStreamer It only play few seconds then playback will stuck. I try to dig mpegtspacketizer.c:mpegts_packetizer_pts_to_ts()’ code as follows: -------- GstClockTime mpegts_packetizer_pts_to_ts (MpegTSPacketizer2 * packetizer, GstClockTime pts, guint16 pcr_pid) { GstClockTime res = GST_CLOCK_TIME_NONE; MpegTSPCR *pcrtable; ..... if (refpcr != G_MAXINT64) { /*************!!!!Modifid here!!!!*************************/ res = pts; // res = // pts - PCRTIME_TO_GSTTIME (refpcr) + PCRTIME_TO_GSTTIME (refpcroffset); /***********************************************************/ } else GST_WARNING ("No groups, can't calculate timestamp"); } else GST_WARNING ("Not enough information to calculate proper timestamp"); PACKETIZER_GROUP_UNLOCK (packetizer); GST_DEBUG ("Returning timestamp %" GST_TIME_FORMAT " for pts %" GST_TIME_FORMAT " pcr_pid:0x%04x", GST_TIME_ARGS (res), GST_TIME_ARGS (pts), pcr_pid); return res; } -------- The above modification is just not to make a PCR <=> PTS conversion, while using the original PTS,the result is more smoother playback than before.But,I don't know what causes this phenomenon, so I file a new bug to track this issue.
No headway has been made in this issure, Any good suggestions ?
I can't find the file at that location, could you upload it somewhere else please?
(In reply to Tim-Philipp Müller from comment #2) > I can't find the file at that location, could you upload it somewhere else > please? Well, I'll try uploading to googledrive, box, onedrive, Here is the link(After completion of upload, willl paste other URL),directly related to this bug is cctv5plus.ts,the other one is no sound while few seconds: onedrive: https://1drv.ms/v/s!AgNg9UFbV1uGhn6P4mWlsI_Ld48z (2min.ts) https://1drv.ms/v/s!AgNg9UFbV1uGhn_QklQ2v1mMKuy1 (cctv5plus.ts) googledrive: https://drive.google.com/file/d/0B5Qs0jIvnVNTM2xGTlprb3NZTFU/view?usp=sharing (2min.ts)
googledrive: https://drive.google.com/file/d/0B5Qs0jIvnVNTaHNYZnhuZDNzTFk/view?usp=sharing (cctv5plus.ts)
dropbox: https://www.dropbox.com/s/fvj0kj8hfd2vbhr/cctv5plus.ts?dl=0 (cctv5plus.ts)
Thanks, can reproduce issues with both samples. Not sure if the issues are related, but we'll see. Didn't investigate yet. 2mins.ts: short freezes from ~14secs onwards, then freezes for good shortly after 20secs; no audio playback (AC-3); in VLC the timeline jumps from 0s to 4s to 12s to 21s (!). cctv5plus.ts: plays in short bursts, ffmpeg decoder complains a lot, I'm guessing it decodes a few frames then things get messed up, then it recovers at the next keyframe.
(In reply to Tim-Philipp Müller from comment #6) > Thanks, can reproduce issues with both samples. Not sure if the issues are > related, but we'll see. Didn't investigate yet. > > 2mins.ts: short freezes from ~14secs onwards, then freezes for good shortly > after 20secs; no audio playback (AC-3); in VLC the timeline jumps from 0s to > 4s to 12s to 21s (!). > > cctv5plus.ts: plays in short bursts, ffmpeg decoder complains a lot, I'm > guessing it decodes a few frames then things get messed up, then it recovers > at the next keyframe. cctv5plus.ts:Maybe it should be related to the timestamp? At least one line of code changes, the same computer, the playback will be more smooth. ^_^
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/420.