OpenHarmony开发者论坛
标题:
Camera_驱动已经移植完Camera,能够通过节点的方式调用camera,但应用层无法通过framework API正常调用Camaera,ioctl VIDIOC_STREAMON failed: No such device
[打印本页]
作者:
Liwd
时间:
2023-12-21 13:53
标题:
Camera_驱动已经移植完Camera,能够通过节点的方式调用camera,但应用层无法通过framework API正常调用Camaera,ioctl VIDIOC_STREAMON failed: No such device
[md]基于4.0BATA2,
11-27 17:44:43.135 501-554/? I C02500/camera_hdi_service: PowerUp() <private> Sensor Powerup
11-27 17:44:43.135 501-554/? I C02500/camera_hdi_service: PowerUp() <private> Isp Powerup
11-27 17:44:43.135 501-554/? I C02500/camera_hdi_service: PowerUp() <private> Flash Powerup
11-27 17:44:43.135 501-554/? I C02500/camera_hdi_service: PowerUp() <private> Sensor Powerup
11-27 17:44:43.178 501-2369/? I C02500/camera_hdi_service: DealMessage() thread closed
11-27 17:44:43.178 501-554/? E C02500/camera_hdi_service: ClearNodeCallback() nodeFunc_ empty
11-27 17:44:43.178 501-554/? E C02500/camera_hdi_service: UnSetUpdateSettingCallback() already set update setting callback.
11-27 17:44:43.187 501-554/? E C02500/camera_hdi_service: StopStream() StopStream thread is stopped
11-27 17:44:43.187 501-554/? E C02500/camera_hdi_service: GetCurrentFd() error: GetCurrentFd no camera fd
11-27 17:44:43.187 501-554/? E C02500/camera_hdi_service: ReleaseBuffers() ReleaseBuffers: GetCurrentFd error
11-27 17:44:43.187 501-554/? E C02500/camera_hdi_service: stop() HosV4L2Dev::stop GetCurrentFd error
11-27 17:44:43.187 501-554/? I C02500/camera_hdi_service: PowerDown() <private> Sensor PowerDown
11-27 17:44:43.187 501-554/? I C02500/camera_hdi_service: PowerDown() <private> Isp PowerDown
11-27 17:44:43.187 501-554/? I C02500/camera_hdi_service: PowerDown() <private> Flash PowerDown
11-27 17:44:43.187 501-554/? E C02500/camera_hdi_service: StopStream() error: StopStream: myStreams_ is NULL
11-27 17:44:43.188 501-554/? E C02500/camera_hdi_service: ReleaseBuffers() ReleaseBuffers myBuffers_ is NULL
11-27 17:44:43.188 501-554/? E C02500/camera_hdi_service: stop() HosV4L2Dev::stop myFileFormat_ == nullptr
11-27 17:44:43.188 501-554/? I C02500/camera_hdi_service: PowerDown() <private> Sensor PowerDown
11-27 17:44:43.244 501-1534/? I C02500/camera_hdi_service: PowerUp() <private> Sensor Powerup
11-27 17:44:43.244 501-1534/? I C02500/camera_hdi_service: PowerUp() <private> Isp Powerup
11-27 17:44:43.244 501-1534/? I C02500/camera_hdi_service: PowerUp() <private> Flash Powerup
11-27 17:44:43.244 501-1534/? I C02500/camera_hdi_service: PowerUp() <private> Sensor Powerup
11-27 17:44:43.278 501-2374/? I C02500/camera_hdi_service: DealMessage() thread closed
11-27 17:44:43.278 501-1534/? E C02500/camera_hdi_service: ClearNodeCallback() nodeFunc_ empty
11-27 17:44:43.278 501-1534/? E C02500/camera_hdi_service: UnSetUpdateSettingCallback() already set update setting callback.
11-27 17:44:43.279 501-1534/? E C02500/camera_hdi_service: StopStream() StopStream thread is stopped
11-27 17:44:43.279 501-1534/? E C02500/camera_hdi_service: GetCurrentFd() error: GetCurrentFd no camera fd
11-27 17:44:43.279 501-1534/? E C02500/camera_hdi_service: ReleaseBuffers() ReleaseBuffers: GetCurrentFd error
11-27 17:44:43.279 501-1534/? E C02500/camera_hdi_service: stop() HosV4L2Dev::stop GetCurrentFd error
11-27 17:44:43.279 501-1534/? I C02500/camera_hdi_service: PowerDown() <private> Sensor PowerDown
11-27 17:44:43.279 501-1534/? I C02500/camera_hdi_service: PowerDown() <private> Isp PowerDown
11-27 17:44:43.279 501-1534/? I C02500/camera_hdi_service: PowerDown() <private> Flash PowerDown
11-27 17:44:43.279 501-1534/? E C02500/camera_hdi_service: StopStream() error: StopStream: myStreams_ is NULL
11-27 17:44:43.279 501-1534/? E C02500/camera_hdi_service: ReleaseBuffers() ReleaseBuffers myBuffers_ is NULL
11-27 17:44:43.279 501-1534/? E C02500/camera_hdi_service: stop() HosV4L2Dev::stop myFileFormat_ == nullptr
11-27 17:44:43.279 501-1534/? I C02500/camera_hdi_service: PowerDown() <private> Sensor PowerDown
11-27 17:44:43.324 501-1534/? I C02500/camera_hdi_service: PowerUp() <private> Sensor Powerup
11-27 17:44:43.324 501-1534/? I C02500/camera_hdi_service: PowerUp() <private> Isp Powerup
11-27 17:44:43.324 501-1534/? I C02500/camera_hdi_service: PowerUp() <private> Flash Powerup
11-27 17:44:43.324 501-1534/? I C02500/camera_hdi_service: PowerUp() <private> Sensor Powerup
11-27 17:44:43.343 501-1534/? I C02500/camera_hdi_service: CreateStreams() streamId:1 and format:12 and width:640 and height:480
11-27 17:44:43.344 501-1534/? I C02500/camera_hdi_service: CreateStreams() create stream success [id:1] [type
REVIEW]
11-27 17:44:43.344 501-1534/? I C02500/camera_hdi_service: CreateStreams() streamId:2 and format:25 and width:1280 and height:960
11-27 17:44:43.345 501-1534/? I C02500/camera_hdi_service: CreateStreams() create stream success [id:2] [type:STILL_CAPTURE]
11-27 17:44:43.346 501-1534/? I C02500/camera_hdi_service: BufferPool() BufferPool construct
11-27 17:44:43.346 501-1534/? I C02500/camera_hdi_service: Init() buffers are from external source
11-27 17:44:43.346 501-1534/? I C02500/camera_hdi_service: CreateHostStream() bufferpool id = 1701078283346620 , stream id = 2,stream type = 2, encode = 3
11-27 17:44:43.346 501-1534/? I C02500/camera_hdi_service: CommitStream() commit a stream to pipeline id[2], w[1280], h[960], poolId[1701078283346620], encodeType = 3
11-27 17:44:43.346 501-1534/? I C02500/camera_hdi_service: BufferPool() BufferPool construct
11-27 17:44:43.346 501-1534/? I C02500/camera_hdi_service: Init() buffers are from external source
11-27 17:44:43.346 501-1534/? I C02500/camera_hdi_service: CreateHostStream() bufferpool id = 1701078283346903 , stream id = 1,stream type = 0, encode = 0
11-27 17:44:43.346 501-1534/? I C02500/camera_hdi_service: CommitStream() commit a stream to pipeline id[1], w[640], h[480], poolId[1701078283346903], encodeType = 0
11-27 17:44:43.347 501-1534/? I C02500/camera_hdi_service: SetPortFormat() buffercount = 3
11-27 17:44:43.347 501-1534/? I C02500/camera_hdi_service: SetPortFormat() buffercount = 3
11-27 17:44:43.347 501-1534/? I C02500/camera_hdi_service: CombineSpecs() pipe.size = 8,nodeSpecSet_.size = 0
11-27 17:44:43.347 501-1534/? I C02500/camera_hdi_service: CombineSpecs() add node:v4l2_source#0
11-27 17:44:43.347 501-1534/? I C02500/camera_hdi_service: CombineSpecs() add node:fork#0
11-27 17:44:43.347 501-1534/? I C02500/camera_hdi_service: CombineSpecs() add node:ipp#0
11-27 17:44:43.347 501-1534/? I C02500/camera_hdi_service: CombineSpecs() add node:RKCodec#0
11-27 17:44:43.347 501-1534/? I C02500/camera_hdi_service: CombineSpecs() add node:RKCodec#1
11-27 17:44:43.347 501-1534/? I C02500/camera_hdi_service: CombineSpecs() add node:RKExif#0
11-27 17:44:43.347 501-1534/? I C02500/camera_hdi_service: CombineSpecs() add node:sink#0
11-27 17:44:43.347 501-1534/? I C02500/camera_hdi_service: CombineSpecs() add node:sink#1
11-27 17:44:43.347 501-1534/? I C02500/camera_hdi_service: CombineSpecs() ------------------------Connection Dump Begin-------------
11-27 17:44:43.347 501-1534/? I C02500/camera_hdi_service: PrintConnection() (v4l2_source#0)(name:out0 w:640 h:480 format:10 usage:7 bufferpoolid:1701078283346903) connect to (fork#0)(name:in0)
11-27 17:44:43.347 501-1534/? I C02500/camera_hdi_service: PrintConnection() (fork#0)(name:out1 w:1280 h:960 format:23 usage:7 bufferpoolid:1701078283346620) connect to (ipp#0)(name:in0)
11-27 17:44:43.347 501-1534/? I C02500/camera_hdi_service: PrintConnection() (ipp#0)(name:out0 w:1280 h:960 format:23 usage:7 bufferpoolid:1701078283346620) connect to (RKCodec#1)(name:in0)
11-27 17:44:43.347 501-1534/? I C02500/camera_hdi_service: PrintConnection() (RKCodec#1)(name:out0 w:1280 h:960 format:23 usage:7 bufferpoolid:1701078283346620) connect to (RKExif#0)(name:in0)
11-27 17:44:43.347 501-1534/? I C02500/camera_hdi_service: PrintConnection() (RKExif#0)(name:out0 w:1280 h:960 format:23 usage:7 bufferpoolid:1701078283346620) connect to (sink#1)(name:in0)
11-27 17:44:43.347 501-1534/? I C02500/camera_hdi_service: PrintConnection() (fork#0)(name:out0 w:640 h:480 format:10 usage:7 bufferpoolid:1701078283346903) connect to (RKCodec#0)(name:in0)
11-27 17:44:43.347 501-1534/? I C02500/camera_hdi_service: PrintConnection() (RKCodec#0)(name:out0 w:640 h:480 format:10 usage:7 bufferpoolid:1701078283346903) connect to (sink#0)(name:in0)
11-27 17:44:43.347 501-1534/? I C02500/camera_hdi_service: CombineSpecs() ------------------------Connection Dump End-------------
11-27 17:44:43.347 501-1534/? I C02500/camera_hdi_service: Build() ------------------------Node Instantiation Begin-------------
11-27 17:44:43.347 501-1534/? I C02500/camera_hdi_service: V4L2SourceNode() <private> enter, type(<private>)
11-27 17:44:43.347 501-1534/? I C02500/camera_hdi_service: Build() ------------------------Node Instantiation End-------------
11-27 17:44:43.348 501-1534/? I C02500/camera_hdi_service: Update() ------------------------Node Seq(UpStream) Dump Begin-------------
11-27 17:44:43.348 501-1534/? I C02500/camera_hdi_service: Update() sink stream id:1
11-27 17:44:43.348 501-1534/? I C02500/camera_hdi_service: Update() seq node name:sink#0
11-27 17:44:43.348 501-1534/? I C02500/camera_hdi_service: Update() seq node name:RKCodec#0
11-27 17:44:43.348 501-1534/? I C02500/camera_hdi_service: Update() seq node name:fork#0
11-27 17:44:43.348 501-1534/? I C02500/camera_hdi_service: Update() seq node name:v4l2_source#0
11-27 17:44:43.348 501-1534/? I C02500/camera_hdi_service: Update() sink stream id:2
11-27 17:44:43.348 501-1534/? I C02500/camera_hdi_service: Update() seq node name:sink#1
11-27 17:44:43.348 501-1534/? I C02500/camera_hdi_service: Update() seq node name:RKExif#0
11-27 17:44:43.348 501-1534/? I C02500/camera_hdi_service: Update() seq node name:RKCodec#1
11-27 17:44:43.348 501-1534/? I C02500/camera_hdi_service: Update() seq node name:ipp#0
11-27 17:44:43.348 501-1534/? I C02500/camera_hdi_service: Update() seq node name:fork#0
11-27 17:44:43.348 501-1534/? I C02500/camera_hdi_service: Update() ------------------------Node Seq(UpStream) Dump End-------------
11-27 17:44:43.377 501-1534/? I C02500/camera_hdi_service: StartStream() start stream [id:1] begin
11-27 17:44:43.378 501-1534/? I C02500/camera_hdi_service: ConvertPixfmtHal2V4l2() The halPixfmt is not find in ohos_mapPixFmtHal2V4l2
11-27 17:44:43.378 501-1534/? I C02500/camera_hdi_service: Start() <private> Start
11-27 17:44:43.385 501-1534/? I C02500/camera_hdi_service: SetNodeCallBack() SensorController SetNodeCallBack entry
11-27 17:44:43.385 501-1534/? I C02500/camera_hdi_service: StartCollectBuffers() SourceNode:
ortHandler::StartCollectBuffers
11-27 17:44:43.386 501-1534/? I C02500/camera_hdi_service: Start() ForkNode::Start streamId = 1
11-27 17:44:43.386 501-1534/? I C02500/camera_hdi_service: Start() fork buffer get buffer streamId = 2
11-27 17:44:43.386 501-1534/? I C02500/camera_hdi_service: Start() RKCodecNode::Start streamId = 1
11-27 17:44:43.386 501-1534/? I C02500/camera_hdi_service: StartStream() start stream [id:1] end
11-27 17:44:43.403 501-2384/? I C02500/camera_hdi_service: DeliverBuffer() stream [id:1] enqueue buffer index:0
11-27 17:44:43.403 501-2385/? I C02500/camera_hdi_service: ProvideBuffers() provide buffers enter.
11-27 17:44:43.403 501-2385/? I C02500/camera_hdi_service: SendFrameBuffer() buffCont_ 3
11-27 17:44:43.403 501-2384/? I C02500/camera_hdi_service: ConfigJpegQuality() OHOS_JPEG_QUALITY is = 2
11-27 17:44:43.403 501-2384/? I C02500/camera_hdi_service: Capture() ForkNode::Capture in->format_.streamId_ = 1
11-27 17:44:43.404 501-2385/? I C02500/camera_hdi_service: ProvideBuffers() sendframebuffer success bufferpool id = <private>
11-27 17:44:43.413 501-2385/? I C02500/camera_hdi_service: ProvideBuffers() provide buffers enter.
11-27 17:44:43.413 501-2385/? I C02500/camera_hdi_service: SendFrameBuffer() buffCont_ 2
11-27 17:44:43.414 501-2385/? I C02500/camera_hdi_service: ProvideBuffers() sendframebuffer success bufferpool id = <private>
11-27 17:44:43.414 501-2384/? I C02500/camera_hdi_service: DeliverBuffer() stream [id:1] enqueue buffer index:1
11-27 17:44:43.414 501-2384/? I C02500/camera_hdi_service: ConfigJpegQuality() OHOS_JPEG_QUALITY is = 2
11-27 17:44:43.414 501-2384/? I C02500/camera_hdi_service: Capture() ForkNode::Capture in->format_.streamId_ = 1
11-27 17:44:43.421 501-2384/? I C02500/camera_hdi_service: DeliverBuffer() stream [id:1] enqueue buffer index:2
11-27 17:44:43.421 501-2385/? I C02500/camera_hdi_service: ProvideBuffers() provide buffers enter.
11-27 17:44:43.421 501-2385/? I C02500/camera_hdi_service: SendFrameBuffer() buffCont_ 1
11-27 17:44:43.421 501-2384/? I C02500/camera_hdi_service: ConfigJpegQuality() OHOS_JPEG_QUALITY is = 2
11-27 17:44:43.421 501-2384/? I C02500/camera_hdi_service: Capture() ForkNode::Capture in->format_.streamId_ = 1
11-27 17:44:43.422 501-2385/? E C02500/camera_hdi_service: V4L2StreamOn() error: ioctl VIDIOC_STREAMON failed: No such device
11-27 17:44:43.422 501-2385/? E C02500/camera_hdi_service: StartStream() error: StartStream: V4L2StreamOn error
11-27 17:44:43.422 501-2385/? E C02500/camera_hdi_service: CollectBuffers() provide buffer failed.
[/md]
作者:
论坛小助手
时间:
2024-2-2 15:14
您这边复现方法与步骤是怎么样的,辛苦详细说一下复现条件
作者:
jiale
时间:
2024-2-2 15:41
可能是权限问题,执行dmesg看下有没有avc denied日志
作者:
jzp0409
时间:
2024-3-27 17:01
我遇到同样的问题,v4l2-ctrl工具是可以抓图的,但是上层不行,是在find device的时候 找不到设备。不知道 原因。
作者:
jzp0409
时间:
2024-4-3 15:10
这个问题我自己找了个workaround,v4l2都是有设备节点的,把物理ID对应的/dev/videox找出来,在opendevice的地方,给它判断一下,写死看看有没有效果。
欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/)
Powered by Discuz! X3.5