Open Trdum opened 1 month ago
from what i can see all mpd's provided have no timeshift buffer set:
<MPD xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:mpeg:dash:schema:mpd:2011"
xmlns:cenc="urn:mpeg:cenc:2013"
xmlns:mspr="urn:microsoft:playready" xsi:schemaLocation="urn:mpeg:dash:schema:mpd:2011 http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG-DASH_schema_files/DASH-MPD.xsd"
type="dynamic"
availabilityStartTime="1970-01-01T00:00:00Z"
publishTime="2024-01-19T13:40:44.905903Z"
minimumUpdatePeriod="PT2S"
maxSegmentDuration="PT2S"
minBufferTime="PT10S"
profiles="urn:mpeg:dash:profile:isoff-live:2011,urn:com:dashif:dash264">
the timeShiftBufferDepth
is missing,
and also availabilityStartTime
is not set,
you cant seek a stream that have no timeshift buffer if this was working on older versions was only luck where old segments was not yet removed on server imo i dont see this as a bug
and so GUI timing iirc should be relative to segment timestamp
Hello Stefano,
Hope you are doing well, thanks for looking into the issue.
When I open the live stream I can request the buffer/seekback duration of the live stream by adding an argument, for example adding '&time=120' to the mpd url will allow me to seekback 120 minutes which can be set upto 8 hours to seek back on the live stream.
ISA 24.4.3 used to be able to detect the seekback time exactly as I requested it from the stream but unfortunately this stopped working and was hoping with my limited knowledge this was considered a bug.
Would it be possible to add an option/property like 'auto_detect_timebuffer' that will fallback to the old 24.4.3 ways to detect the time if there is no buffer depth set in the mpd? for example with: listitem.setProperty('inputstream.adaptive.auto_detect_timebuffer', 'true')
Kind regards.
mmh i hadn't looked closely at the timeline https://github.com/Trdum/cbcsinput/blob/main/mpd-nodrm.mpd seem to be about 6h of segments?
<SegmentTemplate timescale="600" initialization="tvid-$RepresentationID$.dash" media="tvid-$RepresentationID$-$Time$.dash">
<SegmentTimeline>
<S t="1023388556544" d="1152" r="12556" />
</SegmentTimeline>
</SegmentTemplate>
so ok there is no timeshift, but there are many segments, and they cannot be seeked more likely due to missing duration i will need to try give a look
I just opened and compared mpds for 1 minute and 2, 4 and 6 hours seeking, hope this can be of any help. Only the SegmentTemplate and publishTime changed between the different times, everything else stayed the same.
<SegmentTemplate timescale="600" initialization="tvid-$RepresentationID$.dash" media="tvid-$RepresentationID$-$Time$.dash">
<S t="1030402714752" d="1152" r="57" />
<SegmentTemplate timescale="600" initialization="tvid-$RepresentationID$.dash" media="tvid-$RepresentationID$-$Time$.dash">
<S t="1030397339520" d="1152" r="3781" />
<SegmentTemplate timescale="600" initialization="tvid-$RepresentationID$.dash" media="tvid-$RepresentationID$-$Time$.dash">
<S t="1030392973440" d="1152" r="7527" />
<SegmentTemplate timescale="600" initialization="tvid-$RepresentationID$.dash" media="tvid-$RepresentationID$-$Time$.dash">
<S t="1030388796288" d="1152" r="11277" />
i tried make a fix but i have no way to test it you will find some test builds here: https://jenkins.kodi.tv/blue/organizations/jenkins/xbmc%2Finputstream.adaptive/detail/PR-1586/1/artifacts
Hello Stefano,
I just tried the test build and seeking is working again on live streams.
When I change the live stream seek time to 1 minute the player gui shows 1 minute and when changing the time to 8 hours the player gui shows 8 hours like I expect it to be.
Tested on Windows and Android by opening multiple live streams.
Thank you for fixing the issue and the support you give to this project!
Kind regards.
[K21] Live stream seeking stopped working after ISA 21.4.3
Bug report
Describe the bug
Live stream seeking stopped working and live stream duration time is incorrect after ISA update 21.4.3.
Screenshots
Example screenshot:![LiveseekScreenshot](https://github.com/xbmc/inputstream.adaptive/assets/3257156/39e68cf7-018b-4cb8-813d-dd022f1a91d5)
Expected Behavior
Working seeking in live streams and correct stream duration shown in progress bar.
Actual Behavior
Seeking in live stream is not working and stream duration is shown incorrectly. (See screenshot)
Possible Fix
See what has changed since ISA 21.4.3 and try to find what is wrong?
To Reproduce
The live streams seem to be limited/locked to my ip or hostname by my isp, so you sadly won't be able to open them if your isp does not match.
Debuglog, DASH and MPD
You can find debug logs, dash files and mpd files here: https://github.com/trdum/cbcsinput
Your Environment
Tested operating systems:
Tested Kodi versions: