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-04-07, 01:33)Ampsys Wrote: [ -> ]Evening lads,

Sorry if jumping in on any ongoing issues - looked like thread has been quiet a few days so I thought I'd post my problem.

I'm running Leia 18.1 on Win 10.

My IPTV service is running great - M3U and XML feeds are URL fed and I got them matching time correctly (+1 hr) on EPG.

Followed the IPTV recorder instructions and everything went in smooth, no troubles/errors.  When I go to Channel Groups and pick something to Record Once, I see the .json file show up in my recording destination, but nothing else.

I'm pointing to a huge (capacity) NAS where my Movies and Music feed fine, and I can write/play files without issue from the Kodi Box under Win 10.  So I doubt it's a permission/SMB issue (I'm a network engineer by trade; just new to Kodi).

I downloaded the ffpmepg 4.1.1 stable/static version for Win64 and mapped in the IPTV Recorder settings to where it is sitting (which is the Downloads directory) of the box user account.  (Possible issue?  Need to be in directory with any of the python stuff installed?)

Anyway - hoping this is something simple/stupid I missed in going through the 60+ pages of this thread. 

It really feels like it went in well; just that something silly is missing/wrong.

Hope you guys can help - thanks in advance!

Look for an error message in kodi.log and post it here.

To see what ffmpeg is doing turn on
Settings \ Debug \ debug ffmpeg stdout/stderr
Try to record.
Look in
userdata\addon_data\plugin.video.iptv.recorder\jobs
for the output files and see if there are any error messages from ffmpeg.

Turn off
Settings \ Debug \ debug ffmpeg stdout/stderr
to do a real recording again.
(2019-04-07, 08:09)primaeval Wrote: [ -> ]
(2019-04-07, 01:33)Ampsys Wrote: [ -> ]Evening lads,

Sorry if jumping in on any ongoing issues - looked like thread has been quiet a few days so I thought I'd post my problem.

I'm running Leia 18.1 on Win 10.

My IPTV service is running great - M3U and XML feeds are URL fed and I got them matching time correctly (+1 hr) on EPG.

Followed the IPTV recorder instructions and everything went in smooth, no troubles/errors.  When I go to Channel Groups and pick something to Record Once, I see the .json file show up in my recording destination, but nothing else.

I'm pointing to a huge (capacity) NAS where my Movies and Music feed fine, and I can write/play files without issue from the Kodi Box under Win 10.  So I doubt it's a permission/SMB issue (I'm a network engineer by trade; just new to Kodi).

I downloaded the ffpmepg 4.1.1 stable/static version for Win64 and mapped in the IPTV Recorder settings to where it is sitting (which is the Downloads directory) of the box user account.  (Possible issue?  Need to be in directory with any of the python stuff installed?)

Anyway - hoping this is something simple/stupid I missed in going through the 60+ pages of this thread. 

It really feels like it went in well; just that something silly is missing/wrong.

Hope you guys can help - thanks in advance!

Look for an error message in kodi.log and post it here.

To see what ffmpeg is doing turn on
Settings \ Debug \ debug ffmpeg stdout/stderr
Try to record.
Look in
userdata\addon_data\plugin.video.iptv.recorder\jobs
for the output files and see if there are any error messages from ffmpeg.

Turn off
Settings \ Debug \ debug ffmpeg stdout/stderr
to do a real recording again.    
Hi Primaeval - Thanks for the reply.  Here are the items you requested:

ERRORS I see in the kodi.log file:

Code:
2019-04-07 15:38:30.219 T:8012   ERROR: [plugin.video.iptv.recorder] service started...
2019-04-07 15:39:32.395 T:8012   ERROR: [plugin.video.iptv.recorder] Service waiting for 40827 seconds
2019-04-07 15:39:32.395 T:8012   ERROR: [plugin.video.iptv.recorder] Service waiting for 40827 seconds
2019-04-07 15:42:10.484 T:6480   ERROR: XFILE::CDirectory::GetDirectory - Error getting
2019-04-07 15:42:10.485 T:3968   DEBUG: CDirectoryProvider[]: refreshing..
2019-04-07 15:42:10.485 T:6104   ERROR: XFILE::CDirectory::GetDirectory - Error getting
2019-04-07 15:42:10.485 T:3968   DEBUG: CDirectoryProvider[]: refreshing..
2019-04-07 15:42:10.485 T:6480   ERROR: XFILE::CDirectory::GetDirectory - Error getting
2019-04-07 15:42:10.485 T:3968   DEBUG: CDirectoryProvider[]: refreshing..
2019-04-07 15:42:10.485 T:6104   ERROR: XFILE::CDirectory::GetDirectory - Error getting
2019-04-07 15:42:10.485 T:3968   DEBUG: CDirectoryProvider[]: refreshing..
2019-04-07 15:42:10.485 T:6480   ERROR: XFILE::CDirectory::GetDirectory - Error getting
2019-04-07 15:42:10.485 T:3968   DEBUG: CDirectoryProvider[]: refreshing..
2019-04-07 15:42:10.485 T:6104   ERROR: XFILE::CDirectory::GetDirectory - Error getting
2019-04-07 15:42:10.539 T:3968   ERROR: Previous line repeats 1 times.
2019-04-07 15:43:25.001 T:3968   ERROR: Control 55 in window 10025 has been asked to focus, but it can't

After turning on debug ffmpeg, looked in the plugin.video.iptv.recorder/jobs folder and have 2 PY, 2PID, and 2 stderr.txt files.  The PY/PID files don't much of anything in them; just a nubmer or two.  Of the text files, one is completely empty, the contents of the other are provided below:
Code:

ffmpeg version 4.1.1 Copyright © 2000-2019 the FFmpeg developers
  built with gcc 8.2.1 (GCC) 20190212
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
  libavutil      56. 22.100 / 56. 22.100
  libavcodec     58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter     7. 40.101 /  7. 40.101
  libswscale      5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
Input #0, mpegts, from '<MYIPTV PROVIDER AND SOME CREDENTIALS SHOWN HERE>':
  Duration: N/A, start: 3440.946367, bitrate: N/A
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], Closed Captions, 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc
    Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 138 kb/s
smb://<NAS SMB CREDENTIALS HERE>@192.168.0.4/Media/Recordings/Other\Mickey%27s Great Clubhouse Hunt - US%3A DISNEY JR - 2019-04-07 15-10.ts: Protocol not found

Let me know what, if anything, you see that I should change/adjust.

Thanks again!
(2019-04-07, 22:13)Ampsys Wrote: [ -> ]
(2019-04-07, 08:09)primaeval Wrote: [ -> ]
(2019-04-07, 01:33)Ampsys Wrote: [ -> ]Evening lads,

Sorry if jumping in on any ongoing issues - looked like thread has been quiet a few days so I thought I'd post my problem.

I'm running Leia 18.1 on Win 10.

My IPTV service is running great - M3U and XML feeds are URL fed and I got them matching time correctly (+1 hr) on EPG.

Followed the IPTV recorder instructions and everything went in smooth, no troubles/errors.  When I go to Channel Groups and pick something to Record Once, I see the .json file show up in my recording destination, but nothing else.

I'm pointing to a huge (capacity) NAS where my Movies and Music feed fine, and I can write/play files without issue from the Kodi Box under Win 10.  So I doubt it's a permission/SMB issue (I'm a network engineer by trade; just new to Kodi).

I downloaded the ffpmepg 4.1.1 stable/static version for Win64 and mapped in the IPTV Recorder settings to where it is sitting (which is the Downloads directory) of the box user account.  (Possible issue?  Need to be in directory with any of the python stuff installed?)

Anyway - hoping this is something simple/stupid I missed in going through the 60+ pages of this thread. 

It really feels like it went in well; just that something silly is missing/wrong.

Hope you guys can help - thanks in advance!

Look for an error message in kodi.log and post it here.

To see what ffmpeg is doing turn on
Settings \ Debug \ debug ffmpeg stdout/stderr
Try to record.
Look in
userdata\addon_data\plugin.video.iptv.recorder\jobs
for the output files and see if there are any error messages from ffmpeg.

Turn off
Settings \ Debug \ debug ffmpeg stdout/stderr
to do a real recording again.     
Hi Primaeval - Thanks for the reply.  Here are the items you requested:

ERRORS I see in the kodi.log file:

Code:
2019-04-07 15:38:30.219 T:8012   ERROR: [plugin.video.iptv.recorder] service started...
2019-04-07 15:39:32.395 T:8012   ERROR: [plugin.video.iptv.recorder] Service waiting for 40827 seconds
2019-04-07 15:39:32.395 T:8012   ERROR: [plugin.video.iptv.recorder] Service waiting for 40827 seconds
2019-04-07 15:42:10.484 T:6480   ERROR: XFILE::CDirectory::GetDirectory - Error getting
2019-04-07 15:42:10.485 T:3968   DEBUG: CDirectoryProvider[]: refreshing..
2019-04-07 15:42:10.485 T:6104   ERROR: XFILE::CDirectory::GetDirectory - Error getting
2019-04-07 15:42:10.485 T:3968   DEBUG: CDirectoryProvider[]: refreshing..
2019-04-07 15:42:10.485 T:6480   ERROR: XFILE::CDirectory::GetDirectory - Error getting
2019-04-07 15:42:10.485 T:3968   DEBUG: CDirectoryProvider[]: refreshing..
2019-04-07 15:42:10.485 T:6104   ERROR: XFILE::CDirectory::GetDirectory - Error getting
2019-04-07 15:42:10.485 T:3968   DEBUG: CDirectoryProvider[]: refreshing..
2019-04-07 15:42:10.485 T:6480   ERROR: XFILE::CDirectory::GetDirectory - Error getting
2019-04-07 15:42:10.485 T:3968   DEBUG: CDirectoryProvider[]: refreshing..
2019-04-07 15:42:10.485 T:6104   ERROR: XFILE::CDirectory::GetDirectory - Error getting
2019-04-07 15:42:10.539 T:3968   ERROR: Previous line repeats 1 times.
2019-04-07 15:43:25.001 T:3968   ERROR: Control 55 in window 10025 has been asked to focus, but it can't

After turning on debug ffmpeg, looked in the plugin.video.iptv.recorder/jobs folder and have 2 PY, 2PID, and 2 stderr.txt files.  The PY/PID files don't much of anything in them; just a nubmer or two.  Of the text files, one is completely empty, the contents of the other are provided below:
Code:

ffmpeg version 4.1.1 Copyright © 2000-2019 the FFmpeg developers
  built with gcc 8.2.1 (GCC) 20190212
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
  libavutil      56. 22.100 / 56. 22.100
  libavcodec     58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter     7. 40.101 /  7. 40.101
  libswscale      5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
Input #0, mpegts, from '<MYIPTV PROVIDER AND SOME CREDENTIALS SHOWN HERE>':
  Duration: N/A, start: 3440.946367, bitrate: N/A
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], Closed Captions, 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc
    Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 138 kb/s
smb://<NAS SMB CREDENTIALS HERE>@192.168.0.4/Media/Recordings/Other\Mickey%27s Great Clubhouse Hunt - US%3A DISNEY JR - 2019-04-07 15-10.ts: Protocol not found

Let me know what, if anything, you see that I should change/adjust.

Thanks again! 
Sorry - Here is one other error and some surrounding logging that may be pertient - sorry missed this the first time:
Code:
2019-04-07 15:39:49.335 T:7632   ERROR: {'confidence': 0.99, 'language': '', 'encoding': 'utf-8'}
2019-04-07 15:39:49.340 T:7632 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value
2019-04-07 15:39:52.007 T:7632 WARNING: Previous line repeats 6885 times.
2019-04-07 15:39:52.007 T:7632   DEBUG: CFileCache::Open - opening <2OaD4wH> using cache
2019-04-07 15:39:52.023 T:7632   DEBUG: CurlFile::Open(0x2172e8cbf20)
2019-04-07 15:39:52.115 T:7632   DEBUG: CCurlFile::Open - effective URL: <http://tntcloud.xyz:2052/xmltv.php? >
2019-04-07 15:39:52.117 T:7944   DEBUG: Thread FileCache start, auto delete: false
2019-04-07 15:39:56.088 T:7944    INFO: CFileCache:Tonguerocess - Source read didn't return any data! Hit eof(?)
2019-04-07 15:39:57.401 T:7944   DEBUG: Thread FileCache 7944 terminating
2019-04-07 15:40:01.134 T:7632 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value
2019-04-07 15:40:21.227 T:8068 WARNING: Previous line repeats 24996 times.
2019-04-07 15:40:21.227 T:8068   DEBUG: CAESinkDirectSound:Big Grineinitialize: Cleaning up
2019-04-07 15:40:21.228 T:7632 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value
2019-04-07 15:40:27.815 T:3968 WARNING: Previous line repeats 10251 times.
2019-04-07 15:40:27.816 T:3968    INFO: XCURL:Big GrinllLibCurlGlobal::CheckIdle - Closing session to http://bit.ly (easy=0x21726989090, multi=0x217267493e0)
2019-04-07 15:40:27.816 T:7632 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value
2019-04-07 15:42:04.661 T:7632 WARNING: Previous line repeats 130778 times.
(2019-04-07, 22:17)Ampsys Wrote: [ -> ]
(2019-04-07, 22:13)Ampsys Wrote: [ -> ]
(2019-04-07, 08:09)primaeval Wrote: [ -> ]Look for an error message in kodi.log and post it here.

To see what ffmpeg is doing turn on
Settings \ Debug \ debug ffmpeg stdout/stderr
Try to record.
Look in
userdata\addon_data\plugin.video.iptv.recorder\jobs
for the output files and see if there are any error messages from ffmpeg.

Turn off
Settings \ Debug \ debug ffmpeg stdout/stderr
to do a real recording again.     
Hi Primaeval - Thanks for the reply.  Here are the items you requested:

ERRORS I see in the kodi.log file:

Code:
2019-04-07 15:38:30.219 T:8012   ERROR: [plugin.video.iptv.recorder] service started...
2019-04-07 15:39:32.395 T:8012   ERROR: [plugin.video.iptv.recorder] Service waiting for 40827 seconds
2019-04-07 15:39:32.395 T:8012   ERROR: [plugin.video.iptv.recorder] Service waiting for 40827 seconds
2019-04-07 15:42:10.484 T:6480   ERROR: XFILE::CDirectory::GetDirectory - Error getting
2019-04-07 15:42:10.485 T:3968   DEBUG: CDirectoryProvider[]: refreshing..
2019-04-07 15:42:10.485 T:6104   ERROR: XFILE::CDirectory::GetDirectory - Error getting
2019-04-07 15:42:10.485 T:3968   DEBUG: CDirectoryProvider[]: refreshing..
2019-04-07 15:42:10.485 T:6480   ERROR: XFILE::CDirectory::GetDirectory - Error getting
2019-04-07 15:42:10.485 T:3968   DEBUG: CDirectoryProvider[]: refreshing..
2019-04-07 15:42:10.485 T:6104   ERROR: XFILE::CDirectory::GetDirectory - Error getting
2019-04-07 15:42:10.485 T:3968   DEBUG: CDirectoryProvider[]: refreshing..
2019-04-07 15:42:10.485 T:6480   ERROR: XFILE::CDirectory::GetDirectory - Error getting
2019-04-07 15:42:10.485 T:3968   DEBUG: CDirectoryProvider[]: refreshing..
2019-04-07 15:42:10.485 T:6104   ERROR: XFILE::CDirectory::GetDirectory - Error getting
2019-04-07 15:42:10.539 T:3968   ERROR: Previous line repeats 1 times.
2019-04-07 15:43:25.001 T:3968   ERROR: Control 55 in window 10025 has been asked to focus, but it can't

After turning on debug ffmpeg, looked in the plugin.video.iptv.recorder/jobs folder and have 2 PY, 2PID, and 2 stderr.txt files.  The PY/PID files don't much of anything in them; just a nubmer or two.  Of the text files, one is completely empty, the contents of the other are provided below:
Code:

ffmpeg version 4.1.1 Copyright © 2000-2019 the FFmpeg developers
  built with gcc 8.2.1 (GCC) 20190212
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
  libavutil      56. 22.100 / 56. 22.100
  libavcodec     58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter     7. 40.101 /  7. 40.101
  libswscale      5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
Input #0, mpegts, from '<MYIPTV PROVIDER AND SOME CREDENTIALS SHOWN HERE>':
  Duration: N/A, start: 3440.946367, bitrate: N/A
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], Closed Captions, 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc
    Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 138 kb/s
smb://<NAS SMB CREDENTIALS HERE>@192.168.0.4/Media/Recordings/Other\Mickey%27s Great Clubhouse Hunt - US%3A DISNEY JR - 2019-04-07 15-10.ts: Protocol not found

Let me know what, if anything, you see that I should change/adjust.

Thanks again!  
Sorry - Here is one other error and some surrounding logging that may be pertient - sorry missed this the first time:
Code:
2019-04-07 15:39:49.335 T:7632   ERROR: {'confidence': 0.99, 'language': '', 'encoding': 'utf-8'}
2019-04-07 15:39:49.340 T:7632 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value
2019-04-07 15:39:52.007 T:7632 WARNING: Previous line repeats 6885 times.
2019-04-07 15:39:52.007 T:7632   DEBUG: CFileCache::Open - opening <2OaD4wH> using cache
2019-04-07 15:39:52.023 T:7632   DEBUG: CurlFile::Open(0x2172e8cbf20)
2019-04-07 15:39:52.115 T:7632   DEBUG: CCurlFile::Open - effective URL: <http://tntcloud.xyz:2052/xmltv.php? >
2019-04-07 15:39:52.117 T:7944   DEBUG: Thread FileCache start, auto delete: false
2019-04-07 15:39:56.088 T:7944    INFO: CFileCache:Tonguerocess - Source read didn't return any data! Hit eof(?)
2019-04-07 15:39:57.401 T:7944   DEBUG: Thread FileCache 7944 terminating
2019-04-07 15:40:01.134 T:7632 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value
2019-04-07 15:40:21.227 T:8068 WARNING: Previous line repeats 24996 times.
2019-04-07 15:40:21.227 T:8068   DEBUG: CAESinkDirectSound:Big Grineinitialize: Cleaning up
2019-04-07 15:40:21.228 T:7632 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value
2019-04-07 15:40:27.815 T:3968 WARNING: Previous line repeats 10251 times.
2019-04-07 15:40:27.816 T:3968    INFO: XCURL:Big GrinllLibCurlGlobal::CheckIdle - Closing session to http://bit.ly (easy=0x21726989090, multi=0x217267493e0)
2019-04-07 15:40:27.816 T:7632 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value
2019-04-07 15:42:04.661 T:7632 WARNING: Previous line repeats 130778 times.
 

The "Protocol not found" comment on the ffmpeg stderr file looked interesting so I did some googling.  Stackoverflow has MANY threads on ffmpeg generating this error whenever a colon ":" is present in filenames.  Could that be it?  All my channels except for my 24/7 are named like:  <GROUP>: <CHANNELNAME> (i.e. - US: Discovery Channel).

I tried to do a 'Record and Play' on a 24/7 channel (they DO NOT have any colons), but same thing; only a .json file landed in my Recordings folder.
(2019-04-07, 22:37)Ampsys Wrote: [ -> ] 
Your posts have passwords in. I would edit them if I were you.

You are trying to do a direct recording to an smb:// location.
Your version of ffmpeg has not been build with smb functionality.

smb://<NAS SMB CREDENTIALS HERE>@192.168.0.4/Media/Recordings/Other\Mickey%27s Great Clubhouse Hunt - US%3A DISNEY JR - 2019-04-07 15-10.ts: Protocol not found

Start with the Default settings in
Settings \ Jobs and Rules
Especailly turn on
pipe ffmpeg output through kodi

Then kodi will do the writing to the smb share. ffmpeg will just pass the video data to kodi.

The : should be ok if the addon urlencodes it.
Does it look right in the .py job file?
He doesn't as yet have enough privs to edit posts, so I've done it for him. Let me know if I've missed any, as he also seems to have quoted his own post for some reason.
(2019-04-08, 09:23)DarrenHill Wrote: [ -> ]He doesn't as yet have enough privs to edit posts, so I've done it for him. Let me know if I've missed any, as he also seems to have quoted his own post for some reason.

