Open laurencefass opened 6 years ago
FFmpeg and 'trans' configuration block are required.
thanks i have updated server.js to the code below but i still have no m3u8 output at http://ip-address:8000/live/test/index.m3u8.
should this work? or do i need to install anything extra in the image?
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,
mediaroot: './media',
allow_origin: '*'
},
trans: {
ffmpeg: '/usr/local/bin/ffmpeg',
tasks: [
{
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]'
}
]
}
};
var nms = new NodeMediaServer(config)
nms.run();
will the server.js above output both files?
http://localhost:8000/live/STREAM_NAME/index.m3u8 http://localhost:8000/live/STREAM_NAME/index.mpd
if so, is there a way to switch one off if it is redundant?
what is the physical location of the rmtp output files?
have you solved this problem? I met same problem ,could you tell me how to solve this problem,I will really appreciate it.
yes a have the same problem, i'm running this on mac os and ffmpeg is installed in this path
'/usr/local/Cellar/ffmpeg/4.0.2/bin/ffmpeg'
I'm also looking for the recorded files and other streams related files, can't seem to find them
Same problem here
I have set up a working demo and I wish to consume the m3u8 file. Problem is i cant locate it and the URLs on github arent giving me anything....
I'm working to the most basic example...
server.js
i've installed this server into a docker container and ive set up OBS
I can access the stream with VLC player at rtmp://ip-address/live/test.
and i can see this output from the server in the container
Problem
i want to access rmtp output files (m3u8) on the media server so i can display in a browser. I have no access to http://ip-address:8000/live/test/index.m3u8. where is the rmtp output configuration in node js code mapping to a linux directory?
...is it configurable?
thanks