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

Bug: Timestamp overlay flickers #12

Open
bitmux opened this issue Sep 15, 2022 · 1 comment
Open

Bug: Timestamp overlay flickers #12

bitmux opened this issue Sep 15, 2022 · 1 comment

Comments

@bitmux
Copy link

bitmux commented Sep 15, 2022

Expected behavior: Timestamp displays each frame without flickering/scan issues.
Current behavior: Timestamp shows on some frames, partially on others, and is missing on some frames. Seems to occur at different frame-rates (though presents slightly differently) and is unaffected by resolution.

Device: Wyze V2 camera running openmiko flashed from SD card with overlayed configuration files
Environment: indoors, all lighting conditions

My videocapture_settings.json:
`{
"comment": "1 encoder (1920x1080 H264)",
"general_settings": {
"flip_vertical": 0,
"flip_horizontal": 0,
"show_timestamp": 1,
"enable_audio": 0
},
"frame_sources": [{
"id": 0,
"pic_width": 1280,
"pic_height": 720,
"group": 0,
"pixel_format": "PIX_FMT_NV12",
"buffer_size": 4,
"channel_type": "FS_PHY_CHANNEL",
"crop_enable": 0,
"crop_top": 0,
"crop_left": 0,
"crop_width": 0,
"crop_height": 0,
"scaling_enable": 1,
"scaling_width": 1280,
"scaling_height": 720,
"frame_rate_numerator": 25,
"frame_rate_denominator": 1
}],
"encoders": [{
"channel": 0,
"group": 0,
"v4l2_device_path": "/dev/video3",
"payload_type": "PT_H264",
"buffer_size": 0,
"profile": 0,
"mode": "ENC_RC_MODE_H264VBR",
"frame_rate_numerator": 25,
"frame_rate_denominator": 1,
"max_group_of_pictures": 5,
"max_qp": 29,
"min_qp": 23,
"frame_qp_step": 1,
"gop_qp_step": 0,
"pic_width": 1280,
"pic_height": 720,

"h264vbr_settings": {
  "statistics_interval": 1,
  "max_bitrate": 512,
  "change_pos": 0
},
"h264cbr_settings": {
  "bitrate": 512,
  "max_fps": 10,
  "min_fps": 2,
  "ibiaslvl": 2,
  "adaptive_mode": 0,
  "gop_relation": 0
}

}],
"bindings": [
{
"note": "Bind framesource 0,0 to OSD 0,0 ",
"source": {
"device": "DEV_ID_FS",
"group": 0,
"output": 0
},
"target": {
"device": "DEV_ID_OSD",
"group": 0,
"output": 0
}
},
{
"note": "Bind OSD 0,0 to encoder 0,0",
"source": {
"device": "DEV_ID_FS",
"group": 0,
"output": 0
},
"target": {
"device": "DEV_ID_ENC",
"group": 0,
"output": 0
}
}
]
}
`

@HaLo2FrEeEk
Copy link

I've noticed this as well with an overlayed videocapture_settings file much like your own. I don't want to waste resources serving the RTSP stream as I have no plans to use anything but the MJPEG stream, but it seems that it does indeed cause the overlay to flicker...and quite annoyingly at that. I'm watching this issue to see if anyone comes up with a solution, unfortunately nothing I tried made a difference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants