Open JaoCN opened 1 year ago
This is expected, the track receives the stream as RTP packets, as you can see in the media-receiver example for instance.
The library currently does not have a media handler to depacketize and reassemble H264 frames internally, the corresponding issue is https://github.com/paullouisageneau/libdatachannel/issues/676
Thank you for your answer. My idea is to receive the video stream via track and then decode and rendering. You mention that The library currently does not have a media handler to depacketize and reassemble H264 frames internally
does it mean I need to make one more process to unpack RTP packets to h264 frames?
I've tried using datachannel to receive H264 streams and it works, but some errors occurred when I deckded it in Embedded devices. So I'm trying to use Track to receive data.
What do you think I should do next? Should I try to depacketize the RTP packets received by the Track to H.264 strams, or should I focus on resolving the decoding errors of the H.264 streams received through the data channel?
Thank you again for your support, and I look forward to your response^ ^
Hello, I have an issue when using the track function in the C API. I tried to initiate an RTC connection via the web and send the video stream to my program through the track function. However, in the track message callback set by
rtcSetMessageCallback(tr, trmessageCallback)
, I found that the size of the packets I received does not exceed 1100 bytes, which does not meet my expectations. Could you please advise me on how to handle this problem?This is my program:
And in the log, I can see that:
Track successfully opened, and I can receive around 20 data per second. However, the size of the packet is problematic, because I send H264 streams, in general the size of a H264 stream packet is definitely much larger than 1,000 bytes, and I collect these packets, the use of PotPlayer can not be correctly parsed movie and television information!