开发者

RTP video stream: is presence of SDP file mandatory?

开发者 https://www.devze.com 2023-03-06 03:14 出处:网络
I have implemented a raw rtp stream. I want to play it using VLC or Mplayer. But it seems that video players cannot play this stream.

I have implemented a raw rtp stream. I want to play it using VLC or Mplayer. But it seems that video players cannot play this stream.

F开发者_JAVA技巧or example MPlayer says:

Stream not seekable!
Stray packet (seq[6]=1013 seq=987, newseq=-26 found at 12)

I dont get any idea what I have to do, to make video readable by this videoplayers. Should I add SDP ? Or theese players can play raw rtp stream ?

Thanks


SDP is not required as long as receiver is aware of format of the streams. Stream not seekable means packets are not arriving at receiver sequentially as expected. Try with increase buffering time of players.


Add a jitter buffer to handle reordering out-of-order packets to the receiver. Note that if the data is far enough out-of-order (especially if it's late), you'll need to discard it instead of forwarding to the decoder. The decoder should handle lost packets.

0

精彩评论

暂无评论...
验证码 换一张
取 消