cisco / openh264

Open Source H.264 Codec
BSD 2-Clause "Simplified" License
5.57k stars 1.8k forks source link

CAMERA_VIDEO_REAL_TIME vs SCREEN_CONTENT_REAL_TIME #3286

Open bobj1212 opened 4 years ago

bobj1212 commented 4 years ago

CAMERA_VIDEO_REAL_TIME vs SCREEN_CONTENT_REAL_TIME Can you please explain the difference between the two. I did noticed that CAMERA_VIDEO_REAL_TIME gives better image quality than SCREEN_CONTENT_REAL_TIME (under same settings) And also as result the stream bandwidth is almost twice as big using CAMERA_VIDEO_REAL_TIME. So if I want better image quality then i should use CAMERA_VIDEO_REAL_TIME and if i want less bandwidth i should use SCREEN_CONTENT_REAL_TIME? Or there are more expects to that? I will use it for stream copy of desktop screen to another location so i wonder which one to use or maybe just to have option for Best quality when using CAMERA_VIDEO_REAL_TIME and not best quality when using SCREEN_CONTENT_REAL_TIME for sharing the desktop screen.

Looking for your feedback and thank you :)

huili2 commented 4 years ago

As the name indicated, they two are used for different input contents, and some encoding tools/strategies are treated differently. So in this case, RD curve is not the only criteria for them. SCREEN_CONTENT_REAL_TIME is used better for screen captured data like doc sharing, PPT sharing, etc. CAMERA_VIDEO_REAL_TIME is more suitable for contents from camera data.

huili2 commented 1 year ago

Will close this one if no response.