当前位置:网站首页>EasyDSS_ The dash version solves the problem that the RTSP source address cannot play the video stream

EasyDSS_ The dash version solves the problem that the RTSP source address cannot play the video stream

2022-06-24 07:04:00 Tsingsee green rhino video

EasyDSS Currently supported DASH live broadcast , The existing EasyDSS_dash The version live broadcast will occupy less network traffic , It's also shown in the experience of playing ,DASH Live video slicing , Play by slice , The cache is small 、 Start and play fast ; And drag the timeline to play at any time , Can quickly locate the corresponding slice to play , The response will also be faster than the original playback mode .

In the use of EasyDSS_dash Version period , When an on-demand video is used as a virtual live source , Some videos cannot be played rtsp Address , After the screening , Data of VOD video stream buffer The first four bytes are different , Some videos cannot be played .

The differences are as follows :

First data buffer The first four bytes are :[0 0 0 1]

The second kind of data buffer The first three bytes are :[0 0 1 ]

Because the first few characters are not required when transferring data , In fact, the length of the data will be removed , Therefore, it is necessary to judge the buffer How much to remove from the first few bytes . The specific judgment and processing code is as follows :

After modification, it can be played normally :

EasyDSS At present, it is also a stable and mature video on demand system , In classroom education 、 Online medical can be applied and implemented , Welcome to test .

原网站

版权声明
本文为[Tsingsee green rhino video]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/07/20210708183537499a.html