RtspClientSharp
RtspClientSharp copied to clipboard
Support ps(program stream) frame parse from rtp payload over tcp/udp
RT,thanks
Could you explain better? Do you mean metadata stream ?
@BogdanovKirill thanks for you reply.
when rtp payload is PS(MPEG2 Program Stream) type,raw H264 data needs to be unpacked from PS payload.at this point, the current project will not work properly.
but.i'm trying parse PS and send raw h264 data to RtpStream,not working.
example code:
and add handler

occasionally can trigger OnFrameGenerated event,but decode frame not working,code :
if (!(rawFrame is RawH264IFrame rawVideoFrame))
return;
// rawVideoFrame.CleanSpsPpsSegment();
FFmpegVideoDecoder decoder = GetDecoderForFrame(rawVideoFrame);
if (!decoder.TryDecode(rawVideoFrame, out DecodedVideoFrameParameters decodedFrameParameters))
return;
decoder.TryCode return error code -3.
i confirm that the data format is raw h264 and the pixel format is YUV420p(parse from ffmpeg).
attchment: