After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 770375 - TS play few seconds playback stuck(drop frame)
TS play few seconds playback stuck(drop frame)
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
1.8.2
Other All
: Normal critical
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-08-25 10:24 UTC by rland
Modified: 2018-11-03 13:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
mpegtspacketizer_basesink_level_6_log (2.49 MB, application/zip)
2016-08-25 10:24 UTC, rland
Details

Description rland 2016-08-25 10:24:28 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.
Comment 1 rland 2016-08-29 03:54:13 UTC
No headway has been made in this issure,
Any good suggestions ?
Comment 2 Tim-Philipp Müller 2016-08-30 08:39:49 UTC
I can't find the file at that location, could you upload it somewhere else please?
Comment 3 rland 2016-08-31 03:52:06 UTC
(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)
Comment 4 rland 2016-08-31 05:47:44 UTC
googledrive:
https://drive.google.com/file/d/0B5Qs0jIvnVNTaHNYZnhuZDNzTFk/view?usp=sharing (cctv5plus.ts)
Comment 5 rland 2016-08-31 08:24:51 UTC
dropbox:
https://www.dropbox.com/s/fvj0kj8hfd2vbhr/cctv5plus.ts?dl=0 (cctv5plus.ts)
Comment 6 Tim-Philipp Müller 2016-09-10 11:07:00 UTC
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.
Comment 7 rland 2016-09-12 01:10:01 UTC
(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. ^_^
Comment 8 GStreamer system administrator 2018-11-03 13:54:55 UTC
-- 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.