[streaming] Streaming from capture card to http asf file

William V quentusrex at gmail.com
Sun Dec 23 10:39:44 CET 2007


Hello, and thank you ahead of time for atleast reading this.

I have a 16 port capture card on debian Etch(I'll upgrade to testing
if I need to) that corrosponds to four channels each 0-3 on
/dev/video0, /dev/video1, etc. I have apache running on this server
and I want users to be able to log into apache and see an embedded
live video from the capture cards. To do this I need to be able to
stream from the card (from ntsc format to mpeg4) and have an asf
stream.

How should I do this? I am able to encode from the card to an mp4 file
with ffmpeg on this server, but VLC keeps giving me an error. If I can
get some help to get this server up and running I will donate to the
VideoLAN project to help keep the project running.



[00000001] main private debug: checking builtin modules
[00000001] main private debug: checking plugin modules
[00000001] main private debug: loading plugins cache file
/root/.vlc/cache/plugins-04081e.dat
[00000001] main private debug: recursively browsing `modules'
[00000001] main private debug: recursively browsing `/usr/lib/vlc'
[00000001] main private debug: recursively browsing `plugins'
[00000001] main private debug: module bank initialized, found 211 modules
[00000001] main private debug: opening config file /root/.vlc/vlcrc
[00000001] main private warning: config file /root/.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"
[00000273] main playlist debug: waiting for thread completion
[00000273] main playlist debug: thread 1082132816 (playlist) created
at priority 0 (playlist/playlist.c:184)
[00000274] main private debug: waiting for thread completion
[00000274] main private debug: thread 1090525520 (preparser) created
at priority 0 (playlist/playlist.c:210)
[00000275] main interface debug: looking for interface module: 1 candidate
[00000275] main interface debug: using interface module "hotkeys"
[00000275] main interface debug: thread 1098918224 (interface) created
at priority 0 (interface/interface.c:231)
[00000277] main interface debug: looking for interface module: 1 candidate
[00000277] main interface debug: using interface module "screensaver"
[00000277] main interface debug: thread 1107310928 (interface) created
at priority 0 (interface/interface.c:231)
[00000273] main playlist debug: adding playlist item
`v4l:/dev/video1:norm=ntsc:size=320x240:channel=0' (
v4l:/dev/video1:norm=ntsc:size=320x240:channel=0 )
[00000279] main interface debug: looking for interface module: 2 candidates
Remote control interface initialized. Type `help' for help.
[00000279] main interface debug: using interface module "rc"
[00000279] main interface debug: thread 1115703632 (manager) created
at priority 0 (interface/interface.c:216)
[00000273] main playlist debug: creating new input thread
[00000281] main input debug: waiting for thread completion
[00000281] main input debug: creating statistics handler
[00000283] main stream output debug: stream=`transcode'
[00000284] main private debug: looking for sout stream module: 1 candidate
[00000283] main stream output debug: stream=`std'
[00000287] main private debug: looking for sout stream module: 1 candidate
[00000287] main private debug: set sout option: sout-standard-access to http
[00000287] main private debug: set sout option: sout-standard-mux to asf
[00000287] main private debug: set sout option: sout-standard-dst to :8080
[00000287] stream_out_standard private debug: creating `http/asf://:8080'
[00000287] stream_out_standard private debug: using `http/asf://:8080'
[00000289] main private debug: looking for sout access module: 1 candidate
[00000289] main private: creating httpd
[00000289] main private debug: net: listening to  port 8080
[00000292] main http server debug: thread 1132489040 (httpd host
thread) created at priority 0 (network/httpd.c:1078)
[00000289] main private debug: using sout access module "access_output_http"
[00000287] stream_out_standard private debug: access opened
[00000293] main private debug: looking for sout mux module: 1 candidate
[00000293] mux_asf private debug: asf muxer opened
[00000281] main input debug: thread 1124096336 (input) created at
priority 0 (input/input.c:265)
[00000293] mux_asf private debug: Packet size 4096
[00000293] mux_asf private debug: meta data: title='', author='',
copyright='', comment='', rating=''
[00000293] main private debug: using sout mux module "mux_asf"
[00000287] stream_out_standard private debug: mux opened
[00000287] main private debug: using sout stream module "stream_out_standard"
[00000284] main private warning: option display is unknown
[00000284] main private debug: set sout option: sout-transcode-vcodec to mpeg4
[00000284] main private debug: set sout option: sout-transcode-vb to 3000
[00000284] main private warning: option vt is unknown
[00000284] main private warning: option keyint is unknown
[00000284] stream_out_transcode private debug: codec video=mpeg 0x0
scaling: 1.000000 3000kb/s
[00000284] main private debug: using sout stream module "stream_out_transcode"
[00000281] main input debug:
`v4l:/dev/video1:norm=ntsc:size=320x240:channel=0' gives access `v4l'
demux `' path `/dev/video1:norm=ntsc:size=320x240:channel=0'
[00000281] main input debug: creating demux: access='v4l' demux=''
path='/dev/video1:norm=ntsc:size=320x240:channel=0'
[00000295] main demuxer debug: looking for access_demux module: 1 candidate
[00000295] v4l demuxer debug: WxH 320x240
[00000295] v4l demuxer debug: main device=`/dev/video1'
[00000295] v4l demuxer debug: V4L device BT878 video (ProVideo PV150)
2 channels 0 audios 48 < w < 768 32 < h < 480
[00000295] v4l demuxer debug: setting channel Composite0(0) 0 tuners
flags=0x2 type=0x2 norm=0x1
[00000295] v4l demuxer debug: v4l device uses brightness: 32768
[00000295] v4l demuxer debug: v4l device uses colour: 32768
[00000295] v4l demuxer debug: v4l device uses hue: 32768
[00000295] v4l demuxer debug: v4l device uses contrast: 32768
[00000295] v4l demuxer debug: v4l device uses frame size: 115200
[00000295] v4l demuxer debug: v4l device uses chroma: I420
[00000295] v4l demuxer debug: openened adev=`/dev/dsp' stereo 32000Hz
[00000295] v4l demuxer debug: v4l grabbing started
[00000295] v4l demuxer debug: added new video es I420 320x240
[00000281] main input debug: selecting program id=0
[00000295] v4l demuxer debug: new audio es 2 channels 32000Hz
[00000295] main demuxer debug: using access_demux module "v4l"
[00000297] main packetizer debug: looking for packetizer module: 17 candidates
[00000297] main packetizer debug: using packetizer module "rawvideo"
[00000297] main packetizer debug: thread 1140881744 (decoder) created
at priority 0 (input/decoder.c:159)
[00000308] main packetizer debug: looking for packetizer module: 17 candidates
[00000308] main packetizer debug: using packetizer module "packetizer_copy"
[00000308] main packetizer debug: thread 1149274448 (decoder) created
at priority 0 (input/decoder.c:159)
[00000281] main input debug: starting in sync mode
[00000281] main input debug:
`v4l:/dev/video1:norm=ntsc:size=320x240:channel=0' successfully opened
status change: ( new input: v4l:/dev/video1:norm=ntsc:size=320x240:channel=0 )
status change: ( audio volume: 256 )
status change: ( play state: 1 )
[00000283] main stream output debug: adding a new input
[00000284] stream_out_transcode private debug: creating video
transcoding from fcc=`I420' to fcc=`mpeg'
[00000329] main decoder debug: looking for decoder module: 24 candidates
[00000329] main decoder debug: using decoder module "rawvideo"
[00000330] main encoder debug: looking for encoder module: 8 candidates
[00000284] stream_out_transcode private error: cannot find encoder ((null))
[00000329] main decoder debug: removing module "rawvideo"
[00000284] stream_out_transcode private error: cannot create video chain
[00000297] main packetizer error: cannot create packetizer output (I420)





Then after I press ctrl+c I get this output:



signal 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
[00000279] main interface debug: thread 1115703632 joined
(interface/interface.c:258)
[00000279] main interface debug: removing module "rc"
[00000277] main interface debug: thread 1107310928 joined
(interface/interface.c:258)
[00000277] main interface debug: removing module "screensaver"
[00000275] main interface debug: thread 1098918224 joined
(interface/interface.c:258)
[00000275] main interface debug: removing module "hotkeys"
[00000001] main private debug: removing playlist handler
[00000274] main private debug: thread 1090525520 joined
(playlist/playlist.c:247)
[00000281] main input debug: control type=0
[00000281] main input debug: control: stopping input
[00000281] main input debug: closing input
[00000295] main demuxer debug: removing module "v4l"
[00000297] main packetizer debug: removing module "rawvideo"
[00000297] main packetizer debug: thread 1140881744 joined (input/decoder.c:191)
[00000297] main packetizer debug: killing decoder fourcc `I420', 0 PES in FIFO
[00000308] main packetizer debug: removing module "packetizer_copy"
[00000308] main packetizer debug: thread 1149274448 joined (input/decoder.c:191)
[00000308] main packetizer debug: killing decoder fourcc `araw', 0 PES in FIFO
[00000281] main input debug: destroying sout
[00000284] main private debug: destroying chain... (name=transcode)
[00000287] main private debug: destroying chain... (name=std)
[00000293] mux_asf private debug: Asf muxer closed
[00000289] access_output_http private warning: HTTP sout access cannot seek
[00000293] main private debug: removing module "mux_asf"
[00000292] main http server debug: thread 1132489040 joined
(network/httpd.c:1134)
[00000292] main http server debug: HTTP host removed
[00000291] main http server debug: no host left, stopping httpd
[00000289] access_output_http private debug: Close
[00000289] main private debug: removing module "access_output_http"
[00000287] main private debug: removing module "stream_out_standard"
[00000287] main private debug: destroying chain done
[00000284] main private debug: removing module "stream_out_transcode"
[00000284] main private debug: destroying chain done
[00000281] main input debug: thread 1124096336 joined (input/input.c:412)
[00000273] main playlist debug: thread 1082132816 joined
(playlist/playlist.c:248)
[00000273] main playlist: stopping playback
[00000273] main playlist debug: deleting playlist item
`v4l:/dev/video1:norm=ntsc:size=320x240:channel=0'
[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
/root/.vlc/cache/plugins-04081e.dat
debianDVR:/tmp#



More information about the streaming mailing list