[Live-devel] Change Request about rtp timestamping when doing PAUSE/PLAY
David Betrand
bidibulle at operamail.com
Tue Oct 24 03:14:27 PDT 2006
Ross,
> > I noted that live555 implementation for this consists of
> setting > in the rtp-info header a rtptime value corresponding to
> the last > RTP timestamp sent for this track
>
> I believe this is correct, because the RTP timestamp *does* increase
> appropriately after a PAUSE/PLAY (see below).
The problem here is not the timestamps present in the RTP packets,
they are correct. It is the "rtptime" value present in the PLAY
Response which is incorrect because it equals to the last rtp
timestamp sent BEFORE the Pause. (see usage of rtpSink()->currentTimestamp() in OnDemandServerMediaSubsession::startStream())
Following RFC2326bis, the
definition of "rtptime" is the following :
rtptime: SHALL indicate the RTP timestamp value corresponding to
the start time value in the Range response header, or if
not explicitly given the implied start point. The client
uses this value to calculate the mapping of RTP time to NPT
or other media timescale. This parameter SHOULD be present
to ensure inter-media synchronization is achieved. There
exist no requirement that any received RTP packet will have
the same RTP timestamp value as the one in the parameter
used to establish synchronization.
You cannot use an old value for this rtptime otherwise players will
think the packets they receive are in the future. That's exactly
what VLC think (see VLC output message in attachment, starting
from the time I resumed the stream).
In the example sent in my previous email (extracted from the RFC2326bis) you can see that this rtptime value is coherent with the start time value in the Range response header (20 seconds elapsed between the PAUSE and the PLAY, so the rtptime jumps from 2400 to 164400).
To summarize, I would say that -at least in this case- you cannot use fCurrentTimestamp as rtptime value.
David
--
_______________________________________________
Surf the Web in a faster, safer and easier way:
Download Opera 9 at http://www.opera.com
Powered by Outblaze
-------------- next part --------------
main debug: control type=1
main debug: control type=1
mpeg_audio debug: emulated startcode (no startcode on following frame)
main warning: computed PTS is out of range (7649957), clearing out
main warning: timing screwed, stopping resampling
main warning: PTS is out of range (7687639), dropping buffer
main warning: output PTS is out of range (7675728), clearing out
main warning: vout synchro warning: pts != current_date (-8861183)
main warning: late picture skipped (7769560)
main warning: backward_pts != current_pts (8827815)
main warning: input PTS is out of range (8376350), trashing
main warning: received buffer in the future (9314190)
main warning: received buffer in the future (9340122)
main warning: received buffer in the future (9364909)
main warning: received buffer in the future (9390993)
main warning: received buffer in the future (9416960)
main warning: received buffer in the future (9443055)
main warning: received buffer in the future (9469152)
main warning: received buffer in the future (9495248)
main warning: received buffer in the future (9521346)
main warning: received buffer in the future (9547443)
main warning: received buffer in the future (9573540)
main warning: vout synchro warning: pts != current_date (-17521672)
main warning: late picture skipped (21730324785)
main warning: computed PTS is out of range (17452792), clearing out
main debug: audio output is starving (411517), playing silence
main debug: decoded 104/107 pictures
main warning: received buffer in the future (5698582)
main warning: received buffer in the future (5724622)
main warning: received buffer in the future (5750023)
main warning: received buffer in the future (5776068)
main warning: received buffer in the future (5802091)
main warning: received buffer in the future (5828149)
main warning: received buffer in the future (5854213)
main warning: received buffer in the future (5880277)
main warning: received buffer in the future (5906342)
main warning: received buffer in the future (5932208)
main warning: received buffer in the future (5958270)
main warning: received buffer in the future (5984334)
main warning: received buffer in the future (6010398)
main warning: received buffer in the future (6029848)
main warning: received buffer in the future (6054098)
main warning: received buffer in the future (6080123)
main warning: received buffer in the future (6106185)
main warning: received buffer in the future (6132248)
main warning: received buffer in the future (6158311)
main warning: received buffer in the future (6184146)
main warning: received buffer in the future (6210209)
main warning: received buffer in the future (6236273)
main warning: received buffer in the future (6262336)
main warning: received buffer in the future (6288401)
main warning: received buffer in the future (6314465)
main warning: received buffer in the future (6340529)
main warning: received buffer in the future (6366593)
main warning: received buffer in the future (6392646)
main warning: received buffer in the future (6418699)
main warning: received buffer in the future (6444764)
main warning: received buffer in the future (6470828)
main warning: received buffer in the future (6496892)
main warning: received buffer in the future (6522956)
main warning: received buffer in the future (6549019)
main warning: received buffer in the future (6575085)
main warning: received buffer in the future (6601148)
main warning: received buffer in the future (6625459)
main warning: received buffer in the future (6651486)
main warning: received buffer in the future (6677548)
main warning: received buffer in the future (6703612)
main warning: received buffer in the future (6729675)
main warning: received buffer in the future (6755738)
main warning: received buffer in the future (6781802)
main warning: received buffer in the future (6807867)
main warning: received buffer in the future (6833931)
main warning: received buffer in the future (6859995)
main warning: received buffer in the future (6886059)
main warning: received buffer in the future (6912123)
main warning: received buffer in the future (6938186)
main warning: received buffer in the future (6964240)
main warning: received buffer in the future (6990302)
main warning: received buffer in the future (7016365)
main warning: received buffer in the future (7042429)
main warning: received buffer in the future (7068481)
main warning: received buffer in the future (7094543)
main warning: received buffer in the future (7120605)
main warning: received buffer in the future (7146667)
main warning: received buffer in the future (7172730)
main warning: received buffer in the future (7198791)
main warning: received buffer in the future (7224854)
main warning: received buffer in the future (7250918)
main warning: received buffer in the future (7276982)
main warning: received buffer in the future (7303045)
main warning: received buffer in the future (7329109)
main warning: received buffer in the future (7355171)
main warning: received buffer in the future (7381234)
main warning: received buffer in the future (7407274)
main warning: received buffer in the future (7433337)
main warning: received buffer in the future (7459400)
main warning: received buffer in the future (7485463)
main warning: received buffer in the future (7511528)
main warning: received buffer in the future (7537592)
main warning: received buffer in the future (7563655)
main warning: received buffer in the future (7589717)
main warning: received buffer in the future (7615780)
main warning: received buffer in the future (7641844)
main warning: received buffer in the future (7667907)
main warning: received buffer in the future (7693960)
main warning: received buffer in the future (7720023)
main warning: received buffer in the future (7746087)
main warning: received buffer in the future (7772151)
main warning: received buffer in the future (7798213)
main warning: received buffer in the future (7824268)
main warning: received buffer in the future (7850331)
main warning: received buffer in the future (7876395)
main warning: received buffer in the future (7902454)
main warning: received buffer in the future (7928517)
main warning: received buffer in the future (7954581)
main warning: received buffer in the future (7980644)
main warning: received buffer in the future (8006709)
main warning: received buffer in the future (8032773)
main warning: received buffer in the future (8058836)
main warning: received buffer in the future (8084899)
main warning: received buffer in the future (8110963)
main warning: received buffer in the future (8137026)
main warning: received buffer in the future (8163089)
main warning: received buffer in the future (8189152)
main warning: received buffer in the future (8215216)
main warning: received buffer in the future (8241280)
main warning: received buffer in the future (8267336)
main warning: received buffer in the future (8293399)
main warning: received buffer in the future (8319462)
main warning: received buffer in the future (8345526)
main warning: received buffer in the future (8371590)
main warning: received buffer in the future (8397643)
main warning: received buffer in the future (8423706)
main warning: received buffer in the future (8449349)
main warning: received buffer in the future (8475410)
main warning: received buffer in the future (8501472)
main warning: received buffer in the future (8527481)
main warning: received buffer in the future (8552163)
main warning: received buffer in the future (8578219)
main warning: received buffer in the future (8604281)
main warning: received buffer in the future (8630344)
main warning: received buffer in the future (8656407)
main warning: received buffer in the future (8682468)
main warning: received buffer in the future (8708530)
main warning: received buffer in the future (8734592)
main warning: received buffer in the future (8760583)
main warning: received buffer in the future (8786642)
main warning: received buffer in the future (8812704)
main warning: received buffer in the future (8838767)
main warning: received buffer in the future (8864830)
main warning: received buffer in the future (8890892)
main warning: received buffer in the future (8916954)
main warning: received buffer in the future (8943016)
main warning: received buffer in the future (8969078)
main warning: received buffer in the future (8995129)
main warning: received buffer in the future (9021190)
main warning: received buffer in the future (9047253)
main warning: received buffer in the future (9073315)
main warning: received buffer in the future (9099378)
main warning: received buffer in the future (9125441)
main warning: received buffer in the future (9151502)
main warning: received buffer in the future (9177532)
main warning: received buffer in the future (9203594)
main warning: received buffer in the future (9229656)
main warning: received buffer in the future (9255718)
main warning: received buffer in the future (9281780)
main warning: received buffer in the future (9307843)
main warning: received buffer in the future (9333906)
main warning: received buffer in the future (9359969)
main warning: received buffer in the future (9386031)
main warning: received buffer in the future (9412095)
main warning: received buffer in the future (9438224)
main warning: received buffer in the future (9464288)
main warning: received buffer in the future (9490351)
main warning: received buffer in the future (9516415)
main warning: received buffer in the future (9542478)
main warning: received buffer in the future (9568540)
main warning: received buffer in the future (9594596)
main warning: received buffer in the future (9620659)
main warning: received buffer in the future (9646722)
main warning: received buffer in the future (9672785)
main warning: received buffer in the future (9698846)
main warning: received buffer in the future (9724909)
main warning: received buffer in the future (9750971)
main warning: received buffer in the future (9777035)
main warning: received buffer in the future (9803097)
main warning: received buffer in the future (9829161)
main warning: received buffer in the future (9855213)
main warning: received buffer in the future (9881276)
main warning: received buffer in the future (9907338)
main warning: received buffer in the future (9933400)
main warning: received buffer in the future (9959464)
main warning: received buffer in the future (9985527)
main warning: received buffer in the future (10011590)
main warning: received buffer in the future (10037100)
main warning: received buffer in the future (9904055)
main warning: received buffer in the future (9929171)
main warning: received buffer in the future (9955100)
main warning: received buffer in the future (9980750)
main warning: received buffer in the future (10006682)
main warning: received buffer in the future (10032587)
main warning: received buffer in the future (10058492)
main warning: received buffer in the future (10082037)
main warning: late picture skipped (80250)
main warning: late picture skipped (102009)
main warning: received buffer in the future (9987616)
main warning: received buffer in the future (10013461)
main warning: late picture skipped (129015)
main warning: received buffer in the future (9977979)
main warning: received buffer in the future (10003946)
main warning: received buffer in the future (9981495)
main warning: received buffer in the future (10007392)
main warning: received buffer in the future (10033435)
main warning: received buffer in the future (10059372)
main warning: late picture skipped (89028)
main warning: late picture skipped (106854)
main warning: late picture skipped (40439)
main warning: received buffer in the future (10024508)
main warning: received buffer in the future (10050580)
main warning: received buffer in the future (10076632)
main warning: received buffer in the future (10003995)
main warning: received buffer in the future (10029257)
main warning: received buffer in the future (10055121)
main warning: received buffer in the future (10081162)
main warning: received buffer in the future (10008388)
main warning: received buffer in the future (10034405)
main warning: received buffer in the future (10060431)
main warning: received buffer in the future (9987438)
main warning: received buffer in the future (10013442)
main warning: received buffer in the future (10039489)
main warning: received buffer in the future (10065537)
main warning: received buffer in the future (9991047)
main warning: received buffer in the future (9913771)
main warning: received buffer in the future (9939783)
main warning: received buffer in the future (9965650)
main warning: received buffer in the future (9991590)
main warning: received buffer in the future (10017496)
main warning: received buffer in the future (10043439)
main warning: received buffer in the future (9973746)
main warning: received buffer in the future (9999232)
main warning: received buffer in the future (10024899)
main warning: received buffer in the future (10050826)
main warning: received buffer in the future (9972550)
main warning: received buffer in the future (9998434)
main warning: received buffer in the future (10023982)
main warning: received buffer in the future (10049918)
main warning: received buffer in the future (10075821)
main warning: received buffer in the future (10007533)
main warning: received buffer in the future (10032254)
main warning: received buffer in the future (10058145)
main warning: received buffer in the future (9987830)
main warning: received buffer in the future (10013870)
main warning: received buffer in the future (10039815)
main warning: received buffer in the future (10065685)
main warning: received buffer in the future (9992422)
main warning: received buffer in the future (10018242)
main warning: received buffer in the future (10044177)
main warning: received buffer in the future (10004580)
main warning: received buffer in the future (10030335)
main warning: received buffer in the future (10056233)
main warning: received buffer in the future (10047986)
main warning: received buffer in the future (10073786)
main warning: received buffer in the future (10001616)
main warning: received buffer in the future (10027523)
main warning: received buffer in the future (10053421)
main warning: received buffer in the future (9979757)
main warning: received buffer in the future (10005639)
main warning: received buffer in the future (10031536)
main warning: received buffer in the future (10057479)
main warning: received buffer in the future (9984974)
main warning: received buffer in the future (10010551)
main warning: received buffer in the future (10036448)
main warning: received buffer in the future (10062380)
main warning: received buffer in the future (9988806)
main warning: received buffer in the future (10014633)
main warning: received buffer in the future (10040566)
main warning: received buffer in the future (9959278)
main warning: received buffer in the future (9985129)
main warning: received buffer in the future (10011027)
main warning: received buffer in the future (9945024)
main warning: received buffer in the future (9971011)
main warning: received buffer in the future (9997056)
main warning: received buffer in the future (10023104)
main warning: received buffer in the future (10049150)
main warning: received buffer in the future (10075199)
main warning: received buffer in the future (10000444)
main warning: received buffer in the future (10026518)
main warning: received buffer in the future (10052602)
main warning: received buffer in the future (9980708)
main warning: received buffer in the future (10001920)
main warning: received buffer in the future (10027878)
main warning: received buffer in the future (9958761)
main warning: received buffer in the future (9977455)
main warning: received buffer in the future (10003391)
main warning: received buffer in the future (9936803)
main warning: received buffer in the future (9955488)
main warning: received buffer in the future (9981457)
main warning: received buffer in the future (9915823)
main debug: control type=0
main debug: control: stopping input
main debug: closing input
main debug: removing module "livedotcom"
main debug: removing module "libmpeg2"
main debug: thread times: real 0m36.112287s, kernel 0m0.030043s, user 0m0.680979s
main debug: thread 3952 joined (input/decoder.c:191)
main debug: killing decoder fourcc `mpgv', 29 PES in FIFO
main debug: removing module "mpeg_audio"
main debug: thread times: real 0m36.102272s, kernel 0m0.010014s, user 0m0.971396s
main debug: thread 4036 joined (input/decoder.c:191)
main debug: killing decoder fourcc `mpga', 0 PES in FIFO
main debug: removing module "mpgatofixed32"
main debug: removing module "bandlimited_resampler"
aout_directx debug: closing audio device
aout_directx debug: DirectSoundThread exiting
main debug: thread times: real 0m36.042185s, kernel 0m0.000000s, user 0m0.000000s
main debug: thread 4668 joined (directx.c:598)
main debug: removing module "aout_directx"
main debug: removing module "float32tos16"
main debug: removing module "trivial_mixer"
main debug: thread times: real 0m36.322591s, kernel 0m0.060086s, user 0m0.140201s
main debug: thread 4108 joined (input/input.c:399)
main warning: refcount is 1, delaying before deletion (id=396,type=-7)
main debug: garbage collector destroys 1 vout
vout_directx debug: DirectXCloseSurface
vout_directx debug: DirectXCloseDisplay
vout_directx debug: DirectXCloseDisplay clipper
vout_directx debug: DirectXCloseDisplay display
vout_directx debug: DirectXCloseDDraw
vout_directx debug: CloseVideo
vout_directx debug: DirectXEventThread terminating
vout_directx debug: DirectXCloseWindow
vout_directx debug: WinProc WM_DESTROY
main debug: thread times: real 0m36.412722s, kernel 0m0.010014s, user 0m0.010014s
main debug: thread 4372 joined (directx.c:494)
main debug: removing module "vout_directx"
main debug: thread times: real 0m36.322591s, kernel 0m0.050072s, user 0m0.420604s
main debug: thread 4632 joined (video_output/video_output.c:461)
More information about the live-devel
mailing list