2018-09-13, 02:50
No luck. I pointed to the Simple Client but same issue. The channel can be played in there. But it's not showing up under iptv recorder. The group title is showing then empty after that.
(2018-09-12, 23:37)Foxxyfox Wrote: OKThat looks like the same problem that @JQZ* had a few posts back with Android write permissions.
Python job file made, looks reasonable
import os, subprocess, time
import xbmc,xbmcvfs,xbmcgui
xbmcgui.Dialog().notification("Recording: UK: BBC ONE SD", "BBC News at Ten", sound=True)
cmd = ['/data/data/org.xbmc.kodi/ffmpeg', '-i', u'http://xxxxxx.xxxx.xyz:80/xxxx/xxxxxxxx/xxxxxxxxx/7411.ts', '-reconnect', '1', '-reconnect_at_eof', '1', '-reconnect_streamed', '1', '-reconnect_delay_max', '300', '-y', '-t', '972', '-c', 'copy', '/storage/emulated/0/backups/Other/BBC News at Ten - UK%3A BBC ONE SD - 2018-09-12 22-00.ts']
p = subprocess.Popen(cmd, shell=False)
f = open(r'/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/addon_data/plugin.video.iptv.recorder/jobs/e08e50c2-b6d0-11e8-ac55-823e8fc52cb5.py.pid', 'w+')
f.write(repr(p.pid))
f.close()
p.wait()
xbmcgui.Dialog().notification("Recording finished: UK: BBC ONE SD", "BBC News at Ten", sound=True)
Does it on both android box and Firestick
ffmpeg set to storage/emulated/0/Android/data/org.xbmc.kodi/prebuilt-binaries.ffmpeg
Kodi recordings set to network hard drive selected in settings
(2018-09-13, 02:50)nashnash Wrote: No luck. I pointed to the Simple Client but same issue. The channel can be played in there. But it's not showing up under iptv recorder. The group title is showing then empty after that.You need an xmltv file that matches your m3u file.
(2018-09-13, 09:31)nashnash Wrote: Primaeval, thx for your help. I got further which chanels set up. But recording is starting and stoping right a way. I think it's the issue of the right ffmpeg binary. This is nexus player...it kind of show a combination of X86 and arm7a. I tried the bin in the first posts but none work. I've decided to replace this nexus player anyway. Was having sound issue and had to reset it.You probably haven't picked the right ffmpeg.
I'm thinking of picking up the Shield today. Can you point me to the exact ffmpeg you've been using with the Shield? Thanks.
<setting id="recordings" label="Kodi Recordings Folder" type="folder" option="writeable" default="special://temp"/>
<setting id="ffmpeg.pipe" label="pipe ffmpeg output through Kodi (for network folders)" type="bool" default="true"/>
<setting id="ffmpeg.recordings" label="ffmpeg Recordings Folder (if different than Kodi path)" type="text" default="" visible="eq(-1,false)"/>
(2018-09-13, 07:07)primaeval Wrote:Thanks for your help got it going now Last Question (for now) what exactly does the Delete ffmpeg function do?(2018-09-12, 23:37)Foxxyfox Wrote: OKThat looks like the same problem that @JQZ* had a few posts back with Android write permissions.
Python job file made, looks reasonable
import os, subprocess, time
import xbmc,xbmcvfs,xbmcgui
xbmcgui.Dialog().notification("Recording: UK: BBC ONE SD", "BBC News at Ten", sound=True)
cmd = ['/data/data/org.xbmc.kodi/ffmpeg', '-i', u'http://xxxxxx.xxxx.xyz:80/xxxx/xxxxxxxx/xxxxxxxxx/7411.ts', '-reconnect', '1', '-reconnect_at_eof', '1', '-reconnect_streamed', '1', '-reconnect_delay_max', '300', '-y', '-t', '972', '-c', 'copy', '/storage/emulated/0/backups/Other/BBC News at Ten - UK%3A BBC ONE SD - 2018-09-12 22-00.ts']
p = subprocess.Popen(cmd, shell=False)
f = open(r'/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/addon_data/plugin.video.iptv.recorder/jobs/e08e50c2-b6d0-11e8-ac55-823e8fc52cb5.py.pid', 'w+')
f.write(repr(p.pid))
f.close()
p.wait()
xbmcgui.Dialog().notification("Recording finished: UK: BBC ONE SD", "BBC News at Ten", sound=True)
Does it on both android box and Firestick
ffmpeg set to storage/emulated/0/Android/data/org.xbmc.kodi/prebuilt-binaries.ffmpeg
Kodi recordings set to network hard drive selected in settings
Kodi doesn't ask for permission to write to your sdcard so it doesn't get it.
You are trying to write to /storage/emulated/0/backups
Did it work on the default special://temp ?
Test that Kodi has permissions to write to that directory in the kodi File Manager by creating or copying a file there.
You'll have to find one of the workarounds that works for you.
You can try Adopted Storage for the sdcard. That is probably what I am using on my Shield.
If you use a network hard drive I expect you have to turn on:
"pipe ffmpeg output through Kodi (for network folders)"
Set the "kodi recording folder" to something like a windows share that has write permissions.
Leave the "ffmpeg recordings folder" blank.
(2018-09-13, 10:54)Foxxyfox Wrote:Good.(2018-09-13, 07:07)primaeval Wrote:Thanks for your help got it going now Last Question (for now) what exactly does the Delete ffmpeg function do?(2018-09-12, 23:37)Foxxyfox Wrote: OKThat looks like the same problem that @JQZ* had a few posts back with Android write permissions.
Python job file made, looks reasonable
import os, subprocess, time
import xbmc,xbmcvfs,xbmcgui
xbmcgui.Dialog().notification("Recording: UK: BBC ONE SD", "BBC News at Ten", sound=True)
cmd = ['/data/data/org.xbmc.kodi/ffmpeg', '-i', u'http://xxxxxx.xxxx.xyz:80/xxxx/xxxxxxxx/xxxxxxxxx/7411.ts', '-reconnect', '1', '-reconnect_at_eof', '1', '-reconnect_streamed', '1', '-reconnect_delay_max', '300', '-y', '-t', '972', '-c', 'copy', '/storage/emulated/0/backups/Other/BBC News at Ten - UK%3A BBC ONE SD - 2018-09-12 22-00.ts']
p = subprocess.Popen(cmd, shell=False)
f = open(r'/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/addon_data/plugin.video.iptv.recorder/jobs/e08e50c2-b6d0-11e8-ac55-823e8fc52cb5.py.pid', 'w+')
f.write(repr(p.pid))
f.close()
p.wait()
xbmcgui.Dialog().notification("Recording finished: UK: BBC ONE SD", "BBC News at Ten", sound=True)
Does it on both android box and Firestick
ffmpeg set to storage/emulated/0/Android/data/org.xbmc.kodi/prebuilt-binaries.ffmpeg
Kodi recordings set to network hard drive selected in settings
Kodi doesn't ask for permission to write to your sdcard so it doesn't get it.
You are trying to write to /storage/emulated/0/backups
Did it work on the default special://temp ?
Test that Kodi has permissions to write to that directory in the kodi File Manager by creating or copying a file there.
You'll have to find one of the workarounds that works for you.
You can try Adopted Storage for the sdcard. That is probably what I am using on my Shield.
If you use a network hard drive I expect you have to turn on:
"pipe ffmpeg output through Kodi (for network folders)"
Set the "kodi recording folder" to something like a windows share that has write permissions.
Leave the "ffmpeg recordings folder" blank.
Thanks again
(2018-09-13, 11:01)primaeval Wrote:Ok so I altered the output file to the storage area on the firestick /storage/emulated/0/backups(2018-09-13, 10:54)Foxxyfox Wrote:Good.(2018-09-13, 07:07)primaeval Wrote: That looks like the same problem that @JQZ* had a few posts back with Android write permissions.Thanks for your help got it going now Last Question (for now) what exactly does the Delete ffmpeg function do?
Kodi doesn't ask for permission to write to your sdcard so it doesn't get it.
You are trying to write to /storage/emulated/0/backups
Did it work on the default special://temp ?
Test that Kodi has permissions to write to that directory in the kodi File Manager by creating or copying a file there.
You'll have to find one of the workarounds that works for you.
You can try Adopted Storage for the sdcard. That is probably what I am using on my Shield.
If you use a network hard drive I expect you have to turn on:
"pipe ffmpeg output through Kodi (for network folders)"
Set the "kodi recording folder" to something like a windows share that has write permissions.
Leave the "ffmpeg recordings folder" blank.
Thanks again
What did you do, so I know what to tell people in the future?
"Delete ffmpeg" deletes the copy of the ffmpeg binary that is made in the Android /data/data folder.
It's there in case you overwrite the ffmpeg you pointed to with a new version.
The addon only tests if the path for the "ffmpeg exe" has changed before it will copy in a new ffmpeg binary.
This will force it.
The only reliable automatic way to do it is to copy the ffmpeg every time which would create a big delay before recording and is probably overkill.
(2018-09-13, 10:11)primaeval Wrote:Giving up on the Nexus player ffmpeg issues. I got the Shield on the way and should be here tonight. Thanks for great advice. Was going to do the 16gb and use adoptive storage...but from your advice, I went with the internal SSD version. Adopting storage though better than nothing will slow the drive speed due to encryption. 500 gb will be enough to record without to much worry. And a micro sd ( i have a 400gb one) or a 2 TB portable storage will serve as further offloading storage to release space on the internal drive. An automated synching app to move the files from internal to external should do the rest. With the Shield Plex server hosting, it will also make it easy to record on the Shield but watch on on other TV in the house or even over the internet at occasion.(2018-09-13, 09:31)nashnash Wrote:You probably haven't picked the right ffmpeg.
Turn on
Settings \ Debug \ Debug ffmpeg stdout/stderr
and have a look for files like
userdata\addon_data\plugin.video.iptv.recorder\jobs\b7ac83cf-af49-11e8-b686-e0b9a545f00a.py.stderr.txt
If you get one it means ffmpeg ran and you can look in there for some clues why if failed.
I'm using armeabi-v7a from
https://github.com/WritingMinds/ffmpeg-a...naries.zip
on my Shield.
I don't know if it's the best one but it works.
If you're going to get a Shield I would probably recommend the one with the internal hard disk for recording.
I've got the one with only 16gb of memory so I do my recording to a windows share on my server.
I tried using a big external usb drive but the shield has a really hard time with the i/o. Not recommended.
I've added a small sdcard in as adoptable storage but that won't hold many recordings.
(2018-09-15, 09:09)nashnash Wrote: Hello Primaeval....I got my Shield. Just tried the set up..per instructions however I'm getting and error while doing Record Once.. The following message is falshin g in the top right corner: Add On Error, please check the logs.It works for me so we should be able to fix it.
Where do I find the logs?. Sorry, I can't find them. Thx. I really had hoped this shoudl work.
(2018-09-15, 17:55)nashnash Wrote: Please find below the log detailsCan you post the contents of the job file:
https://paste.kodi.tv/tuhacuzipu