2012年1月7日 星期六

[多媒體] Setup Video Streaming in Linux

VLC is a free and open source cross-platform multimedia player and framework that plays most multimedia files as well as DVD, Audio CD, VCD, and various streaming protocols.

environment:
* server: ubuntu 10.04 (192.168.104.131)
* client: ubuntu 10.04 (192.168.104.1)

1. launch VLC
server$ vlc

1.1 choose "Media" -> "Advanced Open File..."

1.2 in "File Selection", press "Add..." to choose your media file, then set "Stream"

1.3 check the path of media is correct and press "Next"

1.4 in "Destinations", choose "HTTP" and press "Add"

1.5 set HTTP output port as default "8080", path as default "/"

1.6 set Miscellaneous Options as default and press "Stream"


2. receive video streaming via SMPlayer
client$ smplayer

2.1 choose "Open" -> "URL..."

2.2 fill in URL with http://server:8080/

2.3 play



reference:
* 架設HTTP Streaming Servrer
* Live Streaming Using C

沒有留言: