• 3433阅读
  • 1回复

Aplayer播放监控视频时长期黑屏 [复制链接]

上一主题 下一主题
离线verbinpp
 

只看楼主 倒序阅读 使用道具 楼主  发表于: 2021-05-25
如题,使用的是最新版(3.16)
c#桌面应用版本,没有进行其他设置。
播放的串流是: http://hls01open.ys7.com/openlive/209bfa7171b640c48af778ec3bea9af4.m3u8
确认过使用VLC可正常播放
闲置一会儿后,有时候就开始播放了。
烦请指教,感恩的心!
拿到的日志是:
  1. APlayer[17:55:05.522][0890]: CHttpStream, Response,    Cache-Control: max-age=300
  2. APlayer[17:55:05.522][0890]: CHttpStream, Response,    Accept-Ranges: none
  3. APlayer[17:55:05.522][0890]: CHttpStream, Response,    Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, Range
  4. APlayer[17:55:05.522][0890]: CHttpStream, Response,    Access-Control-Allow-Origin: *
  5. APlayer[17:55:05.522][0890]: CHttpStream, Response,    Cache-Control: max-age=3600
  6. APlayer[17:55:05.522][0890]: CHttpStream, Response,    Pragma: cache
  7. APlayer[17:55:05.522][0890]: CHttpStream, Response,    X-UA-Compatible: IE=Edge,chrome=1
  8. APlayer[17:55:05.522][0890]: CHttpStream::Open succeeded, stream length = 47752, live = 0
  9. APlayer[17:55:05.522][0890]: CHttpLiveStream::Read, right = 44028
  10. APlayer[17:55:05.522][0890]: CHttpStream::RecvData, recv 9123 bytes
  11. APlayer[17:55:05.522][0890]: CHttpStream::RecvData, recv 1452 bytes
  12. APlayer[17:55:05.526][0890]: CHttpStream::RecvData, recv 7260 bytes
  13. APlayer[17:55:05.526][0890]: CHttpStream::RecvData, recv 2904 bytes
  14. APlayer[17:55:05.527][0890]: CHttpStream::RecvData, recv 4356 bytes
  15. APlayer[17:55:05.527][0890]: CHttpStream::RecvData, recv 5808 bytes
  16. APlayer[17:55:05.528][0890]: CHttpStream::RecvData, recv 2904 bytes
  17. APlayer[17:55:05.532][0890]: CHttpStream::RecvData, recv 5808 bytes
  18. APlayer[17:55:05.532][0890]: CHttpStream::RecvData, recv 2756 bytes
  19. APlayer[17:55:05.532][0890]: ReadThread: Sequence thread read 65536 bytes, 193188 - 258724, cache data length = 258724
  20. APlayer[17:55:05.532][0CFC]: APlayerSource: Read 65536 bytes from cache.
  21. APlayer[17:55:05.532][0CFC]: APlayerSource[086133c8]: ========== Read 196836 - 262372, len = 65536 ==========
  22. APlayer[17:55:05.544][0890]: CHttpLiveStream::SetPosition = 258724
  23. APlayer[17:55:05.544][0890]: CHttpLiveStream::Read = 65536
  24. APlayer[17:55:05.544][0890]: CHttpLiveStream::Read, left = 3724
  25. APlayer[17:55:05.544][0890]: CHttpStream::RecvData, recv 3724 bytes
  26. APlayer[17:55:05.545][0890]: CHttpStream::Close
  27. APlayer[17:55:05.545][0890]: CHttpStream::Http_Disconnect
  28. APlayer[17:55:05.545][0890]: CHlsAes::DisableAES
  29. APlayer[17:55:06.554][0890]: Real m3u8 not empty, use it
  30. APlayer[17:55:06.554][0890]: CHttpLiveStream::Parse, level=1, http://sqhls1.ys7.com:7885/openlive/E13385341_6_2.m3u8?ticket=Tm1hVVlWUmwvaGY5VFd3S1JKMGQxcXFDS01MUHNQcGtNb3FHOGZFQmRadz0kMSQyMDIxMDUyNjE3NTQ1OCQxNjIxOTM2NDY4NjQ5JDE2MjIwMjI4OTg2NDkkMSQxNjIxOTM2NDY4NjQ5JDE2MjIwMjI4OTg2NDkkMTAwMDAkNzExMzEwMTZhYjg3NDZiYjg1MDEwNWQ0NGZkNTNjODUkLTE=&token=62fceccf11d748d58b112251635850e8
  31. APlayer[17:55:06.554][0890]: CHttpLiveStream::Parse = real m3u8
  32. APlayer[17:55:06.555][0890]: CHttpStream::Open = http://sqhls1.ys7.com:7885/openlive/E13385341_6_2.m3u8?ticket=Tm1hVVlWUmwvaGY5VFd3S1JKMGQxcXFDS01MUHNQcGtNb3FHOGZFQmRadz0kMSQyMDIxMDUyNjE3NTQ1OCQxNjIxOTM2NDY4NjQ5JDE2MjIwMjI4OTg2NDkkMSQxNjIxOTM2NDY4NjQ5JDE2MjIwMjI4OTg2NDkkMTAwMDAkNzExMzEwMTZhYjg3NDZiYjg1MDEwNWQ0NGZkNTNjODUkLTE=&token=62fceccf11d748d58b112251635850e8, this = 053fb2c0
  33. APlayer[17:55:06.555][0890]: CHttpStream::ParseUrl, IP is v4: 112.13.217.91
  34. APlayer[17:55:06.555][0890]: CHttpStream::Http_Disconnect
  35. APlayer[17:55:06.555][0890]: CHttpStream::Http_Connect
  36. APlayer[17:55:06.599][0890]: CHttpStream::Http_Connect, connect wait server, error = 10035, retry count = 0
  37. APlayer[17:55:06.599][0890]: CHttpStream::Http_Connect, connect delay okay!
  38. APlayer[17:55:06.630][0890]: CHttpStream::Http_Send,    GET /openlive/E13385341_6_2.m3u8?ticket=Tm1hVVlWUmwvaGY5VFd3S1JKMGQxcXFDS01MUHNQcGtNb3FHOGZFQmRadz0kMSQyMDIxMDUyNjE3NTQ1OCQxNjIxOTM2NDY4NjQ5JDE2MjIwMjI4OTg2NDkkMSQxNjIxOTM2NDY4NjQ5JDE2MjIwMjI4OTg2NDkkMTAwMDAkNzExMzEwMTZhYjg3NDZiYjg1MDEwNWQ0NGZkNTNjODUkLTE=&token=62fceccf11d748d58b112251635850e8 HTTP/1.1
  39. APlayer[17:55:06.631][0890]: CHttpStream::Http_Send,    Connection: Keep-Alive
  40. APlayer[17:55:06.631][0890]: CHttpStream::Http_Send,    Accept-Encoding: identity
  41. APlayer[17:55:06.632][0890]: CHttpStream::Http_Send,    Accept: */*
  42. APlayer[17:55:06.632][0890]: CHttpStream::Http_Send,    User-Agent: VLC/2.2.1 LibVLC/2.2.1
  43. APlayer[17:55:06.632][0890]: CHttpStream::Http_Send,    Range: bytes=0-
  44. APlayer[17:55:06.632][0890]: CHttpStream::Http_Send,    Host: sqhls1.ys7.com:7885
  45. APlayer[17:55:06.633][0890]: CHttpStream::Http_Send,    Cache-Control: no-cache
  46. APlayer[17:55:06.633][0890]: CHttpStream::Http_Send,    
  47. APlayer[17:55:06.634][0890]: CHttpStream::Http_Send okay

离线aplayer

只看该作者 沙发  发表于: 2021-05-27
从调试来看, 该 m3u8 源网速较慢,而 APlayer 对于这种单视频流的文件默认搜索音视频双流时间较长,导致打开慢,后续这块可以优化下。
快速回复
限100 字节
批量上传需要先选择文件,再选择上传
 
上一个 下一个