Skip to content

Receiving H264 RTP stream from Unreal Engine 5 Pixel Streaming Plugin #1288

Closed Answered by paullouisageneau
ClayJay3 asked this question in Q&A
Discussion options

You must be logged in to vote

The h264 frames look as expected. Depending of how the sender is implemented, it is possible that the first frame is not an IDR, in that case the decoder has to wait for an IDR to start decoding. However, if the decoder can't start decoding after the first IDR frame, something is probably wrong with the ffmpeg decoding code. In any case, you should not tinker with the frames.

After a quick look to your code, it looks like the whole logic in the onFrame callback is wrong and unnecessary. You must not try to parse NAL units, strip separators, or insert SPS/PPS. You should simply feed rtcBinaryMessage.data() to the decoder.

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@paullouisageneau
Comment options

Answer selected by ClayJay3
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants