• 1
  • 3
  • 4
  • 5(current)
  • 6
  • 7
  • 9
Release IPTV Simple Client recording for Windows Krypton
#61
yes, i have set it to ffmpeg, but record doesnt work. i have to go to bed now... in the next days i will try more

btw. cpu1 is at 100%, so i have to add your code Wink
Reply
#62
which of your commit in Klin fixes the 100% cpu bug?
Reply
#63
(2018-03-22, 06:50)Antaril Wrote: which of your commit in Klin fixes the 100% cpu bug?
 I think you just need a sleep in the scheduler loop like this:
https://github.com/primaeval/pvr.iptvsim...ad.cpp#L77
Reply
#64
Exclamation 
I don't think building IPTV Simple Client is going to be very easy to build for most people so I've made a python addon instead.

You might be interested in

IPTV Recorder
plugin.video.iptv.recorder

https://forum.kodi.tv/showthread.php?tid=329991
Reply
#65
ok,

i have fixed the 100% bug, thx!!! But when i start a record, it sayes that no record hase been done. please look at the log files. But where can i find the right log files? In folder "logfiles" there are some zip files, and in these files there are some log files. but in crash log, i cant find any crashes with iptvsimple...

sorry for my bad english ;(
Reply
#66
(2018-03-22, 19:41)Antaril Wrote: ok,

i have fixed the 100% bug, thx!!! But when i start a record, it sayes that no record hase been done. please look at the log files. But where can i find the right log files? In folder "logfiles" there are some zip files, and in these files there are some log files. but in crash log, i cant find any crashes with iptvsimple...

sorry for my bad english ;(
 To really find out what is going on you are going to have to ssh into the LibreELEC box.
Try out ffmpeg with the same command line as the pvr addon used and see what it says.

If you turn on Kodi debug logging you should get the ffmpeg command from here
https://github.com/primaeval/pvr.iptvsim...d.cpp#L287
There are a few more log messages that you should see further along in the function.

If you have only added my sleep function in I suspect it is a problem with the container format of the file you are trying to write to.
That is why I recommend running ffmpeg with no more that a copy and a dump into a .ts container.
ffmpeg -i URL -c copy OUT.ts

The default rkubera version tries to do some audio re-encoding and exports to an .flv file.
The streams I tested wouldn't work with those settings.

Try out ffmpeg in Windows or Linux to see what I mean.
His default is
ffmpeg -i URL -ar 44100 OUT.flv
Reply
#67
(2018-03-21, 18:18)primaeval Wrote: And of course does recording work? I would recommend testing with a simple copy to a .ts file.
ffmpeg -i URL -c copy OUT.ts 
Have i put this :"-i URL -c copy OUT.ts" in recompression parameters? or should i change the file extention to ts?
Reply
#68
(2018-03-22, 20:02)Antaril Wrote:
(2018-03-21, 18:18)primaeval Wrote: And of course does recording work? I would recommend testing with a simple copy to a .ts file.
ffmpeg -i URL -c copy OUT.ts 
Have i put this :"-i URL -c copy OUT.ts" in recompression parameters? or should i change the file extention to ts?  

I think you need to learn a few more details about what you are asking ffmpeg to do.
Have a read through the documentation.
https://ffmpeg.org/ffmpeg.html

The URL is your channel's stream url.
That comes from here:
https://github.com/primaeval/pvr.iptvsim...d.cpp#L175
 OUT is whatever you want to call the file.
That gets filled in with the program name and date around here:
https://github.com/primaeval/pvr.iptvsim...d.cpp#L179

Use
-c copy
instead of
-ar 44100

Use
ts
instead of
flv
Reply
#69
thx for your help. Thats allot of new things for me and i have to learn a lot!
I will try what you have told me!

thx very much!!
Reply
#70
i log in to ssh and start a record with: "ffmpeg -i https://kikade-lh.akamaihd.net/i/livetvk..._av-p.m3u8 -c copy OUT.ts"

thats the output...

if i start a record from menu, it creates a ts file, but its only some kb big...

but the out.ts is a normal video with sound!!

pvr addon doesnt create an playable videofile. But the ffmpeg command does. Why?

 
Quote:LibreELEC (community): 8.90.3 (S905.arm)
LibreELEC:~ # ffmpeg -i https://kikade-lh.akamaihd.net/i/livetvk...@450035/in
dex_3776_av-p.m3u8 -c copy OUT.ts
ffmpeg version 3.4.1-Kodi Copyright © 2000-2017 the FFmpeg developers
built with gcc 7.2.0 (GCC)
configuration: --prefix=/usr --cpu=cortex-a53 --arch=arm --enable-cross-compil e --cross-prefix=/home/adamg/LibreELEC/build.LibreELEC-S905.arm-8.90.3/toolchain /bin/armv8a-libreelec-linux-gnueabi- --sysroot=/home/adamg/LibreELEC/build.Libre ELEC-S905.arm-8.90.3/toolchain/armv8a-libreelec-linux-gnueabi/sysroot --sysinclu de=/home/adamg/LibreELEC/build.LibreELEC-S905.arm-8.90.3/toolchain/armv8a-libree lec-linux-gnueabi/sysroot/usr/include --target-os=linux --nm=/home/adamg/LibreEL EC/build.LibreELEC-S905.arm-8.90.3/toolchain/bin/armv8a-libreelec-linux-gnueabi- nm --ar=/home/adamg/LibreELEC/build.LibreELEC-S905.arm-8.90.3/toolchain/bin/armv 8a-libreelec-linux-gnueabi-ar --as=/home/adamg/LibreELEC/build.LibreELEC-S905.ar m-8.90.3/toolchain/bin/armv8a-libreelec-linux-gnueabi-gcc --cc=/home/adamg/Libre ELEC/build.LibreELEC-S905.arm-8.90.3/toolchain/bin/armv8a-libreelec-linux-gnueab i-gcc --ld=/home/adamg/LibreELEC/build.LibreELEC-S905.arm-8.90.3/toolchain/bin/a rmv8a-libreelec-linux-gnueabi-gcc --host-cc=/home/adamg/LibreELEC/build.LibreELE C-S905.arm-8.90.3/toolchain/bin/host-gcc --host-cflags='-O2 -Wall -pipe -I/home/ adamg/LibreELEC/build.LibreELEC-S905.arm-8.90.3/toolchain/include -Wno-format-se curity' --host-ldflags='-Wl,-rpath,/home/adamg/LibreELEC/build.LibreELEC-S905.ar m-8.90.3/toolchain/lib -L/home/adamg/LibreELEC/build.LibreELEC-S905.arm-8.90.3/t oolchain/lib' --extra-cflags='-march=armv8-a+crc -mabi=aapcs-linux -Wno-psabi -W a,-mno-warn-deprecated -mcpu=cortex-a53 -mfloat-abi=hard -mfpu=neon-fp-armv8 -fo mit-frame-pointer -Wall -pipe -Os ' --extra-ldflags='-march=armv8-a+crc -mtune=c ortex-a53 -Wl,--as-needed ' --extra-libs= --disable-static --enable-shared --ena ble-gpl --disable-version3 --enable-nonfree --enable-logging --disable-doc --dis able-debug --enable-stripping --enable-pic --pkg-config=/home/adamg/LibreELEC/bu ild.LibreELEC-S905.arm-8.90.3/toolchain/bin/pkg-config --enable-optimizations -- disable-extra-warnings --disable-ffprobe --disable-ffplay --disable-ffserver --e nable-ffmpeg --enable-avdevice --enable-avcodec --enable-avformat --enable-swsca le --enable-postproc --enable-avfilter --disable-devices --enable-pthreads --dis able-w32threads --enable-network --disable-gnutls --enable-openssl --disable-gra y --enable-swscale-alpha --disable-small --enable-dct --enable-fft --enable-mdct --enable-rdft --disable-crystalhd --disable-vaapi --disable-vdpau --disable-rpi --disable-dxva2 --enable-runtime-cpudetect --enable-hardcoded-tables --disable- encoders --enable-encoder=ac3 --enable-encoder=aac --enable-encoder=wmav2 --enab le-encoder=mjpeg --enable-encoder=png --disable-decoder=mpeg_xvmc --enable-hwacc els --disable-muxers --enable-muxer=spdif --enable-muxer=adts --enable-muxer=asf --enable-muxer=ipod --enable-muxer=mpegts --enable-demuxers --enable-parsers -- enable-bsfs --enable-protocol=http --disable-indevs --disable-outdevs --enable-f ilters --disable-avisynth --enable-bzlib --disable-lzma --disable-alsa --disable -frei0r --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libope ncv --disable-libdc1394 --disable-libfreetype --disable-libgsm --disable-libmp3l ame --disable-libopenjpeg --disable-librtmp --enable-libspeex --disable-libtheor a --disable-libvo-amrwbenc --disable-libvorbis --disable-libvpx --disable-libx26 4 --disable-libxavs --disable-libxvid --enable-zlib --enable-asm --disable-altiv ec --enable-neon --enable-yasm --disable-symver
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
[hls,applehttp @ 0x6c2300] Opening 'https://kikade-lh.akamaihd.net/i/livetvkika_ de@450035/segment3449372_3776_av-p.ts?sd=10' for reading
[NULL @ 0x6fccc0] SPS unavailable in decode_picture_timing
[NULL @ 0x6fccc0] non-existing PPS 0 referenced
[h264 @ 0x6f1750] SPS unavailable in decode_picture_timing
[h264 @ 0x6f1750] non-existing PPS 0 referenced
[h264 @ 0x6f1750] decode_slice_header error
[h264 @ 0x6f1750] no frame!
[NULL @ 0x6fccc0] SPS unavailable in decode_picture_timing
[NULL @ 0x6fccc0] non-existing PPS 0 referenced
[h264 @ 0x6f1750] SPS unavailable in decode_picture_timing
[h264 @ 0x6f1750] non-existing PPS 0 referenced
[h264 @ 0x6f1750] decode_slice_header error
[h264 @ 0x6f1750] no frame!
[NULL @ 0x6fccc0] SPS unavailable in decode_picture_timing
[NULL @ 0x6fccc0] non-existing PPS 0 referenced
[h264 @ 0x6f1750] SPS unavailable in decode_picture_timing
[h264 @ 0x6f1750] non-existing PPS 0 referenced
[h264 @ 0x6f1750] decode_slice_header error
[h264 @ 0x6f1750] no frame!
[NULL @ 0x6fccc0] SPS unavailable in decode_picture_timing
[NULL @ 0x6fccc0] non-existing PPS 0 referenced
[h264 @ 0x6f1750] SPS unavailable in decode_picture_timing
[h264 @ 0x6f1750] non-existing PPS 0 referenced
[h264 @ 0x6f1750] decode_slice_header error
[h264 @ 0x6f1750] no frame!
[NULL @ 0x6fccc0] SPS unavailable in decode_picture_timing
[NULL @ 0x6fccc0] non-existing PPS 0 referenced
[h264 @ 0x6f1750] SPS unavailable in decode_picture_timing
[h264 @ 0x6f1750] non-existing PPS 0 referenced
[h264 @ 0x6f1750] decode_slice_header error
[h264 @ 0x6f1750] no frame!
[NULL @ 0x6fccc0] SPS unavailable in decode_picture_timing
[NULL @ 0x6fccc0] non-existing PPS 0 referenced
[h264 @ 0x6f1750] SPS unavailable in decode_picture_timing
[h264 @ 0x6f1750] non-existing PPS 0 referenced
[h264 @ 0x6f1750] decode_slice_header error
[h264 @ 0x6f1750] no frame!
[NULL @ 0x6fccc0] SPS unavailable in decode_picture_timing
[NULL @ 0x6fccc0] non-existing PPS 0 referenced
[h264 @ 0x6f1750] SPS unavailable in decode_picture_timing
[h264 @ 0x6f1750] non-existing PPS 0 referenced
[h264 @ 0x6f1750] decode_slice_header error
[h264 @ 0x6f1750] no frame!
[NULL @ 0x6fccc0] SPS unavailable in decode_picture_timing
[NULL @ 0x6fccc0] non-existing PPS 0 referenced
[h264 @ 0x6f1750] SPS unavailable in decode_picture_timing
[h264 @ 0x6f1750] non-existing PPS 0 referenced
[h264 @ 0x6f1750] decode_slice_header error
[h264 @ 0x6f1750] no frame!
[NULL @ 0x6fccc0] SPS unavailable in decode_picture_timing
[NULL @ 0x6fccc0] non-existing PPS 0 referenced
[h264 @ 0x6f1750] SPS unavailable in decode_picture_timing
[h264 @ 0x6f1750] non-existing PPS 0 referenced
[h264 @ 0x6f1750] decode_slice_header error
[h264 @ 0x6f1750] no frame!
[NULL @ 0x6fccc0] SPS unavailable in decode_picture_timing
[NULL @ 0x6fccc0] non-existing PPS 0 referenced
[h264 @ 0x6f1750] SPS unavailable in decode_picture_timing
[h264 @ 0x6f1750] non-existing PPS 0 referenced
[h264 @ 0x6f1750] decode_slice_header error
[h264 @ 0x6f1750] no frame!
[NULL @ 0x6fccc0] SPS unavailable in decode_picture_timing
[NULL @ 0x6fccc0] non-existing PPS 0 referenced
[h264 @ 0x6f1750] SPS unavailable in decode_picture_timing
[h264 @ 0x6f1750] non-existing PPS 0 referenced
[h264 @ 0x6f1750] decode_slice_header error
[h264 @ 0x6f1750] no frame!
[NULL @ 0x6fccc0] SPS unavailable in decode_picture_timing
[NULL @ 0x6fccc0] non-existing PPS 0 referenced
[h264 @ 0x6f1750] SPS unavailable in decode_picture_timing
[h264 @ 0x6f1750] non-existing PPS 0 referenced
[h264 @ 0x6f1750] decode_slice_header error
[h264 @ 0x6f1750] no frame!
[NULL @ 0x6fccc0] SPS unavailable in decode_picture_timing
[NULL @ 0x6fccc0] non-existing PPS 0 referenced
[h264 @ 0x6f1750] SPS unavailable in decode_picture_timing
[h264 @ 0x6f1750] non-existing PPS 0 referenced
[h264 @ 0x6f1750] decode_slice_header error
[h264 @ 0x6f1750] no frame!
[NULL @ 0x6fccc0] SPS unavailable in decode_picture_timing
[NULL @ 0x6fccc0] non-existing PPS 0 referenced
[h264 @ 0x6f1750] SPS unavailable in decode_picture_timing
[h264 @ 0x6f1750] non-existing PPS 0 referenced
[h264 @ 0x6f1750] decode_slice_header error
[h264 @ 0x6f1750] no frame!
[NULL @ 0x6fccc0] SPS unavailable in decode_picture_timing
[NULL @ 0x6fccc0] non-existing PPS 0 referenced
[h264 @ 0x6f1750] SPS unavailable in decode_picture_timing
[h264 @ 0x6f1750] non-existing PPS 0 referenced
[h264 @ 0x6f1750] decode_slice_header error
[h264 @ 0x6f1750] no frame!
Input #0, hls,applehttp, from 'https://kikade-lh.akamaihd.net/i/livetvkika_de@45 0035/index_3776_av-p.m3u8':
Duration: N/A, start: 38528.034978, bitrate: N/A
Program 0
Metadata:
variant_bitrate : 0
Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Metadata:
variant_bitrate : 0
Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, flt p
Metadata:
variant_bitrate : 0
Stream #0:2: Data: timed_id3 (ID3 / 0x20334449)
Metadata:
variant_bitrate : 0
File 'OUT.ts' already exists. Overwrite ? [y/N] y
Output #0, mpegts, to 'OUT.ts':
Metadata:
encoder : Lavf57.83.100
Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 90k tbc
Metadata:
variant_bitrate : 0
Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, flt p
Metadata:
variant_bitrate : 0
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 42 fps=0.0 q=-1.0 size= 768kB time=00:00:03.28 bitrate=1917.3kbits/ frame= 76 fps= 75 q=-1.0 size= 1536kB time=00:00:04.65 bitrate=2705.6kbits/ frame= 112 fps= 69 q=-1.0 size= 2304kB time=00:00:06.10 bitrate=3093.5kbits/ frame= 176 fps= 82 q=-1.0 size= 3584kB time=00:00:08.66 bitrate=3389.8kbits/ [hls,applehttp @ 0x6c2300] Opening 'https://kikade-lh.akamaihd.net/i/livetvkika_ de@450035/segment3449373_3776_av-p.ts?sd=10' for reading
frame= 209 fps= 58 q=-1.0 size= 4096kB time=00:00:09.98 bitrate=3360.8kbits/ frame= 325 fps= 78 q=-1.0 size= 6400kB time=00:00:14.61 bitrate=3587.7kbits/ frame= 419 fps= 90 q=-1.0 size= 8192kB time=00:00:18.36 bitrate=3653.6kbits/ frame= 451 fps= 86 q=-1.0 size= 8960kB time=00:00:19.64 bitrate=3737.0kbits/ [hls,applehttp @ 0x6c2300] Opening 'https://kikade-lh.akamaihd.net/i/livetvkika_ de@450035/segment3449374_3776_av-p.ts?sd=10' for reading
frame= 461 fps= 80 q=-1.0 size= 9216kB time=00:00:20.04 bitrate=3767.1kbits/ frame= 617 fps= 98 q=-1.0 size= 12544kB time=00:00:26.30 bitrate=3906.6kbits/ [hls,applehttp @ 0x6c2300] Opening 'https://kikade-lh.akamaihd.net/i/livetvkika_ de@450035/segment3449375_3776_av-p.ts?sd=10' for reading
frame= 710 fps=102 q=-1.0 size= 14336kB time=00:00:30.00 bitrate=3914.5kbits/ frame= 820 fps=110 q=-1.0 size= 16384kB time=00:00:34.40 bitrate=3901.5kbits/ [hls,applehttp @ 0x6c2300] Opening 'https://kikade-lh.akamaihd.net/i/livetvkika_ de@450035/segment3449376_3776_av-p.ts?sd=10' for reading
frame= 960 fps= 68 q=-1.0 size= 19200kB time=00:00:40.00 bitrate=3932.0kbits/ frame= 1078 fps= 74 q=-1.0 size= 21504kB time=00:00:44.73 bitrate=3937.8kbits/ [hls,applehttp @ 0x6c2300] Opening 'https://kikade-lh.akamaihd.net/i/livetvkika_ de@450035/segment3449377_3776_av-p.ts?sd=10' for reading
frame= 1209 fps= 80 q=-1.0 size= 24064kB time=00:00:49.98 bitrate=3943.9kbits/ frame= 1241 fps= 79 q=-1.0 size= 24576kB time=00:00:51.24 bitrate=3928.9kbits/ frame= 1291 fps= 80 q=-1.0 size= 25600kB time=00:00:53.24 bitrate=3938.5kbits/ frame= 1369 fps= 82 q=-1.0 size= 27136kB time=00:00:56.36 bitrate=3944.1kbits/ frame= 1457 fps= 85 q=-1.0 size= 28928kB time=00:00:59.88 bitrate=3957.5kbits/ [hls,applehttp @ 0x6c2300] Opening 'https://kikade-lh.akamaihd.net/i/livetvkika_ de@450035/segment3449378_3776_av-p.ts?sd=10' for reading
frame= 1459 fps= 60 q=-1.0 size= 29184kB time=00:00:59.98 bitrate=3985.3kbits/ frame= 1621 fps= 65 q=-1.0 size= 32256kB time=00:01:06.44 bitrate=3977.1kbits/ [hls,applehttp @ 0x6c2300] Opening 'https://kikade-lh.akamaihd.net/i/livetvkika_ de@450035/segment3449379_3776_av-p.ts?sd=10' for reading
frame= 1710 fps= 49 q=-1.0 size= 34048kB time=00:01:10.00 bitrate=3984.5kbits/ frame= 1770 fps= 50 q=-1.0 size= 35328kB time=00:01:12.40 bitrate=3997.0kbits/ s speed=2.05x
Enter command: <target>|all <time>|-1 <command>[ <argument>]
0] SPS unavailable in decode_picture_timing^M[NULL @ 0x6fccc0] non-existi
Parse error, at least 3 arguments were expected, only 1 given in string ':~ # ff mpeg -i https://kikade-lh.akamaihd.net/i/livetvk...@450035/in'
g PPS 0 referenced^M[h264 @ 0x6f1
error parsing debug value
debug=0
frame= 1820 fps= 51 q=-1.0 size= 36352kB time=00:01:14.40 bitrate=4002.6kbits/ frame= 1842 fps= 50 q=-1.0 size= 36608kB time=00:01:15.28 bitrate=3983.6kbits/ frame= 1856 fps= 50 q=-1.0 size= 37120kB time=00:01:15.88 bitrate=4007.3kbits/ frame= 1876 fps= 50 q=-1.0 00000000000000000000000000000000size= 37376kB time= frame= 1896 fps= 50 q=-1.0 00000000000000000000000000000000size= 37888kB time= frame= 1910 fps= 49 q=-1.0 00000000000000000000000000000000size= 38144kB time= ecode_picture_timing^M[h264 @ 0x6 speed=2.01x
error parsing debug value
debug=0
 
Reply
#71
ffmpeg is working, which is good.

Try a very simple test stream until you know the addon and ffmpeg are working.
Maybe just Big Buck Bunny.
http://distribution.bbb3d.renderfarming....normal.mp4
Make a local m3u and swap the url for that.

I don't know if that akamai stream has encryption or geo-blocking. I can't play it here.
There might be some extra parameters that aren't passed to iptv simple.
For example you can have a user-agent header like this:
http://server.com/stream.m3u|user-agent=Mozilla
Is there anything extra in the m3u url?
Turn on the ffmpeg library logging in the Kodi component specific debug log for some more clues when you play the stream normally in the pvr.
Reply
#72
i have changed the folders for binarys to usr/bin. now kodi reboots when i star a record!!

its too late for me...
thx for your help man! You are so great!!
Reply
#73
(2018-03-22, 22:44)Antaril Wrote: i have changed the folders for binarys to usr/bin. now kodi reboots when i star a record!!

its too late for me...
thx for your help man! You are so great!!
 Has Kodi got write permission on the folder you set for recordings and enough space left?
Reply
#74
its a usb stick 32 gb. Yes space is there. and before it v´creates record files, but with no stream included
Reply
#75
(2018-03-22, 22:56)Antaril Wrote: its a usb stick 32 gb. Yes space is there. and before it v´creates record files, but with no stream included
 Is it making the PROGRAM.ts file but without any content?
Reply
  • 1
  • 3
  • 4
  • 5(current)
  • 6
  • 7
  • 9

Logout Mark Read Team Forum Stats Members Help
IPTV Simple Client recording for Windows Krypton2