On Thu, Sep 17, 2009 at 12:13 AM, 12091637 <12091...@qq.com> wrote: > Dear all, > I am working with live555 library for H.264 video file streaming via RTP. > When I creat "ByteStreamFileSource" instance to stream *.h264 video file, > how can I set > "PlayTimePerFrame" and "preferredFrameSize" value?How to get the > "preferredFrameSize" and > "playTimePerFrame" parameters base on existing *.h264 file? How to calculate > them from the information of *.h264 file. > If I set the two parameters to zero, my stream will be incompatible with > existing, standards-compliant clients (e.g., VLC,MPlayer). > Sometimes VLC will crash when play my stream( > rtsp://192.168.10.62/test.h264)
To get the preferredFrameSize value, you'll have to parse the h264 bytestream; read the H.264 standard to figure out how to do this (you'll likely need to read the standard to get your streaming working anyway). You cannot get "playTimePerFrame" from a ".h264" file because raw h264 byte streams contain no timing information (H.264 encoders themselves have no notion of time, only successive frames). _______________________________________________ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel