Live Streaming Topic

前端 未结 4 930
青春惊慌失措
青春惊慌失措 2020-12-28 19:03

This could be quite an intresting topic for people who are intrested in livestreaming from your device to a webserver. (P

4条回答
  •  滥情空心
    2020-12-28 19:38

    You are sending a whole snapshot each time? Why don't you try to use some video compressing techniques, like instead of sending a full image each time you send a compressed version (maybe a diff or something like that) and them on the server you create the image based on your last image and the data just received. I think all video codecs do this, you could try looking at some of the open codecs specification to get some ideas.

    About audio. I would send the audio stream separated and them sync it with the video streaming based on which video frame we are showing right now.

    Basically, I would try to get my streaming as close as possible to how a real video streaming works. Maybe you could look into ffmpeg, ffmpeg has an rtsp server if you could build that for android them you would simplify your work a lot.

提交回复
热议问题