rtmp disconnect, no DASH data is available
See original GitHub issueAs soon as I connect to the server log looks like this:
2018-7-18 01:15:01 5092 [INFO] [rtmp connect] id=IDQQI19K ip=::ffff:127.0.0.1 app=live args={"app":"live","type":"nonprivate","flashVer":"FMLE/3.0 (compatible; FMSc/1.0)","swfUrl":"rtmp://localhost/live","tcUrl":"rtmp://localhost/live"}
2018-7-18 01:15:01 5092 [INFO] [rtmp publish] New stream. id=IDQQI19K streamPath=/live/test streamId=1
2018-7-18 01:15:02 5092 [INFO] [rtmp publish] Handle audio. id=IDQQI19K streamPath=/live/test sound_format=10 sound_type=2 sound_size=1 sound_rate=3 codec_name=AAC 44100 2ch
2018-7-18 01:15:02 5092 [INFO] [rtmp publish] Handle video. id=IDQQI19K streamPath=/live/test frame_type=1 codec_id=7 codec_name=H264 1920x1080
2018-7-18 01:15:02 5092 [INFO] [Transmuxing HLS] /live/test to ./media/live/test/index.m3u8
2018-7-18 01:15:02 5092 [INFO] [Transmuxing DASH] /live/test to ./media/live/test/index.mpd
2018-7-18 01:15:02 5092 [INFO] [rtmp connect] id=4FEZOYOW ip=::ffff:127.0.0.1 app=live args={"app":"live","tcUrl":"rtmp://127.0.0.1:1935/live","fpad":false,"capabilities":15,"audioCodecs":3191,"videoCodecs":252,"videoFunction":1}
[NodeEvent on prePlay] id=4FEZOYOW StreamPath=/live/test args={}
2018-7-18 01:15:02 5092 [INFO] [rtmp play] Join stream. id=4FEZOYOW streamPath=/live/test streamId=1
2018-7-18 01:15:06 5092 [INFO] [rtmp play] Close stream. id=4FEZOYOW streamPath=/live/test streamId=1
2018-7-18 01:15:06 5092 [INFO] [rtmp play] Close stream. id=4FEZOYOW streamPath=/live/test streamId=1
2018-7-18 01:15:06 5092 [INFO] [rtmp disconnect] id=4FEZOYOW
2018-7-18 01:15:06 5092 [INFO] [Transmuxing end] /live/test
So both of DASH and HLS become unavailable within 5 seconds after rtmp connect. Here’s my file
const {NodeMediaServer} = require('node-media-server');
const config = {
rtmp: {
port: 1935,
chunk_size: 60000,
gop_cache: true,
ping: 60,
ping_timeout: 30
},
http: {
port: 8000,
allow_origin: '*',
mediaroot: './media',
},
trans: {
ffmpeg: 'C:\\Program Files\\ImageMagick-7.0.5-Q16\\ffmpeg.exe',
tasks: [
{
app: 'live',
ac: 'aac',
// mp4: true,
// mp4Flags: '[movflags=faststart]',
hls: true,
hlsFlags: '[hls_time=2:hls_list_size=3:hls_flags=delete_segments]',
dash: true,
dashFlags: '[f=dash:window_size=3:extra_window_size=5]'
},
],
},
};
const nms = new NodeMediaServer(config); //todo: cluster
nms.run();
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top Results From Across the Web
rtmp disconnect, no DASH data is available – IRZU INSTITUTE
As soon as I connect to the server log looks like this: 2018-7-18 01:15:01 5092 [INFO] [rtmp connect] id=IDQQI19K ip=::ffff:127.0.0.1 app=live ...
Read more >HLS using Nginx RTMP Module not working - Stack Overflow
If problem persists , an good strategy is start with one application with all of codecs (hls,mpeg-dash) ( like the config examples in...
Read more >How To Set Up a Video Streaming Server using Nginx-RTMP ...
There are two protocols that you can use to create HTTP-based video streams: Apple's HLS and MPEG DASH. They both have advantages and ......
Read more >Table of Contents - PingOS
Make sure there's no space between redirection character and stream ... In this mode audio and video data is transmitted on the same...
Read more >Problems with HSL or DASH? README. - Google Groups
There's lots and lots of posts recently with people trying to use the Nginx module for HLS or DASH and not getting the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Feras94 Hi, I changed the server and player and now it works perfectly. If you’re struggling with Node-Media-Server which is quite dead, I highly recommend you to take a look at https://github.com/meisterplayer/meisterplayer and https://github.com/arut/nginx-rtmp-module they are both free My ngnix config is:
Then I created a folder “/root/streaming” and that’s the place where stream folders are created. Meisterplayer supports that feature, I hope this helps
Just coming across this problem myself with the exact same symptoms, I noticed my stream was encoded using “Sorenson-H263”, when I changed that encoding to “H264” node-media-server transmuxed the stream as expected