nginx RTMP,破折号

时间:2016-05-31 22:20:59

标签: video-streaming rtmp mpeg-dash dash.js

我正在使用rtmpNginx来创建Dash。 我创造了一些分段:

[SND]   1464729671819-init.m4a  31-May-2016 23:55   557  
[   ]   1464729671819-init.m4v  31-May-2016 23:55   659  
[SND]   1464729671819-raw.m4a   01-Jun-2016 00:13   0    
[   ]   1464729671819-raw.m4v   01-Jun-2016 00:13   34K  
[   ]   1464729671819.mpd

在我的/ dash文件夹中

然后我尝试用https://cdn.dashjs.org/latest/dash.all.min.js播放器播放

<video data-dashjs-player autoplay src="/dash/1464729671819.mpd" controls></video>

并在我的控制台中获取这些日志:

279] Manifest updated... set new data on buffers. 
Debug.js:108 [5279] Added 0 inline events 
Debug.js:108 [5280] Refresh manifest in 4.999 seconds. 
Debug.js:108 [10416] Parsing complete: ( xml2json: 1ms, objectiron: 1ms, total: 0.002s) 
Debug.js:108 [10417] Manifest has been refreshed at Wed Jun 01 2016 00:14:00 GMT+0200 (Paris, Madrid (heure d’été))[1464732840.361]  
Debug.js:108 [10418] SegmentTimeline detected using calculated Live Edge Time 
Debug.js:108 [10418] Manifest updated... set new data on buffers. 
Debug.js:108 [10419] Added 0 inline events 
Debug.js:108 [10420] Refresh manifest in 4.999 seconds. 
Debug.js:108 [15523] Parsing complete: ( xml2json: 1ms, objectiron: 1ms, total: 0.002s) 
Debug.js:108 [15523] Manifest has been refreshed at Wed Jun 01 2016 00:14:05 GMT+0200 (Paris, Madrid (heure d’été))[1464732845.467]  
Debug.js:108 [15523] SegmentTimeline detected using calculated Live Edge Time 
Debug.js:108 [15523] Manifest updated... set new data on buffers. 
Debug.js:108 [15524] Added 0 inline events 
Debug.js:108 [15524] Refresh manifest in 5 seconds. 

但是没有任何东西在玩!

有什么想法吗?

1 个答案:

答案 0 :(得分:2)

您使用的是哪个nginx-rtmp?如果您使用的是原件,请参阅https://github.com/arut/nginx-rtmp-module/issues/614了解原因。您可以改为使用https://github.com/sergey-dryabzhinsky/nginx-rtmp-module,它已应用了修复程序,并且已知可以使用dash.js。