xbmc / inputstream.adaptive

kodi inputstream addon for several manifest types
Other
454 stars 242 forks source link

[Feature request] Allow specifying stream to be VOD or Live #1715

Open lavish440 opened 2 weeks ago

lavish440 commented 2 weeks ago

Describe the feature

Can we have a KODIPROP for ISA where we can override the default stream type of a video from VOD to Live and vice versa?

Motivation

I have some 'Live' VOD streams from my provider. They are some VODs stitched together to be viewed as a Live Stream. When played through ISA and SIPTV, they play but I can't use the progress bar to seek forward. If I try, they reset to 0. The only way I can seek them is through arrow keys but the progress bar doesn't update.

I have talked about this on SIPTV also, here's the comment: https://github.com/kodi-pvr/pvr.iptvsimple/issues/915#issuecomment-2435999796

Are you willing to contribute in development?

No

Should a possible backport be considered?

No

CastagnaIT commented 2 weeks ago

I have some 'Live' VOD streams from my provider.

the only thing that exists is a "Live to VOD" manifest transition, that is currently not fully supported by ISA, it depends on the data provided by the video service and cannot be user controlled

if instead you are playing a real live streaming the GUI "seek bar" is available only when the provider allow a timeshift buffer, if not, you cannot use video "seek" and if you try seek it will be forced to stay at "current" timeline playback

is not so clear to me the use case, i need to see all the manifest files to understand the situation

override the default stream type of a video from VOD to Live and vice versa?

this request is not clear, more details needed, such a thing is not applicable

lavish440 commented 1 week ago

I have some 'Live' VOD streams from my provider.

the only thing that exists is a "Live to VOD" manifest transition, that is currently not fully supported by ISA, it depends on the data provided by the video service and cannot be user controlled

The manifests say it's of VOD type

if instead you are playing a real live streaming the GUI "seek bar" is available only when the provider allow a timeshift buffer, if not, you cannot use video "seek" and if you try seek it will be forced to stay at "current" timeline playback

I see a seek bar and can seek anywhere from the start of the program to the end.

is not so clear to me the use case, i need to see all the manifest files to understand the situation

I have emailed you all the manifest files.

override the default stream type of a video from VOD to Live and vice versa?

this request is not clear, more details needed, such a thing is not applicable

Like allow seeking through the progress bar when something like inpuststream.adaptive.stream_type is set to vod or something.

CastagnaIT commented 1 week ago

Here are the manifest files. These might contain some data about my account.

manifest have no account data, however at least these are normal VOD HLS nothing special

please try play the video, without use iptvsimple so e.g. by creating a .strm file an try to see if seek bar works

lavish440 commented 1 week ago

I think you misunderstood my feature request. I can play them fine as a VOD using SIPTV as well. The provider gives the timestamp to skip to in the response that I use to skip using Kodi's JSONRPC so that the VOD looks like a Live Stream. I want to play them like live channels but have the feature to seek using the progress bar.

CastagnaIT commented 1 week ago

this last answer of yours confused me even more i have zero idea of what you want you think to do

if you have a timestamp where you want to perform a video seek its better that you convert the timestamp in to time format hh:mm:ss then use rpc Player.Seek

lavish440 commented 1 week ago

I get a stream from my provider which is actually a VOD, but is played as Live in their app and platform. The stream starts from the beginning in Kodi when played. The provider also gives some epoch timestamps that can be used to skip and play like their app. I use them to skip forward using Kodi's JSON RPC.

But when the ad-break comes, I like to skip forward. If I try to skip forward using the progress bar, the stream restarts from 0. I can skip forward using the arrow keys, but the progress bar doesn't update.

CastagnaIT commented 1 week ago

But when the ad-break comes, I like to skip forward. If I try to skip forward using the progress bar, the stream restarts from 0.

maybe you are trying to seek wrongly beyond the length of the video and maybe could be the cause that restart to 0

on HLS usually ADS are managed with DISCONTINUITY tags but at least on the manifest you sent to me there are no tags, i could theorize that the ADS are merged with the main movie, so i exclude a possible problem due to multiple chapters

i dont have ideas... i still dont understand your request and how / what should be implemented, you cant force manage a VOD as live, your video seek problem sound like a different nature problem

lavish440 commented 1 week ago

But when the ad-break comes, I like to skip forward. If I try to skip forward using the progress bar, the stream restarts from 0.

maybe you are trying to seek wrongly beyond the length of the video and maybe could be the cause that restart to 0

It works when I seek using the arrow keys. When I seek beyond the length of video, the stream stops.

on HLS usually ADS are managed with DISCONTINUITY tags but at least on the manifest you sent to me there are no tags, i could theorize that the ADS are merged with the main movie, so i exclude a possible problem due to multiple chapters

Yes, the ads are not any different from the normal video in the manifests. Not any chapters or Discontinuity tags.

i dont have ideas... i still dont understand your request and how / what should be implemented, you cant force manage a VOD as live, your video seek problem sound like a different nature problem

I only need the progress bar to be fixed.

CastagnaIT commented 1 week ago

you need to provide me a way to replicate this thing locally or i will close the issue since i have no ideas

lavish440 commented 1 week ago

Can I mail you a video demonstration?

CastagnaIT commented 1 week ago

you can try to send me a video or better a shared link, but idk if it can help because i have no way to know what happens internally in kodi and ISA

lavish440 commented 1 week ago

I will send you a video demonstration then. I can't share a link as the streams are geo locked and won't work without a residential IP from my country. Also, the SIPTV maintainer mentioned something about the itimes interface in the comment that I linked above.