(2018-03-22, 22:56)Antaril Wrote: [ -> ]
I remember now. It is why I took all the rtmpdump code out.
The original used the "-f FORMAT" command with the file extension to ffmpeg.
ffmpeg doesn't have a "ts" format, just a "ts" container.
Take out the code that adds the "-f extension" like this:
https://github.com/rkubera/pvr.iptvsimpl...8a0dddL249
Make sure it adds the .ts extension on to the file name.
ok thx alot. i will modify it later at home and rebuild the addon!
Now if i change to -c copy and ts format, kodi reboots and ro record is made!!
i hope this helps
(2018-03-23, 11:48)Antaril Wrote: [ -> ]ok thx alot. i will modify it later at home and rebuild the addon!
Now if i change to -c copy and ts format, kodi reboots and ro record is made!!
i hope this helps
You can get a list of formats ffmpeg supports with
The tricky thing is finding a compatible format for all your channel stream urls and a matching container format.
If the format doesn't match the stream ffmpeg will try to re-encode your stream and probably fail.
That is why it is much safer to just copy the stream into a generic transport stream .ts container and deal with any transcoding later.
It won't hammer your cpu either.
The other thing to be aware of is that some stream urls formats like hls of dash contain multiple parallel streams of different resolutions and maybe languages.
ffmpeg usually picks the right sub-stream to dump into the ts file but it might pick the wrong one or dump all of them at once.
If you are in that situation you might need to make a custom m3u or add some code to pick the sub-stream that you need.
All of this complicated logic is why it is best to hand it off to python or another scripting language.
You could actually substitute the ffmpeg exe location in the settings for an executable script and deal with any extra logic in there, like removing the format flag.
ok. its getting better now
it starts a record. But if i stop the record, the file delets itself.... oh man i have to do a lot of work ... my brain is smoking
(2018-03-23, 17:07)Antaril Wrote: [ -> ]ok. its getting better now it starts a record. But if i stop the record, the file delets itself.... oh man i have to do a lot of work ... my brain is smoking
Hurrah
Take out all the DeleteFile and CloseFile calls like I have done here for example:
https://github.com/rkubera/pvr.iptvsimpl...8a0dddR394
i got a record. The record doesnt delete...
But the file cant be read by any player or program ;( will try other ffmpeg options...
i try different streams. but no readable videofile!!
yes i have learned alot. But after recording, i cant open other streams... is that bug also in your build?
(2018-03-23, 21:50)Antaril Wrote: [ -> ]yes i have learned alot. But after recording, i cant open other streams... is that bug also in your build?
I just tried my 17.0.0-Krypton-Win-Record release and I can record at least 2 streams and watch another at the same time.
It might be the addon not closing sockets or files properly or it might be a limitation of wherever you get your streams from.
the stream is official german children tv. So that should not be tha problem. Something is blocking after recording...
(2018-03-24, 14:48)Antaril Wrote: [ -> ]Here is a little log:
Quote:09:23:26.001 T:3620115344 NOTICE: AddOnLog: PVR IPTV Simple Client: Updated job entry Bibi und Tina
09:23:55.381 T:4098434224 NOTICE: AddOnLog: PVR IPTV Simple Client: Stopping recording Bibi und Tina
09:23:55.382 T:4098434224 NOTICE: AddOnLog: PVR IPTV Simple Client: Updated job entry Bibi und Tina
09:24:11.488 T:3859157904 NOTICE: Previous line repeats 1 times.
09:24:11.488 T:3859157904 ERROR: ### [XBMC LCDproc] - Connect: Caught exception, aborting.
09:24:11.488 T:3859157904 ERROR: ### [XBMC LCDproc] - Connect failed. Giving up. Please fix any connection problems and restart the addon.
09:24:21.460 T:4098434224 NOTICE: AddOnLog: PVR IPTV Simple Client: Stopping recording Bibi und Tina
09:24:21.460 T:4098434224 NOTICE: AddOnLog: PVR IPTV Simple Client: Updated job entry Bibi und Tina
09:24:26.000 T:3633595280 NOTICE: Previous line repeats 1 times.
09:24:26.000 T:3633595280 NOTICE: AddOnLog: PVR IPTV Simple Client: Try to delete recording Bibi und Tina
09:24:26.000 T:3633595280 NOTICE: AddOnLog: PVR IPTV Simple Client: Deleted job entry Bibi und Tina
09:24:32.173 T:4098434224 NOTICE: VideoPlayer: OnLostDisplay received
09:24:32.872 T:4098434224 NOTICE: VideoPlayer: OnResetDisplay received
09:24:35.225 T:4098434224 NOTICE: Display resolution ADJUST : 1920x1080 @ 50.00 - Full Screen (26) (weight: 0.000)
09:24:35.226 T:4098434224 NOTICE: VideoPlayer: OnLostDisplay received
09:24:35.452 T:4098434224 NOTICE: VideoPlayer: OnResetDisplay received
09:24:35.458 T:4098434224 NOTICE: VideoPlayer::OpenFile: pvr://channels/tv/Alle Kanäle/pvr.iptvsimple_1492616305.pvr
09:24:36.576 T:3586560912 NOTICE: Creating InputStream
09:24:36.701 T:3586560912 ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 502
09:24:36.701 T:3586560912 ERROR: CCurlFile::Open failed with code 502 for http://192.168.1.114:8001/1:0:1:445C:453:1:C00000:0:0:0:
09:24:36.701 T:3586560912 ERROR: Open - failed to open source <http://192.168.1.114:8001/1:0:1:445C:453:1:C00000:0:0:0:>
09:24:36.701 T:3586560912 ERROR: CVideoPlayer::OpenInputStream - error opening [pvr://channels/tv/Alle Kanäle/pvr.iptvsimple_1492616305.pvr]
09:24:36.702 T:3586560912 NOTICE: CVideoPlayer::OnExit()
09:24:36.702 T:3586560912 NOTICE: Closing stream player 1
09:24:36.702 T:3586560912 NOTICE: Waiting for audio thread to exit
09:24:36.704 T:3521115024 NOTICE: thread end: CVideoPlayerAudio::OnExit()
09:24:36.704 T:3586560912 NOTICE: Closing audio device
09:24:36.709 T:3586560912 NOTICE: Deleting audio codec
09:24:36.709 T:3586560912 NOTICE: Closing stream player 2
That url looks like it's coming from something on your local network
http://192.168.1.114:8001/1:0:1:445C:453:1:C00000:0:0:0:
What does ffprobe say about the stream?
ffprobe
http://192.168.1.114:8001/1:0:1:445C:453:1:C00000:0:0:0: