Problem getting HTTP Streaming to work.

*nix specific usage questions
bobc02
Blank Cone
Blank Cone
Posts: 11
Joined: 26 Aug 2011 06:45

Problem getting HTTP Streaming to work.

Postby bobc02 » 08 Sep 2011 09:55

Using the command line below I am trying to stream from my video capture card but the streaming doesn't happen. I can get it to stream if I configure streaming using the GUI. I don't see any errors in the log below, so I can't figure out what's wrong. The "late picture skipped" is a problem that I'll also need to solve, but for now I need help figuring out how to get the streaming to work.

A 1234 port shows up, as shown in the netstat log, but when I stream from the GUI it shows three entries.

Any ideas?

This is running on Ubuntu 10.04.

Thanks,

--Bob

Code: Select all

NETSTAT LOG USING COMMAND LINE -------------------------------------------- tcp 0 0 0.0.0.0:1234 0.0.0.0:* LISTEN 2900/vlc NETSTAT LOG USING GUI ------------------------------- tcp 0 0 0.0.0.0:1234 0.0.0.0:* LISTEN 3362/vlc tcp 0 0 192.168.1.109:1234 192.168.1.107:4369 ESTABLISHED 3362/vlc tcp6 0 0 :::1234 :::* LISTEN 3362/vlc COMMAND LINE ----------- cvlc v4l2:///dev/video0 --v4l2-input 1 -vvv --file-logging --logfile="./vlc.log" --dvb-caching 2000 --dvb-frequency=11524000 --dvb-srate=12000000 --dvb-voltage=13 --sout '#transcode{vcodec=WMV2,acodec=wma2,vb=800,ab=128,channels=2,samplerate=44100}:standard{access=http,mux=asf,dst=:1234/}' LOG ----------- -- logger module started -- main debug: using interface module "logger" main debug: TIMER module_need() : 18.594 ms - Total 18.594 ms / 1 intvls (Avg 18.594 ms) main debug: adding item `v4l2:///dev/video0' ( v4l2:///dev/video0 ) main debug: looking for interface module: 1 candidate main debug: using interface module "signals" main debug: TIMER module_need() : 0.969 ms - Total 0.969 ms / 1 intvls (Avg 0.969 ms) main debug: looking for interface module: 1 candidate main debug: using interface module "globalhotkeys" main debug: TIMER module_need() : 3.663 ms - Total 3.663 ms / 1 intvls (Avg 3.663 ms) main debug: looking for interface module: 1 candidate dummy: using the dummy interface module... main debug: using interface module "dummy" main debug: TIMER module_need() : 0.947 ms - Total 0.947 ms / 1 intvls (Avg 0.947 ms) main debug: processing request item null node Playlist skip 0 main debug: rebuilding array of current - root Playlist main debug: rebuild done - 1 items, index -1 main debug: starting new item main debug: creating new input thread main debug: Creating an input for 'v4l2:///dev/video0' main debug: thread (input) created at priority 10 (input/input.c:214) main debug: thread started main debug: using sout chain=`transcode{vcodec=WMV2,acodec=wma2,vb=800,ab=128,channels=2,samplerate=44100}:standard{access=http,mux=asf,dst=:1234/}' main debug: stream=`standard' main debug: looking for sout stream module: 1 candidate main debug: set config option: sout-standard-access to http main debug: set config option: sout-standard-mux to asf main debug: set config option: sout-standard-dst to :1234/ stream_out_standard debug: creating `http/asf://:1234/' stream_out_standard debug: using `http/asf://:1234/' main debug: looking for sout access module: 1 candidate main: creating httpd main debug: net: listening to port 1234 main debug: using sout access module "access_output_http" main debug: TIMER module_need() : 9.411 ms - Total 9.411 ms / 1 intvls (Avg 9.411 ms) stream_out_standard debug: access opened main debug: looking for sout mux module: 1 candidate mux_asf debug: asf muxer opened mux_asf debug: Packet size 4096 mux_asf debug: meta data: title='', author='', copyright='', comment='', rating='' main debug: using sout mux module "mux_asf" main debug: TIMER module_need() : 1.348 ms - Total 1.348 ms / 1 intvls (Avg 1.348 ms) stream_out_standard debug: mux opened main debug: using sout stream module "stream_out_standard" main debug: TIMER module_need() : 12.744 ms - Total 12.744 ms / 1 intvls (Avg 12.744 ms) main debug: stream=`transcode' main debug: looking for sout stream module: 1 candidate main debug: set config option: sout-transcode-vcodec to WMV2 main debug: set config option: sout-transcode-acodec to wma2 main debug: set config option: sout-transcode-vb to 800 main debug: set config option: sout-transcode-ab to 128 main debug: set config option: sout-transcode-channels to 2 main debug: set config option: sout-transcode-samplerate to 44100 stream_out_transcode debug: codec audio=wma2 44100Hz 2 channels 128Kb/s stream_out_transcode debug: codec video=WMV2 0x0 scaling: 0.000000 800kb/s main debug: using sout stream module "stream_out_transcode" main debug: TIMER module_need() : 2.635 ms - Total 2.635 ms / 1 intvls (Avg 2.635 ms) main debug: using timeshift granularity of 50 MiB main debug: using timeshift path '/tmp' main debug: `v4l2:///dev/video0' gives access `v4l2' demux `' path `/dev/video0' main debug: creating demux: access='v4l2' demux='' path='/dev/video0' main debug: looking for access_demux module: 1 candidate v4l2 debug: Trying direct kernel v4l2 v4l2 debug: opening device '/dev/video0' v4l2 debug: V4L2 device: Hauppauge WinTV-HVR1150 ATSC/QA using driver: saa7134 (version: 0.2.16) on PCI:0000:05:00.0 v4l2 debug: the device has the capabilities: (X) Video Capture, ( ) Audio, (X) Tuner, ( ) Radio v4l2 debug: supported I/O methods are: (X) Read/Write, (X) Streaming, ( ) Asynchronous v4l2 debug: device supports raw VBI capture v4l2 debug: video input 0 (Television) has type: Tuner adapter v4l2 debug: video input 1 (Composite1) has type: External analog input * v4l2 debug: video input 2 (S-Video) has type: External analog input v4l2 debug: video standard 0 is: NTSC v4l2 debug: video standard 1 is: NTSC-M v4l2 debug: video standard 2 is: NTSC-M-JP v4l2 debug: video standard 3 is: NTSC-M-KR v4l2 debug: video standard 4 is: PAL v4l2 debug: video standard 5 is: PAL-BG v4l2 debug: video standard 6 is: PAL-H v4l2 debug: video standard 7 is: PAL-I v4l2 debug: video standard 8 is: PAL-DK v4l2 debug: video standard 9 is: PAL-M v4l2 debug: video standard 10 is: PAL-N v4l2 debug: video standard 11 is: PAL-Nc v4l2 debug: video standard 12 is: PAL-60 v4l2 debug: video standard 13 is: SECAM v4l2 debug: video standard 14 is: SECAM-B v4l2 debug: video standard 15 is: SECAM-G v4l2 debug: video standard 16 is: SECAM-H v4l2 debug: video standard 17 is: SECAM-DK v4l2 debug: video standard 18 is: SECAM-L v4l2 debug: video standard 19 is: SECAM-Lc v4l2 debug: tuner 0 (Television) has type: Analog TV, frequency range: 0.0 kHz -> 268435455937.5 kHz v4l2 debug: tuner 0 (Television) frequency: 0.0 kHz v4l2 debug: device supports chroma GREY [8 bpp gray, GREY] v4l2 warning: Unable to query for frame sizes v4l2 debug: device supports chroma RV15 [15 bpp RGB, le, RGBO] v4l2 warning: Unable to query for frame sizes v4l2 debug: device codec RGBQ (15 bpp RGB, be) not supported v4l2 debug: device supports chroma RV16 [16 bpp RGB, le, RGBP] v4l2 warning: Unable to query for frame sizes v4l2 debug: device codec RGBR (16 bpp RGB, be) not supported v4l2 debug: device supports chroma RV24 [24 bpp RGB, le, BGR3] v4l2 warning: Unable to query for frame sizes v4l2 debug: device supports chroma RV24 [24 bpp RGB, be, RGB3] v4l2 warning: Unable to query for frame sizes v4l2 debug: device supports chroma RV32 [32 bpp RGB, le, BGR4] v4l2 warning: Unable to query for frame sizes v4l2 debug: device supports chroma RV32 [32 bpp RGB, be, RGB4] v4l2 warning: Unable to query for frame sizes v4l2 debug: device supports chroma YUY2 [4:2:2 packed, YUYV, YUYV] v4l2 warning: Unable to query for frame sizes v4l2 debug: device supports chroma UYVY [4:2:2 packed, UYVY, UYVY] v4l2 warning: Unable to query for frame sizes v4l2 debug: device supports chroma I422 [4:2:2 planar, Y-Cb-Cr, 422P] v4l2 warning: Unable to query for frame sizes v4l2 debug: device supports chroma I420 [4:2:0 planar, Y-Cb-Cr, YU12] v4l2 warning: Unable to query for frame sizes v4l2 debug: device supports chroma YV12 [4:2:0 planar, Y-Cb-Cr, YV12] v4l2 warning: Unable to query for frame sizes v4l2 debug: '/dev/video0' is a video device v4l2 debug: Extended control API not supported by v4l2 driver v4l2 debug: Available control: Brightness (980900) v4l2 debug: integer control v4l2 debug: valid values: 0 to 255 by steps of 1 v4l2 debug: default value: 128 v4l2 debug: current value: 128 v4l2 debug: Available control: Contrast (980901) v4l2 debug: integer control v4l2 debug: valid values: 0 to 127 by steps of 1 v4l2 debug: default value: 68 v4l2 debug: current value: 68 v4l2 debug: Available control: Saturation (980902) v4l2 debug: integer control v4l2 debug: valid values: 0 to 127 by steps of 1 v4l2 debug: default value: 64 v4l2 debug: current value: 64 v4l2 debug: Available control: Hue (980903) v4l2 debug: integer control v4l2 debug: valid values: -128 to 127 by steps of 1 v4l2 debug: default value: 0 v4l2 debug: current value: 0 v4l2 debug: Available control: Volume (980905) v4l2 debug: integer control v4l2 debug: valid values: -15 to 15 by steps of 1 v4l2 debug: default value: 0 v4l2 debug: current value: 0 v4l2 debug: Available control: Mute (980909) v4l2 debug: boolean control v4l2 debug: default value: 0 v4l2 debug: current value: 0 v4l2 debug: video audio-mute: 0 v4l2 debug: Available control: Mirror (980914) v4l2 debug: boolean control v4l2 debug: default value: 0 v4l2 debug: current value: 0 v4l2 debug: Available private control: Invert (8000000) v4l2 debug: boolean control v4l2 debug: default value: 0 v4l2 debug: current value: 0 v4l2 debug: Available private control: y offset odd field (8000001) v4l2 debug: integer control v4l2 debug: valid values: 0 to 128 by steps of 1 v4l2 debug: default value: 0 v4l2 debug: current value: 0 v4l2 debug: Available private control: y offset even field (8000002) v4l2 debug: integer control v4l2 debug: valid values: 0 to 128 by steps of 1 v4l2 debug: default value: 0 v4l2 debug: current value: 0 v4l2 debug: Available private control: automute (8000003) v4l2 debug: boolean control v4l2 debug: default value: 1 v4l2 debug: current value: 1 v4l2 debug: using streaming i/o (mmap) v4l2 debug: found default width and height of 720x576 v4l2 debug: will try to find optimal width and height. v4l2 debug: Found maximum framerate of -1.000000 v4l2 warning: Could not find optimal width and height, falling back to driver default. v4l2 debug: Driver requires at most 518400 bytes to store a complete image v4l2 debug: Interlacing setting: interleaved (bottom top if M/NTSC, top bottom otherwise) v4l2 debug: added new video es I420 720x480 main debug: selecting program id=0 main debug: using access_demux module "v4l2" main debug: TIMER module_need() : 19.704 ms - Total 19.704 ms / 1 intvls (Avg 19.704 ms) main debug: looking for packetizer module: 21 candidates rawvideo warning: invalid frame rate 0/0, using 25 fps instead main debug: using packetizer module "rawvideo" main debug: TIMER module_need() : 9.531 ms - Total 9.531 ms / 1 intvls (Avg 9.531 ms) main debug: thread (decoder) created at priority 0 (input/decoder.c:301) main debug: thread started main debug: starting in async mode main debug: looking for meta reader module: 2 candidates lua debug: Trying Lua scripts in /home/ubuntu/.local/share/vlc/lua/meta/reader lua debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader lua debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader main debug: no meta reader module matching "any" could be loaded main debug: TIMER module_need() : 2.605 ms - Total 2.605 ms / 1 intvls (Avg 2.605 ms) main debug: `v4l2:///dev/video0' successfully opened main debug: Buffering 0% main debug: switching to sync mode main debug: adding a new sout input (sout_input:0x8644890) stream_out_transcode debug: creating video transcoding from fcc=`I420' to fcc=`WMV2' main debug: looking for decoder module: 30 candidates main debug: Buffering 66% rawvideo warning: invalid frame rate 0/0, using 25 fps instead main debug: using decoder module "rawvideo" main debug: TIMER module_need() : 40.048 ms - Total 40.048 ms / 1 intvls (Avg 40.048 ms) main debug: looking for encoder module: 11 candidates avcodec debug: libavcodec initialized (interface 0x344802) avcodec debug: found encoder Windows Media Video 8 main debug: using encoder module "avcodec" main debug: TIMER module_need() : 12.258 ms - Total 12.258 ms / 1 intvls (Avg 12.258 ms) main debug: removing module "avcodec" main debug: Stream buffering done (66 ms in 66 ms) main debug: Decoder buffering done in 0 ms stream_out_transcode debug: late picture skipped (42088) stream_out_transcode debug: late picture skipped (10234) stream_out_transcode debug: decoder aspect is 1.333333:1 stream_out_transcode debug: source pixel aspect is 0.888889:1 stream_out_transcode debug: scaled pixel aspect is 0.888889:1 stream_out_transcode debug: source 720x480, destination 720x480 stream_out_transcode debug: encoder aspect is 5760:4320 stream_out_transcode debug: destination (after video filters) 720x480 main debug: looking for encoder module: 11 candidates avcodec debug: libavcodec already initialized avcodec debug: found encoder Windows Media Video 8 main debug: using encoder module "avcodec" main debug: TIMER module_need() : 6.948 ms - Total 6.948 ms / 1 intvls (Avg 6.948 ms) main debug: adding a new input mux_asf debug: adding input main warning: late buffer for mux input (33160) stream_out_transcode debug: late picture skipped (78074) stream_out_transcode debug: late picture skipped (46549) stream_out_transcode debug: late picture skipped (13802) stream_out_transcode debug: late picture skipped (574) stream_out_transcode debug: late picture skipped (687) stream_out_transcode debug: late picture skipped (866) stream_out_transcode debug: late picture skipped (551) stream_out_transcode debug: late picture skipped (690) stream_out_transcode debug: late picture skipped (562) stream_out_transcode debug: late picture skipped (813) stream_out_transcode debug: late picture skipped (1005) stream_out_transcode debug: late picture skipped (954) stream_out_transcode debug: late picture skipped (971) stream_out_transcode debug: late picture skipped (751)

