UDP视频聊天程序
嘿,我正在考虑制作一个 UDP 视频聊天程序,我想知道它是否应该传输关键帧和帧间或仅传输整个帧?我正在考虑让网络摄像头以较小的时间间隔拍照并将它们作为 UDP 数据包发送到另一个客户端,但这似乎会占用太多带宽。有没有办法大幅减小图片的尺寸和分辨率?
Hey I'm thinking of making a UDP videochat program, and I was wondering whether it should transmit keyframes and interframes or just whole frames? I'm thinking of just having the webcam take pictures at small time intervals and sending them as UDP packets to the other client but that seems like it would take too much bandwidth. Is there a way to cut down the size and resolution of a pictures dramatically?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 GIF 或 JPG 等压缩图像格式并调整来自网络的图像大小 320x240 会显着减小尺寸和分辨率。此外,UDP 数据包需要满足一定的大小要求才能通过互联网(与 LAN 相对)路由。
Using a compressed image format like GIF or JPG and resizing the images from the web came to say 320x240 would significantly reduce size and resolution. Also, UDP packets need to meet certain size requirements to be routed over the internet (as apposed to a LAN).