2018-09-13, 10:54
(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