How to get H264 SPS & PPS data? #133
-
|
Image processing is not my thing. I'm just trying to change some code to use this library and, to decode the frame using ffmpeg, apparently, I need SPS and PPS segments. What am I missing here? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi, If you are using the RtspClientExample you will see at line 332 in Program.cs an exemple to get the SPS and PPS SharpRTSP/RtspClientExample/Program.cs Lines 330 to 334 in 9f190fa They are byte array. They do not contain the 00 00 00 01 NAL header which is sometime needed. This value come from the SDP response to the DESCRIBE command. you can follow the code in RTSPClient.cs how we get them. SharpRTSP/RtspClientExample/Program.cs Lines 343 to 354 in 9f190fa |
Beta Was this translation helpful? Give feedback.
Hi,
If you are using the RtspClientExample you will see at line 332 in Program.cs an exemple to get the SPS and PPS
SharpRTSP/RtspClientExample/Program.cs
Lines 330 to 334 in 9f190fa
They are byte array. They do not contain the 00 00 00 01 NAL header which is sometime needed.
This value come from the SDP response to the DESCRIBE command. you can follow the code in RTSPClient.cs how we get them.
Some camera send the SPS and PPS inn band i.e. in the …