Kodi Community Forum

Full Version: IPTV Recorder
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(2019-03-05, 00:29)CpTHOOK Wrote: [ -> ]Hello forum..  great add-on!!  I have it working just fine in Win10 but I cannot seem to get it working with Linux-Mint.  I suspect the FFmpeg file that i'm selecting in settings is incorrect.  The .json and .ts files show in the selected share when a recording begins, however the .ts does not increase in size.  I have Kodi 18.1 and ffmpeg v7:2.8.15-0ubuntu0.16.04.1 installed on a VM.  I've tried pointing the "ffmpeg exe" to the following locations below w/o success.  My most recent log is attached.  Please advise if possible, thanks!!   

MyLog/usr/bin/ffmpeg;
/usr/share/ffmpeg; and
/usr/share/man/man1/ffmpeg.1.gz
 According to this post Linux Mint uses avconv instead of ffmpeg. avconv is a fork of ffmpeg with more codecs.
https://forums.linuxmint.com/viewtopic.php?t=239749
I suspect it is in /usr/bin/avconv but you'll have to check yourself.
(2019-03-05, 09:28)primaeval Wrote: [ -> ]
(2019-03-04, 23:25)Laser78 Wrote: [ -> ]Hi,

In Windows 10 everything works ok but Android does not and I use the same list, I do not understand ... I have modified the list leaving only 1 channel and I also get error.
 It can't uncompress your xml file after downloading it to a temporary file.
Change the name of
"userdata\addon_data\plugin.video.iptv.recorder\xmltv1.tmp"
to
"userdata\addon_data\plugin.video.iptv.recorder\xmltv1.gz"
and see if you can open it with a program like 7zip.

Check if the source of your xml is ok by opening its url in a browser.
it is a remote URL, I have changed the extension and recreates the temporary one. TMPImage
(2019-03-05, 10:04)Laser78 Wrote: [ -> ]  
 Now you need to open it up and see if it contains your xml file or if it is corrupt.
Use a program like 7zip.
https://www.7-zip.org/
or on android any one of these will probably work
https://play.google.com/store/search?q=gzip&c=apps
(2019-03-05, 10:10)primaeval Wrote: [ -> ]
(2019-03-05, 10:04)Laser78 Wrote: [ -> ] 
 Now you need to open it up and see if it contains your xml file or if it is corrupt.
Use a program like 7zip.
https://www.7-zip.org/
or on android any one of these will probably work
https://play.google.com/store/search?q=gzip&c=apps 
it contains the list of channels, it is the same one that I use in Windows 10 and it works for me, but not Android.

I'm going to investigate because now, in Android, no list works for me, in all of them I see an error. I'm going to uninstall the addon and start over
(2019-03-05, 09:33)primaeval Wrote: [ -> ]
(2019-03-05, 00:29)CpTHOOK Wrote: [ -> ] 
 According to this post Linux Mint uses avconv instead of ffmpeg. avconv is a fork of ffmpeg with more codecs.
https://forums.linuxmint.com/viewtopic.php?t=239749
I suspect it is in /usr/bin/avconv but you'll have to check yourself.     

Thanks for the tip!!  So I installed libav-tools and avconv was indeed in the location you referenced.  However-- same results.   I'm also suspecting that my issues may have to do with not passing a physical graphics card through to my VM.  I'm using VNC, however, forgive me if this seems way off-base.  My log attached.  I already had this VM going for awhile and using it to update my Kodi library w/ MariaDB.  It would be sooooo perfect if I could add this PVR to it.  If not...  I'll have to give in to Win10. 

MyLog


  Image
(2019-03-06, 05:24)CpTHOOK Wrote: [ -> ]
(2019-03-05, 09:33)primaeval Wrote: [ -> ]
(2019-03-05, 00:29)CpTHOOK Wrote: [ -> ] 
 According to this post Linux Mint uses avconv instead of ffmpeg. avconv is a fork of ffmpeg with more codecs.
https://forums.linuxmint.com/viewtopic.php?t=239749
I suspect it is in /usr/bin/avconv but you'll have to check yourself.       

Thanks for the tip!!  So I installed libav-tools and avconv was indeed in the location you referenced.  However-- same results.   I'm also suspecting that my issues may have to do with not passing a physical graphics card through to my VM.  I'm using VNC, however, forgive me if this seems way off-base.  My log attached.  I already had this VM going for awhile and using it to update my Kodi library w/ MariaDB.  It would be sooooo perfect if I could add this PVR to it.  If not...  I'll have to give in to Win10. 

MyLogImage 
 There are a couple of things you could try.

See if turning off the "ffmpeg reconnect arguments" helps.
Someone had a problem with them on their version of ffmpeg so I made them optional.

Turn on ffmpeg debugging in
Settings \ Debug \ Debug ffmpeg stdout/stderr
The output and error streams should then end up in the jobs folder.
userdata\addon_data\plugin.video.iptv.recorder\jobs
They should show you if avconv/ffmpeg even started and possible errors.

You could also try to install the official version of ffmpeg.
You might have to build it from source.
http://ffmpeg.org/download.html#build-linux
(2019-03-06, 00:37)Laser78 Wrote: [ -> ]
(2019-03-05, 10:10)primaeval Wrote: [ -> ]
(2019-03-05, 10:04)Laser78 Wrote: [ -> ] 
 Now you need to open it up and see if it contains your xml file or if it is corrupt.
Use a program like 7zip.
https://www.7-zip.org/
or on android any one of these will probably work
https://play.google.com/store/search?q=gzip&c=apps  
it contains the list of channels, it is the same one that I use in Windows 10 and it works for me, but not Android.

I'm going to investigate because now, in Android, no list works for me, in all of them I see an error. I'm going to uninstall the addon and start over 
 You might need to delete the data directory manually if something has got stuck in there.
userdata\addon_data\plugin.video.iptv.recorder
Since latest update I'm getting (can't load any groups):
Quote:2019-03-06 10:41:13.565 T:123145441353728   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.UnicodeDecodeError'>
                                            Error Contents: 'utf8' codec can't decode byte 0x82 in position 2949075: invalid start byte
                                            Traceback (most recent call last):
                                              File "/Users/tbrek/Library/Application Support/Kodi/addons/plugin.video.iptv.recorder/main.py", line 3151, in <module>
                                                plugin.run()
                                              File "/Users/tbrek/Library/Application Support/Kodi/addons/script.module.xbmcswift2/lib/xbmcswift2/plugin.py", line 332, in run
                                                items = self._dispatch(self.request.path)
                                              File "/Users/tbrek/Library/Application Support/Kodi/addons/script.module.xbmcswift2/lib/xbmcswift2/plugin.py", line 306, in _dispatch
                                                listitems = view_func(**items)
                                              File "/Users/tbrek/Library/Application Support/Kodi/addons/plugin.video.iptv.recorder/main.py", line 2217, in full_service
                                                xmltv()
                                              File "/Users/tbrek/Library/Application Support/Kodi/addons/plugin.video.iptv.recorder/main.py", line 2605, in xmltv
                                                data = data.decode(encoding)
                                              File "/Users/Shared/jenkins/workspace/OSX-64/tools/depends/xbmc-depends/macosx10.13_x86_64-target-release/lib/python2.7/encodings/utf_8.py", line 16, in decode
                                            UnicodeDecodeError: 'utf8' codec can't decode byte 0x82 in position 2949075: invalid start byte
(2019-03-06, 12:42)dzejms Wrote: [ -> ]Since latest update I'm getting (can't load any groups):
Quote:2019-03-06 10:41:13.565 T:123145441353728   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.UnicodeDecodeError'>
                                            Error Contents: 'utf8' codec can't decode byte 0x82 in position 2949075: invalid start byte
                                            Traceback (most recent call last):
                                              File "/Users/tbrek/Library/Application Support/Kodi/addons/plugin.video.iptv.recorder/main.py", line 3151, in <module>
                                                plugin.run()
                                              File "/Users/tbrek/Library/Application Support/Kodi/addons/script.module.xbmcswift2/lib/xbmcswift2/plugin.py", line 332, in run
                                                items = self._dispatch(self.request.path)
                                              File "/Users/tbrek/Library/Application Support/Kodi/addons/script.module.xbmcswift2/lib/xbmcswift2/plugin.py", line 306, in _dispatch
                                                listitems = view_func(**items)
                                              File "/Users/tbrek/Library/Application Support/Kodi/addons/plugin.video.iptv.recorder/main.py", line 2217, in full_service
                                                xmltv()
                                              File "/Users/tbrek/Library/Application Support/Kodi/addons/plugin.video.iptv.recorder/main.py", line 2605, in xmltv
                                                data = data.decode(encoding)
                                              File "/Users/Shared/jenkins/workspace/OSX-64/tools/depends/xbmc-depends/macosx10.13_x86_64-target-release/lib/python2.7/encodings/utf_8.py", line 16, in decode
                                            UnicodeDecodeError: 'utf8' codec can't decode byte 0x82 in position 2949075: invalid start byte
 It can't decode your xmltv file.
