Jump to content


Photo

enigma2 pipe stream


  • Please log in to reply
7 replies to this topic

#1 ozzsurf

  • Senior Member
  • 131 posts

+3
Neutral

Posted 3 September 2015 - 23:12

can you pipe a stream directly to enigma2's media player via telnet command
and that stream will then auto play

i can wget a http or rtmp stream via telnet command and that stream will directly play with enigma2's media player

yes rtmp streams work with wget (believe it or not)

but want to know the pipe command

i tried a 1000 ways
pipe dont seem to work



Re: enigma2 pipe stream #2 MiLo

  • PLi® Core member
  • 14,052 posts

+298
Excellent

Posted 4 September 2015 - 11:48

Create a fifo node (mkfifo), e.g. /tmp/stream.mpg. Redirect your output to it, and select the fifo 'file' in the movie selection for playback.
Real musicians never die - they just decompose

Re: enigma2 pipe stream #3 ozzsurf

  • Senior Member
  • 131 posts

+3
Neutral

Posted 4 September 2015 - 12:18

yes i can already do that

 

with or without (mkfifo)

 

and then select a movie to playback via media player plugin

 

i can also just with telnet use a wget command and open the movie with mediaplayer

no need to select the movie with media player plugin

 

just wanted to know if there was a way with the pipe command


Edited by ozzsurf, 4 September 2015 - 12:19.


Re: enigma2 pipe stream #4 MiLo

  • PLi® Core member
  • 14,052 posts

+298
Excellent

Posted 4 September 2015 - 14:51

I have no clue as to what you are looking for. Maybe it would help if you'd explain what you're trying to accomplish, for example, where is the video data coming from?
Real musicians never die - they just decompose

Re: enigma2 pipe stream #5 ozzsurf

  • Senior Member
  • 131 posts

+3
Neutral

Posted 4 September 2015 - 16:56

when you want to open a stream via telnet

on windows or ubuntu or any other linux os

you can use the pipe command to open that stream to vlc or mpv

pipe is like this

windows
 

rtmpdump| -r "rtmp://stream.smcloud.net/live2/eska_party/eska_party_720p" | "C:\Program Files\VideoLAN\VLC\vlc.exe" -

linux

rtmpdump -r "rtmp://stream.smcloud.net/live2/eska_party/eska_party_720p" | vlc

with enigma2 the pipe command does not work to mediaplayer

well i cant get it to work with the pipe command

because the stream has to use 4097:0:1:0:0:0:0:0:0:0:

anyway after playing with all sorts of ways to write the url i have come up with this

telnet
paste the line like this
then hit enter
now that stream will auto play with enigma2's mediaplayer
http or rtmp

 

wget http://root:password@192.168.1.4:80/web/mediaplayerplay?file=4097:0:1:0:0:0:0:0:0:0:rtmp%253a%2F%2Fstream.smcloud.net%2Flive2%2Feska_party%2Feska_party_720p

this sends a marker to /home/root
then that sends the url to media player
all done in the blink of an eye

use your own ip and port and pass

in the url

/   =   %2F

:    = %253a

 

the : has double encoding


Edited by ozzsurf, 4 September 2015 - 16:58.


Re: enigma2 pipe stream #6 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+541
Excellent

Posted 5 September 2015 - 16:31

You might want to consider gstreamer instead of enigma.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: enigma2 pipe stream #7 MiLo

  • PLi® Core member
  • 14,052 posts

+298
Excellent

Posted 5 September 2015 - 18:04

with enigma2 the pipe command does not work to mediaplayer


That makes perfect sense, you cant 'pipe' anything to a process that's already running. The shell pipe command just starts the process with its stdin attached to the stdout of the previous one. It works with vlc because you can start a new vlc process on top of your windowing system.

What you can do, is open a new connection to the running process and send the data through that.

If playing that stream is what you wanted to accomplish, I take it that you have now accomplished that and your problem is solved?
Real musicians never die - they just decompose

Re: enigma2 pipe stream #8 ozzsurf

  • Senior Member
  • 131 posts

+3
Neutral

Posted 6 September 2015 - 11:21

yes

works perfect with the wget command above

 

also works with a browser

just remove the txt wget




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users