C:\dev\CircleServer>node app.js
2018-6-12 09:44:51 [INFO] Node Media Trans Server started for apps: [ live ] , MediaRoot: ./media
The server listens: 3000
2018-6-12 09:44:51 [INFO] Node Media Rtmp Server started on port: 1935
2018-6-12 09:44:51 [INFO] Node Media Http Server started on port: 8000
2018-6-12 09:44:51 [INFO] Node Media WebSocket Server started on port: 8000
2018-6-12 09:44:55 [INFO] [rtmp connect] id=E671RR3E ip=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-6-12 09:44:55 [INFO] [rtmp publish] New stream. id=E671RR3E streamPath=/live/test streamId=1
2018-6-12 09:44:55 [INFO] [Transmuxing HLS] /live/test to ./media/live/test/index.m3u8
2018-6-12 09:44:55 [INFO] [Transmuxing DASH] /live/test to ./media/live/test/index.mpd
2018-6-12 09:44:55 [INFO] [Transmuxing end] /live/test
2018-6-12 09:44:56 [INFO] [rtmp publish] Handle audio. id=E671RR3E streamPath=/live/test sound_format=10 sound_type=2 sound_size=1 sound_rate=3 codec_name=AAC 44100 2ch
2018-6-12 09:44:56 [INFO] [rtmp publish] Handle video. id=E671RR3E streamPath=/live/test frame_type=1 codec_id=7 codec_name=H264 1280x720
I can access the stream via RMTP and FLV fine, but I can't connect to it via HLS or DASH. There is a folder made in my project though in the media folder called live/test. I have also tried saving the stream to MP4 but that also doesn't seem to work.
In the logs I found that the Transmuxing to HLS and DASH ends directly after it started.
I have download FFmpeg and extracted it to my project in the config/ffmpeg folder.
This are the console logs I get:
C:\dev\CircleServer>node app.js 2018-6-12 09:44:51 [INFO] Node Media Trans Server started for apps: [ live ] , MediaRoot: ./media The server listens: 3000 2018-6-12 09:44:51 [INFO] Node Media Rtmp Server started on port: 1935 2018-6-12 09:44:51 [INFO] Node Media Http Server started on port: 8000 2018-6-12 09:44:51 [INFO] Node Media WebSocket Server started on port: 8000 2018-6-12 09:44:55 [INFO] [rtmp connect] id=E671RR3E ip=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-6-12 09:44:55 [INFO] [rtmp publish] New stream. id=E671RR3E streamPath=/live/test streamId=1 2018-6-12 09:44:55 [INFO] [Transmuxing HLS] /live/test to ./media/live/test/index.m3u8 2018-6-12 09:44:55 [INFO] [Transmuxing DASH] /live/test to ./media/live/test/index.mpd 2018-6-12 09:44:55 [INFO] [Transmuxing end] /live/test 2018-6-12 09:44:56 [INFO] [rtmp publish] Handle audio. id=E671RR3E streamPath=/live/test sound_format=10 sound_type=2 sound_size=1 sound_rate=3 codec_name=AAC 44100 2ch 2018-6-12 09:44:56 [INFO] [rtmp publish] Handle video. id=E671RR3E streamPath=/live/test frame_type=1 codec_id=7 codec_name=H264 1280x720
I can access the stream via RMTP and FLV fine, but I can't connect to it via HLS or DASH. There is a folder made in my project though in the media folder called live/test. I have also tried saving the stream to MP4 but that also doesn't seem to work.
In the logs I found that the Transmuxing to HLS and DASH ends directly after it started.
I have download FFmpeg and extracted it to my project in the config/ffmpeg folder.
Here are my config settigns for nms:
let configStream = { logType: 3, rtmp: { port: 1935, chunk_size: 6000, gop_cache: true, ping: 60, ping_timeout: 30 }, http:{ port: 8000, allow_origin: '*' }, trans: { ffmpeg: './config/ffmpeg' , tasks: [ { port: 5000, app: 'live', ac: 'aac', 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]' } ] } };
Any ideas on what I am doing wrong?
Thanks