Open GoogleCodeExporter opened 9 years ago
Some further Information:
On vlc i get the following output:
[0x7f1880000b28] main input debug: `v4l2:///dev/video0' gives access `v4l2'
demux `' path `/dev/video0'
[0x7f1880000b28] main input debug: creating demux: access='v4l2' demux=''
location='/dev/video0' file='/dev/video0'
[0x7f18780012d8] main demux debug: looking for access_demux module: 1 candidate
[0x7f18780012d8] v4l2 demux debug: opening device '/dev/video0'
[0x7f187c005718] lua art finder debug: Trying Lua playlist script
/usr/lib/vlc/lua/meta/art/02_frenchtv.luac
[0x7f187c005718] lua art finder debug: Trying Lua playlist script
/usr/lib/vlc/lua/meta/art/03_lastfm.luac
[0x7f187c005718] lua art finder debug: Trying Lua scripts in
/usr/share/vlc/lua/meta/art
[0x7f187c005718] main art finder debug: no art finder module matching "any"
could be loaded
[0x7f187c005718] main art finder debug: TIMER module_need() : 2.388 ms - Total
2.388 ms / 1 intvls (Avg 2.388 ms)
[0x208fab8] main playlist debug: art not found for v4l2:///dev/video0
[0x7f18780012d8] v4l2 demux debug: trying kernel V4L2
[0x7f18780012d8] v4l2 demux debug: device EasyCAP DC60 using driver easycap
(version 0.9.1) on usb-0000:00:1d.7-4.4
[0x7f18780012d8] v4l2 demux debug: the device has the capabilities: 0x05020001
[0x7f18780012d8] v4l2 demux debug: (X) Video Capture, (X) Audio, ( ) Tuner, (
) Radio
[0x7f18780012d8] v4l2 demux debug: (X) Read/Write, (X) Streaming, ( )
Asynchronous
[0x7f18780012d8] v4l2 demux debug: video input 0 (CVBS0) has type: External
analog input *
[0x7f18780012d8] v4l2 demux debug: video input 1 (CVBS1) has type: External
analog input
[0x7f18780012d8] v4l2 demux debug: video input 2 (CVBS2) has type: External
analog input
[0x7f18780012d8] v4l2 demux debug: video input 3 (CVBS3) has type: External
analog input
[0x7f18780012d8] v4l2 demux debug: video input 4 (CVBS4) has type: External
analog input
[0x7f18780012d8] v4l2 demux debug: video input 5 (S-VIDEO) has type: External
analog input
[0x7f18780012d8] v4l2 demux debug: input set to 0
[0x7f18780012d8] v4l2 demux debug: device supports chroma UYVY [uyvy, UYVY]
[0x7f18780012d8] v4l2 demux debug: device supports chroma YUY2 [yuy2, YUYV]
[0x7f18780012d8] v4l2 demux debug: device supports chroma RV24 [rgb24, RGB3]
[0x7f18780012d8] v4l2 demux debug: device supports chroma RV32 [rgb32, RGB4]
[0x7f18780012d8] v4l2 demux debug: device supports chroma RV24 [bgr24, BGR3]
[0x7f18780012d8] v4l2 demux debug: device supports chroma RV32 [bgr32, BGR4]
[0x7f18780012d8] v4l2 demux debug: found default width and height of 320x240
[0x7f18780012d8] v4l2 demux debug: will try to find optimal width and height
[0x7f18780012d8] v4l2 demux debug: discrete frame interval 1/25 supported
[0x7f18780012d8] v4l2 demux debug: discrete frame interval 1/5 supported
[0x7f18780012d8] v4l2 demux debug: discrete frame interval 1/25 supported
[0x7f18780012d8] v4l2 demux debug: discrete frame interval 1/5 supported
[0x7f18780012d8] v4l2 demux debug: discrete frame interval 1/25 supported
[0x7f18780012d8] v4l2 demux debug: discrete frame interval 1/5 supported
[0x7f18780012d8] v4l2 demux debug: discrete frame interval 1/25 supported
[0x7f18780012d8] v4l2 demux debug: discrete frame interval 1/5 supported
[0x7f18780012d8] v4l2 demux debug: discrete frame interval 1/25 supported
[0x7f18780012d8] v4l2 demux debug: discrete frame interval 1/5 supported
[0x7f18780012d8] v4l2 demux debug: Found maximum framerate of 25.000000
[0x7f18780012d8] v4l2 demux debug: discrete size 640x480 supported
[0x7f18780012d8] v4l2 demux debug: discrete frame interval 1/25 supported
[0x7f18780012d8] v4l2 demux debug: discrete frame interval 1/5 supported
[0x7f18780012d8] v4l2 demux debug: discrete size 320x240 supported
[0x7f18780012d8] v4l2 demux debug: discrete frame interval 1/25 supported
[0x7f18780012d8] v4l2 demux debug: discrete frame interval 1/5 supported
[0x7f18780012d8] v4l2 demux debug: discrete size 704x576 supported
[0x7f18780012d8] v4l2 demux debug: discrete frame interval 1/25 supported
[0x7f18780012d8] v4l2 demux debug: discrete frame interval 1/5 supported
[0x7f18780012d8] v4l2 demux debug: discrete size 720x576 supported
[0x7f18780012d8] v4l2 demux debug: discrete frame interval 1/25 supported
[0x7f18780012d8] v4l2 demux debug: discrete frame interval 1/5 supported
[0x7f18780012d8] v4l2 demux debug: discrete size 360x288 supported
[0x7f18780012d8] v4l2 demux debug: discrete frame interval 1/25 supported
[0x7f18780012d8] v4l2 demux debug: discrete frame interval 1/5 supported
[0x7f18780012d8] v4l2 demux debug: Found optimal dimensions for framerate
25.000000 of 720x576
[0x7f18780012d8] v4l2 demux debug: Driver requires at most 829440 bytes to
store a complete image
[0x7f18780012d8] v4l2 demux debug: Interlacing setting: progressive
[0x7f18780012d8] v4l2 demux debug: added new video es YUY2 720x576
[0x7f18780012d8] v4l2 demux debug: frame rate: 25.000000
[0x7f1880000b28] main input debug: selecting program id=0
[0x7f18780012d8] main demux debug: using access_demux module "v4l2"
[0x7f18780012d8] main demux debug: TIMER module_need() : 1711.276 ms - Total
1711.276 ms / 1 intvls (Avg 1711.276 ms)
[0x7f1878009958] main decoder debug: looking for decoder module: 30 candidates
[0x7f1878009958] main decoder debug: using decoder module "rawvideo"
[0x7f1878009958] main decoder debug: TIMER module_need() : 5.703 ms - Total
5.703 ms / 1 intvls (Avg 5.703 ms)
[0x7f1878005cc8] main demux meta debug: looking for meta reader module: 2
candidates
[0x7f1878005cc8] lua demux meta debug: Trying Lua scripts in
/home/denis/.local/share/vlc/lua/meta/reader
[0x7f1878005cc8] lua demux meta debug: Trying Lua scripts in
/usr/lib/vlc/lua/meta/reader
[0x7f1878005cc8] lua demux meta debug: Trying Lua playlist script
/usr/lib/vlc/lua/meta/reader/filename.luac
[0x7f1878005cc8] lua demux meta debug: Trying Lua scripts in
/usr/share/vlc/lua/meta/reader
[0x7f1878005cc8] main demux meta debug: no meta reader module matching "any"
could be loaded
[0x7f1878005cc8] main demux meta debug: TIMER module_need() : 0.614 ms - Total
0.614 ms / 1 intvls (Avg 0.614 ms)
[0x7f1880000b28] main input debug: `v4l2:///dev/video0' successfully opened
with boblight-v4l i get the following:
[video4linux2 @ 0x1402100] [4]Capabilities: 5020001
[video4linux2 @ 0x1402100] The V4L2 driver changed the video from 64x64 to
320x240
[video4linux2 @ 0x1402100] The V4L2 driver set input_id: 0, input: CVBS0
[video4linux2 @ 0x1402100] Setting time per frame to 1/60
[video4linux2 @ 0x1402100] ioctl set time per frame(1/60) failed
[video4linux2 @ 0x1402100] ioctl(VIDIOC_DQBUF): Input/output error
[video4linux2 @ 0x1402100] decoding for stream 0 failed
[video4linux2 @ 0x1402100] Estimating duration from bitrate, this may be
inaccurate
ERROR: Unable to find stream info
I think theres a problem with setting the correct video setting (the framerate
etc.)
Original comment by denishamann
on 31 Aug 2012 at 10:38
[video4linux2 @ 0x8c28d80] ioctl(VIDIOC_DQBUF): Invalid argument
I think that's the main problem.
Original comment by bob.loo...@gmail.com
on 2 Sep 2012 at 11:23
ok, i did some testings on the weekend.
I found the bug. Its the fixed framerate for the /dev/videoX device in
videograbber.cpp on line 71: m_formatparams.time_base.den = 60;
The Hardcoded fps of 60 of course doesn't work with every device as some
devices only have 50i or 25p (for example when using something in a PAL
environment instead of NTSC).
As soon as i removed the corresponding 2 lines (70+71) the v4l driver
automatically detected the framerate and worked flawless. So i coded new flag
for manually setting the framerate and detecting if a framerate was set and
then use the corresponding one. If no framerate was set it'll try to auto
detect it, which is basically what vlc does.
Original comment by denishamann
on 3 Sep 2012 at 9:36
Attachments:
is there a way to include this into the main sourcecode?
Original comment by denishamann
on 12 Nov 2012 at 7:46
any update on this?
Original comment by denishamann
on 8 Feb 2013 at 7:18
thanks for your patch file, now my leds working good with usb grabber
Original comment by kayishigh
on 15 Oct 2013 at 7:41
Original issue reported on code.google.com by
denishamann
on 29 Aug 2012 at 11:03