Giter VIP home page Giter VIP logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 22, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 22, 2024
[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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 22, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 22, 2024
is there a way to include this into the main sourcecode?

Original comment by denishamann on 12 Nov 2012 at 7:46

from boblight.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 22, 2024
any update on this?

Original comment by denishamann on 8 Feb 2013 at 7:18

from boblight.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 22, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.