Comments (6)
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
from boblight.
[video4linux2 @ 0x8c28d80] ioctl(VIDIOC_DQBUF): Invalid argument
I think that's the main problem.
Original comment by [email protected]
on 2 Sep 2012 at 11:23
from boblight.
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:
from boblight.
is there a way to include this into the main sourcecode?
Original comment by denishamann
on 12 Nov 2012 at 7:46
from boblight.
any update on this?
Original comment by denishamann
on 8 Feb 2013 at 7:18
from boblight.
thanks for your patch file, now my leds working good with usb grabber
Original comment by kayishigh
on 15 Oct 2013 at 7:41
from boblight.
Related Issues (20)
- Merge "boblight-ambioder" into boblight
- boblight.conf for lightpack HOT 1
- Patch for /trunk/arduino/boblight_arduino_pwm/boblight_arduino_pwm.pde
- boblight-v4l refresh
- openelec boblight connect to Pibob
- config file option for second monitor
- Patch for Ambioder support HOT 1
- Boblight for windows is affected by SpeedFan
- Error when compiling HOT 2
- Win 7 "com8: Permission Denied HOT 1
- Does not compile with v4l HOT 2
- Lightpack (USB) with Windows/Darwin will crash HOT 2
- Multiple lightpacks aren't handled properly HOT 3
- use XDamage instead of polling HOT 1
- FPS Drops with XBMC Boblight (not boblightd) on OpenElec HOT 1
- boblightd not recognizing my lightpack HOT 2
- config - Howto? Setup LED SMD3825 HOT 1
- Error (devices/colors/light) not defined HOT 2
- setup dameon on Android ARM Device
- Enter one-line summary HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from boblight.