Objective-C 라이브러리를 사용하여 iPhone에서 RTSP H.264 스트림에 어떻게 연결할 수 있습니까?

StackOverflow https://stackoverflow.com/questions/5045654

문제

iPhone에 대한 공식적인 스트리밍 프로토콜은 http streaming .이것은 훌륭하지만 많은 어플라이언스는 비디오를 스트리밍하기 위해 RTSP 프로토콜을 구현합니다.나는 객관적인 C에서 RTSP 라이브러리를 찾고있는 시간을 보았고 발견하지 못했습니다.누구든지 그런 lixaries를 알고 있습니까?

그렇지 않은 경우,이를 위해이를 얻으려고 한 사람들로부터 일부 데모 / 코드 예제를 알고 있습니다.Apple은 하드웨어에서 H264를 지원하기 때문에 저급 수준을 얻고 스트림을 구현 한 다음 비디오 패킷을 구성하고 HTTP 스트리밍을 사용하여 스트리밍 한 것처럼 전달할 수 있다고 가정합니다.이것이 수행 될 수있는 방법에 대한 조언을 누구나 이해하겠습니다.

도움이 되었습니까?

해결책

Check out live555. This will handle all the RTSP handshaking and deliver data (in your case, h264) to you application for further processing/decoding. It is a C/C++ library, and hence can run on iOS.

Your options for integration with a cocoa app are:

1) Run live555 on its own thread using the event loop mechanism given as part of the library (note then that all operations directly related to live555 need to be run on this thread as live555 itself is not designed to be thread-safe).

2) Provide a cocoa implementation of "TaskScheduler", in which you use the cocoa library for async network callbacks, timers etc.

The above points will make more sense to you after reviewing the live555 doco.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top