Thanks.
Primaeval, thanks for all the hard work!

I set up a rule last night to always record a particular show.  Looks like it recorded 3 different episodes last night.  I'm wondering what I need to do so it only records first run episodes.  Is that possible?

Also I noticed it must not have grabbed the episode info because the test field on the left is not populated.  Is there anything I can do to fix that?

Thanks!
(2019-04-08, 16:17)lagman Wrote: [ -> ]Primaeval, thanks for all the hard work!

I set up a rule last night to always record a particular show.  Looks like it recorded 3 different episodes last night.  I'm wondering what I need to do so it only records first run episodes.  Is that possible?

Also I noticed it must not have grabbed the episode info because the test field on the left is not populated.  Is there anything I can do to fix that?

Thanks!
Sorry, "Text Field" not "Test Field" Wink
(2019-04-08, 16:17)lagman Wrote: [ -> ]Primaeval, thanks for all the hard work!

I set up a rule last night to always record a particular show.  Looks like it recorded 3 different episodes last night.  I'm wondering what I need to do so it only records first run episodes.  Is that possible?

Also I noticed it must not have grabbed the episode info because the test field on the left is not populated.  Is there anything I can do to fix that?

Thanks!

At the moment it will do an Always Record just based on the program title.
Some xmltv files have a [New] subscript that you could use.
If the new episode is always at a certain time you could do a Daily or Weekly Record.

