Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error recording live tv (coreelec 9.2.5 - Kodi 18 - French) #48

Open
tbock1 opened this issue Jan 21, 2021 · 0 comments
Open

error recording live tv (coreelec 9.2.5 - Kodi 18 - French) #48

tbock1 opened this issue Jan 21, 2021 · 0 comments

Comments

@tbock1
Copy link

tbock1 commented Jan 21, 2021

Hello,

First thank you for this awesome dev.

Sorry but I have this issue : recording of live tv is not possible.
I use : Beelink GT1 Ultimate with Coreelec 9.2.5.
Kodi plugins : IPTV Simple, IPTV recorder, Cathup-and-more.
ffmpeg is from coreelec ffmpeg tools package.

I tried to install/uninstall a few times.
I looked into the web for existing solution but unfortunately had no real solution.
Tried some of them with no chance...

This is part of kodi.log 👍
2021-01-21 13:13:08.808 T:3710931776 NOTICE: AddOnLog: PVR IPTV Simple Client: LoadPlayList PlayList Loaded - 13 (ms)
2021-01-21 13:13:08.808 T:3710931776 NOTICE: AddOnLog: PVR IPTV Simple Client: Loaded 111 channels.
2021-01-21 13:13:08.812 T:3710931776 NOTICE: PVR Manager: Starting
2021-01-21 13:13:08.854 T:3603657536 NOTICE: PVR Manager: Started
2021-01-21 13:13:08.948 T:3903898432 NOTICE: EPG thread started
2021-01-21 13:13:12.396 T:3595264832 NOTICE: AddOnLog: PVR IPTV Simple Client: LoadEPG EPG Loaded - 2442 (ms)
2021-01-21 13:13:30.670 T:3586872128 NOTICE: [xbmcswift2] Request for "/full_service" matches rule for function "full_service"
2021-01-21 13:13:32.330 T:3586872128 ERROR: {'confidence': 0.98999999999999999, 'language': '', 'encoding': 'utf-8'}
2021-01-21 13:13:38.740 T:3620279104 NOTICE: [xbmcswift2] Request for "/" matches rule for function "index"
2021-01-21 13:15:02.561 T:4087390224 NOTICE: Previous line repeats 1 times.
2021-01-21 13:15:02.561 T:4087390224 NOTICE: NFS is idle. Closing the remaining connections.
2021-01-21 13:24:54.158 T:3881911104 NOTICE: [xbmcswift2] Request for "/groups" matches rule for function "groups"
2021-01-21 13:24:58.443 T:3903898432 NOTICE: [xbmcswift2] Request for "/group/France+TNT" matches rule for function "group"
2021-01-21 13:25:06.651 T:3881911104 NOTICE: [xbmcswift2] Request for "/channel/C192.api.telerama.fr/TF1" matches rule for function "channel"
2021-01-21 13:25:06.730 T:4087390224 WARNING: CGUIMediaWindow::OnMessage - updating in progress
2021-01-21 13:25:12.839 T:3903898432 NOTICE: [xbmcswift2] Request for "/broadcast/10299/TF1" matches rule for function "broadcast"
2021-01-21 13:25:16.956 T:3620279104 NOTICE: [xbmcswift2] Request for "/record_once/10299/C192.api.telerama.fr/TF1" matches rule for function "record_once"
2021-01-21 13:25:16.958 T:3903898432 ERROR: GetDirectory - Error getting plugin://plugin.video.iptv.recorder/record_once/10299/C192.api.telerama.fr/TF1
2021-01-21 13:25:16.963 T:4087390224 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.iptv.recorder/record_once/10299/C192.api.telerama.fr/TF1) failed

This what is generated by plugin in userdata.../jobs :

-- coding: utf-8 --

from future import unicode_literals
import os, subprocess, time, io
from kodi_six import xbmc,xbmcvfs,xbmcgui
xbmcgui.Dialog().notification("Recording: TF1", "Journal", sound=True)
cmd = [u'/storage/.kodi/addons/tools.ffmpeg-tools/bin/ffmpeg', u'-i', u'plugin://plugin.video.catchuptvandmore/resources/lib/channels/fr/mytf1/get_live_url/?item_id=tf1', u'-y', u'-t', '1686', u'-fflags', u'+genpts', u'-vcodec', u'copy', u'-acodec', u'copy', u'-reconnect_at_eof', u'1', u'-reconnect_streamed', u'1', u'-reconnect_delay_max', u'300', u'/storage/.kodi/temp/TV/Other/Journal/Journal - TF1 - 2021-01-21 13-00.ts']
player = xbmc.Player()
player.play('plugin://plugin.video.catchuptvandmore/resources/lib/channels/fr/mytf1/get_live_url/?item_id=tf1')
new_url = ''
for _ in range(60):
time.sleep(1)
if player.isPlaying():
new_url = player.getPlayingFile()
break
time.sleep(1)
player.stop()
time.sleep(1)
if new_url:
cmd[2] = new_url
p = subprocess.Popen(cmd, shell=False)
f = xbmcvfs.File('special://profile/addon_data/plugin.video.iptv.recorder/jobs/fcc4c800-5be1-11eb-949c-96cad82c4604.py.pid', 'w')
f.write(bytearray(repr(p.pid).encode('utf-8')))
f.close()
p.wait()
xbmcgui.Dialog().notification("Recording finished: TF1", "Journal", sound=True)

Any idea ?
Do I have to provide additional logs ?
Thank's in advance !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant