well im a bsd user, and it looks like im the only person in the world trying to achieve what im trying to do.
It all LOOKs ok, but then again i could be wrong as its not doing what i am trying to do. What i want done in more detail can be found on the bottom of this post.
I have got the player and all working. So i think....
I have a fbsd dedicated server in the USA with no physical access/GUI.
Here is the log on the bsd machine with vlc 0.8.6c when i run it.
-------------------------
[ice@striker:~/www/mov2] vlc -vvv test.mpg --sout http/ts:208.98.32.100 --ttl 12 --loop
VLC media player 0.8.6c Janus
[00000001] main private debug: checking builtin modules
[00000001] main private debug: checking plugin modules
[00000001] main private debug: loading plugins cache file /usr/home/hosting/ice/.vlc/cache/plugins-04041e.dat
[00000001] main private debug: recursively browsing `modules'
[00000001] main private debug: recursively browsing `/usr/local/lib/vlc'
[00000001] main private debug: recursively browsing `plugins'
[00000001] main private debug: module bank initialized, found 185 modules
[00000001] main private debug: opening config file /usr/home/hosting/ice/.vlc/vlcrc
[00000001] main private warning: config file /usr/home/hosting/ice/.vlc/vlcrc does not exist yet
[00000001] main private debug: CPU has capabilities 486 586 MMX 3DNow! MMXEXT SSE SSE2 FPU
[00000001] main private debug: looking for memcpy module: 4 candidates
[00000001] main private debug: using memcpy module "memcpymmxext"
[00000227] main playlist debug: waiting for thread completion
[00000227] main playlist debug: thread 136539648 (playlist) created at priority 0 (playlist/playlist.c:184)
[00000228] main private debug: waiting for thread completion
[00000228] main private debug: thread 136626176 (preparser) created at priority 0 (playlist/playlist.c:210)
[00000229] main interface debug: looking for interface module: 1 candidate
[00000229] main interface debug: using interface module "hotkeys"
[00000229] main interface debug: thread 136626688 (interface) created at priority 0 (interface/interface.c:231)
[00000231] main interface debug: looking for interface module: 1 candidate
[00000231] main interface debug: using interface module "screensaver"
[00000231] main interface debug: thread 136627200 (interface) created at priority 0 (interface/interface.c:231)
[00000227] main playlist debug: adding playlist item `test.mpg' ( test.mpg )
[00000233] main interface debug: looking for interface module: 1 candidate
Remote control interface initialized. Type `help' for help.
[00000233] main interface debug: using interface module "rc"
[00000233] main interface debug: thread 136627712 (manager) created at priority 0 (interface/interface.c:216)
[00000227] main playlist debug: creating new input thread
[00000235] main input debug: waiting for thread completion
[00000235] main input debug: creating statistics handler
[00000237] main stream output debug: using sout chain=`std{mux="ts",access="http",dst="208.98.32.100"}'
[00000237] main stream output debug: stream=`std'
[00000238] main private debug: looking for sout stream module: 1 candidate
[00000238] main private debug: set sout option: sout-standard-mux to ts
[00000238] main private debug: set sout option: sout-standard-access to http
[00000238] main private debug: set sout option: sout-standard-dst to 208.98.32.100
[00000238] stream_out_standard private debug: creating `http/ts://208.98.32.100'
[00000238] stream_out_standard private debug: extension is 100
[00000238] stream_out_standard private debug: extension -> mux=(null)
[00000238] stream_out_standard private debug: using `http/ts://208.98.32.100'
[00000240] main private debug: looking for sout access module: 1 candidate
[00000240] main private: creating httpd
[00000240] main private debug: net: listening to 208.98.32.100 port 8080
[00000243] main http server debug: thread 136628736 (httpd host thread) created at priority 0 (network/httpd.c:1078)
[00000240] main private debug: using sout access module "access_output_http"
[00000238] stream_out_standard private debug: access opened
[00000244] main private debug: looking for sout mux module: 1 candidate
[00000244] mux_ts private debug: shaping=200000 pcr=70000 dts_delay=400000
[00000244] main private debug: using sout mux module "mux_ts"
[00000237] main stream output debug: muxer support adding stream at any time
[00000238] stream_out_standard private debug: mux opened
[00000238] main private debug: using sout stream module "stream_out_standard"
[00000235] main input debug: `test.mpg' gives access `' demux `' path `test.mpg'
[00000235] main input debug: creating demux: access='' demux='' path='test.mpg'
[00000245] main demuxer debug: looking for access_demux module: 0 candidates
[00000245] main demuxer warning: no access_demux module matched "any"
[00000235] main input debug: creating access '' path='test.mpg'
[00000246] main access debug: looking for access2 module: 4 candidates
[00000246] vcd access debug: trying .cue file: test.cue
[00000246] vcd access debug: could not find .cue file
[00000246] access_file access debug: opening file `test.mpg'
[00000246] main access debug: using access2 module "access_file"
[00000251] main private debug: pre-buffering...
[00000251] main private debug: received first data for our buffer
[00000251] main private debug: pre-buffering done 1408981 bytes in 0s - 283293 kbytes/s
[00000235] main input debug: creating demux: access='' demux='' path='test.mpg'
[00000252] main demuxer debug: looking for demux2 module: 38 candidates
status change: ( new input: test.mpg )
[00000235] main input debug: thread 136628224 (input) created at priority 0 (input/input.c:265)
[00000252] main demuxer debug: using demux2 module "ps"
status change: ( audio volume: 256 )
status change: ( play state: 1 )
[00000235] main input debug: looking for a subtitle file in /usr/home/hosting/ice/public_html/mov2/
[00000235] main input debug: starting in sync mode
[00000235] main input debug: `test.mpg' successfully opened
[00000252] ps demuxer warning: garbage at input, trying to resync...
[00000252] ps demuxer warning: found sync code
[00000252] ps demuxer debug: we found a length of: 44747745
[00000252] ps demuxer debug: we found a length of: 44960000
[00000235] main input debug: selecting program id=0
[00000286] main packetizer debug: looking for packetizer module: 14 candidates
[00000286] main packetizer debug: using packetizer module "mpeg_audio"
[00000235] main input debug: stream out mode -> no decoder thread
[00000308] main packetizer debug: looking for packetizer module: 14 candidates
[00000308] main packetizer debug: using packetizer module "packetizer_mpegvideo"
[00000235] main input debug: stream out mode -> no decoder thread
[00000308] packetizer_mpegvideo packetizer debug: size 320x240 fps=25.000
[00000237] main stream output debug: adding a new input
[00000244] main private debug: adding a new input
[00000244] mux_ts private debug: adding input codec=mpgv pid=68
[00000244] mux_ts private debug: new PCR PID is 68
[00000286] mpeg_audio packetizer debug: MPGA channels:2 samplerate:44100 bitrate:96
[00000237] main stream output debug: adding a new input
[00000244] main private debug: adding a new input
[00000244] mux_ts private debug: adding input codec=mpga pid=69
---------------------------------
ok so its loaded....right?
Then i type 'help' and the help menu comes up:
---------------------------------
help
+----[ Remote control commands ]
|
| add XYZ . . . . . . . . . . add XYZ to playlist
| enqueue XYZ . . . . . . . queue XYZ to playlist
| playlist . . . show items currently in playlist
| play . . . . . . . . . . . . . . . . play stream
etc etc...
---------------------------------
I click on
http://www.icerslair.com:8080 through my home XP machine and it asks me to open/download file (which im guess is correct too as there is no streaming applet set up on website yet)
then after a few minutes idle this comes up in the log continuing from above:
---------------------------------
[00000235] main input debug: control type=1
[00000235] main input debug: EOF reached
[00000235] main input debug: closing input
[00000286] main packetizer debug: removing module "mpeg_audio"
[00000286] main packetizer debug: killing decoder fourcc `mpga', 0 PES in FIFO
[00000237] main stream output debug: removing an input
[00000244] mux_ts private debug: removing input pid=69
[00000308] main packetizer debug: removing module "packetizer_mpegvideo"
[00000308] main packetizer debug: killing decoder fourcc `mpgv', 0 PES in FIFO
[00000237] main stream output debug: removing an input
[00000244] mux_ts private debug: removing input pid=68
[00000244] mux_ts private debug: new PCR PID is 8191
[00000244] main private warning: no more input streams for this mux
[00000235] main input debug: Program doesn't contain anymore ES
[00000252] main demuxer debug: removing module "ps"
[00000246] main access debug: removing module "access_file"
[00000235] main input debug: destroying sout
[00000238] main private debug: destroying chain... (name=std)
[00000244] main private debug: removing module "mux_ts"
[00000243] main http server debug: thread 136628736 joined (network/httpd.c:1134)
[00000243] main http server debug: HTTP host removed
[00000242] main http server debug: no host left, stopping httpd
[00000240] access_output_http private debug: Close
[00000240] main private debug: removing module "access_output_http"
[00000238] main private debug: removing module "stream_out_standard"
[00000238] main private debug: destroying chain done
status change: ( stop state: 0 )
[00000235] main input debug: thread 136628224 joined (input/input.c:412)
[00000227] main playlist debug: creating new input thread
[00000309] main input debug: waiting for thread completion
[00000310] main stream output debug: using sout chain=`std{mux="ts",access="http",dst="208.98.32.100"}'
[00000310] main stream output debug: stream=`std'
[00000311] main private debug: looking for sout stream module: 1 candidate
[00000311] main private debug: set sout option: sout-standard-mux to ts
[00000311] main private debug: set sout option: sout-standard-access to http
[00000311] main private debug: set sout option: sout-standard-dst to 208.98.32.100
[00000311] stream_out_standard private debug: creating `http/ts://208.98.32.100'
[00000311] stream_out_standard private debug: extension is 100
[00000311] stream_out_standard private debug: extension -> mux=(null)
[00000311] stream_out_standard private debug: using `http/ts://208.98.32.100'
[00000312] main private debug: looking for sout access module: 1 candidate
[00000312] main private: creating httpd
[00000312] main private debug: net: listening to 208.98.32.100 port 8080
[00000314] main http server debug: thread 136629760 (httpd host thread) created at priority 0 (network/httpd.c:1078)
[00000312] main private debug: using sout access module "access_output_http"
[00000311] stream_out_standard private debug: access opened
[00000315] main private debug: looking for sout mux module: 1 candidate
[00000315] mux_ts private debug: shaping=200000 pcr=70000 dts_delay=400000
[00000315] main private debug: using sout mux module "mux_ts"
[00000310] main stream output debug: muxer support adding stream at any time
[00000311] stream_out_standard private debug: mux opened
[00000311] main private debug: using sout stream module "stream_out_standard"
[00000309] main input debug: `test.mpg' gives access `' demux `' path `test.mpg'
[00000309] main input debug: creating demux: access='' demux='' path='test.mpg'
[00000316] main demuxer debug: looking for access_demux module: 0 candidates
[00000316] main demuxer warning: no access_demux module matched "any"
[00000309] main input debug: creating access '' path='test.mpg'
[00000317] main access debug: looking for access2 module: 4 candidates
[00000317] vcd access debug: trying .cue file: test.cue
[00000317] vcd access debug: could not find .cue file
[00000317] access_file access debug: opening file `test.mpg'
[00000317] main access debug: using access2 module "access_file"
[00000318] main private debug: pre-buffering...
[00000318] main private debug: received first data for our buffer
[00000318] main private debug: pre-buffering done 1408981 bytes in 0s - 302275 kbytes/s
[00000309] main input debug: creating demux: access='' demux='' path='test.mpg'
[00000319] main demuxer debug: looking for demux2 module: 38 candidates
[00000319] main demuxer debug: using demux2 module "ps"
[00000309] main input debug: looking for a subtitle file in /usr/home/hosting/ice/public_html/mov2/
[00000309] main input debug: starting in sync mode
[00000309] main input debug: `test.mpg' successfully opened
[00000319] ps demuxer warning: garbage at input, trying to resync...
[00000319] ps demuxer warning: found sync code
[00000319] ps demuxer debug: we found a length of: 44747745
[00000319] ps demuxer debug: we found a length of: 44960000
[00000309] main input debug: selecting program id=0
[00000320] main packetizer debug: looking for packetizer module: 14 candidates
[00000320] main packetizer debug: using packetizer module "mpeg_audio"
[00000309] main input debug: stream out mode -> no decoder thread
[00000321] main packetizer debug: looking for packetizer module: 14 candidates
[00000321] main packetizer debug: using packetizer module "packetizer_mpegvideo"
[00000309] main input debug: stream out mode -> no decoder thread
[00000321] packetizer_mpegvideo packetizer debug: size 320x240 fps=25.000
[00000309] main input debug: thread 136629248 (input) created at priority 0 (input/input.c:265)
status change: ( new input: test.mpg )
status change: ( audio volume: 256 )
status change: ( play state: 1 )
[00000310] main stream output debug: adding a new input
[00000315] main private debug: adding a new input
[00000315] mux_ts private debug: adding input codec=mpgv pid=68
[00000315] mux_ts private debug: new PCR PID is 68
[00000320] mpeg_audio packetizer debug: MPGA channels:2 samplerate:44100 bitrate:96
[00000310] main stream output debug: adding a new input
[00000315] main private debug: adding a new input
[00000315] mux_ts private debug: adding input codec=mpga pid=69
------------------------------
So its just restarting the loop im gathering? Then i CTRL + C and get the closing down of the app:
------------------------------
^Csignal 2 received, terminating vlc - do it again in case it gets stuck
status change: ( stop state: 0 )
status change: ( quit )
[00000001] main private debug: removing all interfaces
[00000233] main interface debug: thread 136627712 joined (interface/interface.c:258)
[00000233] main interface debug: removing module "rc"
[00000231] main interface debug: thread 136627200 joined (interface/interface.c:258)
[00000231] main interface debug: removing module "screensaver"
[00000229] main interface debug: thread 136626688 joined (interface/interface.c:258)
[00000229] main interface debug: removing module "hotkeys"
[00000001] main private debug: removing playlist handler
[00000228] main private debug: thread 136626176 joined (playlist/playlist.c:247)
[00000309] main input debug: control type=0
[00000309] main input debug: control: stopping input
[00000309] main input debug: closing input
[00000320] main packetizer debug: removing module "mpeg_audio"
[00000320] main packetizer debug: killing decoder fourcc `mpga', 0 PES in FIFO
[00000310] main stream output debug: removing an input
[00000315] mux_ts private debug: removing input pid=69
[00000321] main packetizer debug: removing module "packetizer_mpegvideo"
[00000321] main packetizer debug: killing decoder fourcc `mpgv', 0 PES in FIFO
[00000310] main stream output debug: removing an input
[00000315] mux_ts private debug: removing input pid=68
[00000315] mux_ts private debug: new PCR PID is 8191
[00000315] main private warning: no more input streams for this mux
[00000309] main input debug: Program doesn't contain anymore ES
[00000319] main demuxer debug: removing module "ps"
[00000317] main access debug: removing module "access_file"
[00000309] main input debug: destroying sout
[00000311] main private debug: destroying chain... (name=std)
[00000315] main private debug: removing module "mux_ts"
[00000314] main http server debug: thread 136629760 joined (network/httpd.c:1134)
[00000314] main http server debug: HTTP host removed
[00000313] main http server debug: no host left, stopping httpd
[00000312] access_output_http private debug: Close
[00000312] main private debug: removing module "access_output_http"
[00000311] main private debug: removing module "stream_out_standard"
[00000311] main private debug: destroying chain done
[00000309] main input debug: thread 136629248 joined (input/input.c:412)
[00000227] main playlist debug: thread 136539648 joined (playlist/playlist.c:248)
[00000227] main playlist: stopping playback
[00000227] main playlist debug: deleting playlist item `test.mpg'
[00000001] main private debug: removing all video outputs
[00000001] main private debug: removing all audio outputs
[00000001] main private debug: removing module "memcpymmxext"
[00000001] main private debug: saving plugins cache file /usr/home/hosting/ice/.vlc/cache/plugins-04041e.dat
[ice@striker:~/www/mov2]
---------------------------
Ok so it sort of looks like it is working....
But my main problem is that i'm trying to make an applet for the streaming onto my website. Exactly like a radio shoutcast. Or a tv station over the internet.
Is there an applet / code (like youtube's even) that i can get to view the live-streaming of the video into that applet? So when a user goes to mywebsite.com it will auto load the live streaming into the applet on the website and continue from wherever the video is up to?
There has to be a way. Ive been on the forums and on the freenode irc server looking for support for my situation, but it doesn't seem to be getting me anywhere. And i posted an earlier ticket but was in another section with no replies. So trying one final time here again...
I have left it all running in the loop so people can see.
http://www.icerslair.com:8080 is where the feed is at the moment. If you typ that in your VLC client it will load the streaming movie (im hoping) or if you enter that into your browser, it will ask you to SAVE AS or OPEN. Am i on the right track here?