If there is some special attribute in your xmltv that could be used, post an example xmltv file and I'll see if it could be added as a Setting option.
There is a lot of variation in how people make xmltv files.

This is all the information that is written into the json nfo file.
https://github.com/primaeval/plugin.vide...in.py#L580
and this is the section that grabs the program information from the xmltv file.
https://github.com/primaeval/plugin.vide...n.py#L2992
What is missing?
(2019-04-08, 16:39)primaeval Wrote: [ -> ]
(2019-04-08, 16:17)lagman Wrote: [ -> ]Primaeval, thanks for all the hard work!

I set up a rule last night to always record a particular show.  Looks like it recorded 3 different episodes last night.  I'm wondering what I need to do so it only records first run episodes.  Is that possible?

Also I noticed it must not have grabbed the episode info because the test field on the left is not populated.  Is there anything I can do to fix that?

Thanks!

At the moment it will do an Always Record just based on the program title.
Some xmltv files have a [New] subscript that you could use.
If the new episode is always at a certain time you could do a Daily or Weekly Record.

If there is some special attribute in your xmltv that could be used, post an example xmltv file and I'll see if it could be added as a Setting option.
There is a lot of variation in how people make xmltv files.

This is all the information that is written into the json nfo file.
https://github.com/primaeval/plugin.vide...in.py#L580
and this is the section that grabs the program information from the xmltv file.
https://github.com/primaeval/plugin.vide...n.py#L2992
What is missing? 
My xmltv format is below.  Season/episode is in parenthesis within the <desc> tag.  I did also notice not every program has a <desc> tag so it's possible the few shows I recorded last night just didn't have the tag there.  Presumably you grab the info in <desc>?

<programme start="20190408053000 -0400" stop="20190408060000 -0400" channel="E4" >
<title>Some Title</title>
<desc>Some description (S4 Ep14/24).</desc>
</programme>

Thanks,
Dan
(2019-04-08, 19:01)lagman Wrote: [ -> ]
(2019-04-08, 16:39)primaeval Wrote: [ -> ]
(2019-04-08, 16:17)lagman Wrote: [ -> ]Primaeval, thanks for all the hard work!

I set up a rule last night to always record a particular show.  Looks like it recorded 3 different episodes last night.  I'm wondering what I need to do so it only records first run episodes.  Is that possible?

Also I noticed it must not have grabbed the episode info because the test field on the left is not populated.  Is there anything I can do to fix that?

Thanks!

At the moment it will do an Always Record just based on the program title.
Some xmltv files have a [New] subscript that you could use.
If the new episode is always at a certain time you could do a Daily or Weekly Record.

If there is some special attribute in your xmltv that could be used, post an example xmltv file and I'll see if it could be added as a Setting option.
There is a lot of variation in how people make xmltv files.

This is all the information that is written into the json nfo file.
https://github.com/primaeval/plugin.vide...in.py#L580
and this is the section that grabs the program information from the xmltv file.
https://github.com/primaeval/plugin.vide...n.py#L2992
What is missing?  
My xmltv format is below.  Season/episode is in parenthesis within the <desc> tag.  I did also notice not every program has a <desc> tag so it's possible the few shows I recorded last night just didn't have the tag there.  Presumably you grab the info in <desc>?

<programme start="20190408053000 -0400" stop="20190408060000 -0400" channel="E4" >
<title>Some Title</title>
<desc>Some description (S4 Ep14/24).</desc>
</programme>

Thanks,
Dan 
That's not even close to the xmltv format.
Some xmltv files have a <new> tag that could easily be read.
Others have an <episode-num> tag that can be parsed.
http://wiki.xmltv.org/index.php/XMLTVFormat

I don't think there is any way to reliably look for new episodes from your data.
(2019-04-08, 09:04)primaeval Wrote: [ -> ]
(2019-04-07, 22:37)Ampsys Wrote: [ -> ] 
Your posts have passwords in. I would edit them if I were you.

You are trying to do a direct recording to an smb:// location.
Your version of ffmpeg has not been build with smb functionality.

smb://<NAS SMB CREDENTIALS HERE>@192.168.0.4/Media/Recordings/Other\Mickey%27s Great Clubhouse Hunt - US%3A DISNEY JR - 2019-04-07 15-10.ts: Protocol not found

Start with the Default settings in
Settings \ Jobs and Rules
Especailly turn on
pipe ffmpeg output through kodi

Then kodi will do the writing to the smb share. ffmpeg will just pass the video data to kodi.

The : should be ok if the addon urlencodes it.
Does it look right in the .py job file? 
Set Jobs and Rules to defaults, remapped to the SMB recording location, ensured 'pipe ffmpeg output through Kodi (for network folders)' was enabled (it was anyway), and ensured the ffmpeg exe location is correct.

Still no luck.

Also, the py file looks wonky but no invalid characters I know of for a file name...  Here's what I see:
Code:

