metal3d / idok

A simple command line to stream media to kodi (aka xbmc). Stream youtube, gstreamer output, livestreamer output, and many other media stream.
BSD 3-Clause "New" or "Revised" License
62 stars 9 forks source link

stdin not working #9

Open itouch5000 opened 8 years ago

itouch5000 commented 8 years ago

Hey, the direct stream with stdin to kodi does not work. Idok shows the error "Unable to get local ip":

works:

C:\Users\Lucas\Desktop\rar filme>idok -target=127.0.0.1 "C:/Users/Lucas/Desktop/rar filme/video.mp4"
2015/11/24 19:02:10 Warning, other scheme could be not supported by you Kodi/XBMC installation. If doesn't work, check addons and stream
2015/11/24 19:02:10 {"id":1,"jsonrpc":"2.0","result":"OK"}

does not work:

C:\Users\Lucas\Desktop\rar filme>UnRAR.exe p -inul "C:/Users/Lucas/Desktop/rar filme/video.part1.rar" - | idok -target=127.0.0.1 -stdin
2015/11/24 19:02:20
2015/11/24 19:02:20 Unable to get local ip
marcelkorpel commented 8 years ago

I also get this error when running idok locally on my Raspberry Pi, where an instance of kodi runs, and when I want to "stream" a local file (unlike the original description of the issue).

This works:

$ idok -targetport=8080 -target=localhost http://ftp.halifax.rwth-aachen.de/blender/demo/movies/ToS/ToS-4k-1920.mov

This does not work:

$ idok -targetport=8080 -target=localhost somefile.mp4
DavidVentura commented 8 years ago

If I use idok with a file it works, stdin doesn't work. This is from a remote computer on LAN. I ended up piping the stream to ffmpeg which uploads to a local rtmp server, and playing the rtmp stream with ldok.. this works with ~3s delay

metal3d commented 8 years ago

Sorry for the answer latence ! I was very very buzy.

I'm working on the error "unable to get local ip", I am changing a lot of thing locally and will give a new release as soon as possible.

I tag this issue as accepted