Kodi Community Forum
Headless Kodi - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: Headless Kodi (/showthread.php?tid=212061)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32


RE: Headless Kodi - mrdally204 - 2016-03-10

I've been following this thread for a while hoping it would be mainlined but unfortunately has not yet. For the time being I am using an old phone as a security cam at my house. I set up kodi on the phone and run it in the background "headless" to handle my library updates. Just thought I would share my work around and maybe it will help someone else looking to fill this void. I also enabled upnp so I now have kodi always running and upnp server for my other devices Smile


RE: Headless Kodi - greyslater - 2016-03-10

(2016-03-10, 01:24)celedhrim Wrote: I think kodi take thumb when need to display them.

With the headless version , You don't navigate , so thumb never fetch.

Have you try the web interface. Mine have thumb ( maybe be web interface , like gui , trigger a thumb fetch)

you're absolutely right here but the behavior of headless kodi differs here from native one

> also my web interface shows the thumbs - they are always loaded slow because in my case they are taken from image.tmdb.org (with path taken from mySQL)
> i deleted all images from all subfolders under /userdata/Thumbnails and restarted headless-kodi
> web interface - all thumbs are loaded again - the Thumbnails folders are filled up again

> but the difference between native and headless kodi: headless kodi always downloads the images from internet whereas native kodi uses the Thumbnails folder as expected
> same for UPnP on native kodi: thumbnails are taken from Thumbnails folder

as an example inside the UPnP metadata there are the URIs for the files (video and image(s)) - except for the IPTongueort they are identical for headless/native KODI

http://172.27.2.12:1614/%25/71D8DD3D5CF5D4CAA88502AB6B72E37C/pso-th8_bd.1080p.mkv
http://172.27.2.12:1614/%25/7AC66455EC4EA50B40461E73E074A10B/y8ltWhLxPppr9LN7Mlw4i1gnc75.jpg

as i mentioned: UPnP Playback works well, so the mkv is played on my clients flawless but the .jpg is not found

native kodi takes this .jpg from Thumbnails but headless kodi doesn't know what to do here

anybody knows where this is controlled in kodi / are there any UPnP settings for this?


RE: Headless Kodi - celedhrim - 2016-03-13

Hi,

I have rework jarvis Dockerfile.
Now base on ubuntu 16.04 ( new lts) , this LTS reintroduice ffmpeg , so I now build kodi with system ffmpeg to reduce image build time.
I have also do a full package check , container now take 440.4 MB instead of around 1 GB.
Master and Jarvis branch are currently building on docker hub.
I added a new branch 'experimental' this branch goal is only for major change / dockerhub test and won't be for regular use.

Once more , if you encounter issue , don't hesitate to report !


RE: Headless Kodi - greyslater - 2016-03-13

Hey,

great work and also art over UPnP is working now for me - not completely automatic but ok for me - let me explain

thumbnails on UPnP are not delivered before the thumbnail gets fetched and stored in the local Thumbnail folder
this is not done automatically but once I open the webservice and list all my movies (specially when there are newly scraped ones) the image is then also availlable over UPnP

now I can bring my docker-kodi into "production"

thank you @celedhrim for this update


RE: Headless Kodi - greyslater - 2016-03-16

Hi,

could there be a problem with ffmpeg
It shows unsupported ffmpeg

Code:
07:59:56 T:139952894462080  NOTICE: Running on Ubuntu 16.04, kernel: Linux x86 64-bit version 3.16.0-4-amd64
07:59:56 T:139952894462080  NOTICE: FFmpeg version: 2.8.6-1ubuntu1
07:59:56 T:139952894462080  NOTICE: WARNING: unsupported ffmpeg version detected

btw: art over UPnP isn't working again Sad and i can't figure out why


RE: Headless Kodi - celedhrim - 2016-03-16

It's just a warning that we don't use the kodi ffmpeg but the system one.

I havn't notice any issue during my test , and it greatly increse the docker image build time.


RE: Headless Kodi - twicino - 2016-03-18

Hi, I'm planning to build this for my headless ubuntu server. The plan is to connect yatse to it and to stream my library to my Chromecast. Do you think this is somewhat doable with the current state of this project or should I avoid wasting my time?


