I HAD v4l2 streaming working great in Ubuntu until a reboot, and unwanted update seems to have broken things. This was with VLC 2.0.x (I can't recall which). Now, I've tried 2.0.8, and 2.1-nightly, and 2.2-nightly, and non will work.
Right now, I'm trying 2.2-nightly, and I'm seeing the following error. Streaming from a PVR-250 works great, streaming from my HVR-2250's do not (see following). It just hangs at that last line, and never fills the buffer. I'm guessing it has to do with the ioctl warning, but I can't figure out what's causing that. I can cat /dev/video1 to a mpg file and play it back fine, but no matter what I try, I can't get the stream to work.
Anyone have any thoughts? Please?
Code: Select all
vlc -vvv v4l2c:///dev/video1 :v4l2-input=1 :v4l2-standard=NTSC :v4l2-width=720 :v4l2-height=480 --sout '#standard{access=http,dst=:8001,mux=ts}' --no-sout-audio
VLC media player 2.2.0-git Weatherwax (revision 2.2.0~~git20130915+r3006)
[0xe47118] main libvlc debug: VLC media player - 2.2.0-git Weatherwax
[0xe47118] main libvlc debug: Copyright © 1996-2013 the VideoLAN team
[0xe47118] main libvlc debug: revision 2.2.0~~git20130915+r3006
[0xe47118] main libvlc debug: configured with ./configure '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--localstatedir=/var' '--libexecdir=${prefix}/lib/vlc' '--disable-dependency-tracking' '--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=0~r105~ubuntu13.04.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'
[0xe47118] main libvlc debug: searching plug-in modules
[0xe47118] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins.dat
[0xe47118] main libvlc debug: recursively browsing `/usr/lib/vlc/plugins'
[0xe47118] main libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins.dat
[0xe47118] main libvlc debug: plug-ins loaded: 432 modules
[0xe47118] main libvlc debug: opening config file (/home/sojcadmin/.config/vlc/vlcrc)
[0xe47118] main libvlc debug: translation test: code is "C"
[0xe47118] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4.1 FPU
[0x1056298] main input debug: Creating an input for 'Media Library'
[0x1056298] main input debug: Input is a meta file: disabling unneeded options
[0x1056298] main input debug: using timeshift granularity of 50 MiB, in path '/tmp'
[0x1056298] 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'
[0x1056298] 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'
[0xe64338] main demux debug: looking for access_demux module matching "file": 20 candidates
[0xe64338] main demux debug: no access_demux modules matched
[0x1056298] main input debug: creating access 'file' location='/home/sojcadmin/.local/share/vlc/ml.xspf', path='/home/sojcadmin/.local/share/vlc/ml.xspf'
[0xe64338] main access debug: looking for access module matching "file": 24 candidates
[0xe64338] filesystem access debug: opening file `/home/sojcadmin/.local/share/vlc/ml.xspf'
[0xe64338] main access debug: using access module "filesystem"
[0xf0eed8] main stream debug: Using stream method for AStream*
[0xf0eed8] main stream debug: starting pre-buffering
[0xf0eed8] main stream debug: received first data after 0 ms
[0xf0eed8] main stream debug: pre-buffering done 296 bytes in 0s - 9324 KiB/s
[0xf0f138] main stream debug: looking for stream_filter module matching "any": 9 candidates
[0xf0f138] main stream debug: no stream_filter modules matched
[0xf0f138] main stream debug: looking for stream_filter module matching "stream_filter_record": 9 candidates
[0xf0f138] main stream debug: no stream_filter modules matched
[0x1056298] 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'
[0xf0f138] main demux debug: looking for demux module matching "xspf-open": 63 candidates
[0xf0f138] playlist demux debug: using XSPF playlist reader
[0xf0f138] main demux debug: using demux module "playlist"
[0xf118d8] main demux meta debug: looking for meta reader module matching "any": 2 candidates
[0xf118d8] lua demux meta debug: Trying Lua scripts in /home/sojcadmin/.local/share/vlc/lua/meta/reader
[0xf118d8] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader
[0xf118d8] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac
[0xf118d8] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
[0xf118d8] main demux meta debug: no meta reader modules matched
[0x1056298] main input debug: `file/xspf-open:///home/sojcadmin/.local/share/vlc/ml.xspf' successfully opened
[0xf1d278] main xml reader debug: looking for xml reader module matching "any": 1 candidates
[0xf1d278] main xml reader debug: using xml reader module "xml"
[0xf0f138] playlist demux debug: parsed 0 tracks successfully
[0x1056298] main input debug: EOF reached
[0xf0f138] main demux debug: removing module "playlist"
[0xe64338] main access debug: removing module "filesystem"
[0xe71f48] main playlist debug: creating audio output
[0xf0eed8] main audio output debug: looking for audio output module matching "any": 7 candidates
[0xf0eed8] pulse audio output debug: using library version 3.0.0
[0xf0eed8] pulse audio output debug: (compiled with version 3.0.0, protocol 27)
[0xf0eed8] pulse audio output error: PulseAudio server connection failure: Connection refused
[0xf0eed8] alsa audio output debug: Available ALSA PCM devices:
[0xf0eed8] alsa audio output debug: Discard all samples (playback) or generate zero samples (capture) (null)
[0xf0eed8] main audio output debug: using audio output module "alsa"
[0xe71f48] main playlist debug: keeping audio output
[0xe71f48] main playlist debug: adding item `v4l2c:///dev/video1' ( v4l2c:///dev/video1 )
[0xe87bd8] main interface debug: looking for interface module matching "hotkeys,none": 19 candidates
[0xe87bd8] main interface debug: using interface module "hotkeys"
[0xe635b8] main interface debug: looking for interface module matching "globalhotkeys,none": 19 candidates
[0xe635b8] main interface debug: no interface modules matched
[0xe635b8] main interface error: no suitable interface module
[0xe47118] main libvlc error: interface "globalhotkeys,none" initialization failed
[0xe635b8] main interface debug: looking for interface module matching "dbus,none": 19 candidates
[0xe635b8] dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[0xe635b8] main interface debug: no interface modules matched
[0xe635b8] main interface error: no suitable interface module
[0xe47118] main libvlc error: interface "dbus,none" initialization failed
[0xe47118] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0xe635b8] main interface debug: looking for interface module matching "any": 19 candidates
[0xe635b8] qt4 interface error: Could not connect to X server
[0xe71f48] main playlist debug: no fetch required for (null) (art currently (null))
[0xe635b8] skins2 interface debug: Cannot open X display
[0xe635b8] skins2 interface error: cannot initialize OSFactory
[0xe635b8] [cli] lua interface debug: Found lua interface script: /usr/lib/vlc/lua/intf/cli.luac
[0xe635b8] [cli] main interface debug: using interface module "lua"
[0xe71f48] main playlist debug: processing request item: null, node: Playlist, skip: 0
[0xe71f48] main playlist debug: rebuilding array of current - root Playlist
[0xe71f48] main playlist debug: rebuild done - 1 items, index -1
[0xe71f48] main playlist debug: starting playback of the new playlist item
[0xe71f48] main playlist debug: resyncing on v4l2c:///dev/video1
[0xe71f48] main playlist debug: v4l2c:///dev/video1 is at 0
[0xe71f48] main playlist debug: creating new input thread
[0x7fc4b4000a68] main input debug: Creating an input for 'v4l2c:///dev/video1'
[0x7fc4ac000b78] main stream output debug: using sout chain=`standard{access=http,dst=:8001,mux=ts}'
[0x7fc4ac000b78] main stream output debug: stream=`standard'
[0x7fc4ac000f48] main stream out debug: looking for sout stream module matching "standard": 20 candidates
[0x7fc4ac000f48] main stream out debug: set config option: sout-standard-access to http
[0x7fc4ac000f48] main stream out debug: set config option: sout-standard-dst to :8001
[0x7fc4ac000f48] main stream out debug: set config option: sout-standard-mux to ts
[0x7fc4ac001e88] main access out debug: looking for sout access module matching "http": 8 candidates
[0x7fc4ac001e88] main access out debug: net: listening to * port 8001
[0x7fc4ac001e88] main access out debug: using sout access module "access_output_http"
[0x7fc4ac4c8788] main mux debug: looking for sout mux module matching "ts": 10 candidates
[0x7fc4ac4c8788] mux_ts mux debug: shaping=200000 pcr=70000 dts_delay=400000
[0x7fc4ac4c8788] main mux debug: using sout mux module "mux_ts"
[0x7fc4ac000b78] main stream output debug: muxer support adding stream at any time
[0x7fc4ac000b78] main stream output debug: muxer prefers to wait for all ES before starting to mux
[0x7fc4ac000f48] stream_out_standard stream out debug: using `http/ts://:8001'
[0x7fc4ac000f48] main stream out debug: using sout stream module "stream_out_standard"
[0x7fc4b4000a68] main input debug: using timeshift granularity of 50 MiB, in path '/tmp'
[0xe635b8] [cli] lua interface: Listening on host "*console".
VLC media player 2.2.0-git Weatherwax
Command Line Interface initialized. Type `help' for help.
> [0x7fc4b4000a68] main input debug: `v4l2c:///dev/video1' gives access `v4l2c' demux `' path `/dev/video1'
[0x7fc4b4000a68] main input debug: creating demux: access='v4l2c' demux='' location='/dev/video1' file='/dev/video1'
[0x7fc4ac4c9f08] main demux debug: looking for access_demux module matching "v4l2c": 20 candidates
[0x7fc4ac4c9f08] main demux debug: no access_demux modules matched
[0x7fc4b4000a68] main input debug: creating access 'v4l2c' location='/dev/video1', path='/dev/video1'
[0x7fc4ac4c9f08] main access debug: looking for access module matching "v4l2c": 24 candidates
[0x7fc4ac4c9f08] v4l2 access debug: opening device '/dev/video1'
[0x7fc4ac4c9f08] v4l2 access debug: device Hauppauge WinTV-HVR2250 using driver saa7164[0] (version 0.0.0) on PCI:0000:01:00.0
[0x7fc4ac4c9f08] v4l2 access debug: with unknown capabilities (overall 0x01010001)
[0x7fc4ac4c9f08] v4l2 access debug: video input composite (1) is camera
[0x7fc4ac4c9f08] v4l2 access debug: selected input 1
[0x7fc4ac4c9f08] v4l2 access debug: video standard set to 0xb000:
[0x7fc4ac4c9f08] v4l2 access debug: no tuning required (analog baseband input)
[0x7fc4ac4c9f08] v4l2 access debug: no audio input available
[0x7fc4ac4c9f08] v4l2 access debug: selected format MPEG
[0x7fc4ac4c9f08] v4l2 access debug: requested frame size: 720x480
[0x7fc4ac4c9f08] v4l2 access debug: unknown frame intervals: Inappropriate ioctl for device
[0x7fc4ac4c9f08] v4l2 access debug: constant frame interval: 1001/30000
[0x7fc4ac4c9f08] v4l2 access warning: cannot set streaming parameters: Inappropriate ioctl for device
[0x7fc4ac4c9f08] v4l2 access debug: cannot get cropping properties: Inappropriate ioctl for device
[0x7fc4ac4c9f08] v4l2 access debug: 0 bytes for complete image
[0x7fc4ac4c9f08] v4l2 access debug: integer Brightness (00980900)
[0x7fc4ac4c9f08] v4l2 access debug: current: 127, default: 127
[0x7fc4ac4c9f08] v4l2 access debug: integer Contrast (00980901)
[0x7fc4ac4c9f08] v4l2 access debug: current: 66, default: 66
[0x7fc4ac4c9f08] v4l2 access debug: integer Saturation (00980902)
[0x7fc4ac4c9f08] v4l2 access debug: current: 62, default: 62
[0x7fc4ac4c9f08] v4l2 access debug: integer Hue (00980903)
[0x7fc4ac4c9f08] v4l2 access debug: current: 128, default: 128
[0x7fc4ac4c9f08] v4l2 access debug: integer Volume (00980905)
[0x7fc4ac4c9f08] v4l2 access debug: current: 0, default: 20
[0x7fc4ac4c9f08] v4l2 access debug: integer Sharpness (0098091B)
[0x7fc4ac4c9f08] v4l2 access debug: current: 8, default: 8
[0x7fc4ac4c9f08] v4l2 access debug: menu Stream Type (00990900)
[0x7fc4ac4c9f08] v4l2 access debug: menu Video Aspect (009909C9)
[0x7fc4ac4c9f08] v4l2 access debug: integer Video B Frames (009909CA)
[0x7fc4ac4c9f08] v4l2 access debug: integer Video GOP Size (009909CB)
[0x7fc4ac4c9f08] v4l2 access debug: menu Video Bitrate Mode (009909CE)
[0x7fc4ac4c9f08] v4l2 access debug: integer Video Bitrate (009909CF)
[0x7fc4ac4c9f08] v4l2 access debug: integer Video Peak Bitrate (009909D0)
[0x7fc4ac4c9f08] main access debug: using access module "v4l2"
[0x7fc4ac4d4338] main stream debug: Using block method for AStream*
[0x7fc4ac4d4338] main stream debug: starting pre-buffering
[0x7fc4ac4d4338] main stream debug: received first data after 598 ms
What I DO get in dmesg when trying this is a whole lot of:
[14214.027856] encirq no free buffers, increase param encoder_buffers