Re: [Live-devel] about elapsed time of mpg file

2013-01-13 Thread Ross Finlayson
> Below is the response of play method,I can't find the *Range* infomation.Is > it possible to send the Range to the client? Yes. If you reimplement the virtual function float duration() const in your "ServerMediaSubsession" subclass to return the stream's duration, in seconds, then thi

[Live-devel] about elapsed time of mpg file

2013-01-13 Thread kingaceck
Hi I say the elapsed time of mpg file is ok in the previous mail.But now I find that if click pause button and then click play button during the first 5 seconds of playing mpg video, the elapsed time ialso becomes 00:00.But if after playing 20 seconds of mpg video ,to pause and then play the v

[Live-devel] the time that had played is error

2013-01-13 Thread kingaceck
Hi I have extended live555 media server to support mp4 file.when playing using vlc,I click the pause button and then click play button.The time that had played at vlc panel becomes 00:00. I played the mpg file to test this issue and the time that had played at vlc panel is ok. Why the issue onl

Re: [Live-devel] negative presentation time in "afterGettingFrame" sink callback

2013-01-13 Thread Ross Finlayson
> I just got puzzled by seeing the output of the following lines of code that I > copied and pasted: > > sprintf(uSecsStr, "%06u", (unsigned)presentationTime.tv_usec); > envir() << ".\tPresentation time: " << (unsigned)presentationTime.tv_sec << > "." << uSecsStr; Yes, the "(unsigned)" cast in

Re: [Live-devel] negative presentation time in "afterGettingFrame" sink callback

2013-01-13 Thread Markus Schumann
Thanks for the response! I am using live555 as RTSP/RTP client with a custom H.264 and audio sink connecting to a commercial of the shelve IP camera. My earlier statement was wrong the timestamps are increasing. The absolute value of the negative timestamp is going down (see below). Life is good

Re: [Live-devel] negative presentation time in "afterGettingFrame" sink callback

2013-01-13 Thread Ross Finlayson
You haven't said specifically how you are using our software. Are you using it as a RTSP/RTP client? If so, then what is *transmitting* the RTP (& RTCP) packets? (Does the transmitter also use our software?) The "tv_sec" value in a presentation time (a "struct timeval") is supposed to be tre

[Live-devel] negative presentation time in "afterGettingFrame" sink callback

2013-01-13 Thread Markus Schumann
All, I am getting a negative value for presentationTime.tv_sec in MySink::afterGettingFrame. I absolute value increases (when ignoring the sign) In the live555's custom sink sample code the timestamps (of type timeval) are getting casually casted to an unsigned. Is it save to ignore the sign