Difference between revisions of "VLC HowTo/Use with Dreambox"

From VideoLAN Wiki
Jump to navigation Jump to search
(→‎VLC for Ubuntu: $ apt-get needs sudo but VLC shouldn't need sudo. In general, root applications = root bugs known and unknown)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{howto|Set up Video on Demand on a Dreambox}}
 
{{howto|Set up Video on Demand on a Dreambox}}
{{stub}}
+
{{Example code}}
I have spent some time now to figure out how to get Video on Demand to work on my dreambox. I have a DreamBox DM500S running the Gemini Image (Gemini Project), and this howto is based on that, however I believe the procedure will be similar on other DB's running the Gemini image as well...
+
I have spent some time now to figure out how to get Video on Demand to work on my dreambox. I have a DreamBox DM500S running the Gemini Image (Gemini Project), and this howto is based on that, however I believe the procedure will be similar on other DB's running the Gemini image as well…
  
 
Sources I have used:
 
Sources I have used:
 
  http://digsat.net/wbb2/thread.php?threadid=36965&hilight=vlc
 
  http://digsat.net/wbb2/thread.php?threadid=36965&hilight=vlc
 
  http://forum.videolan.org
 
  http://forum.videolan.org
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=1 balenciaga bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=1 balenciaga handbag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=1 balenciaga handbags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=1 balenciaga]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=1 balenciaga bags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=3 chloe bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=3 chloe paddington]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=3 chloe bags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=3 chloe handbag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=3 chloe handbags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=3 chloe paddington bags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=3 chloe paddington bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=3 chloe purse]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=3 chloe paddington handbag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=3 chloe uk]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=5 dolce gabbana]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=5 dolce bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=5 dolce gabbana handbags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=5 dolce gabbana bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=5 dolce gabbana handbag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=5 dior bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=5 dior handbag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=5 vintage dior]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=5 christian dior bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=5 dior handbags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=5 dior uk]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=6 fendi handbags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=6 fendi bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=6 fendi purses]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=6 fendi hand bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=6 fendi spy bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=6 fendi bags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=6 discount fendi]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=7 gucci handbags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=7 gucci handbag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=7 gucci bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=7 gucci bags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=7 gucci wallet]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=7 gucci vintage]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=7 gucci online]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=7 gucci purse]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=7 gucci fashion]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=8 hermes birkin]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=8 hermes kelly bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=8 hermes bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=8 hermes bags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=8 hermes birkin bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=8 hermes handbags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=9 louis vuitton handbags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=9 cheap louis vuitton]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=9 louis vuitton uk]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=9 louis vuitton]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=9 louis vuitton bags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=9 buy louis vuitton]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=9 lv handbag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=9 louis vuitton handbag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=9 vuitton handbags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=9 louis vuitton bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=9 louis vuitton]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=10 mulberry bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=10 mulberry handbags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=10 mulberry handbag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=10 mulberry purse]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=10 mulberry purses]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=10 discount mulberry]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=10 discount mulberry handbags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=10 mulberry purses]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=10 mulberry bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=11 prada]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=11 prada bag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=11 prada handbag]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=11 prada handbags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=11 prada bags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=11 prada wallets]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=11 prada hand bags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=11 prada handbags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=13 gucci uk]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=13 buy gucci]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=13 gucci wallets]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=14 gucci purse]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=14 gucci fashion]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=14 cheap gucci]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=14 gucci online]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=15 prada bags]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=15 prada wallets]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=15 prada purse]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=15 prada uk]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=15 prada purse]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=16 louis vitton wallet]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=16 louis vuitton purses]
 
[http://www.zhefiry.com/webpage/servletproductlist?maintype_id=16 louis vuitton speedy]
 
[http://www.zhefiry.com/webpage/index.html handbags uk]
 
[http://www.zhefiry.com/webpage/index.html clutch bags]
 
[http://www.zhefiry.com/webpage/index.html ladies bags]
 
[http://www.zhefiry.com/webpage/index.html womens handbag]
 
[http://www.zhefiry.com/webpage/information/how_to_modify.html womens handbag]
 
[http://www.zhefiry.com/webpage/information/how_to_modify.html fashion handbag]
 
[http://www.zhefiry.com/webpage/information/how_to_modify.html luxury handbag]
 
[http://www.zhefiry.com/webpage/information/how_to_modify.html leather handbags]
 
[http://www.zhefiry.com/webpage/information/how_to_track_oder.html evening handbag]
 
[http://www.zhefiry.com/webpage/information/how_to_track_oder.html handbags online]
 
[http://www.zhefiry.com/webpage/information/how_to_track_oder.html ladies handbag]
 
[http://www.zhefiry.com/webpage/information/how_to_change_currency.html fashion handbags]
 
[http://www.zhefiry.com/webpage/information/how_to_change_currency.html handbags uk]
 
[http://www.zhefiry.com/webpage/information/how_to_change_currency.html cheap handbags]
 
[http://www.zhefiry.com/webpage/information/how_to_change_currency.html women's handbag]
 
[http://www.dragonorient.com/cheap-wedding-dress/ bridesmaids dress] 
 
[http://www.dragonorient.com/cheap-wedding-dress/ cheap wedding Dresses] 
 
[http://www.chuangliandsj.com 吊索具] 
 
[http://www.helenarubinstein.cc HR] 
 
[http://www.sako-or.cn/en/brand.php handbag] 
 
[http://www.sako-or.cn/en/brand.php ladyshoes] 
 
[http://www.sako-or.cn/en/brand.php ansun] 
 
[http://www.sako-or.cn 手袋] 
 
[http://www.sako-or.cn 女装鞋] 
 
[http://www.sako-or.cn 安信] 
 
[http://www.baili-rollforming.com/ roll forming] 
 
[http://www.baili-rollforming.com/page/chinese/ 冷弯型钢] 
 
[http://www.law-ssc.com/ 房地产律师] 
 
[http://www.law-ssc.com 合同纠纷] 
 
[http://www.gztao.net/ 糖尿病足] 
 
[http://www.cqdingyao.com/ 精密铸造] 
 
[http://www.cnjcy999.cn/ 溃疡性结肠炎] 
 
[http://www.cnjcy999.cn/ 结肠炎] 
 
[http://www.cnjcy999.cn/ 肠炎] 
 
[http://www.ks8code.com/ 条码打印机] 
 
[http://www.ks8code.com/ 条形码打印机] 
 
[http://www.jiushun.com.cn/Chinese/Bs_Products.asp 中央空调风管清洗] 
 
[http://www.jiushun.com.cn/Chinese/Bs_Products.asp 化学清洗] 
 
[http://www.jiushun.com.cn/Chinese/Bs_Product.asp 中央空调清洗] 
 
[http://www.jiushun.com.cn/Chinese/Bs_Product.asp 空调清洗] 
 
[http://www.jiushun.com.cn/ 清洗公司] 
 
[http://www.zhuoyueenglish.com/ 英语口语] 
 
[http://www.zhuoyueenglish.com 英语培训] 
 
[http://www.bjxytx.com 北京安装卫星电视] 
 
[http://www.bjxytx.com 安装卫星天线] 
 
[http://www.bjxytx.com 安装卫星电视] 
 
[http://www.chinakain.com/Product.asp 温控器] 
 
[http://www.clamandarin.com learn mandarin] 
 
[http://www.clamandarin.com learning Chinese] 
 
[http://www.clamandarin.com Chinese learn] 
 
[http://www.clamandarin.com Chinese language] 
 
[http://www.ja010.com 美术培训] 
 
[http://www.ja010.com 画室] 
 
[http://www.ja010.com 美术高考] 
 
[http://www.chieftech.net.cn/product1.asp 空气净化器] 
 
[http://www.chieftech.net.cn/product-csjs.asp 工业除湿机] 
 
[http://www.chieftech.net.cn/product-csjs.asp 抽湿机] 
 
[http://www.chieftech.net.cn/product-csjs.asp 除湿机] 
 
[http://www.wxboleda.com/ 振动试验机] 
 
[http://www.wxboleda.com/ProductShow.asp?ArticleID=92 低温试验箱] 
 
[http://www.wxboleda.com/ 高低温箱] 
 
[http://www.wxboleda.com/ 盐雾试验箱] 
 
[http://www.wxboleda.com/product.asp 盐雾箱] 
 
[http://www.wxboleda.com/ProductShow.asp?ArticleID=88 振动台] 
 
[http://www.wxboleda.com/product.asp 恒温恒湿箱] 
 
[http://www.wxboleda.com/ProductShow.asp?ArticleID=88 恒温恒湿试验箱] 
 
[http://www.wxboleda.com/ProductShow.asp?ArticleID=92 高低温试验箱] 
 
[http://www.yanzifei.cn 生活随笔]
 
[http://www.yanzifei.cn 工作感想]
 
  
First we need to get a plugin called VLC FrontEnd installed on the dreambox, it might already be there; check under blue panel - plugins. If it is not there, install it by doing the following.<br>
+
First we need to get a plugin called VLC FrontEnd installed on the dreambox, it might already be there; check under blue panel plugins. If it is not there, install it using the instructions in the [[#Install|next section]].
 
 
'''How to install VLCf (VLC Frontend)'''<br>
 
- Press Blue button<br>
 
- Choose Addons(2)<br>
 
- Confirm option Gemini-server<br>
 
- Search for Plugins<br>
 
- Install VLCF (currently is VLC-Final RC15 23.09.2k7)<br>
 
  
 +
== Install ==
 +
To install VLCf (VLC Frontend):
 +
* Press Blue button
 +
* Choose Addons(2)
 +
* Confirm option Gemini-server
 +
* Search for Plugins
 +
* Install VLCF (currently is VLC-Final RC15 23.09.2k7)
  
 
Now, the front end is installed and almost ready to use. We still have nothing that can feed the frontend, so first we must create an xml file for the frontend to use:
 
Now, the front end is installed and almost ready to use. We still have nothing that can feed the frontend, so first we must create an xml file for the frontend to use:
  
<pre>
+
<syntaxhighlight lang="xml" line>
 
<?xml version="1.0" encoding="iso-8859-1"?>
 
<?xml version="1.0" encoding="iso-8859-1"?>
 
<?xml-stylesheet type="text/xsl" href="/XSLMPSettings.xsl"?>
 
<?xml-stylesheet type="text/xsl" href="/XSLMPSettings.xsl"?>
 
<vlc>
 
<vlc>
<server ip="192.168.1.10" webif-port="8080" stream-port="9090" user="admin" pass="admin" />
+
  <server ip="192.168.1.10" webif-port="8080" stream-port="9090" user="admin" pass="admin" />
<config startdir="c:/movies" cddrive="d:" />
+
  <config startdir="c:/movies" cddrive="d:" />
<codec mpeg1="mpgv" mpeg2="mp2v" audio="mpga" />
+
  <codec mpeg1="mpgv" mpeg2="mp2v" audio="mpga" />
<setup name="SVCD" ext="NONE" Videorate="1000" fps="25" Videotranscode="0" Videocodec="mpeg2" Videosize="352x576" Audiorate="192" Audiotranscode="0" />
+
  <setup name="SVCD" ext="NONE" Videorate="1000" fps="25" Videotranscode="0" Videocodec="mpeg2" Videosize="352x576" Audiorate="192" Audiotranscode="0" />
<setup name="VCD" ext="NONE" Videorate="1000" fps="25" Videotranscode="0" Videocodec="mpeg1" Videosize="352x576" Audiorate="192" Audiotranscode="0" />
+
  <setup name="VCD" ext="NONE" Videorate="1000" fps="25" Videotranscode="0" Videocodec="mpeg1" Videosize="352x576" Audiorate="192" Audiotranscode="0" />
<setup name="DVD" ext="NONE" Videorate="1000" fps="25" Videotranscode="0" Videocodec="mp2v" Videosize="704x576" Audiorate="192" Audiotranscode="1" />
+
  <setup name="DVD" ext="NONE" Videorate="1000" fps="25" Videotranscode="0" Videocodec="mp2v" Videosize="704x576" Audiorate="192" Audiotranscode="1" />
<setup name="File" ext="MPG" Videorate="1000" fps="25" Videotranscode="1" Videocodec="mp2v" Videosize="704x576" Audiorate="192" Audiotranscode="1" />
+
  <setup name="File" ext="MPG" Videorate="1000" fps="25" Videotranscode="1" Videocodec="mp2v" Videosize="704x576" Audiorate="192" Audiotranscode="1" />
<setup name="File" ext="MPEG" Videorate="1000" fps="25" Videotranscode="1" Videocodec="mp2v" Videosize="704x576" Audiorate="192" Audiotranscode="1" />
+
  <setup name="File" ext="MPEG" Videorate="1000" fps="25" Videotranscode="1" Videocodec="mp2v" Videosize="704x576" Audiorate="192" Audiotranscode="1" />
<setup name="File" ext="M2P" Videorate="1000" fps="25" Videotranscode="0" Videocodec="mpgv" Videosize="704x576" Audiorate="192" Audiotranscode="0" />
+
  <setup name="File" ext="M2P" Videorate="1000" fps="25" Videotranscode="0" Videocodec="mpgv" Videosize="704x576" Audiorate="192" Audiotranscode="0" />
<setup name="File" ext="MPV" Videorate="1000" fps="25" Videotranscode="0" Videocodec="mpgv" Videosize="704x576" Audiorate="192" Audiotranscode="0" />
+
  <setup name="File" ext="MPV" Videorate="1000" fps="25" Videotranscode="0" Videocodec="mpgv" Videosize="704x576" Audiorate="192" Audiotranscode="0" />
<setup name="File" ext="DAT" Videorate="1000" fps="25" Videotranscode="0" Videocodec="mpgv" Videosize="704x576" Audiorate="192" Audiotranscode="0" />
+
  <setup name="File" ext="DAT" Videorate="1000" fps="25" Videotranscode="0" Videocodec="mpgv" Videosize="704x576" Audiorate="192" Audiotranscode="0" />
<setup name="File" ext="AVI" Videorate="2048" fps="25" Videotranscode="1" Videocodec="mp2v" Videosize="704x576" Audiorate="192" Audiotranscode="1" />
+
  <setup name="File" ext="AVI" Videorate="2048" fps="25" Videotranscode="1" Videocodec="mp2v" Videosize="704x576" Audiorate="192" Audiotranscode="1" />
<setup name="File" ext="ASF" Videorate="1000" fps="25" Videotranscode="1" Videocodec="mpgv" Videosize="704x576" Audiorate="192" Audiotranscode="1" />
+
  <setup name="File" ext="ASF" Videorate="1000" fps="25" Videotranscode="1" Videocodec="mpgv" Videosize="704x576" Audiorate="192" Audiotranscode="1" />
<setup name="File" ext="TS" Videorate="1000" fps="25" Videotranscode="0" Videocodec="mp2v" Videosize="704x576" Audiorate="192" Audiotranscode="0" />
+
  <setup name="File" ext="TS" Videorate="1000" fps="25" Videotranscode="0" Videocodec="mp2v" Videosize="704x576" Audiorate="192" Audiotranscode="0" />
 
</vlc>
 
</vlc>
</pre>
+
</syntaxhighlight>
 +
 
 +
Use a unix compatible editor, like UltraEdit, edit lines 4 and 5. The server ip to fit the IP-address of the backend PC. Startdir and cddrive to fit correspondingly the movie folder and the cddrive on the backend pc.<br>
 +
Save it to a file called '''''movieplayer_My_Server.xml''''' to your dreambox's '''''/var/etc''''' folder. (save the file locally and FTP it to your dreambox, log in to your dreambox with default username root and password dreambox, or set up UltraEdit to save directly using FTP; your choice).
 +
 
 +
== Update ==
 +
Update VLCf for the latest version of VLC Frontend: VLCF-Final. This new VLC Frontend works slightly different. It is downloaded and installed in the same way as the earlier versions, but configuring it is a bit more easy:
 +
* There is now a file called '''''vlcf_original.xml''''' in '''''/var/tuxbox/config/'''''. It opens the possibility to configure more than one streaming server (up to 4) using only this one config file as opposed to changing config-files on earlier versions of VLCF
 +
* Now, open the file through a Unix compatible editor like UltraEdit or similar editor (Notepad is no good)
 +
 
 +
I modified the following lines:
 +
* '''Line 4:''' Inserting the correct IP of my streaming server
 +
* '''Line 8:''' Setting the correct Startdir and cddrive
 +
 
 +
Once editing has been done, save the file to your dreambox' '''''/var/tuxbox/config''''' as '''''vlcf.xml'''''.
  
Use a unix compatible editor, like UltraEdit, edit lines 4 and 5. The server ip to fit the IP-address of the backend PC. Startdir and cddrive to fit correspondingly the movie folder and the cddrive on the backend pc.
 
Save it to a file called movieplayer_My_Server.xml to your dreambox's /var/etc folder. (save the file locally and FTP it to your dreambox, log in to your dreambox with default username root and password dreambox, or set up UltraEdit to save directly using FTP; your choice).
 
  
'''Update for latest version of VLC Frontend VLCF-Final'''<br>
 
This new VLC Frontend works slightly different. It is downloaded and installed in the same way as the earlier versions, but configuring it is a bit more easy.<br>
 
There is now a file called '''''vlcf_original.xml''''' in '''''/var/tuxbox/config/'''''. It opens the possibility to configure more than one streaming server (up to 4) using only this one config file as opposed to changing config-files on earlier versions of VLCF. <br>
 
Now, open the file through a Unix compatible editor like UltraEdit or similar editor(Notepad is no good). I modified the following lines:<br><br>
 
'''Line 4:''' Inserting the correct IP of my streaming server.<br>
 
'''Line 8:''' Setting the correct Startdir and cddrive. <br>
 
<br>
 
Once editing has been done, save the file to your dreambox' /var/tuxbox/config as vlcf.xml.
 
<br>
 
<br>
 
 
As you can see, the config file is put together by 4 config sets. set1, set2, set3 and set4. These will be reflected in the VLCF application on the dreambox as you can configure the frontend to use either of these 4 sets.
 
As you can see, the config file is put together by 4 config sets. set1, set2, set3 and set4. These will be reflected in the VLCF application on the dreambox as you can configure the frontend to use either of these 4 sets.
  
<pre>
+
<syntaxhighlight lang="xml" line>
 
<?xml version="1.0" encoding="iso-8859-1" ?>
 
<?xml version="1.0" encoding="iso-8859-1" ?>
 
<?xml-stylesheet type="text/xsl" href="/XSLMPSettings.xsl"?>
 
<?xml-stylesheet type="text/xsl" href="/XSLMPSettings.xsl"?>
Line 254: Line 96:
 
   <!--setup name="File" ext="RATDVD" Videorate="2048" Videotranscode="1" Videocodec="mp2v" Videosize="720x576" Audiorate="192" Audiotranscode="1" fps="25" soutadd="soverlay,senc" /-->
 
   <!--setup name="File" ext="RATDVD" Videorate="2048" Videotranscode="1" Videocodec="mp2v" Videosize="720x576" Audiorate="192" Audiotranscode="1" fps="25" soutadd="soverlay,senc" /-->
 
</vlc>
 
</vlc>
</pre>
+
</syntaxhighlight>
  
 
Now that the xml file has been made and transferred to the dreambox it is time to set up the backend VLC to feed the frontend.
 
Now that the xml file has been made and transferred to the dreambox it is time to set up the backend VLC to feed the frontend.
  
'''VLC for Windows:'''<br>
+
== Use ==
Start VLC on the PC.<br>
+
=== VLC for Windows ===
Select File - Open Network Stream (Ctrl-N)<br>
+
Start VLC on the PC. Then:
Click Advanced Options<br>
+
* Select File Open Network Stream (<kbd>Ctrl+N</kbd>)
- check Stream/Save and click Settings<br>
+
* Click Advanced Options
- check HTTP<br>
+
* check Stream/Save and click Settings
- check Video codec and select mp2v from the dropdown list.<br>
+
* check HTTP
- check Audio codec and select mpga from the dropdown list.<br>
+
* check Video codec and select mp2v from the dropdown list
- click Ok<br>
+
* check Audio codec and select mpga from the dropdown list
- click Ok<br>
+
* click Ok
<br>
+
* click Ok
Now, activate the WebInterface (WEBIF) by selecting Settings - Add Interface - Web Interface from the VLC menu.
 
 
 
  
 +
Now, activate the WebInterface (WEBIF) by selecting Settings → Add Interface → Web Interface from the VLC menu.
  
'''VLC for Linux (ubuntu):'''<br>
+
=== VLC for Ubuntu ===
First, install vlc by running this command:
+
For Ubuntu Linux users first install vlc by running this command:
<pre>apt-get install vlc</pre>
+
{{$}} sudo apt-get install vlc
 
This will in general install a ****load of stuff, codecs and other things needed. As I learnt, it is also required to install something called the avahi-daemon. This is done by running this command:
 
This will in general install a ****load of stuff, codecs and other things needed. As I learnt, it is also required to install something called the avahi-daemon. This is done by running this command:
<pre>apt-get install avahi-daemon</pre>
+
{{$}} sudo apt-get install avahi-daemon
 
If you are having trouble finding these packages, you might want to run:
 
If you are having trouble finding these packages, you might want to run:
<pre>apt-get update</pre>
+
{{$}} sudo apt-get update
 
Now that all this has been installed, you need to launch VLC using the following command-line:
 
Now that all this has been installed, you need to launch VLC using the following command-line:
<pre>vlc -d -I http --sout="#transcode{vcodec=mp2v,vb=1024,scale=1,acodec=mpga,ab=192,channels=2}:duplicate{dst=std{access=http,mux=ts,dst=:9090}}"</pre>
+
{{$}} vlc -d -I http --sout="#transcode{vcodec=mp2v,vb=1024,scale=1,acodec=mpga,ab=192,channels=2}:duplicate{dst=std{access=http,mux=ts,dst=/}}" --http-port=9090
This specifies that the web interface is to be used, together with some transcoding stuff ;-)
+
This specifies that the web interface is to be used, together with some transcoding stuff <span title="wink">;-)</span>
  
At the time of writing this, I am still trying to tune the vlc backend a bit. It is currently using 50%+ cpu when streaming...
+
At the time of writing this, I am still trying to tune the vlc backend a bit. It is currently using 50%+ cpu when streaming…
  
 
Now it is time to start the VLC frontend on the dreambox and set it up to use the correct xml file.
 
Now it is time to start the VLC frontend on the dreambox and set it up to use the correct xml file.
Start VLC frontend plugin by starting blue panel (blue button on the remote) and selecting Plugins. VLC Frontend will show up as a plugin, select it and press Ok.
+
* Start VLC frontend plugin by starting blue panel (blue button on the remote) and selecting Plugins
 +
* VLC Frontend will show up as a plugin
 +
* select it and press Ok
  
VLC frontend is now started, select settings (blue button).<br>
+
VLC frontend is now started
In the dropdown list, select the xml file you created earlier, movieplayer_My_Server.xml.<br>
+
* select settings (blue button)
Then select Switch.<br>
+
* In the dropdown list, select the xml file you created earlier, '''''movieplayer_My_Server.xml'''''
You will now be told to restart VLC Frontend; do this by using the exit button until you are back at the plugins page.<br>
+
* Then select Switch
Now start VLC Frontend again.<br>
+
* You will now be told to restart VLC Frontend; do this by using the exit button until you are back at the plugins page
Use the red button (File).<br>
+
* Now start VLC Frontend again
You will now be able to see the movie files that is in the folder specified as startdir in the xml file.<br>
+
* Use the red button (File)
Select the file you'd like to watch and press Ok.<br>
+
* You will now be able to see the movie files that is in the folder specified as startdir in the xml file
Then wait for the buffering to complete, sit back and enjoy the movie...
+
* Select the file you'd like to watch and press Ok
 +
* Then wait for the buffering to complete, sit back and enjoy the movie…

Latest revision as of 04:32, 18 March 2019

This page describes how to set up Video on Demand on a Dreambox. Other "how to" pages
This page contains example code.

I have spent some time now to figure out how to get Video on Demand to work on my dreambox. I have a DreamBox DM500S running the Gemini Image (Gemini Project), and this howto is based on that, however I believe the procedure will be similar on other DB's running the Gemini image as well…

Sources I have used:

http://digsat.net/wbb2/thread.php?threadid=36965&hilight=vlc
http://forum.videolan.org

First we need to get a plugin called VLC FrontEnd installed on the dreambox, it might already be there; check under blue panel → plugins. If it is not there, install it using the instructions in the next section.

Install

To install VLCf (VLC Frontend):

  • Press Blue button
  • Choose Addons(2)
  • Confirm option Gemini-server
  • Search for Plugins
  • Install VLCF (currently is VLC-Final RC15 23.09.2k7)

Now, the front end is installed and almost ready to use. We still have nothing that can feed the frontend, so first we must create an xml file for the frontend to use:

<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/xsl" href="/XSLMPSettings.xsl"?>
<vlc>
   <server ip="192.168.1.10" webif-port="8080" stream-port="9090" user="admin" pass="admin" />
   <config startdir="c:/movies" cddrive="d:" />
   <codec mpeg1="mpgv" mpeg2="mp2v" audio="mpga" />
   <setup name="SVCD" ext="NONE" Videorate="1000" fps="25" Videotranscode="0" Videocodec="mpeg2" Videosize="352x576" Audiorate="192" Audiotranscode="0" />
   <setup name="VCD" ext="NONE" Videorate="1000" fps="25" Videotranscode="0" Videocodec="mpeg1" Videosize="352x576" Audiorate="192" Audiotranscode="0" />
   <setup name="DVD" ext="NONE" Videorate="1000" fps="25" Videotranscode="0" Videocodec="mp2v" Videosize="704x576" Audiorate="192" Audiotranscode="1" />
   <setup name="File" ext="MPG" Videorate="1000" fps="25" Videotranscode="1" Videocodec="mp2v" Videosize="704x576" Audiorate="192" Audiotranscode="1" />
   <setup name="File" ext="MPEG" Videorate="1000" fps="25" Videotranscode="1" Videocodec="mp2v" Videosize="704x576" Audiorate="192" Audiotranscode="1" />
   <setup name="File" ext="M2P" Videorate="1000" fps="25" Videotranscode="0" Videocodec="mpgv" Videosize="704x576" Audiorate="192" Audiotranscode="0" />
   <setup name="File" ext="MPV" Videorate="1000" fps="25" Videotranscode="0" Videocodec="mpgv" Videosize="704x576" Audiorate="192" Audiotranscode="0" />
   <setup name="File" ext="DAT" Videorate="1000" fps="25" Videotranscode="0" Videocodec="mpgv" Videosize="704x576" Audiorate="192" Audiotranscode="0" />
   <setup name="File" ext="AVI" Videorate="2048" fps="25" Videotranscode="1" Videocodec="mp2v" Videosize="704x576" Audiorate="192" Audiotranscode="1" />
   <setup name="File" ext="ASF" Videorate="1000" fps="25" Videotranscode="1" Videocodec="mpgv" Videosize="704x576" Audiorate="192" Audiotranscode="1" />
   <setup name="File" ext="TS" Videorate="1000" fps="25" Videotranscode="0" Videocodec="mp2v" Videosize="704x576" Audiorate="192" Audiotranscode="0" />
</vlc>

Use a unix compatible editor, like UltraEdit, edit lines 4 and 5. The server ip to fit the IP-address of the backend PC. Startdir and cddrive to fit correspondingly the movie folder and the cddrive on the backend pc.
Save it to a file called movieplayer_My_Server.xml to your dreambox's /var/etc folder. (save the file locally and FTP it to your dreambox, log in to your dreambox with default username root and password dreambox, or set up UltraEdit to save directly using FTP; your choice).

Update

Update VLCf for the latest version of VLC Frontend: VLCF-Final. This new VLC Frontend works slightly different. It is downloaded and installed in the same way as the earlier versions, but configuring it is a bit more easy:

  • There is now a file called vlcf_original.xml in /var/tuxbox/config/. It opens the possibility to configure more than one streaming server (up to 4) using only this one config file as opposed to changing config-files on earlier versions of VLCF
  • Now, open the file through a Unix compatible editor like UltraEdit or similar editor (Notepad is no good)

I modified the following lines:

  • Line 4: Inserting the correct IP of my streaming server
  • Line 8: Setting the correct Startdir and cddrive

Once editing has been done, save the file to your dreambox' /var/tuxbox/config as vlcf.xml.


As you can see, the config file is put together by 4 config sets. set1, set2, set3 and set4. These will be reflected in the VLCF application on the dreambox as you can configure the frontend to use either of these 4 sets.

<?xml version="1.0" encoding="iso-8859-1" ?>
<?xml-stylesheet type="text/xsl" href="/XSLMPSettings.xsl"?>
<vlc>
   <server name="set1" ip="192.168.1.10" webif-port="8080" stream-port="9090" user="admin" pass="admin" /> <!-- I edited this line, you can use max 4 server and config sets -->
   <server name="set2" ip="192.168.178.93" webif-port="8080" stream-port="9090" user="admin" pass="admin" />
   <server name="set3" ip="192.168.178.94" webif-port="8080" stream-port="9090" user="admin" pass="admin" />
   <server name="set4" ip="192.168.178.25" webif-port="8080" stream-port="9090" user="admin" pass="admin" />
   <config name="set1" startdir="c:\movies" cddrive="g:" /> <!-- I edited here too -->
   <config name="set2" startdir="/home/mordillo/video" cddrive="/media/cdrom0" />
   <config name="set3" startdir="d:/" cddrive="g:" />
   <config name="set4" startdir="c:/" cddrive="g:" />
   <codec mpeg1="mpgv" mpeg2="mp2v" audio="mpga" />
   <setup name="SVCD" pic="mp4.png"  ext="NONE" Videorate="1000" Videotranscode="0" Videocodec="mpeg2" Videosize="352x576" Audiorate="192" Audiotranscode="0" fps="25" soutadd="soverlay,senc" />
   <setup name="VCD" pic="mp4.png"  ext="NONE" Videorate="1000" Videotranscode="0" Videocodec="mpeg1" Videosize="352x576" Audiorate="192" Audiotranscode="0" fps="25" soutadd="soverlay,senc" />
   <setup name="DVD" pic="default.png"  ext="NONE" Videorate="1000" Videotranscode="0" Videocodec="mp2v" Videosize="704x576" Audiorate="192" Audiotranscode="1" fps="25" soutadd="soverlay,senc" />
   <setup name="File" pic="mpg.png" ext="MPG" Videorate="1000" Videotranscode="1" Videocodec="mp2v" Videosize="704x576" Audiorate="192" Audiotranscode="1" fps="25" soutadd="soverlay,senc" />
   <setup name="File" pic="mpg.png" ext="MPEG" Videorate="1000" Videotranscode="1" Videocodec="mp2v" Videosize="704x576" Audiorate="192" Audiotranscode="1" fps="25" soutadd="soverlay,senc" />
   <setup name="File" pic="mpg.png" ext="M2P" Videorate="1000" Videotranscode="0" Videocodec="mpgv" Videosize="704x576" Audiorate="192" Audiotranscode="0" fps="25" soutadd="soverlay,senc" />
   <setup name="File" pic="mpg.png" ext="MPV" Videorate="1000" Videotranscode="0" Videocodec="mpgv" Videosize="704x576" Audiorate="192" Audiotranscode="0" fps="25" soutadd="soverlay,senc" />
   <setup name="File" pic="mpg.png" ext="DAT" Videorate="1000" Videotranscode="0" Videocodec="mpgv" Videosize="704x576" Audiorate="192" Audiotranscode="0" fps="25" soutadd="soverlay,senc" />
   <setup name="File" pic="divx.png" ext="AVI" Videorate="2048" Videotranscode="1" Videocodec="mp2v" Videosize="704x576" Audiorate="192" Audiotranscode="1" fps="25" soutadd="soverlay,senc" />
   <setup name="File" pic="divx.png" ext="MOV" Videorate="2048" Videotranscode="1" Videocodec="mp2v" Videosize="704x576" Audiorate="192" Audiotranscode="1" fps="25" soutadd="soverlay,senc" />
   <setup name="File" pic="wmv.png" ext="WMV" Videorate="2048" Videotranscode="1" Videocodec="mpgv" Videosize="704x576" Audiorate="192" Audiotranscode="1" fps="25" soutadd="soverlay,senc" />
   <setup name="File" pic="h264.png" ext="H264" Videorate="2048" Videotranscode="1" Videocodec="mpgv" Videosize="704x576" Audiorate="192" Audiotranscode="1" fps="25" soutadd="soverlay,senc" />
   <setup name="File" pic="mp4.png" ext="MP4" Videorate="2048" Videotranscode="1" Videocodec="mpgv" Videosize="704x576" Audiorate="192" Audiotranscode="1" fps="25" soutadd="soverlay,senc" />
   <setup name="File" pic="divx.png" ext="DIVX" Videorate="2048" Videotranscode="1" Videocodec="mp2v" Videosize="704x576" Audiorate="192" Audiotranscode="1" fps="25" soutadd="soverlay,senc" />
   <setup name="File" pic="default.png" ext="ASF" Videorate="1000" Videotranscode="1" Videocodec="mp2v" Videosize="704x576" Audiorate="192" Audiotranscode="1" fps="25" soutadd="soverlay,senc" />
   <setup name="File" pic="default.png" ext="TS" Videorate="1000" Videotranscode="0" Videocodec="mp2v" Videosize="704x576" Audiorate="192" Audiotranscode="0" fps="25" soutadd="soverlay,senc" />
   <setup name="File" pic="dvd.png" ext="VOB" Videorate="1000" Videotranscode="0" Videocodec="mp2v" Videosize="704x576" Audiorate="192" Audiotranscode="0" fps="25" soutadd="soverlay,senc" />
   <setup name="File" pic="dvd.png" ext="ISO" Videorate="1000" Videotranscode="0" Videocodec="mp2v" Videosize="704x576" Audiorate="192" Audiotranscode="0" fps="25" soutadd="soverlay,senc" />
   <setup name="File" pic="dvd.png" ext="BIN" Videorate="1000" Videotranscode="0" Videocodec="mp2v" Videosize="704x576" Audiorate="192" Audiotranscode="0" fps="25" soutadd="soverlay,senc" />
   <setup name="File" pic="mp3.png" ext="MP3" Videorate="2048" Videotranscode="1" Videocodec="mp2v" Videosize="704x576" Audiorate="192" Audiotranscode="1" fps="25" soutadd="" />
   <setup name="File" pic="mp3.png" ext="WMA" Videorate="2048" Videotranscode="1" Videocodec="mp2v" Videosize="704x576" Audiorate="192" Audiotranscode="1" fps="25" soutadd="" />
   <setup name="File" pic="mp3.png" ext="WAV" Videorate="2048" Videotranscode="1" Videocodec="mp2v" Videosize="704x576" Audiorate="192" Audiotranscode="1" fps="25" soutadd="" />
   <setup name="File" pic="mp3.png" ext="OGG" Videorate="2048" Videotranscode="1" Videocodec="mp2v" Videosize="704x576" Audiorate="192" Audiotranscode="1" fps="25" soutadd="" />
   <!--Feel free to add filextensions as you like. Every listet extension will be proceed now. Example below-->
   <!--setup name="File" ext="RATDVD" Videorate="2048" Videotranscode="1" Videocodec="mp2v" Videosize="720x576" Audiorate="192" Audiotranscode="1" fps="25" soutadd="soverlay,senc" /-->
</vlc>

Now that the xml file has been made and transferred to the dreambox it is time to set up the backend VLC to feed the frontend.

Use

VLC for Windows

Start VLC on the PC. Then:

  • Select File → Open Network Stream (Ctrl+N)
  • Click Advanced Options
  • check Stream/Save and click Settings
  • check HTTP
  • check Video codec and select mp2v from the dropdown list
  • check Audio codec and select mpga from the dropdown list
  • click Ok
  • click Ok

Now, activate the WebInterface (WEBIF) by selecting Settings → Add Interface → Web Interface from the VLC menu.

VLC for Ubuntu

For Ubuntu Linux users first install vlc by running this command:

$ sudo apt-get install vlc

This will in general install a ****load of stuff, codecs and other things needed. As I learnt, it is also required to install something called the avahi-daemon. This is done by running this command:

$ sudo apt-get install avahi-daemon

If you are having trouble finding these packages, you might want to run:

$ sudo apt-get update

Now that all this has been installed, you need to launch VLC using the following command-line:

$ vlc -d -I http --sout="#transcode{vcodec=mp2v,vb=1024,scale=1,acodec=mpga,ab=192,channels=2}:duplicate{dst=std{access=http,mux=ts,dst=/}}" --http-port=9090

This specifies that the web interface is to be used, together with some transcoding stuff ;-)

At the time of writing this, I am still trying to tune the vlc backend a bit. It is currently using 50%+ cpu when streaming…

Now it is time to start the VLC frontend on the dreambox and set it up to use the correct xml file.

  • Start VLC frontend plugin by starting blue panel (blue button on the remote) and selecting Plugins
  • VLC Frontend will show up as a plugin
  • select it and press Ok

VLC frontend is now started

  • select settings (blue button)
  • In the dropdown list, select the xml file you created earlier, movieplayer_My_Server.xml
  • Then select Switch
  • You will now be told to restart VLC Frontend; do this by using the exit button until you are back at the plugins page
  • Now start VLC Frontend again
  • Use the red button (File)
  • You will now be able to see the movie files that is in the folder specified as startdir in the xml file
  • Select the file you'd like to watch and press Ok
  • Then wait for the buffering to complete, sit back and enjoy the movie…