Re: [Live-devel] How to get the time_scale value from H264/RTSP stream

2017-09-28 Thread Ross Finlayson
> On Sep 28, 2017, at 10:10 PM, Sergio Andrés Basurco Mancisidor > wrote: > > What I observe is that the NAL units used for a single decoded frame have > different presentation times. If multiple (‘slice’) NAL units make up a single frame (picture), then the presentation times are supposed t

Re: [Live-devel] How to get the time_scale value from H264/RTSP stream

2017-09-28 Thread Sergio Andrés Basurco Mancisidor
PS: This happens when there are B-frames in the h264 stream El vie., 29 sept. 2017 a las 7:10, Sergio Andrés Basurco Mancisidor (< sergi...@coherentsynchro.com>) escribió: > What I observe is that the NAL units used for a single decoded frame have > different presentation times. In that case I do

Re: [Live-devel] How to get the time_scale value from H264/RTSP stream

2017-09-28 Thread Sergio Andrés Basurco Mancisidor
What I observe is that the NAL units used for a single decoded frame have different presentation times. In that case I don't know which time to use for the given frame. El vie., 29 sept. 2017 a las 0:19, Ross Finlayson () escribió: > > Indeed I am using Live555 as the RTSP client side, and I'm ab

Re: [Live-devel] How to get the time_scale value from H264/RTSP stream

2017-09-28 Thread Ross Finlayson
> Indeed I am using Live555 as the RTSP client side, and I'm able to connect > and receive the NAL units and the sps-pps information from the camera. > > Maybe you're right and my issue is completely on the decoding side, as I'm > failing to find the timestamp values that will allow me to playb

Re: [Live-devel] How to get the time_scale value from H264/RTSP stream

2017-09-28 Thread Sergio Andrés Basurco Mancisidor
Hi Ross, Thanks for your reply. Indeed I am using Live555 as the RTSP client side, and I'm able to connect and receive the NAL units and the sps-pps information from the camera. Maybe you're right and my issue is completely on the decoding side, as I'm failing to find the timestamp values that wil

Re: [Live-devel] How to get the time_scale value from H264/RTSP stream

2017-09-28 Thread Ross Finlayson
> My goal is to play an H264 stream that comes from a camera. I am decoding > using libav. Unfortunately your question wasn’t particularly clear. Could you clarify exactly how you are using the “LIVE555 Streaming Media” software? Are you developing a RTSP client application (e.g., similar to

Re: [Live-devel] How to get the time_scale value from H264/RTSP stream

2017-09-28 Thread Sergio Basurco
So, I found that as I'm using RTP, a clock rate of 9Hz must be used. In some cases cameras specify a different clock rate... but if none is specified I should be using that one. My problem now, is that I do get timestamps for the NAL units, but I don't know the timestamp of my decoded fr

[Live-devel] How to get the time_scale value from H264/RTSP stream

2017-09-28 Thread Sergio Basurco
Hi, My goal is to play an H264 stream that comes from a camera. I am decoding using libav. According to H264 standard, it is not necessary to specify the time_scale info in the SDP/SPS. Everything is working fine, however I need to synchronize playback to prevent stutters. I am parsing the n