2022-05-10, 19:56
Hi everybody,
I am trying to use pvr-iptvsimple + inputstream-ffmpegdirect to play streams that I recorded from DVB-T.
I used to record some TV channels as slices of one second of Mpeg TS files and then I can play them and seek backward and forward (time shift).
The server part is very simple : it take the date of the first slice to send and transmit all the following parts as a signgle stream via http.
Each slice contain a multiple of 188 bytes which is the size of a DVB packet so it begin and end on a packet boundary.
This works very well with Mpv or Vlc so I know that the main concept is ok.
I tried this with kodi 19.4 on Ubuntu 20.04 using the team-xbmc-ubuntu-ppa-focal packages and it worked pretty well : Streams play flawlessly, seek work most of the time and pause/resume too.
The only problem is that sometimes, when I seek the player freeze and I have to seek again until it accept to play the stream.
Same problem at resume after pause : sometimes playback freeze just after having consumed the buffer (it pays well about 5secs then stops). I can resume by seeking but every now and then it crash and restart kodi !
When this happens, the log says : "ERROR <general>: ReadPacket - Error demux packet doesn't belong to a valid stream"
There is my m3u config for one channel :
#KODIPROP:inputstream=inputstream.ffmpegdirect
#KODIPROP:inputstream.ffmpegdirect.is_realtime_stream=true
#KODIPROP:mimetype=video/mp2t
#EXTINF:0 catchup="append" catchup-source="&cutv={Y}-{m}-{d}T{H}:{M}:{S}" catchup-days="1" tvg-ID="France3.fr" tvg-name="France 3" tvg-chno="3", France 3
http://dev-server.mltv/Server/Stream.php...pe=catchup
I tried to google this issue very hard but I didn't find any clue of what's going on :-(
Any advice would be greatly appreciated !
BR.
Olivier.
I am trying to use pvr-iptvsimple + inputstream-ffmpegdirect to play streams that I recorded from DVB-T.
I used to record some TV channels as slices of one second of Mpeg TS files and then I can play them and seek backward and forward (time shift).
The server part is very simple : it take the date of the first slice to send and transmit all the following parts as a signgle stream via http.
Each slice contain a multiple of 188 bytes which is the size of a DVB packet so it begin and end on a packet boundary.
This works very well with Mpv or Vlc so I know that the main concept is ok.
I tried this with kodi 19.4 on Ubuntu 20.04 using the team-xbmc-ubuntu-ppa-focal packages and it worked pretty well : Streams play flawlessly, seek work most of the time and pause/resume too.
The only problem is that sometimes, when I seek the player freeze and I have to seek again until it accept to play the stream.
Same problem at resume after pause : sometimes playback freeze just after having consumed the buffer (it pays well about 5secs then stops). I can resume by seeking but every now and then it crash and restart kodi !
When this happens, the log says : "ERROR <general>: ReadPacket - Error demux packet doesn't belong to a valid stream"
There is my m3u config for one channel :
#KODIPROP:inputstream=inputstream.ffmpegdirect
#KODIPROP:inputstream.ffmpegdirect.is_realtime_stream=true
#KODIPROP:mimetype=video/mp2t
#EXTINF:0 catchup="append" catchup-source="&cutv={Y}-{m}-{d}T{H}:{M}:{S}" catchup-days="1" tvg-ID="France3.fr" tvg-name="France 3" tvg-chno="3", France 3
http://dev-server.mltv/Server/Stream.php...pe=catchup
I tried to google this issue very hard but I didn't find any clue of what's going on :-(
Any advice would be greatly appreciated !
BR.
Olivier.