There is a bad utf8 character at position 2949075 in the file.

Does the encoding at the top of the file match the contents of the file.
<?xml version="1.0" encoding="UTF-8"?>

Is there a chinese character that should have been encoded as utf16 or is the file actually in ISO-8859-1?

Notepad++ might help you uncover the true encoding.
Oh. Could be epg issue itself: https://epg.ovh/pl.xml
Quote:This page contains the following errors:
error on line 20131 at column 19: Specification mandates value for attribute late error on line 20131 at column 20: Encoding error
Below is a rendering of the page up to the first error.
(2019-03-06, 13:05)dzejms Wrote: [ -> ]Oh. Could be epg issue itself: https://epg.ovh/pl.xml
Quote:This page contains the following errors:
error on line 20131 at column 19: Specification mandates value for attribute late error on line 20131 at column 20: Encoding error
Below is a rendering of the page up to the first error.
The xml is a mess.You'll have to get them to try and fix it.
You can also use an online xml validator like
https://codebeautify.org/xmlvalidator

That one finds this nonsense:
Code:
XML Parsing Error: not well-formed
Location: https://codebeautify.org/xmlvalidator
Line Number 20131, Column 19:
<category late>
------------------^
Looks like the gz version is loading with no issues. Thanks for your help.
(2019-03-06, 13:56)dzejms Wrote: [ -> ]Looks like the gz version is loading with no issues. Thanks for your help.
 There is still something wrong with the gz version although it loads ok in IPTV Recorder.
It won't load in TV Guide Fullscreen which needs completely correct xml.
Could you let them know on their forum.
(2019-03-06, 09:20)primaeval Wrote: [ -> ]
(2019-03-06, 05:24)CpTHOOK Wrote: [ -> ]
(2019-03-05, 09:33)primaeval Wrote: [ -> ] 
 There are a couple of things you could try.

See if turning off the "ffmpeg reconnect arguments" helps.
Someone had a problem with them on their version of ffmpeg so I made them optional.

Turn on ffmpeg debugging in
Settings \ Debug \ Debug ffmpeg stdout/stderr
The output and error streams should then end up in the jobs folder.
userdata\addon_data\plugin.video.iptv.recorder\jobs
They should show you if avconv/ffmpeg even started and possible errors.

You could also try to install the official version of ffmpeg.
You might have to build it from source.
http://ffmpeg.org/download.html#build-linux    


Turning off reconnect arguments gave me the same results.  I turned on ffmpeg debugging prior to, per your recommendations.  Log below.  I'll have to read up on building a version of this from the source, any tips or guidance posts out there that you recommend?  The version listed in the LM software manager has the same link you provided.

DbugLog

Image
(2019-03-07, 05:35)CpTHOOK Wrote: [ -> ]
(2019-03-06, 09:20)primaeval Wrote: [ -> ]
(2019-03-06, 05:24)CpTHOOK Wrote: [ -> ] 
 There are a couple of things you could try.

See if turning off the "ffmpeg reconnect arguments" helps.
Someone had a problem with them on their version of ffmpeg so I made them optional.

Turn on ffmpeg debugging in
Settings \ Debug \ Debug ffmpeg stdout/stderr
The output and error streams should then end up in the jobs folder.
userdata\addon_data\plugin.video.iptv.recorder\jobs
They should show you if avconv/ffmpeg even started and possible errors.

You could also try to install the official version of ffmpeg.
You might have to build it from source.
http://ffmpeg.org/download.html#build-linux      


Turning off reconnect arguments gave me the same results.  I turned on ffmpeg debugging prior to, per your recommendations.  Log below.  I'll have to read up on building a version of this from the source, any tips or guidance posts out there that you recommend?  The version listed in the LM software manager has the same link you provided.

DbugLogImage 
 The version of ffmpeg in the log is much too old.
It can't handle the "ffmpeg reconnect arguments". reconnect_at_eof is one of them:
Code:
Unrecognized option 'reconnect_at_eof'.
So you should turn them off or update ffmpeg.

I found this about compiling for Mint:
https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu