We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to play the .m3u8 stream in vlc but it is not working, I am getting 404 in the browser when I put the link in react-player.
const NodeMediaServer = require("node-media-server"); const config = { logType: 3, rtmp: { port: 1935, chunk_size: 60000, gop_cache: true, ping: 30, ping_timeout: 60, }, http: { port: 8000, mediaroot: "./media", allow_origin: "*", }, trans: { ffmpeg: "./ffmpeg.exe", tasks: [ { app: "live", vc: "copy", vcParam: [], ac: "aac", acParam: ["-ab", "64k", "-ac", "1", "-ar", "44100"], rtmp: true, rtmpApp: "live2", 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); nms.run();
ffmpeg -rtsp_transport tcp -i rtsp://myuser:myuserpassword@camera_ip -c copy -f flv rtmp://localhost/live/stream
Output from NMS:
8/3/2023 19:42:54 34444 [INFO] Node Media Server v2.6.2 8/3/2023 19:42:54 34444 [INFO] Node Media Rtmp Server started on port: 1935 8/3/2023 19:42:54 34444 [INFO] Node Media Http Server started on port: 8000 8/3/2023 19:42:54 34444 [INFO] Node Media WebSocket Server started on port: 8000 8/3/2023 19:42:54 34444 [INFO] Node Media Trans Server started for apps: [ live ] , MediaRoot: ./media, ffmpeg version: 2023-07-19-git-efa6cec759-full_build-www.gyan.dev 8/3/2023 16:48:15 21940 [INFO] [rtmp connect] id=M81TQEAS ip=::1 app=live args={"app":"live","type":"nonprivate","flashVer":"FMLE/3.0 (compatible; Lavf60.10.100)","tcUrl":"rtmp://localhost:1935/live"}
rtmp://localhost:1935/live/stream
http://localhost:8000/live/stream.flv
I want to play .m3u8 stream same as .flv is playing on all platforms
The text was updated successfully, but these errors were encountered:
any update?, i try to play video using ffmeg but it doesn't play using hls
Sorry, something went wrong.
Same with the DASH and .flv, only the RTMP stream works. My solution is use different package for HLS and DASH, haven't work with .flv yet.
Only RTMP and FLV streams work for me. HLS or Dash doesn't work.
No branches or pull requests
I want to play the .m3u8 stream in vlc but it is not working, I am getting 404 in the browser when I put the link in react-player.
What I am doing.
I am pulling rtsp stream using ffmpeg from my IP camera below is the command I am using:
Output from NMS:
What is current playing
rtmp://localhost:1935/live/stream
)http://localhost:8000/live/stream.flv
)What is my goal?
I want to play .m3u8 stream same as .flv is playing on all platforms
The text was updated successfully, but these errors were encountered: