All,
Having issues getting VLC to work with a Hauppauge HVR-2250. If a open a stream from the device with v4l2c:///dev/video0, it works fine. If I try to open it with just v4l2:///dev/video0, I get a segfault.
Anyone have any idea why this would be? Same thing happens on an HVR-1600, and a PVR-250. Is this because these cards have MPEG2 encoders? I haven't found any good information about the difference between v4l2c and v4l2 handles.
Thanks!
Here's the output from v4l2:///
vlc -vvv "v4l2:///dev/video0" ":v4l2-input=0" ":v4l2-standard=NTSC" ":v4l2-width=720" ":v4l2-height=480" --sout '#standard{access=http,dst=:8001,mux=ts}'VLC media player 2.0.5 Twoflower (revision 2.0.5-0-g1661b7d)
[0x1282108] main libvlc debug: VLC media player - 2.0.5 Twoflower
[0x1282108] main libvlc debug: Copyright © 1996-2012 VLC authors and VideoLAN
[0x1282108] main libvlc debug: revision 2.0.5-0-g1661b7d
[0x1282108] main libvlc debug: configured with ./configure '--enable-static' '--build=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro' '--config-cache' '--disable-maintainer-mode' '--disable-silent-rules' '--disable-update-check' '--enable-fast-install' '--prefix=/usr' '--docdir=/usr/share/doc/vlc-nox' '--sysconfdir=/etc' '--with-binary-version=0ubuntu0.12.10.1' '--enable-a52' '--enable-aa' '--enable-bluray' '--enable-bonjour' '--enable-caca' '--enable-dbus' '--enable-dca' '--enable-dirac' '--enable-directfb' '--enable-dvbpsi' '--enable-dvdnav' '--enable-faad' '--enable-flac' '--enable-fluidsynth' '--enable-freetype' '--enable-fribidi' '--enable-gnutls' '--enable-jack' '--enable-kate' '--enable-libass' '--enable-libmpeg2' '--enable-libproxy' '--enable-libxml2' '--enable-lirc' '--enable-live555' '--enable-mad' '--enable-mkv' '--enable-mod' '--enable-mpc' '--enable-mtp' '--enable-mux_ogg' '--enable-ncurses' '--enable-notify' '--enable-ogg' '--enable-opus' '--enable-oss' '--enable-pulse' '--enable-qt4' '--enable-realrtsp' '--enable-samplerate' '--enable-schroedinger' '--enable-sdl' '--enable-sftp' '--enable-shout' '--enable-skins2' '--enable-smb' '--enable-speex' '--enable-svg' '--enable-taglib' '--enable-theora' '--enable-twolame' '--enable-upnp' '--enable-vcd' '--enable-vcdx' '--enable-vorbis' '--enable-x264' '--enable-zvbi' '--with-kde-solid=/usr/share/kde4/apps/solid/actions/' '--disable-dxva2' '--disable-gnomevfs' '--disable-goom' '--disable-portaudio' '--disable-projectm' '--disable-sqlite' '--disable-telx' '--enable-alsa' '--enable-atmo' '--enable-dc1394' '--enable-dv' '--enable-fbosd' '--enable-libva' '--enable-linsys' '--enable-omxil' '--enable-pvr' '--enable-udev' '--enable-v4l2' '--enable-crystalhd' '--enable-mmx' '--enable-sse' '--disable-neon' '--disable-altivec' 'build_alias=x86_64-linux-gnu'
[0x1282108] main libvlc debug: searching plug-in modules
[0x1282108] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins.dat
[0x1282108] main libvlc debug: recursively browsing `/usr/lib/vlc/plugins'
[0x1282108] main libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins.dat
[0x1282108] main libvlc debug: plug-ins loaded: 423 modules
[0x1282108] main libvlc debug: opening config file (/home/sojcadmin/.config/vlc/vlcrc)
[0x1282108] main libvlc debug: translation test: code is "C"
[0x1282108] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4.1 FPU
[0x1282108] main libvlc debug: looking for memcpy module: 4 candidates
[0x1282108] main libvlc debug: using memcpy module "memcpymmxext"
[0x1297028] main input debug: Creating an input for 'Media Library'
[0x1297028] main input debug: Input is a meta file: disabling unneeded options
[0x1297028] main input debug: using timeshift granularity of 50 MiB, in path '/tmp'
[0x1297028] main input debug: `file/xspf-open:///home/sojcadmin/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/sojcadmin/.local/share/vlc/ml.xspf'
[0x1297028] main input debug: creating demux: access='file' demux='xspf-open' location='/home/sojcadmin/.local/share/vlc/ml.xspf' file='/home/sojcadmin/.local/share/vlc/ml.xspf'
[0x134b5b8] main demux debug: looking for access_demux module: 3 candidates
[0x134b5b8] main demux debug: no access_demux module matching "file" could be loaded
[0x134b5b8] main demux debug: TIMER module_need() : 0.569 ms - Total 0.569 ms / 1 intvls (Avg 0.569 ms)
[0x1297028] main input debug: creating access 'file' location='/home/sojcadmin/.local/share/vlc/ml.xspf', path='/home/sojcadmin/.local/share/vlc/ml.xspf'
[0x134c628] main access debug: looking for access module: 2 candidates
[0x134c628] filesystem access debug: opening file `/home/sojcadmin/.local/share/vlc/ml.xspf'
[0x134c628] main access debug: using access module "filesystem"
[0x134c628] main access debug: TIMER module_need() : 0.261 ms - Total 0.261 ms / 1 intvls (Avg 0.261 ms)
[0x134d328] main stream debug: Using stream method for AStream*
[0x134d328] main stream debug: starting pre-buffering
[0x134d328] main stream debug: received first data after 0 ms
[0x134d328] main stream debug: pre-buffering done 296 bytes in 0s - 7050 KiB/s
[0x134d588] main stream debug: looking for stream_filter module: 7 candidates
[0x134d588] main stream debug: no stream_filter module matching "any" could be loaded
[0x134d588] main stream debug: TIMER module_need() : 0.648 ms - Total 0.648 ms / 1 intvls (Avg 0.648 ms)
[0x134d588] main stream debug: looking for stream_filter module: 1 candidate
[0x134d588] main stream debug: using stream_filter module "stream_filter_record"
[0x134d588] main stream debug: TIMER module_need() : 0.135 ms - Total 0.135 ms / 1 intvls (Avg 0.135 ms)
[0x1297028] main input debug: creating demux: access='file' demux='xspf-open' location='/home/sojcadmin/.local/share/vlc/ml.xspf' file='/home/sojcadmin/.local/share/vlc/ml.xspf'
[0x13538b8] main demux debug: looking for demux module: 1 candidate
[0x13538b8] playlist demux debug: using XSPF playlist reader
[0x13538b8] main demux debug: using demux module "playlist"
[0x13538b8] main demux debug: TIMER module_need() : 0.217 ms - Total 0.217 ms / 1 intvls (Avg 0.217 ms)
[0x1351a28] main demux meta debug: looking for meta reader module: 2 candidates
[0x1351a28] lua demux meta debug: Trying Lua scripts in /home/sojcadmin/.local/share/vlc/lua/meta/reader
[0x1351a28] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader
[0x1351a28] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac
[0x1351a28] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
[0x1351a28] main demux meta debug: no meta reader module matching "any" could be loaded
[0x1351a28] main demux meta debug: TIMER module_need() : 1.315 ms - Total 1.315 ms / 1 intvls (Avg 1.315 ms)
[0x1297028] main input debug: `file/xspf-open:///home/sojcadmin/.local/share/vlc/ml.xspf' successfully opened
[0x12b4ee8] main xml reader debug: looking for xml reader module: 1 candidate
[0x12b4ee8] main xml reader debug: using xml reader module "xml"
[0x12b4ee8] main xml reader debug: TIMER module_need() : 0.520 ms - Total 0.520 ms / 1 intvls (Avg 0.520 ms)
[0x13538b8] playlist demux debug: parsed 0 tracks successfully
[0x1297028] main input debug: EOF reached
[0x13538b8] main demux debug: removing module "playlist"
[0x134d588] main stream debug: removing module "stream_filter_record"
[0x134c628] main access debug: removing module "filesystem"
[0x1297028] main input debug: TIMER input launching for 'Media Library' : 3.793 ms - Total 3.793 ms / 1 intvls (Avg 3.793 ms)
[0x12b32a8] main interface debug: looking for interface module: 1 candidate
[0x12b32a8] main interface debug: using interface module "hotkeys"
[0x12b32a8] main interface debug: TIMER module_need() : 0.182 ms - Total 0.182 ms / 1 intvls (Avg 0.182 ms)
[0x134b658] main interface debug: looking for interface module: 1 candidate
[0x134b658] inhibit interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[0x134b658] main interface debug: no interface module matching "inhibit,none" could be loaded
[0x134b658] main interface debug: TIMER module_need() : 0.146 ms - Total 0.146 ms / 1 intvls (Avg 0.146 ms)
[0x134b658] main interface error: no suitable interface module
[0x14abf98] main playlist debug: playlist threads correctly activated
[0x14abf98] main playlist debug: adding item `v4l2:///dev/video0' ( v4l2:///dev/video0 )
[0x14abf98] main playlist debug: rebuilding array of current - root Playlist
[0x14abf98] main playlist debug: rebuild done - 0 items, index -1
[0x134b658] main interface debug: looking for interface module: 1 candidate
[0x134b658] main interface debug: no interface module matching "globalhotkeys,none" could be loaded
[0x134b658] main interface debug: TIMER module_need() : 0.257 ms - Total 0.257 ms / 1 intvls (Avg 0.257 ms)
[0x134b658] main interface error: no suitable interface module
[0x1282108] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x1282108] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0x134b658] main interface debug: looking for interface module: 6 candidates
[0x134b658] qt4 interface error: Could not connect to X server
[0x14abf98] main playlist debug: no fetch required for (null) (art currently (null))
[0x134b658] skins2 interface debug: Cannot open X display
[0x134b658] skins2 interface error: cannot initialize OSFactory
[0x134b658] [cli] lua interface debug: Found lua interface script: /usr/lib/vlc/lua/intf/cli.luac
[0x134b658] [cli] main interface debug: using interface module "lua"
[0x134b658] [cli] main interface debug: TIMER module_need() : 1.319 ms - Total 1.319 ms / 1 intvls (Avg 1.319 ms)
[0x14abf98] main playlist debug: processing request item: null, node: Playlist, skip: 0
[0x14abf98] main playlist debug: rebuilding array of current - root Playlist
[0x14abf98] main playlist debug: rebuild done - 1 items, index -1
[0x14abf98] main playlist debug: starting playback of the new playlist item
[0x14abf98] main playlist debug: resyncing on v4l2:///dev/video0
[0x14abf98] main playlist debug: v4l2:///dev/video0 is at 0
[0x14abf98] main playlist debug: creating new input thread
[0x7f7394000b28] main input debug: Creating an input for 'v4l2:///dev/video0'
[0x134b658] [cli] lua interface: Listening on host "*console".
VLC media player 2.0.5 Twoflower
Command Line Interface initialized. Type `help' for help.
> [0x7f7390000e18] main stream output debug: using sout chain=`standard{access=http,dst=:8001,mux=ts}'
[0x7f7390000e18] main stream output debug: stream=`standard'
[0x7f73900011f8] main stream out debug: looking for sout stream module: 1 candidate
[0x7f73900011f8] main stream out debug: set config option: sout-standard-access to http
[0x7f73900011f8] main stream out debug: set config option: sout-standard-dst to :8001
[0x7f73900011f8] main stream out debug: set config option: sout-standard-mux to ts
[0x7f7390004058] main access out debug: looking for sout access module: 1 candidate
[0x7f7390004058] main access out debug: net: listening to * port 8001
[0x7f7390004058] main access out debug: using sout access module "access_output_http"
[0x7f7390004058] main access out debug: TIMER module_need() : 0.414 ms - Total 0.414 ms / 1 intvls (Avg 0.414 ms)
[0x7f7390005528] main mux debug: looking for sout mux module: 1 candidate
[0x7f7390005528] mux_ts mux debug: shaping=200000 pcr=70000 dts_delay=400000
[0x7f7390005528] main mux debug: using sout mux module "mux_ts"
[0x7f7390005528] main mux debug: TIMER module_need() : 0.402 ms - Total 0.402 ms / 1 intvls (Avg 0.402 ms)
[0x7f7390000e18] main stream output debug: muxer support adding stream at any time
[0x7f7390000e18] main stream output debug: muxer prefers to wait for all ES before starting to mux
[0x7f73900011f8] stream_out_standard stream out debug: using `http/ts://:8001'
[0x7f73900011f8] main stream out debug: using sout stream module "stream_out_standard"
[0x7f73900011f8] main stream out debug: TIMER module_need() : 1.262 ms - Total 1.262 ms / 1 intvls (Avg 1.262 ms)
[0x7f7394000b28] main input debug: using timeshift granularity of 50 MiB, in path '/tmp'
[0x7f7394000b28] main input debug: `v4l2:///dev/video0' gives access `v4l2' demux `' path `/dev/video0'
[0x7f7394000b28] main input debug: creating demux: access='v4l2' demux='' location='/dev/video0' file='/dev/video0'
[0x7f7390006fc8] main demux debug: looking for access_demux module: 1 candidate
[0x7f7390006fc8] v4l2 demux debug: opening device '/dev/video0'
[0x7f7390006fc8] v4l2 demux debug: trying kernel V4L2
[0x7f7390006fc8] v4l2 demux debug: device Hauppauge WinTV-HVR2250 using driver saa7164[0] (version 0.0.0) on PCI:0000:01:00.0
[0x7f7390006fc8] v4l2 demux debug: the device has the capabilities: 0x01010001
[0x7f7390006fc8] v4l2 demux debug: (X) Video Capture, ( ) Audio, (X) Tuner, ( ) Radio
[0x7f7390006fc8] v4l2 demux debug: (X) Read/Write, ( ) Streaming, ( ) Asynchronous
[0x7f7390006fc8] v4l2 demux debug: video input 0 (tuner) has type: Tuner adapter *
[0x7f7390006fc8] v4l2 demux debug: video input 1 (composite) has type: External analog input
[0x7f7390006fc8] v4l2 demux debug: video input 2 (svideo) has type: External analog input
[0x7f7390006fc8] v4l2 demux debug: video input 3 (aux) has type: External analog input
[0x7f7390006fc8] v4l2 demux debug: video input 4 (composite 2) has type: External analog input
[0x7f7390006fc8] v4l2 demux debug: video input 5 (svideo 2) has type: External analog input
[0x7f7390006fc8] v4l2 demux debug: video input 6 (aux 2) has type: External analog input
[0x7f7390006fc8] v4l2 demux debug: input set to 0
[0x7f7390006fc8] v4l2 demux debug: standard set to 0x3000:
[0x7f7390006fc8] v4l2 demux debug: tuner 0 (tuner) has type: Analog TV, frequency range: 0.0 kHz -> 0.0 kHz
[0x7f7390006fc8] v4l2 demux debug: tuner 0 (tuner) frequency: 343250.0 kHz
[0x7f7390006fc8] v4l2 demux debug: device codec MPEG (MPEG) not supported
[0x7f7390006fc8] v4l2 demux debug: integer Brightness (00980900)
[0x7f7390006fc8] v4l2 demux debug: current: 127, default: 127
[0x7f7390006fc8] v4l2 demux debug: integer Contrast (00980901)
[0x7f7390006fc8] v4l2 demux debug: current: 66, default: 66
[0x7f7390006fc8] v4l2 demux debug: integer Saturation (00980902)
[0x7f7390006fc8] v4l2 demux debug: current: 62, default: 62
[0x7f7390006fc8] v4l2 demux debug: integer Hue (00980903)
[0x7f7390006fc8] v4l2 demux debug: current: 128, default: 128
[0x7f7390006fc8] v4l2 demux debug: integer Volume (00980905)
[0x7f7390006fc8] v4l2 demux debug: current: 0, default: 20
[0x7f7390006fc8] v4l2 demux debug: integer Sharpness (0098091B)
[0x7f7390006fc8] v4l2 demux debug: current: 8, default: 8
[0x7f7390006fc8] v4l2 demux debug: menu Stream Type (00990900)
[0x7f7390006fc8] v4l2 demux debug: menu Video Aspect (009909C9)
[0x7f7390006fc8] v4l2 demux debug: integer Video B Frames (009909CA)
[0x7f7390006fc8] v4l2 demux debug: integer Video GOP Size (009909CB)
[0x7f7390006fc8] v4l2 demux debug: menu Video Bitrate Mode (009909CE)
[0x7f7390006fc8] v4l2 demux debug: integer Video Bitrate (009909CF)
[0x7f7390006fc8] v4l2 demux debug: integer Video Peak Bitrate (009909D0)
[0x7f7390006fc8] v4l2 demux debug: trying specified size 720x480
[0x7f7390006fc8] v4l2 demux warning: Could not select any of the default chromas; attempting to open as MPEG encoder card (access)
[0x7f7390006fc8] v4l2 demux debug: trying library V4L2
[0x7f7390006fc8] v4l2 demux debug: device Hauppauge WinTV-HVR2250 using driver saa7164[0] (version 0.0.0) on PCI:0000:01:00.0
[0x7f7390006fc8] v4l2 demux debug: the device has the capabilities: 0x01010001
[0x7f7390006fc8] v4l2 demux debug: (X) Video Capture, ( ) Audio, (X) Tuner, ( ) Radio
[0x7f7390006fc8] v4l2 demux debug: (X) Read/Write, ( ) Streaming, ( ) Asynchronous
[0x7f7390006fc8] v4l2 demux debug: video input 0 (tuner) has type: Tuner adapter *
[0x7f7390006fc8] v4l2 demux debug: video input 1 (composite) has type: External analog input
[0x7f7390006fc8] v4l2 demux debug: video input 2 (svideo) has type: External analog input
[0x7f7390006fc8] v4l2 demux debug: video input 3 (aux) has type: External analog input
[0x7f7390006fc8] v4l2 demux debug: video input 4 (composite 2) has type: External analog input
[0x7f7390006fc8] v4l2 demux debug: video input 5 (svideo 2) has type: External analog input
[0x7f7390006fc8] v4l2 demux debug: video input 6 (aux 2) has type: External analog input
[0x7f7390006fc8] v4l2 demux debug: input set to 0
[0x7f7390006fc8] v4l2 demux debug: standard set to 0x3000:
[0x7f7390006fc8] v4l2 demux debug: tuner 0 (tuner) has type: Analog TV, frequency range: 0.0 kHz -> 0.0 kHz
[0x7f7390006fc8] v4l2 demux debug: tuner 0 (tuner) frequency: 343250.0 kHz
[0x7f7390006fc8] v4l2 demux debug: device codec MPEG (MPEG) not supported
[0x7f7390006fc8] v4l2 demux debug: device supports chroma RV24 [RGB3, RGB3]
[0x7f7390006fc8] v4l2 demux debug: device supports chroma RV24 [BGR3, BGR3]
[0x7f7390006fc8] v4l2 demux debug: device supports chroma I420 [YU12, YU12]
[0x7f7390006fc8] v4l2 demux debug: device supports chroma YV12 [YV12, YV12]
[0x7f7390006fc8] v4l2 demux debug: integer Brightness (00980900)
[0x7f7390006fc8] v4l2 demux debug: current: 127, default: 127
[0x7f7390006fc8] v4l2 demux debug: integer Contrast (00980901)
[0x7f7390006fc8] v4l2 demux debug: current: 66, default: 66
[0x7f7390006fc8] v4l2 demux debug: integer Saturation (00980902)
[0x7f7390006fc8] v4l2 demux debug: current: 62, default: 62
[0x7f7390006fc8] v4l2 demux debug: integer Hue (00980903)
[0x7f7390006fc8] v4l2 demux debug: current: 128, default: 128
[0x7f7390006fc8] v4l2 demux debug: integer Volume (00980905)
[0x7f7390006fc8] v4l2 demux debug: current: 0, default: 20
[0x7f7390006fc8] v4l2 demux debug: integer Sharpness (0098091B)
[0x7f7390006fc8] v4l2 demux debug: current: 8, default: 8
[0x7f7390006fc8] v4l2 demux debug: menu Stream Type (00990900)
[0x7f7390006fc8] v4l2 demux debug: menu Video Aspect (009909C9)
[0x7f7390006fc8] v4l2 demux debug: integer Video B Frames (009909CA)
[0x7f7390006fc8] v4l2 demux debug: integer Video GOP Size (009909CB)
[0x7f7390006fc8] v4l2 demux debug: menu Video Bitrate Mode (009909CE)
[0x7f7390006fc8] v4l2 demux debug: integer Video Bitrate (009909CF)
[0x7f7390006fc8] v4l2 demux debug: integer Video Peak Bitrate (009909D0)
[0x7f7390006fc8] v4l2 demux debug: trying specified size 720x480
[0x7f7390006fc8] v4l2 demux debug: Driver requires at most 0 bytes to store a complete image
[0x7f7390006fc8] v4l2 demux debug: Interlacing setting: progressive
[0x7f7390006fc8] v4l2 demux debug: added new video es s 720x480
[0x7f7390006fc8] v4l2 demux debug: frame rate: -0.000000
[0x7f7394000b28] main input debug: selecting program id=1
Segmentation fault (core dumped)