best way to stream 442 feeds on enigma 2 box?.

butchyboy

Registered
Messages
300
hey guys i usually watch 442 feeds on my pc using vlc player and the enigma 2 box is catching the 442 feed only to view these is to have pc and box all connected to router.

your dish and enigma 2 box picks up the sat signal and then you open it on your pc via WEBIF and use vlc player to watch on pc.

is there any way of streaming this from pc to my firestick on my smart tv?.
 

jenseneverest

Registered
Messages
178
i have had some poor results with miracast or screen share from lappie to the android box on the TV. I get picture and sound but it is like watching iptv with breakup, and as such pointless.
Lappie and android box are on a wireless network and guess that dose not help.
My next "sat box" will have a tbs tuner and be micro PC based, hopefully santa treats me and biss2 dont come to spoil that party....
 

butchyboy

Registered
Messages
300
so i guess the only really solution is a long hdmi cable from pc to tv which is not ideal with the connecting disconnecting of the cable etc :(
 

dankargo

Donating Member
Messages
98
For streaming to work smoothly, the receiver needs to be connected to a gigabit port on a router. Failing that, a gigabit router and gigabit powerline adaptors will also work (my current setup). You'll also need to make sure you are using Cat-5e/Cat 6 cables.
 

butchyboy

Registered
Messages
300
For streaming to work smoothly, the receiver needs to be connected to a gigabit port on a router. Failing that, a gigabit router and gigabit powerline adaptors will also work (my current setup). You'll also need to make sure you are using Cat-5e/Cat 6 cables.

thank you dankargo
 

brol3

Registered
Messages
30
I use ffmpeg to convert the feed to 4:2:0 and stream it to the box via vlc. It is very resource intensive and you will need a decent computer for this to work. The power consumption for my laptop is about 100W.

ffmpeg command example:
ffmpeg -i 'http://192.168.1.103:8001/1:0:1:1:1:FFFF:46AAE6:0:0:0:' -c:v libx264 -vf format=yuv420p -f mpegts pipe:1 | cvlc --sout '#duplicate{dst="http{mux=ts,dst=:8903}}' -

And then you need to add this line to the userbouquet.favourites.tv file in /etc/enigma2 :
#SERVICE 1:0:1:0:0:0:0:0:0:0:http%3a//your_computer_ip%3a8903:»» STREAM NAME ««
#DESCRIPTION »» STREAM NAME ««
it uses port 8903.
 

butchyboy

Registered
Messages
300
I use ffmpeg to convert the feed to 4:2:0 and stream it to the box via vlc. It is very resource intensive and you will need a decent computer for this to work. The power consumption for my laptop is about 100W.

ffmpeg command example:


And then you need to add this line to the userbouquet.favourites.tv file in /etc/enigma2 :

it uses port 8903.

my pc spec

processor intel core i7 cpu 860 @ 2.80GHz 2.79
10Gb ram

do you think its good enough ?.
 

brol3

Registered
Messages
30
my pc spec

processor intel core i7 cpu 860 @ 2.80GHz 2.79
10Gb ram

do you think its good enough ?.

Its better than mine so it should work. But there is only one way to find out. Try it.
EDIT: I forgot to mention. I use linux so any error you may find it's probably because of the " and '.
 

butchyboy

Registered
Messages
300
Its better than mine so it should work. But there is only one way to find out. Try it.
EDIT: I forgot to mention. I use linux so any error you may find it probably because of the " and '.

im not quit sure how i would go about it as i,ve never done your method before.

can you please explain a bit more brol3
 

brol3

Registered
Messages
30
you need to make sure you have vlc and ffmpeg installed in your machine. That's the first step.

Then ssh to your enigma box and type init 4.
Use a ftp client and open userbouquet.favourites.tv in /etc/enigma2 folder.

Add this to the file:
#SERVICE 1:0:1:0:0:0:0:0:0:0:http%3a//your_computer_ip%3a8904:»» STREAM NAME ««
#DESCRIPTION »» STREAM NAME ««
replace your_computer_ip with your own.

Send "init 3" command through ssh. The box will restart.

Next open cmd, and change the directory to the folder where you have ffmpeg.exe using the cd command. If you use linux you probably don't need to do this.

cd C:\your ffmpeg folder path

Find the feed url from openwebif. It should look similar to this

Next type this command replacing the url with the above.
ffmpeg -i 'http://192.168.0.225:8001/1:0:1:EC:30:36:CE40000:0:0:0:' -c:a copy -c:v libx264 -vf format=yuv420p -f mpegts pipe:1 | cvlc --sout '#duplicate{dst="http{mux=ts,dst=:8904}"}' -

If everything works fine you will have a wall of text similar to this one
frame= 149 fps=0.0 q=28.0 size= 479kB time=00:00:06.46 bitrate= 606.7kbits/
frame= 188 fps=188 q=28.0 size= 661kB time=00:00:08.05 bitrate= 672.6kbits/
frame= 204 fps=108 q=28.0 size= 744kB time=00:00:08.62 bitrate= 706.3kbits/
frame= 219 fps= 90 q=28.0 size= 840kB time=00:00:09.20 bitrate= 747.4kbits/
frame= 227 fps= 77 q=28.0 size= 893kB time=00:00:09.66 bitrate= 757.0kbits/
frame= 245 fps= 71 q=28.0 size= 1021kB time=00:00:10.09 bitrate= 828.3kbits/
frame= 255 fps= 64 q=28.0 size= 1086kB time=00:00:10.64 bitrate= 835.9kbits/
frame= 277 fps= 62 q=28.0 size= 1242kB time=00:00:11.53 bitrate= 881.9kbits/
frame= 280 fps= 56 q=28.0 size= 1276kB time=00

Now you can watch the 4:2:2 feed on your enigma2 box.
 
Last edited:

thefatty

Registered
Messages
1,550
Great instructions. However, you dont need vlc for this to work, you only need it if you're not going to use the command line like you have done above. Also not sure how successfully a 10 year old i7 will cope transcoding a 50mbps 1080p feed, but it might be ok. it would be more successful with a dedicated gpu to do the encoding side of it (using something like nvenc).
 

marjanen

Registered
Messages
276
I have VLC installed to my Android TV ( you can install vlc in firestick?) and I open 4:2:2 feeds directly with tv without any pc between. So no trascoding etc. Hope this helps.
 

jenseneverest

Registered
Messages
178
I have VLC installed to my Android TV ( you can install vlc in firestick?) and I open 4:2:2 feeds directly with tv without any pc between. So no trascoding etc. Hope this helps.

So the TV has a sat tuner ?
And a way of adding keys ??
What model is it ??

Thx
 

brol3

Registered
Messages
30
Great instructions. However, you dont need vlc for this to work, you only need it if you're not going to use the command line like you have done above. Also not sure how successfully a 10 year old i7 will cope transcoding a 50mbps 1080p feed, but it might be ok. it would be more successful with a dedicated gpu to do the encoding side of it (using something like nvenc).
That a closer look to the command. The command pipes the ffmpeg output to vlc so it can stream the transcoded feed through http. I'm not sure if we can use another protocol like rtp because I don't know if the enigma box would play it. If we could, vlc can be removed because ffmpeg handles streaming through that protocol.
 

mbovo

Registered
Messages
97
you need to make sure you have vlc and ffmpeg installed in your machine. That's the first step.

Then ssh to your enigma box and type init 4.
Use a ftp client and open userbouquet.favourites.tv in /etc/enigma2 folder.

Add this to the file:
replace your_computer_ip with your own.

Send "init 3" command through ssh. The box will restart.

Next open cmd, and change the directory to the folder where you have ffmpeg.exe using the cd command. If you use linux you probably don't need to do this.



Find the feed url from openwebif. It should look similar to this


Next type this command replacing the url with the above.


If everything works fine you will have a wall of text similar to this one


Now you can watch the 4:2:2 feed on your enigma2 box.

Would you use the same e2 box to tune in and open the feed and to actually stream it?
 

jenseneverest

Registered
Messages
178
Thanks @brol3 great instructions:thum:

Been giving this a try on a window's machine, due a a system path issue both vlc.exe and ffmpeg are now in the same directory

the command needed tweaking slightly for windows, this sort of worked:

Code:
ffmpeg -i "http://192.168.1.6:8001/1:0:19:1:1:1:642B90:0:0:0:" -c:a copy -c:v libx264 -vf format=yuv420p -f mpegts pipe:1 | vlc --sout '#duplicate{dst="http{mux=ts,dst=:8904}"}' -

But then i run into issue's, the command window freezes, and only finishes when i manually close VLC... im not sure what to try next ??
Im getting invalid arguments and failed conversion





TIA Jensen
 

jenseneverest

Registered
Messages
178
It works!! and over wifi too :thum:
cant edit my post above, i am an idiot....
i changed the command only partially above....this is the correct for windows

Code:
ffmpeg -i "http://192.168.1.6:8001/1:0:19:1:1:1:642B90:0:0:0:" -c:a copy -c:v libx264 -vf format=yuv420p -f mpegts pipe:1 | vlc --sout "#duplicate{dst="http{mux=ts,dst=:8904}"}" -

and @mbovo yes all on the same e2 box
 

brol3

Registered
Messages
30
this is the command I now use after trying what thefatty said about using the gpu.
ffmpeg -vsync 0 -i 'http://192.168.0.225:8001/1:0:1:1:1:1:46AB7A:0:0:0:' -c:a copy -c:v h264_nvenc -vf format=yuv420p -b:v 5M -f mpegts pipe:1 | cvlc --sout '#duplicate{dst="http{mux=ts,dst=:8903}"}' -
The power consumption went from about 100W to just under 40W and with that, I get a lot less noise from the fans.
 
Last edited:

brol3

Registered
Messages
30
Thanks @brol3 great instructions:thum:

Been giving this a try on a window's machine, due a a system path issue both vlc.exe and ffmpeg are now in the same directory

the command needed tweaking slightly for windows, this sort of worked:

Code:
ffmpeg -i "http://192.168.1.6:8001/1:0:19:1:1:1:642B90:0:0:0:" -c:a copy -c:v libx264 -vf format=yuv420p -f mpegts pipe:1 | vlc --sout '#duplicate{dst="http{mux=ts,dst=:8904}"}' -

But then i run into issue's, the command window freezes, and only finishes when i manually close VLC... im not sure what to try next ??
Im getting invalid arguments and failed conversion





TIA Jensen

You can add vlc and ffmpeg to the system path so you can run this command from any directory.

https://www.vlchelp.com/add-vlc-command-prompt-windows/

It's the same for ffmpeg.
 
Top