# -*- coding: utf-8 -*-
import os, subprocess, time
cmd = ['C:\\Users\\<ME>\\Downloads\\ffmpeg-4.1.1-win64-static\\ffmpeg-4.1.1-win64-static\\bin\\ffmpeg.exe', '-i', u'http://<iptvproviderstuff>', '-y', '-t', '4200', '-c', 'copy', '-reconnect_at_eof', '1', '-reconnect_streamed', '1', '-reconnect_delay_max', '300', 'smb://<NASCREDENTIALS>@192.168.0.4/Media/Recordings/Other\\24%2F7 FAMILY GUY\\24%2F7 FAMILY GUY - 2019-04-07 20-33.ts']
p = subprocess.Popen(cmd, shell=True)
f = open(r'C:\Users\<ME>\AppData\Roaming\Kodi\userdata\addon_data\plugin.video.iptv.recorder\jobs\705f4140-5974-11e9-ae95-cc4b7364fa95.py.pid', 'w+')
f.write(repr(p.pid))
f.close()
p.wait()

Is there a different ffmpeg version I should use?
(2019-04-09, 01:51)Ampsys Wrote: [ -> ]
(2019-04-08, 09:04)primaeval Wrote: [ -> ]
(2019-04-07, 22:37)Ampsys Wrote: [ -> ] 
Your posts have passwords in. I would edit them if I were you.

You are trying to do a direct recording to an smb:// location.
Your version of ffmpeg has not been build with smb functionality.

smb://<NAS SMB CREDENTIALS HERE>@192.168.0.4/Media/Recordings/Other\Mickey%27s Great Clubhouse Hunt - US%3A DISNEY JR - 2019-04-07 15-10.ts: Protocol not found

Start with the Default settings in
Settings \ Jobs and Rules
Especailly turn on
pipe ffmpeg output through kodi

Then kodi will do the writing to the smb share. ffmpeg will just pass the video data to kodi.

The : should be ok if the addon urlencodes it.
Does it look right in the .py job file?    
Set Jobs and Rules to defaults, remapped to the SMB recording location, ensured 'pipe ffmpeg output through Kodi (for network folders)' was enabled (it was anyway), and ensured the ffmpeg exe location is correct.

Still no luck.

Also, the py file looks wonky but no invalid characters I know of for a file name...  Here's what I see:
Code:

# -*- coding: utf-8 -*-
import os, subprocess, time
cmd = ['C:\\Users\\<ME>\\Downloads\\ffmpeg-4.1.1-win64-static\\ffmpeg-4.1.1-win64-static\\bin\\ffmpeg.exe', '-i', u'http://<iptvproviderstuff>', '-y', '-t', '4200', '-c', 'copy', '-reconnect_at_eof', '1', '-reconnect_streamed', '1', '-reconnect_delay_max', '300', 'smb://<NASCREDENTIALS>@192.168.0.4/Media/Recordings/Other\\24%2F7 FAMILY GUY\\24%2F7 FAMILY GUY - 2019-04-07 20-33.ts']
p = subprocess.Popen(cmd, shell=True)
f = open(r'C:\Users\<ME>\AppData\Roaming\Kodi\userdata\addon_data\plugin.video.iptv.recorder\jobs\705f4140-5974-11e9-ae95-cc4b7364fa95.py.pid', 'w+')
f.write(repr(p.pid))
f.close()
p.wait()

Is there a different ffmpeg version I should use?   

You didn't turn on "pipe ffmpeg through Kodi".
If you did the last cmd argument would be "-" which means pipe the stdout output through kodi.
python:
cmd = ['D:\\utils\\ffmpeg.exe', '-i', u'http://****', '-y', '-t', '6620', '-c', 'copy', '-reconnect_at_eof', '1', '-reconnect_streamed', '1', '-reconnect_delay_max', '300', '-f', 'mpegts', '-']

The whole job file should also have a while loop which uses kodi to write the output to a file.
python:
# -*- coding: utf-8 -*-
import os, subprocess, time
import xbmc,xbmcvfs,xbmcgui
xbmcgui.Dialog().notification("Recording: ESPN HD", "MLS Soccer", sound=True)
cmd = ['D:\\utils\\ffmpeg.exe', '-i', u'http://****', '-y', '-t', '6620', '-c', 'copy', '-reconnect_at_eof', '1', '-reconnect_streamed', '1', '-reconnect_delay_max', '300', '-f', 'mpegts', '-']
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True)
f = open(r'D:\kodi-18.1-Leia-x64\portable_data\userdata\addon_data\plugin.video.iptv.recorder\jobs\72e2f600-5960-11e9-acf5-5404a6420d2f.py.pid', 'w+')
f.write(repr(p.pid))
f.close()
video = xbmcvfs.File(r"D:\kodi-18.1-Leia-x64\portable_data\cache\Other\ESPN HD\MLS Soccer - ESPN HD - 2019-04-07 20-00.ts","wb")
playing = False
while True:
  data = p.stdout.read(1000000)
  if data:
      video.write(data)
  else:
      break
