[Live-devel] doubt about H264VideoRTPSink
Ottavio Campana
ottavio at videotec.com
Mon May 18 02:53:43 PDT 2009
Hi,
I'm trying to stream an H264 file with livemedia, but I'm having a
problem with the framerate.
By using wireshark, I've seen that the stream is declare to have a clock
period of 0.9 ms, thus giving approx 11 fps.
The response to the describe command is
RTSP/1.0 200 OK
CSeq: 2
Date: Mon, May 18 2009 07:20:24 GMT
Content-Base: rtsp://192.168.0.1:8554/testStream/
Content-Type: application/sdp
Content-Length: 605
v=0
o=- 1242631222767144 1 IN IP4 192.168.0.1
s=Session streamed by "testMPEG4VideoStreamer"
i=/home/ottavio/Projects/JM/bin/test.264
t=0 0
a=tool:LIVE555 Streaming Media v2007.02.20
a=type:broadcast
a=control:*
a=source-filter: incl IN IP4 * 192.168.0.1
a=rtcp-unicast: reflection
a=range:npt=0-
a=x-qt-text-nam:Session streamed by "testMPEG4VideoStreamer"
a=x-qt-text-inf:/home/ottavio/Projects/JM/bin/test.264
m=video 18888 RTP/AVP 96
c=IN IP4 232.180.62.232/255
a=rtpmap:96 H264/90000
a=fmtp:96
packetization-mode=1;profile-level-id=000042;sprop-parameter-sets=h264
a=control:track1
so I think I have to change the line "a=rtpmap:96 H264/90000" into
something like "a=rtpmap:96 H264/40000" if I want to achieve 25 fps. But
the question is, how do I change it?
If I give a look at the source of H264VideoRTPSink, I find:
H264VideoRTPSink
::H264VideoRTPSink(UsageEnvironment& env, Groupsock* RTPgs,
unsigned char rtpPayloadFormat,
unsigned profile_level_id,
char const* sprop_parameter_sets_str)
: VideoRTPSink(env, RTPgs, rtpPayloadFormat, 90000, "H264"),
fOurFragmenter(NULL) {
so 90000 seems to be hard coded.
Am I missing something? Or how do I change it?
Thanks for your help,
Ottavio
More information about the live-devel
mailing list