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

the video stream became frozen #86

Open
Sukeysun opened this issue Nov 7, 2024 · 2 comments
Open

the video stream became frozen #86

Sukeysun opened this issue Nov 7, 2024 · 2 comments

Comments

@Sukeysun
Copy link

Sukeysun commented Nov 7, 2024

After running the program for an extended period, the video stream became frozen and unresponsive.
got log as below:

[11/07 16:00:23.202062][warning][1233299][Pipeline.cpp:326] Wait for frame timeout, you can try to increase the wait time! current timeout=100 [35 logs in 6050ms]
[11/07 16:00:25.215383][warning][1233405][Pipeline.cpp:290] Pipeline source frameset queue fulled, drop the oldest frame!
[11/07 16:00:28.217853][warning][1233405][Pipeline.cpp:290] Pipeline source frameset queue fulled, drop the oldest frame! [18 logs in 3002ms]
[11/07 16:00:34.384987][warning][1233450][Pipeline.cpp:290] Pipeline source frameset queue fulled, drop the oldest frame! [35 logs in 6167ms, last: 16:00:34.057499]
[11/07 16:00:35.323902][warning][1233444][Pipeline.cpp:326] Wait for frame timeout, you can try to increase the wait time! current timeout=100 [1 logs in 12121ms, last: 16:00:23.323599]
[11/07 16:00:46.385420][warning][1233499][Pipeline.cpp:290] Pipeline source frameset queue fulled, drop the oldest frame! [73 logs in 12000ms, last: 16:00:46.235603]

@nivesh48
Copy link

nivesh48 commented Nov 8, 2024

@Sukeysun may be you can try modifying memory buffer and queue size in OrbbecSDKConfig_v1.0.xml?

@Sukeysun
Copy link
Author

Sukeysun commented Nov 11, 2024

@nivesh48
Thank you for your reply
I have made adjustments to the queue size in the OrbbecSDKConfig_v1.0.xml, but it appears that the changes have not taken effect. Below is the code I am working with:

    from pyorbbecsdk import *
    config_path = "./OrbbecSDKConfig_v1.0.xml"
    context = Context(config_path)
    config = Config()
    config.set_align_mode(OBAlignMode.SW_MODE)
    video_writer=None
    context.set_logger_level(OBLogLevel.ERROR)
    profile_list = pipeline.get_stream_profile_list(OBSensorType.COLOR_SENSOR)
    color_profile: VideoStreamProfile = profile_list.get_video_stream_profile(640, 0, OBFormat.MJPG, 6)
    config.enable_stream(color_profile)
    profile_depth_list = pipeline.get_stream_profile_list(OBSensorType.DEPTH_SENSOR)
    depth_profile: VideoStreamProfile = profile_depth_list.get_video_stream_profile(640, 0, OBFormat.Y16, 6)
    config.enable_stream(depth_profile)
    pipeline.enable_frame_sync()
    pipeline.start(config)

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