video.close()
xbmcgui.Dialog().notification("Recording finished: ESPN HD", "MLS Soccer", sound=True)
(2019-04-09, 07:48)primaeval Wrote: [ -> ]
(2019-04-09, 01:51)Ampsys Wrote: [ -> ]
(2019-04-08, 09:04)primaeval Wrote: [ -> ]Your posts have passwords in. I would edit them if I were you.

You are trying to do a direct recording to an smb:// location.
Your version of ffmpeg has not been build with smb functionality.

smb://<NAS SMB CREDENTIALS HERE>@192.168.0.4/Media/Recordings/Other\Mickey%27s Great Clubhouse Hunt - US%3A DISNEY JR - 2019-04-07 15-10.ts: Protocol not found

Start with the Default settings in
Settings \ Jobs and Rules
Especailly turn on
pipe ffmpeg output through kodi

Then kodi will do the writing to the smb share. ffmpeg will just pass the video data to kodi.

The : should be ok if the addon urlencodes it.
Does it look right in the .py job file?    
Set Jobs and Rules to defaults, remapped to the SMB recording location, ensured 'pipe ffmpeg output through Kodi (for network folders)' was enabled (it was anyway), and ensured the ffmpeg exe location is correct.

Still no luck.

Also, the py file looks wonky but no invalid characters I know of for a file name...  Here's what I see:
Code:

# -*- coding: utf-8 -*-
import os, subprocess, time
cmd = ['C:\\Users\\<ME>\\Downloads\\ffmpeg-4.1.1-win64-static\\ffmpeg-4.1.1-win64-static\\bin\\ffmpeg.exe', '-i', u'http://<iptvproviderstuff>', '-y', '-t', '4200', '-c', 'copy', '-reconnect_at_eof', '1', '-reconnect_streamed', '1', '-reconnect_delay_max', '300', 'smb://<NASCREDENTIALS>@192.168.0.4/Media/Recordings/Other\\24%2F7 FAMILY GUY\\24%2F7 FAMILY GUY - 2019-04-07 20-33.ts']
p = subprocess.Popen(cmd, shell=True)
f = open(r'C:\Users\<ME>\AppData\Roaming\Kodi\userdata\addon_data\plugin.video.iptv.recorder\jobs\705f4140-5974-11e9-ae95-cc4b7364fa95.py.pid', 'w+')
f.write(repr(p.pid))
f.close()
p.wait()

Is there a different ffmpeg version I should use?     

You didn't turn on "pipe ffmpeg through Kodi".
If you did the last cmd argument would be "-" which means pipe the stdout output through kodi.
python:
cmd = ['D:\\utils\\ffmpeg.exe', '-i', u'http://****', '-y', '-t', '6620', '-c', 'copy', '-reconnect_at_eof', '1', '-reconnect_streamed', '1', '-reconnect_delay_max', '300', '-f', 'mpegts', '-']

The whole job file should also have a while loop which uses kodi to write the output to a file.
python:
# -*- coding: utf-8 -*-
import os, subprocess, time
import xbmc,xbmcvfs,xbmcgui
xbmcgui.Dialog().notification("Recording: ESPN HD", "MLS Soccer", sound=True)
cmd = ['D:\\utils\\ffmpeg.exe', '-i', u'http://****', '-y', '-t', '6620', '-c', 'copy', '-reconnect_at_eof', '1', '-reconnect_streamed', '1', '-reconnect_delay_max', '300', '-f', 'mpegts', '-']
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True)
f = open(r'D:\kodi-18.1-Leia-x64\portable_data\userdata\addon_data\plugin.video.iptv.recorder\jobs\72e2f600-5960-11e9-acf5-5404a6420d2f.py.pid', 'w+')
f.write(repr(p.pid))
f.close()
video = xbmcvfs.File(r"D:\kodi-18.1-Leia-x64\portable_data\cache\Other\ESPN HD\MLS Soccer - ESPN HD - 2019-04-07 20-00.ts","wb")
playing = False
while True:
  data = p.stdout.read(1000000)
  if data:
      video.write(data)
  else:
      break
video.close()
xbmcgui.Dialog().notification("Recording finished: ESPN HD", "MLS Soccer", sound=True)
 

Is this NOT the correct setting?  Or is there some other place?  This is what I have had set all along so I'm either missing something, or the setting is being ignored.

Screencap