RE: Headless Kodi - celedhrim - 2016-03-18

It just normal kodi headless , full yatse control ( I do it personnaly)

But I don't know how to stream to chromecast Smile


RE: Headless Kodi - candyman2000 - 2016-03-18

Hi

Has anyone got celedhrim's Jarvis docker container working on Synology?

I used to run Sparklyballs 14 and 15 versions fine but can't get this one to work. I just want it for library updates nothing fancy.

I've got the container running and mapped local port 9090 to container port 8080 but can't reach the web server.


RE: Headless Kodi - twicino - 2016-03-18

(2016-03-18, 19:52)celedhrim Wrote: It just normal kodi headless , full yatse control ( I do it personnaly)

But I don't know how to stream to chromecast Smile
the paid version of yatse allows streaming to Chromecast (as long as the media doesn't need transcoding).


RE: Headless Kodi - greyslater - 2016-03-19

(2016-03-18, 22:24)candyman2000 Wrote: I've got the container running and mapped local port 9090 to container port 8080 but can't reach the web server.

make sure your advancedsettings.xml reflects the correct port

Quote:<services>
<webserverport>8080</webserverport>
</services>

but i had problems too with portmapping - instead i created the container with flag --net=host


RE: Headless Kodi - snuffy47 - 2016-03-20

Hello All

I want my headless server to update and clean libary when i restart it

What do I put in the advancesetttings.xml to do this?


RE: Headless Kodi - greyslater - 2016-03-20

Hi,

you can read about the most possible settings in the documentation for the advancedsettings.xml

Video and / or Music Library Update at startup can be achieved by:

Quote:<videolibrary>
<updateonstartup>true</updateonstartup>
<cleanonupdate>true</cleanonupdate>
</videolibrary>
<musiclibrary>
<updateonstartup>true</updateonstartup>
<cleanonupdate>true</cleanonupdate>
</musiclibrary>



RE: Headless Kodi - galbano75 - 2016-03-22

is there a digest version, I'm new to Kodi and this is what i am looking for, something that can run on a headless Ubuntu server. I like to get up2 speed and give it a go and contribute if possible. I seen the repo but no issues tracking, or current status.


RE: Headless Kodi - greyslater - 2016-03-22

Hi again

I'm still facing the problem that art is not delivered over UPnP with kodi-headless within docker - warnings from platinum.media.server.file.delegate which can't find the images
I compared the logs with native KODI on openELEC where art over UPnP works fine to get a clue where the UPnP server get the images from because i thought it has something to do with the Thumbnails folder under userdata

interesting thing on headless kodi is that the webservice shows all the art - also fills up the Thumbnail folder but never uses it as a cache - with a refresh the images are again taken from internet

logs showing the behaviour - it's interesting that on a working kodi the jpg Files are not the same Filenames as from Thumbnail Folder but it works - on headless Kodi the Filenames for the jpgs are same like on working kodi but the files are not found

Quote:21:21:19 T:139919624234752 DEBUG: Received request to serve '9BD6C0F8F6B3E2E4FEF716B4C17CC006/79349-28.jpg' = 'image://http%3a%2f%2fthetvdb.com%2fbanners%2ffanart%2foriginal%2f79349-28.jpg/'
21:21:19 T:139919624234752 WARNING: Platinum [platinum.media.server.file.delegate]: NPT_CHECK failed, result=-20005 (NPT_ERROR_NO_SUCH_ITEM) [(ServeFile(request, context, response, NPT_FilePath::Create(m_FileRoot, file_path)))]
21:21:19 T:139919624234752 INFO: Platinum [platinum.core.http.servertask]: PLT_HttpServerSocketTask::Write
HTTP/1.1 404 Not Found
Content-Disposition: inline; filename=""
Date: Fri, 16 Oct 2015 19:21:19 GMT
Content-Length: 132
Content-Type: text/html
Server: UPnP/1.0 DLNADOC/1.50 Kodi

i can't understand where headless kodi tries to get the images and why it can find them
anyone else facing the same behaviour?