How to stream a webcam without transcoding?

About encoding, codec settings, muxers and filter usage
mjbraun
New Cone
New Cone
Posts: 4
Joined: 03 Dec 2010 17:09
VLC version: 1.1.4-1.1.5
Operating System: Yes.
Location: Chicago, Illinois, USA

How to stream a webcam without transcoding?

Postby mjbraun » 03 Dec 2010 17:44

I have a Logitech C310 hooked up via a USB hub to a BeagleBoard Rev CX running Angstrom Linux (kernel version 2.6.32) and streaming using VLC version 1.1.4 over a LAN to a Mac running OS X 10.6.5 and VLC 1.1.5. I'm able to stream a reference video file just fine using:

Code: Select all

cvlc bb_minnie_the_moocher_512kb.mp4 --sout '#standard{access=http,mux=ffmpeg{mux=flv},dst=:8080}'
Performance is fine on the receiving end. However, when I change the command to:

Code: Select all

cvlc v4l2:///dev/video0 --sout '#standard{access=http,mux=ffmpeg{mux=flv},dst=:8080}'
I get
VLC media player 1.1.4.1 The Luggage (revision exported)
Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
[0xb1838] inhibit interface error: Failed to connect to the D-Bus session daemon: /usr/bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.

[0xb1838] main interface error: no suitable interface module
[0xa3940] main interface error: no suitable interface module
[0x120d8] main libvlc error: interface "globalhotkeys,none" initialization failed
[0xa3940] dummy interface: using the dummy interface module...
[0xa9490] main access out: creating httpd
[0xaa730] main mux error: cannot add this stream
[0xaba18] main decoder error: cannot create packetizer output (YUY2)
If I turn on transcoding with:

Code: Select all

cvlc v4l:///dev/video0 --sout '#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128}:standard{access=http,mux=ogg,dst=:8080}'
the stream opens, but performance of the stream is awful and "top" shows vlc using ~85-90% of the CPU and load averages of approximately ~1.00-2.00.

So, given that the little processor on this board can't do the transcoding for the webcam, how can I serve up the stream raw as with the video?

Thank you in advance for any guidance or assistance!


(Full output from attempting to raw of stream the webcam:

Code: Select all

root@beagleboard:/home/mjbraun# cvlc -vvv v4l2:///dev/video0 --sout '#standard{access=http,mux=ffmpeg{mux=flv},dst=:8080}' VLC media player 1.1.4.1 The Luggage (revision exported) [0x120d8] main libvlc debug: VLC media player - 1.1.4.1 The Luggage [0x120d8] main libvlc debug: Copyright © 1996-2010 the VideoLAN team [0x120d8] main libvlc debug: revision exported [0x120d8] main libvlc debug: configured with /OE/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/vlc-1.1.4.1-r0/vlc-1.1.4.1/configure '--build=x86_64-linux' '--host=arm-angstrom-linux-gnueabi' '--target=arm-angstrom-linux-gnueabi' '--prefix=/usr' '--exec_prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--libexecdir=/usr/libexec' '--datadir=/usr/share' '--sysconfdir=/etc' '--sharedstatedir=/com' '--localstatedir=/var' '--libdir=/usr/lib' '--includedir=/usr/include' '--oldincludedir=/usr/include' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--enable-libtool' '--with-contrib' '--enable-run-as-root' '--disable-wxwidgets' '--enable-x11' '--enable-xvideo' '--disable-screen' '--disable-caca' '--enable-httpd' '--enable-vlm' '--enable-freetype' '--enable-sdl' '--enable-png' '--enable-live555' '--enable-tremor' '--enable-v4l2' '--enable-v4l' '--disable-aa' '--enable-wma' '--disable-faad' '--enable-dbus' '--enable-hal' '--without-contrib' '--disable-opengl' '--disable-glx' '--enable-realrtsp' 'ac_cv_path_MOC=/OE/angstrom-dev/sysroots/x86_64-linux/usr/bin/moc4' 'ac_cv_path_RCC=/OE/angstrom-dev/sysroots/x86_64-linux/usr/bin/rcc4' 'ac_cv_path_UIC=/OE/angstrom-dev/sysroots/x86_64-linux/usr/bin/uic4' '--enable-dvdread' 'build_alias=x86_64-linux' 'host_alias=arm-angstrom-linux-gnueabi' 'target_alias=arm-angstrom-linux-gnueabi' 'CC=ccache arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb' 'CFLAGS=-isystem/OE/angstrom-dev/sysroots/armv7a-angstrom-linux-gnueabi/usr/include -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb2' 'LDFLAGS=-L/OE/angstrom-dev/sysroots/armv7a-angstrom-linux-gnueabi/usr/lib -Wl,-rpath-link,/OE/angstrom-dev/sysroots/armv7a-angstrom-linux-gnueabi/usr/lib -Wl,-O1 -Wl,--hash-style=gnu' 'CPPFLAGS=-isystem/OE/angstrom-dev/sysroots/armv7a-angstrom-linux-gnueabi/usr/include' 'CPP=arm-angstrom-linux-gnueabi-gcc -E' 'CXX=ccache arm-angstrom-linux-gnueabi-g++ -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb' 'CXXFLAGS=-isystem/OE/angstrom-dev/sysroots/armv7a-angstrom-linux-gnueabi/usr/include -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb2 -fpermissive -fvisibility-inlines-hidden' 'PKG_CONFIG_PATH=/OE/angstrom-dev/sysroots/armv7a-angstrom-linux-gnueabi/usr/lib/pkgconfig:/OE/angstrom-dev/sysroots/armv7a-angstrom-linux-gnueabi/usr/share/pkgconfig:/OE/angstrom-dev/sysroots/x86_64-linux/usr/lib/pkgconfig:/OE/angstrom-dev/sysroots/x86_64-linux/usr/share/pkgconfig' [0x120d8] main libvlc debug: translation test: code is "C" [0x120d8] main libvlc debug: checking plugin modules [0x120d8] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins-04041e-1000000.dat [0x120d8] main libvlc debug: recursively browsing `/usr/lib/vlc/plugins' [0x120d8] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/access/libaccess_smb_plugin.so' (libtalloc.so.1: cannot open shared object file: No such file or directory) [0x120d8] main libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins-04041e-1000000.dat [0x120d8] main libvlc debug: module bank initialized (364 modules) [0x120d8] main libvlc debug: opening config file (/home/root/.config/vlc/vlcrc) [0x120d8] main libvlc debug: CPU has capabilities NEONv1 [0x120d8] main libvlc debug: looking for memcpy module: 1 candidate [0x120d8] main libvlc debug: using memcpy module "dummy" [0xb18c8] main input debug: Creating an input for 'Media Library' [0xb18c8] main input debug: Input is a meta file: disabling unneeded options [0xb18c8] main input debug: using timeshift granularity of 50 MiB [0xb18c8] main input debug: using timeshift path '/tmp' [0xb18c8] main input debug: `file/xspf-open:///home/root/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/root/.local/share/vlc/ml.xspf' [0xb18c8] main input debug: creating demux: access='file' demux='xspf-open' path='/home/root/.local/share/vlc/ml.xspf' [0xb0738] main demux debug: looking for access_demux module: 1 candidate [0xb0738] main demux debug: no access_demux module matching "file" could be loaded [0xb0738] main demux debug: TIMER module_need() : 2.685 ms - Total 2.685 ms / 1 intvls (Avg 2.685 ms) [0xb18c8] main input debug: creating access 'file' path='/home/root/.local/share/vlc/ml.xspf' [0xb0718] main access debug: looking for access module: 2 candidates [0xb0718] filesystem access debug: opening file `/home/root/.local/share/vlc/ml.xspf' [0xb0718] main access debug: using access module "filesystem" [0xb0718] main access debug: TIMER module_need() : 3.174 ms - Total 3.174 ms / 1 intvls (Avg 3.174 ms) [0xa4c90] main stream debug: Using AStream*Stream [0xa4c90] main stream debug: pre buffering [0xa4c90] main stream debug: received first data after 0 ms [0xa4c90] main stream debug: pre-buffering done 296 bytes in 0s - 1350 KiB/s [0xb0f80] main stream debug: looking for stream_filter module: 5 candidates [0xb0f80] main stream debug: no stream_filter module matching "any" could be loaded [0xb0f80] main stream debug: TIMER module_need() : 5.097 ms - Total 5.097 ms / 1 intvls (Avg 5.097 ms) [0xb0f80] main stream debug: looking for stream_filter module: 1 candidate [0xb0f80] main stream debug: using stream_filter module "stream_filter_record" [0xb0f80] main stream debug: TIMER module_need() : 2.869 ms - Total 2.869 ms / 1 intvls (Avg 2.869 ms) [0xb18c8] main input debug: creating demux: access='file' demux='xspf-open' path='/home/root/.local/share/vlc/ml.xspf' [0xa4088] main demux debug: looking for demux module: 1 candidate [0xa4088] playlist demux debug: using XSPF playlist reader [0xa4088] main demux debug: using demux module "playlist" [0xa4088] main demux debug: TIMER module_need() : 2.868 ms - Total 2.868 ms / 1 intvls (Avg 2.868 ms) [0xa6960] main demux meta debug: looking for meta reader module: 1 candidate [0xa6960] lua demux meta debug: Trying Lua scripts in /home/root/.local/share/vlc/lua/meta/reader [0xa6960] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader [0xa6960] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac [0xa6960] lua demux meta warning: Error loading script /usr/lib/vlc/lua/meta/reader/filename.luac: /usr/lib/vlc/lua/meta/reader/filename.luac: bad header in precompiled chunk [0xa6960] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader [0xa6960] main demux meta debug: no meta reader module matching "any" could be loaded [0xa6960] main demux meta debug: TIMER module_need() : 11.779 ms - Total 11.779 ms / 1 intvls (Avg 11.779 ms) [0xb18c8] main input debug: `file/xspf-open:///home/root/.local/share/vlc/ml.xspf' successfully opened [0xa6960] main xml debug: looking for xml module: 2 candidates [0xa6960] main xml debug: using xml module "xml" [0xa6960] main xml debug: TIMER module_need() : 6.866 ms - Total 6.866 ms / 1 intvls (Avg 6.866 ms) [0xa4088] playlist demux debug: parsed 0 tracks successfully [0xa6960] main xml debug: removing module "xml" [0xb18c8] main input debug: EOF reached [0xa4088] main demux debug: removing module "playlist" [0xb0f80] main stream debug: removing module "stream_filter_record" [0xb0718] main access debug: removing module "filesystem" [0xb18c8] main input debug: TIMER input launching for 'Media Library' : 35.950 ms - Total 35.950 ms / 1 intvls (Avg 35.950 ms) [0xb0520] main interface debug: looking for interface module: 1 candidate [0xb0520] main interface debug: using interface module "hotkeys" [0xb0520] main interface debug: TIMER module_need() : 3.601 ms - Total 3.601 ms / 1 intvls (Avg 3.601 ms) [0xa6960] main interface debug: looking for interface module: 1 candidate Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS") Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE") [0xa6960] inhibit interface error: Failed to connect to the D-Bus session daemon: /usr/bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed. [0xa6960] main interface debug: no interface module matching "inhibit,none" could be loaded [0xa6960] main interface debug: TIMER module_need() : 20.691 ms - Total 20.691 ms / 1 intvls (Avg 20.691 ms) [0xa6960] main interface error: no suitable interface module [0xaf308] main playlist debug: Activated [0xaf308] main playlist debug: adding item `v4l2:///dev/video0' ( v4l2:///dev/video0 ) [0xa4088] main interface debug: looking for interface module: 1 candidate [0xaf308] main playlist debug: rebuilding array of current - root Playlist [0xaf308] main playlist debug: rebuild done - 1 items, index -1 [0xa4088] main interface debug: using interface module "signals" [0xa4088] main interface debug: TIMER module_need() : 4.150 ms - Total 4.150 ms / 1 intvls (Avg 4.150 ms) [0x99d88] main interface debug: looking for interface module: 0 candidates [0x99d88] main interface debug: no interface module matched "globalhotkeys,none" [0x99d88] main interface debug: TIMER module_need() : 1.312 ms - Total 1.312 ms / 1 intvls (Avg 1.312 ms) [0x99d88] main interface error: no suitable interface module [0x120d8] main libvlc error: interface "globalhotkeys,none" initialization failed [0x99d88] main interface debug: looking for interface module: 1 candidate [0x99d88] dummy interface: using the dummy interface module... [0x99d88] main interface debug: using interface module "dummy" [0x99d88] main interface debug: TIMER module_need() : 1.313 ms - Total 1.313 ms / 1 intvls (Avg 1.313 ms) [0xaf308] main playlist debug: processing request item null node Playlist skip 0 [0xaf308] main playlist debug: starting new item [0xaf308] main playlist debug: creating new input thread [0x99960] main input debug: Creating an input for 'v4l2:///dev/video0' [0x99960] main input debug: thread (input) created at priority 10 (input/input.c:214) [0x99960] main input debug: thread started [0xa78e8] main stream output debug: using sout chain=`standard{access=http,mux=ffmpeg{mux=flv},dst=:8080}' [0xa78e8] main stream output debug: stream=`standard' [0xa80a8] main stream out debug: looking for sout stream module: 1 candidate [0xa80a8] main stream out debug: set config option: sout-standard-access to http [0xa80a8] main stream out debug: set config option: sout-standard-mux to ffmpeg{mux=flv} [0xa80a8] main stream out debug: set config option: sout-standard-dst to :8080 [0xa80a8] stream_out_standard stream out debug: creating `http/ffmpeg{mux=flv}://:8080' [0xa80a8] stream_out_standard stream out debug: using `http/ffmpeg{mux=flv}://:8080' [0xa9580] main access out debug: looking for sout access module: 1 candidate [0xa9580] main access out: creating httpd [0xa9580] main access out debug: net: listening to port 8080 [0xa9580] main access out debug: using sout access module "access_output_http" [0xa9580] main access out debug: TIMER module_need() : 4.547 ms - Total 4.547 ms / 1 intvls (Avg 4.547 ms) [0xa80a8] stream_out_standard stream out debug: access opened [0xaa750] main mux debug: looking for sout mux module: 1 candidate [0xaa750] main mux debug: set config option: ffmpeg-mux to flv [0xaa750] main mux debug: using sout mux module "avformat" [0xaa750] main mux debug: TIMER module_need() : 91.339 ms - Total 91.339 ms / 1 intvls (Avg 91.339 ms) [0xa80a8] stream_out_standard stream out debug: mux opened [0xa80a8] main stream out debug: using sout stream module "stream_out_standard" [0xa80a8] main stream out debug: TIMER module_need() : 101.044 ms - Total 101.044 ms / 1 intvls (Avg 101.044 ms) [0x99960] main input debug: using timeshift granularity of 50 MiB [0x99960] main input debug: using timeshift path '/tmp' [0x99960] main input debug: `v4l2:///dev/video0' gives access `v4l2' demux `' path `/dev/video0' [0x99960] main input debug: creating demux: access='v4l2' demux='' path='/dev/video0' [0xb3bf0] main demux debug: looking for access_demux module: 1 candidate [0xb3bf0] v4l2 demux debug: Trying direct kernel v4l2 [0xb3bf0] v4l2 demux debug: opening device '/dev/video0' [0xb3bf0] v4l2 demux debug: V4L2 device: UVC Camera (046d:081b) using driver: uvcvideo (version: 0.1.0) on usb-ehci-omap.0-2.1 [0xb3bf0] v4l2 demux debug: the device has the capabilities: (X) Video Capture, ( ) Audio, ( ) Tuner, ( ) Radio [0xb3bf0] v4l2 demux debug: supported I/O methods are: ( ) Read/Write, (X) Streaming, ( ) Asynchronous [0xb3bf0] v4l2 demux debug: video input 0 (Camera 1) has type: External analog input * [0xb3bf0] v4l2 demux debug: device supports chroma YUY2 [YUV 4:2:2 (YUYV), YUYV] [0xb3bf0] v4l2 demux debug: device supports size 640x480 [0xb3bf0] v4l2 demux debug: device supports size 160x120 [0xb3bf0] v4l2 demux debug: device supports size 176x144 [0xb3bf0] v4l2 demux debug: device supports size 320x176 [0xb3bf0] v4l2 demux debug: device supports size 320x240 [0xb3bf0] v4l2 demux debug: device supports size 352x288 [0xb3bf0] v4l2 demux debug: device supports size 432x240 [0xb3bf0] v4l2 demux debug: device supports size 544x288 [0xb3bf0] v4l2 demux debug: device supports size 640x360 [0xb3bf0] v4l2 demux debug: device supports size 752x416 [0xb3bf0] v4l2 demux debug: device supports size 800x448 [0xb3bf0] v4l2 demux debug: device supports size 800x600 [0xb3bf0] v4l2 demux debug: device supports size 864x480 [0xb3bf0] v4l2 demux debug: device supports size 960x544 [0xb3bf0] v4l2 demux debug: device supports size 960x720 [0xb3bf0] v4l2 demux debug: device supports size 1024x576 [0xb3bf0] v4l2 demux debug: device supports size 1184x656 [0xb3bf0] v4l2 demux debug: device supports size 1280x720 [0xb3bf0] v4l2 demux debug: device supports size 1280x960 [0xb3bf0] v4l2 demux debug: device supports chroma MJPG [MJPEG, MJPG] [0xb3bf0] v4l2 demux debug: device supports size 640x480 [0xb3bf0] v4l2 demux debug: device supports size 160x120 [0xb3bf0] v4l2 demux debug: device supports size 176x144 [0xb3bf0] v4l2 demux debug: device supports size 320x176 [0xb3bf0] v4l2 demux debug: device supports size 320x240 [0xb3bf0] v4l2 demux debug: device supports size 352x288 [0xb3bf0] v4l2 demux debug: device supports size 432x240 [0xb3bf0] v4l2 demux debug: device supports size 544x288 [0xb3bf0] v4l2 demux debug: device supports size 640x360 [0xb3bf0] v4l2 demux debug: device supports size 752x416 [0xb3bf0] v4l2 demux debug: device supports size 800x448 [0xb3bf0] v4l2 demux debug: device supports size 800x600 [0xb3bf0] v4l2 demux debug: device supports size 864x480 [0xb3bf0] v4l2 demux debug: device supports size 960x544 [0xb3bf0] v4l2 demux debug: device supports size 960x720 [0xb3bf0] v4l2 demux debug: device supports size 1024x576 [0xb3bf0] v4l2 demux debug: device supports size 1184x656 [0xb3bf0] v4l2 demux debug: device supports size 1280x720 [0xb3bf0] v4l2 demux debug: device supports size 1280x960 [0xb3bf0] v4l2 demux debug: '/dev/video0' is a video device [0xb3bf0] v4l2 demux debug: Extended control API supported by v4l2 driver [0xb3bf0] v4l2 demux debug: Available control: Brightness (980900) [0xb3bf0] v4l2 demux debug: integer control [0xb3bf0] v4l2 demux debug: valid values: 0 to 255 by steps of 1 [0xb3bf0] v4l2 demux debug: default value: 128 [0xb3bf0] v4l2 demux debug: current value: 128 [0xb3bf0] v4l2 demux debug: Available control: Contrast (980901) [0xb3bf0] v4l2 demux debug: integer control [0xb3bf0] v4l2 demux debug: valid values: 0 to 255 by steps of 1 [0xb3bf0] v4l2 demux debug: default value: 32 [0xb3bf0] v4l2 demux debug: current value: 32 [0xb3bf0] v4l2 demux debug: Available control: Saturation (980902) [0xb3bf0] v4l2 demux debug: integer control [0xb3bf0] v4l2 demux debug: valid values: 0 to 255 by steps of 1 [0xb3bf0] v4l2 demux debug: default value: 32 [0xb3bf0] v4l2 demux debug: current value: 32 [0xb3bf0] v4l2 demux debug: Available control: White Balance Temperature, Auto (98090c) [0xb3bf0] v4l2 demux debug: boolean control [0xb3bf0] v4l2 demux debug: default value: 1 [0xb3bf0] v4l2 demux debug: current value: 1 [0xb3bf0] v4l2 demux debug: Available control: Gain (980913) [0xb3bf0] v4l2 demux debug: integer control [0xb3bf0] v4l2 demux debug: valid values: 0 to 255 by steps of 1 [0xb3bf0] v4l2 demux debug: default value: 0 [0xb3bf0] v4l2 demux debug: current value: 0 [0xb3bf0] v4l2 demux debug: Available control: Power Line Frequency (980918) [0xb3bf0] v4l2 demux debug: menu control [0xb3bf0] v4l2 demux debug: 0: Disabled [0xb3bf0] v4l2 demux debug: 1: 50 Hz [0xb3bf0] v4l2 demux debug: 2: 60 Hz [0xb3bf0] v4l2 demux debug: default value: 2 [0xb3bf0] v4l2 demux debug: current value: 2 [0xb3bf0] v4l2 demux debug: Available control: Sharpness (98091b) [0xb3bf0] v4l2 demux debug: integer control [0xb3bf0] v4l2 demux debug: valid values: 0 to 255 by steps of 1 [0xb3bf0] v4l2 demux debug: default value: 24 [0xb3bf0] v4l2 demux debug: current value: 24 [0xb3bf0] v4l2 demux debug: Available control: Backlight Compensation (98091c) [0xb3bf0] v4l2 demux debug: integer control [0xb3bf0] v4l2 demux debug: valid values: 0 to 1 by steps of 1 [0xb3bf0] v4l2 demux debug: default value: 1 [0xb3bf0] v4l2 demux debug: current value: 1 [0xb3bf0] v4l2 demux debug: Available private control: Exposure, Auto (9a0901) [0xb3bf0] v4l2 demux debug: menu control [0xb3bf0] v4l2 demux debug: 0: Auto Mode [0xb3bf0] v4l2 demux debug: 1: Manual Mode [0xb3bf0] v4l2 demux debug: 2: Shutter Priority Mode [0xb3bf0] v4l2 demux debug: 3: Aperture Priority Mode [0xb3bf0] v4l2 demux debug: default value: 3 [0xb3bf0] v4l2 demux debug: current value: 3 [0xb3bf0] v4l2 demux debug: Available private control: Exposure (Absolute) (9a0902) [0xb3bf0] v4l2 demux debug: integer control [0xb3bf0] v4l2 demux debug: valid values: 1 to 10000 by steps of 1 [0xb3bf0] v4l2 demux debug: default value: 166 [0xb3bf0] v4l2 demux debug: current value: 166 [0xb3bf0] v4l2 demux debug: Available private control: Exposure, Auto Priority (9a0903) [0xb3bf0] v4l2 demux debug: boolean control [0xb3bf0] v4l2 demux debug: default value: 0 [0xb3bf0] v4l2 demux debug: current value: 1 [0xb3bf0] v4l2 demux debug: using streaming i/o (mmap) [0xb3bf0] v4l2 demux debug: found default width and height of 640x480 [0xb3bf0] v4l2 demux debug: will try to find optimal width and height. [0xb3bf0] v4l2 demux debug: Found maximum framerate of 30.000000 [0xb3bf0] v4l2 demux debug: Found optimal dimensions for framerate 30.000000 of 640x480 [0xb3bf0] v4l2 demux debug: Driver requires at most 614400 bytes to store a complete image [0xb3bf0] v4l2 demux debug: Interlacing setting: progressive [0xb3bf0] v4l2 demux debug: supported frame intervals for YUY2, 640x480: [0xb3bf0] v4l2 demux debug: supported frame interval: 1/30 [0xb3bf0] v4l2 demux debug: supported frame interval: 1/25 [0xb3bf0] v4l2 demux debug: supported frame interval: 1/20 [0xb3bf0] v4l2 demux debug: supported frame interval: 1/15 [0xb3bf0] v4l2 demux debug: supported frame interval: 1/10 [0xb3bf0] v4l2 demux debug: supported frame interval: 1/5 [0xb3bf0] v4l2 demux debug: added new video es YUY2 640x480 [0x99960] main input debug: selecting program id=0 [0xb3bf0] v4l2 demux debug: User set fps=30.000000 [0xb3bf0] main demux debug: using access_demux module "v4l2" [0xb3bf0] main demux debug: TIMER module_need() : 166.534 ms - Total 166.534 ms / 1 intvls (Avg 166.534 ms) [0xabb78] main decoder debug: looking for packetizer module: 22 candidates [0xabb78] rawvideo decoder warning: invalid frame rate 0/0, using 25 fps instead [0xabb78] main decoder debug: using packetizer module "rawvideo" [0xabb78] main decoder debug: TIMER module_need() : 4.853 ms - Total 4.853 ms / 1 intvls (Avg 4.853 ms) [0xabb78] main decoder debug: thread (decoder) created at priority 0 (input/decoder.c:301) [0xabb78] main decoder debug: thread started [0x99960] main input debug: starting in async mode [0xc05a8] main demux meta debug: looking for meta reader module: 1 candidate [0xc05a8] lua demux meta debug: Trying Lua scripts in /home/root/.local/share/vlc/lua/meta/reader [0xc05a8] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader [0xc05a8] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac [0xc05a8] lua demux meta warning: Error loading script /usr/lib/vlc/lua/meta/reader/filename.luac: /usr/lib/vlc/lua/meta/reader/filename.luac: bad header in precompiled chunk [0xc05a8] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader [0xc05a8] main demux meta debug: no meta reader module matching "any" could be loaded [0xc05a8] main demux meta debug: TIMER module_need() : 7.141 ms - Total 7.141 ms / 1 intvls (Avg 7.141 ms) [0x99960] main input debug: `v4l2:///dev/video0' successfully opened [0x99960] main input debug: Buffering 0% [0x99960] main input debug: switching to sync mode [0xa78e8] main stream output debug: adding a new sout input (sout_input:0xc0290) [0xaa750] main mux debug: adding a new input [0xaa750] avformat mux debug: adding input [0xaa750] avformat mux debug: couldn't find codec for fourcc 'YUY2' [0xaa750] main mux error: cannot add this stream [0xabb78] main decoder error: cannot create packetizer output (YUY2) [0x99960] main input debug: Buffering 76% [0x99960] main input debug: Stream buffering done (85 ms in 85 ms) [0x99960] main input debug: Decoder buffering done in 0 ms

snukixl
New Cone
New Cone
Posts: 4
Joined: 02 Nov 2010 18:26

Re: How to stream a webcam without transcoding?

Postby snukixl » 07 Dec 2010 02:38

Hey there mate try like this normaly ts mux is better for stream:
cvlc v4l2:///dev/video0 --sout '#standard{access=http,mux=ts,dst=:8080}'

mjbraun
New Cone
New Cone
Posts: 4
Joined: 03 Dec 2010 17:09
VLC version: 1.1.4-1.1.5
Operating System: Yes.
Location: Chicago, Illinois, USA

Re: How to stream a webcam without transcoding?

Postby mjbraun » 07 Dec 2010 14:54

Hey there mate try like this normaly ts mux is better for stream:
cvlc v4l2:///dev/video0 --sout '#standard{access=http,mux=ts,dst=:8080}'
Thanks for the response! Sadly, when I ran the command, I get:

Code: Select all

% cvlc v4l2:///dev/video0 --sout '#standard{access=http,mux=ts,dst=:8080}' VLC media player 1.1.4.1 The Luggage (revision exported) Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS") Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE") [0xb1828] inhibit interface error: Failed to connect to the D-Bus session daemon: /usr/bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed. [0xb1828] main interface error: no suitable interface module [0xb03c0] main interface error: no suitable interface module [0x120d8] main libvlc error: interface "globalhotkeys,none" initialization failed [0xa3678] dummy interface: using the dummy interface module... [0xaeb60] main access out: creating httpd [0xac878] stream_out_standard stream out error: no suitable sout mux module for `http/ts://:8080' [0xac5d8] main stream output error: stream chain failed for `standard{access=http,mux=ts,dst=:8080}' [0x96dc8] main input error: cannot start stream output instance, aborting
Thoughts on what I might be missing that's causing the "no suitable sout mux module for `http/ts://:8080'" message?

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: How to stream a webcam without transcoding?

Postby Rémi Denis-Courmont » 08 Dec 2010 00:56

V4L2 returns raw video. You cannot stream raw video. You must encode it first.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

mjbraun
New Cone
New Cone
Posts: 4
Joined: 03 Dec 2010 17:09
VLC version: 1.1.4-1.1.5
Operating System: Yes.
Location: Chicago, Illinois, USA

Re: How to stream a webcam without transcoding?

Postby mjbraun » 08 Dec 2010 18:28

Thank you for pointing that out. Perhaps I should try a better set of parameters for streaming the video in terms of processor load. If it's not too much to ask, are there any suggestions?


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 4 guests