xbmc / inputstream.ffmpegdirect

Supports streams opened by FFmpeg's libavformat or Kodi's cURL such as plain TS, HLS and DASH (non-DRM) as well as many others. There is support for Archive/Catchup services where there is a replay window and can timeshift across that span. Also provides timeshift for live streams where rewind/pause and fast-forward would not have been available.
GNU General Public License v2.0
58 stars 42 forks source link

Fix seeking in FFmpegDirect caused by st->cur_pts replacement #251

Closed phunkyfish closed 8 months ago

phunkyfish commented 1 year ago

Based off changes in Kodi PR: https://github.com/xbmc/xbmc/pull/23557/commits and https://github.com/xbmc/xbmc/pull/23629/commits

The first commit is ok. The second required removing UpdateCurrentPTS() which is used for catchup support. Need a better solution for doing the offset for catchup streams.

Commits 3,4 and 5 are followups and also OK.

TL;DR; fix commit 2

phunkyfish commented 1 year ago

@popcornmix, you worked on the Kodi change that I ported to ffmpegdirect.

Do you have any suggestions on how we implement it given we need to update current pts for catchup streams?