Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Cannot load rtsp stream on OSE edition #58

Open
0xb35c opened this issue Mar 7, 2017 · 1 comment
Open

Cannot load rtsp stream on OSE edition #58

0xb35c opened this issue Mar 7, 2017 · 1 comment

Comments

@0xb35c
Copy link

0xb35c commented Mar 7, 2017

Hi,
I'm trying to get an rtsp stream running. I tried to use the code from #55 and #54 but it doesn't seem to work here on my desktop pc.

I have a single node with this code:

gl.setup(480, 800)
local video = util.videoplayer("rtsp://10.20.20.35/stream1")

function node.render()
    video:draw( 0, 0, 352, 288, 1)
end

I have set the INFOBEAMER_OUTSIDE_SOURCES=1 variable and when running I get the following output:

Info Beamer 1.0pre4.47a5ea+Lua 5.1 (http://info-beamer.org/)
Copyright (c) 2015 Florian Wesch <[email protected]>

[main.c] chdir /home/user/Repos/info-beamer-nodes
[main.c] root node is test
[main.c] tcp/udp port is 4444
[main.c] initial size is 1024x768
[test] kernel: booting node
[test] runtime error: userlib.lua:13: bad argument #1 to 'load_video' (invalid resource name)
stack traceback:
	[C]: in function 'load_video'
	userlib.lua:13: in function 'open_stream'
	userlib.lua:20: in function 'videoplayer'
	troopers/node.lua:2: in main chunk
	kernel.lua:393: in function 'load_into_sandbox'
	kernel.lua:410: in function 'reload'
	kernel.lua:437: in function <kernel.lua:434>
[main.c] initialization completed
[framebuffer.c] new framebuffer (480x800): 1
[framebuffer.c] new framebuffer (480x800): 2

Well as the message reads, it doesn't seem to like the URL I use for the stream, though it seems @ozett (from the mentioned issues above) did it get running. It also won't work with resources.load_video()
I tried to run in on my device (Arch Linux, info-beamer installed from AUR) and on a virtual machine with Linux Mint installed (also info-beamer was installed from the repos)

@0xb35c
Copy link
Author

0xb35c commented Mar 8, 2017

Hi,
I was able to get an Pi 2 and tested it there. And it works.
I would highly appreciate it, if you could "backport" that to the OSE. It helps to test my stuff on my laptop and I don't need a full Pi setup (with Screen, Mouse and Keyboard)

BTW: As the docs and the output says, I'm aware that streaming is not officially supported. But I'd think this is more a compatibility issue between the Pi version and OSE, than actually a issue about streaming.

Let me know what you think.
Thank you

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

No branches or pull requests

1 participant