Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controls don't work for LegacyRpiCam #96

Open
joaoantoniocardoso opened this issue Jul 26, 2022 · 3 comments · Fixed by #104
Open

Controls don't work for LegacyRpiCam #96

joaoantoniocardoso opened this issue Jul 26, 2022 · 3 comments · Fixed by #104
Assignees
Labels
bug Something isn't working

Comments

@joaoantoniocardoso
Copy link
Collaborator

v4l2 controls don't take effect on rpicamsrc streams.

@joaoantoniocardoso joaoantoniocardoso added the bug Something isn't working label Jul 26, 2022
@joaoantoniocardoso joaoantoniocardoso self-assigned this Jul 26, 2022
@joaoantoniocardoso joaoantoniocardoso changed the title Controls doesn't work for LegacyRpiCam Controls don't work for LegacyRpiCam Jul 26, 2022
@joaoantoniocardoso
Copy link
Collaborator Author

Some of the Legacy Raspberry Pi camera controls are not supported yet:

ERROR 14:36:39.406 src/video/video_source_local.rs:380: Failed to get control 'Horizontal Flip (9963796)' from device /dev/video0: Custom {                                                 [10/9515]
    kind: Other,                                                                                                                                                                                     
    error: "Control type is not supported: Boolean(\n    false,\n)",                                                                                                                                 
}                                                                                                                                                                                                    
ERROR 14:36:39.406 src/video/video_source_local.rs:380: Failed to get control 'Vertical Flip (9963797)' from device /dev/video0: Custom {                                                            
    kind: Other,                                                                                                                                                                                     
    error: "Control type is not supported: Boolean(\n    false,\n)",                                                                                                                                 
}                                                                                                                                                                                                    
ERROR 14:36:39.407 src/video/video_source_local.rs:380: Failed to get control 'Power Line Frequency (9963800)' from device /dev/video0: Custom {                                                     
    kind: Other,                                                                                                                                                                                     
    error: "cannot handle control type",                                                                                                                                                             
}
ERROR 14:36:39.407 src/video/video_source_local.rs:380: Failed to get control 'Color Effects (9963807)' from device /dev/video0: Custom {
    kind: Other,
    error: "cannot handle control type",
}
ERROR 14:36:39.407 src/video/video_source_local.rs:380: Failed to get control 'Video Bitrate Mode (10029518)' from device /dev/video0: Custom {
    kind: Other,
    error: "cannot handle control type",
}
ERROR 14:36:39.407 src/video/video_source_local.rs:380: Failed to get control 'Repeat Sequence Header (10029538)' from device /dev/video0: Custom {
    kind: Other,
    error: "Control type is not supported: Boolean(\n    false,\n)",
}
ERROR 14:36:39.408 src/video/video_source_local.rs:380: Failed to get control 'Force Key Frame (10029541)' from device /dev/video0: Os {
    code: 13,
    kind: PermissionDenied,
    message: "Permission denied",
}
ERROR 14:36:39.408 src/video/video_source_local.rs:380: Failed to get control 'H264 Level (10029671)' from device /dev/video0: Custom {
    kind: Other,
    error: "cannot handle control type",
}
ERROR 14:36:39.408 src/video/video_source_local.rs:380: Failed to get control 'H264 Profile (10029675)' from device /dev/video0: Custom {
    kind: Other,
    error: "cannot handle control type",
}
ERROR 14:36:39.408 src/video/video_source_local.rs:380: Failed to get control 'Auto Exposure (10094849)' from device /dev/video0: Custom {
    kind: Other,
    error: "cannot handle control type",
}
ERROR 14:36:39.409 src/video/video_source_local.rs:380: Failed to get control 'Exposure, Dynamic Framerate (10094851)' from device /dev/video0: Custom {
    kind: Other,
    error: "Control type is not supported: Boolean(\n    false,\n)",
}
ERROR 14:36:39.409 src/video/video_source_local.rs:380: Failed to get control 'Auto Exposure, Bias (10094867)' from device /dev/video0: Custom {
    kind: Other,
    error: "cannot handle control type",
}
ERROR 14:36:39.409 src/video/video_source_local.rs:380: Failed to get control 'White Balance, Auto & Preset (10094868)' from device /dev/video0: Custom {
    kind: Other,
    error: "cannot handle control type",
}
ERROR 14:36:39.409 src/video/video_source_local.rs:380: Failed to get control 'Image Stabilization (10094870)' from device /dev/video0: Custom {
    kind: Other,
    error: "Control type is not supported: Boolean(\n    false,\n)",
}
ERROR 14:36:39.409 src/video/video_source_local.rs:380: Failed to get control 'ISO Sensitivity (10094871)' from device /dev/video0: Custom {
    kind: Other,
    error: "cannot handle control type",
}
ERROR 14:36:39.410 src/video/video_source_local.rs:380: Failed to get control 'ISO Sensitivity, Auto (10094872)' from device /dev/video0: Custom {
    kind: Other,
    error: "cannot handle control type",
}
ERROR 14:36:39.410 src/video/video_source_local.rs:380: Failed to get control 'Exposure, Metering Mode (10094873)' from device /dev/video0: Custom {                                                 
    kind: Other,                                                                                                                                                                                     
    error: "cannot handle control type",                                                                                                                                                             
}                                                                                                                                                                                                    
ERROR 14:36:39.410 src/video/video_source_local.rs:380: Failed to get control 'Scene Mode (10094874)' from device /dev/video0: Custom {                                                              
    kind: Other,                                                                                                                                                                                     
    error: "cannot handle control type",                                                                                                                                                             
}

@patrickelectric
Copy link
Member

@joaoantoniocardoso some or all ?

@joaoantoniocardoso
Copy link
Collaborator Author

joaoantoniocardoso commented Aug 3, 2022

@joaoantoniocardoso some or all ?

Some, and almost certaintly it is a bug caused by #102. I'll confirm it, but we might revert that for now.

edit: Yeah, reverting that commit fixes some of the errors shown above, but either way there are controls that are not supported yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants