[Live-devel] H.264 RTSP Streaming with QuickTime

Ganesh V ganesh_vijayan at yahoo.com
Wed May 6 08:58:56 PDT 2009


Dear Experts,

Currently, I am trying to achieve generic RTSP H.264 Streaming functionality based on Livemedia. Based on the available literature, I figured that my application needs to generate sprop-parameter-sets for SDP. From livemedia sources, I observed that in H264VideoRTPSink (constructor) fFmtpSDPLine which contains the requisite information is generated. The pseudo-code of my application is as shown below:

    strcpy(sprop_parameter_sets,base64Encode(sps, length_of_sps);
    len = strlen(sprop_parameter_sets);
    sprop_parameter_sets[len] = ',';
    strcpy(sprop_parameter_sets+len+1, base64Encode(pps, length_of_pps));

    H264VideoRTPSink::createNew(envir(), rtpGroupsock, rtpPayloadTypeIfDynamic, p_context->profile_level_id, (const char*) sprop_parameter_sets);

With these changes, I am able to stream data from my application. This RTSP stream is successfully decoded and displayed by VLC player, which works without any issues. When I try to play this stream with Quick Time, the session is setup and the player reports "Negotiating, Buffering .." and finally, shows that QT is playing the stream, wherein the time counter is increment. However, there is no video displayed on the QT screen. The window is also not resized to the actual size of the stream and remains at the default size of the window. When I check the movie info, I observe that width, height and frame rate information is missing.

I am able to get MPEG4 streaming working without any issues with QT, but facing this issue with H.264. Has anyone tried H.264 RTSP streaming with QT prior and was successfully able to display a H.264 stream? Am I doing some mistake in my logic in invoking H264VideoRTPSink or have I missed some other initialization?

Many thanks in advance for your help.
Ganesh



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20090506/36795535/attachment.html>


More information about the live-devel mailing list