Test Environment
- Ubunut 16.04 64bit (amd64)
- Ubuntu 14.04 64bit (amd64)
- Ubuntu 14.04 32bit (i386)

Tested Cameras
- Axis Q1604
- Sony SNC-VB600
- Bosch NBN-932V
- Brickcom CB-100A

1. Install manually built GStreamer 1.12
Ubuntu 16.04 64bit:
# sudo tar axf gst-1.12-ubuntu16.04-amd64.tar.gz -C /
Ubuntu 14.04 64bit:
# sudo tar axf gst-1.12-ubuntu14.04-amd64.tar.gz -C /
Ubuntu 14.04 32bit:
# sudo tar axf gst-1.12-ubuntu14.04-i386.tar.gz -C /
NOTE: you don't need ubuntu prebuilt gstreamer 1.0 package anymore

2. Create config file hls.ini under /etc or some other directory
Please set 'basedir' correctly according to your web server configuration.
basedir=/path/to/your/html/hls
NOTE: A ramdisk based file system is recommended for output directory

3. Start gst-hls
Set environment variable for new GStreamer
# export LD_LIBRARY_PATH=/usr/local/lib
# export GST_PLUGINS_PATH=/usr/local/lib/gstreamer-1.0

Start hls gateway
# ./gst-hls  (use default config /etc/hls.ini)
or 
# ./gst-hls -f /path/to/hls.ini

More options:
-d 執行於前景模式
-v 顯示 runtime debug message
-t force TCP connection

4. A sample html page can be found in 'demo'.

Appendix:
- Test RTSP over TCP capability of a remote camera 
# /usr/local/bin/gst-launch-1.0 -e rtspsrc debug=1 protocols=tcp location=rtsp://xxxxxxxxxxxxx ! fakesink


