<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size:
15px; clear: both; color: rgb(34, 36, 38); font-family: Arial,
'Helvetica Neue', Helvetica, sans-serif; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 19.5px; orphans: auto; text-align: left; text-indent:
0px; text-transform: none; white-space: normal; widows: 1;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</p>
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size:
15px; clear: both; color: rgb(34, 36, 38); font-family: Arial,
'Helvetica Neue', Helvetica, sans-serif; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 19.5px; orphans: auto; text-align: left; text-indent:
0px; text-transform: none; white-space: normal; widows: 1;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);"><span style="margin: 0px;
padding: 0px; border: 0px none; font-size: 15px;">Hi all,</span><strong
style="margin: 0px; padding: 0px; border: 0px; font-size: 15px;
font-weight: bold;"><br>
</strong></p>
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size:
15px; clear: both; color: rgb(34, 36, 38); font-family: Arial,
'Helvetica Neue', Helvetica, sans-serif; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 19.5px; orphans: auto; text-align: left; text-indent:
0px; text-transform: none; white-space: normal; widows: 1;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);"><strong style="margin: 0px;
padding: 0px; border: 0px; font-size: 15px; font-weight: bold;">Problem:</strong></p>
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size:
15px; clear: both; color: rgb(34, 36, 38); font-family: Arial,
'Helvetica Neue', Helvetica, sans-serif; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 19.5px; orphans: auto; text-align: left; text-indent:
0px; text-transform: none; white-space: normal; widows: 1;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);">In my case, bit stream
coming from h264 encoder which is feed by live camera. Bitstream
is sending by live555 library using RTSP protocol. RTSP packets
are received by one of rtsp client like vlc player( the most
important), totem player, mplayer. I need to know how to set lower
framerate because my camera produces 9 fps but most of RTSP
clients are expecting in default 25 fps and it cause that video
stream is not played properly ( buffered, dropping late packets
etc.).</p>
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size:
15px; clear: both; color: rgb(34, 36, 38); font-family: Arial,
'Helvetica Neue', Helvetica, sans-serif; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 19.5px; orphans: auto; text-align: left; text-indent:
0px; text-transform: none; white-space: normal; widows: 1;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);"><br>
I am using testOnDemandRTSPServer example code from live555. I
have wrote my implementation of DeviceSource class. I have set
presentation time properly:</p>
<pre style="margin: 0px 0px 1em; padding: 5px; border: 0px; font-size: 13px; width: auto; max-height: 600px; overflow: auto; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; word-wrap: normal; color: rgb(34, 36, 38); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(238, 238, 238);"><code style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit; background-color: rgb(238, 238, 238);">gettimeofday(&fPresentationTime, NULL);
fDurationInMicroseconds = 1100000;
</code></pre>
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size:
15px; clear: both; color: rgb(34, 36, 38); font-family: Arial,
'Helvetica Neue', Helvetica, sans-serif; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 19.5px; orphans: auto; text-align: left; text-indent:
0px; text-transform: none; white-space: normal; widows: 1;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);">Sequence Parameter Set NAL
also contains proper timing infos:</p>
<pre style="margin: 0px 0px 1em; padding: 5px; border: 0px; font-size: 13px; width: auto; max-height: 600px; overflow: auto; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; word-wrap: normal; color: rgb(34, 36, 38); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(238, 238, 238);"><code style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit; background-color: rgb(238, 238, 238);">timing_info_present_flag : 1
num_units_in_tick : 1001
time_scale : 9000
fixed_frame_rate_flag : 1</code></pre>
<br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size:
15px; clear: both; color: rgb(34, 36, 38); font-family: Arial,
'Helvetica Neue', Helvetica, sans-serif; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 19.5px; orphans: auto; text-align: left; text-indent:
0px; text-transform: none; white-space: normal; widows: 1;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);">According to
<a class="moz-txt-link-freetext" href="http://lists.live555.com/pipermail/live-devel/2010-August/012504.html">http://lists.live555.com/pipermail/live-devel/2010-August/012504.html</a><br>
I have added to RTSP Header framerate param:</p>
<pre style="margin: 0px 0px 1em; padding: 5px; border: 0px; font-size: 13px; width: auto; max-height: 600px; overflow: auto; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; word-wrap: normal; color: rgb(34, 36, 38); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(238, 238, 238);"><code style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit; background-color: rgb(238, 238, 238);">a=framerate:9.0</code></pre>
<br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<span style="color: rgb(34, 36, 38); font-family: Arial, 'Helvetica
Neue', Helvetica, sans-serif; font-size: 15px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 19.5px; orphans: auto; text-align: left; text-indent:
0px; text-transform: none; white-space: normal; widows: 1;
word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline
!important; float: none; background-color: rgb(255, 255, 255);">Unfortunately
it doesn't help. I have thought that video player will be calmly
waiting for new frame and framerate will be correlated with
frequency of receiving another RTP packets (another NALs).</span><br>
<br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size:
15px; clear: both; color: rgb(34, 36, 38); font-family: Arial,
'Helvetica Neue', Helvetica, sans-serif; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 19.5px; orphans: auto; text-align: left; text-indent:
0px; text-transform: none; white-space: normal; widows: 1;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);"><strong style="margin: 0px;
padding: 0px; border: 0px; font-size: 15px; font-weight: bold;">Question:</strong></p>
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size:
15px; clear: both; color: rgb(34, 36, 38); font-family: Arial,
'Helvetica Neue', Helvetica, sans-serif; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 19.5px; orphans: auto; text-align: left; text-indent:
0px; text-transform: none; white-space: normal; widows: 1;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);">I would like to know how
frame rate is read from bit stream (or evaluated) by RTSP client
(playback software). Where this informations are stored and how
are sending to playback software?</p>
<br>
<b>More infos:</b><br>
<a class="moz-txt-link-freetext" href="http://stackoverflow.com/questions/36332455/how-frame-rate-is-calculated-or-read-from-h264-bitstream-sending-through-rtsp-pr">http://stackoverflow.com/questions/36332455/how-frame-rate-is-calculated-or-read-from-h264-bitstream-sending-through-rtsp-pr</a><br>
<br>
Best regards<br>
<pre class="moz-signature" cols="72">--
Paweł Domagalski
Software Engineer
Mobica Ltd.
<a class="moz-txt-link-abbreviated" href="http://www.mobica.com">www.mobica.com</a>
Mobica is a provider of innovative, cutting-edge software engineering, testing and consultancy services. Based in the UK, Poland, the USA and Mexico, Mobica has a worldwide customer base and a proven track record in delivering complex solutions to global leaders in a range of sectors including automotive, mobile, semiconductor, finance, TV & broadcasting, telecommunications, connected devices, marine and aviation.
Mobica Limited is a limited company registered in England and Wales with registered number 05169596 and VAT registered number 845117630. Our registered office is at Crown House, Manchester Road, Wilmslow, Cheshire, SK9 1BH, UK.
This message is intended solely for the addressee(s) and may contain confidential information. If you have received this message in error, please send it back to us, and immediately and permanently delete it. Do not use, copy or disclose the information contained in this message or in any attachment.</pre>
<br>
</body>
</html>