How to encode h.264 live stream to RTP packet with Java

可紊 提交于 2019-12-23 22:21:52

问题


I am developing an application for Android OS, and I need a real-time decode video stream from the camera, that encoded with h.264 codec, convert frame data to RTP packet and sent packet to server.

For a start, may try to implement on PC read video from the pre-recorded video file (mp4 with h.264) from HDD to simplify the development and debugging.

Is there a ready-made solution? Any ideas? Thanks!


回答1:


See Spydroid. It pipes the camera input into the H.264 encoder and turns the output into RTP packets:

http://code.google.com/p/spydroid-ipcamera/source/browse/src/net/majorkernelpanic/streaming/rtp/H264Packetizer.java



来源:https://stackoverflow.com/questions/12555788/how-to-encode-h-264-live-stream-to-rtp-packet-with-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!