| 1 | The Freebox recorder was originaly written to retrieve TV channels from the |
|---|
| 2 | Freebox (the modem used by ISP free.fr) using the rtsp protocol. |
|---|
| 3 | |
|---|
| 4 | External streams can be imported even if you don't have the Freebox modem, |
|---|
| 5 | thanks to the VOD functions of VLC. |
|---|
| 6 | |
|---|
| 7 | Here are the scripts I used to test the FreeboxRecorder when I didn't have |
|---|
| 8 | access to the freebox's channels. I hope it could be extended by VLC gurus to |
|---|
| 9 | import/transcode external streams like nasatv. |
|---|
| 10 | |
|---|
| 11 | ===== vlcserver.sh ===== |
|---|
| 12 | #!/bin/sh |
|---|
| 13 | vlc -vvv --color -I telnet --telnet-password toto --rtsp-host 0.0.0.0:5554 |
|---|
| 14 | ======================== |
|---|
| 15 | |
|---|
| 16 | ===== vlcconfig.sh ===== |
|---|
| 17 | #!/bin/sh |
|---|
| 18 | ( |
|---|
| 19 | echo 'toto' |
|---|
| 20 | cat vlc.vod.conf |
|---|
| 21 | echo 'quit' |
|---|
| 22 | ) | telnet localhost 4212 |
|---|
| 23 | ======================== |
|---|
| 24 | |
|---|
| 25 | ===== vlc.vod.conf ===== |
|---|
| 26 | new test vod input /home/mykeul/test.mpeg mux mp2t enabled |
|---|
| 27 | new test2 vod input /home/mykeul/test2.mpeg mux mp2t enabled |
|---|
| 28 | ======================== |
|---|
| 29 | |
|---|
| 30 | vlcserver.sh starts vlc as a VOD server, and wait for its configuration on |
|---|
| 31 | port 4212 (telnet interface). |
|---|
| 32 | |
|---|
| 33 | vlcconfig.sh connects to the telnet interface of the previous vlc VOD server, |
|---|
| 34 | and configures it using the vlc.vod.vonf file. |
|---|
| 35 | |
|---|
| 36 | vlc.vod.conf contains the commands to configure the different streams to be |
|---|
| 37 | served by the VOD server. |
|---|
| 38 | |
|---|
| 39 | |
|---|
| 40 | The playlist.m3u originaly served by the freebox modem, may be served by a |
|---|
| 41 | local http server. Here is a simple one to connect to the previously configured |
|---|
| 42 | vlc server. |
|---|
| 43 | |
|---|
| 44 | ===== playlist.m3u ===== |
|---|
| 45 | #EXTM3U |
|---|
| 46 | #EXTINF:0,1 - test |
|---|
| 47 | rtsp://localhost:5554/test |
|---|
| 48 | #EXTINF:0,2 - test2 |
|---|
| 49 | rtsp://localhost:5554/test2 |
|---|
| 50 | ======================== |
|---|