bobc02
Blank Cone
Blank Cone
Posts: 11
Joined: 26 Aug 2011 06:45

Re: Problem getting HTTP Streaming to work.

Postby bobc02 » 08 Sep 2011 22:12

I'm the OP. I cleaned up the command line a bit by removing the unnecessary dvb stuff (something I found in another thread) and adding --sout-mux-caching=10000. Still not streaming, but this simpler command line should be easier to read.

Thanks,

--Bob

Code: Select all

cvlc v4l2:///dev/video0 --v4l2-input 1 -vvv --file-logging --logfile="./vlc.log" --sout-mux-caching=10000 --sout '#transcode{vcodec=WMV2,acodec=wma2,vb=800,ab=128,channels=2,samplerate=44100}:standard{access=http,mux=asf,dst=:1234/}'

bobc02
Blank Cone
Blank Cone
Posts: 11
Joined: 26 Aug 2011 06:45

Re: Problem getting HTTP Streaming to work.

Postby bobc02 » 09 Sep 2011 09:25

The OP again. I found how to grab the parameters from the GUI so I have rewritten the command line using those params. Still not streaming though. The errors in the log "stream_out_transcode debug: late picture skipped" may be the root of the problem? Googling around someone said to add --sout-mux-caching=10000 but that's not solving it.

Thanks,

--Bob

Code: Select all

cvlc v4l2:///dev/video0 --sout '#transcode{vcodec=WMV2,vb=800,scale=1,acodec=wma2,ab=128,channels=2,samplerate=44100}:http{dst=:8080/camera.asf}' --v4l2-input 1 --no-sout-rtp-sap --no-sout-standard-sap --sout-keep --sout-mux-caching=10000 -vv


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 13 guests