How can install VLC 1.X in FreeNAS 9.2

Status
Not open for further replies.

O2L

Dabbler
Joined
Oct 23, 2011
Messages
12
Hello,

for compatibility with an android app, i wan't install VLC 1.X (old interface http) in a jail, but i didn't find any packages for this.

Some one can explain how install VLC 1.X?
 
D

dlavigne

Guest
Currently there isn't a FreeBSD port/package for that version.
 

O2L

Dabbler
Joined
Oct 23, 2011
Messages
12
Ok bad for me
Thx dlavigne for the quick response.

Maybe it's can interest some one:

I use vlc to stream outside my network my dreambox (DM500/enigma1).
My image pli-image (openpli now), you can stream channel in your network.
This image offer the Zapstream function: you change channel but the port streaming never change.
I think dreambox/enigma2 can work (streamport:8001) but less interesting because streampath change for each channel.

i do this (maybe it's not the best linux practice but it's work for me, you can "critic" it's good to learn):
in a jail install vlc:
Code:
pkg_add -rv vlc


add a new user (VLC don't work with root user even in jail don't blame me :p)

create a script
Code:
ee vlc_streaming.sh


paste this:

Code:
#!/bin/sh
dreamboxip=192.168.0.5
dreamboxport=31344
streamport=12345
 
outtrans=std{access=http,mux=ogg,dst=:$streamport}
trans=transcode{vcodec=mp1v,vb=350,scale=0.4,acodec=mpga,ab=96,channels=1}:
 
cvlc -v http://$dreamboxip:$dreamboxport :http-caching3000 :sout=#$trans$outtrans


adapte dreamboxip and streamport at your installation.

start script just when you need (because even you don't watch the stream your server continu streaming):
Code:
nohup ./vlc_streaming.sh &


you need route port 80 of dreambox and the port you indicate for streamport for the jail.

change channel with the webinterface of dreambox (webif)
and watch tv with VLC (http://ip_of_yourhome:streamport)

kill script and VLC by telnet or freenas webinterface when you finish watching.

Works for me with VLC on PC, Android, Iphone and MX Player on android.
I didn't test different codec or bitrate to improve quality and reduce bandwith;
I play later.
In my freenas 9.2.1, amd E350, 8Go ram around 25% CPU charge (depends on the channel)
 
Status
Not open for further replies.
Top