Skip to content
New issue

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

flv file is not present in my live folder #622

Closed
harrymelka opened this issue Dec 26, 2023 · 0 comments
Closed

flv file is not present in my live folder #622

harrymelka opened this issue Dec 26, 2023 · 0 comments

Comments

@harrymelka
Copy link

Hello

How do you configure the ws, it's the flv file that is created when you launch the stream but I don't manage to get it.

This is my config:

const config = {
  logType: 3,
  
  rtmp: {
    port: 1935,
    chunk_size: 60000,
    gop_cache: true,
    ping: 30,
    ping_timeout: 60,
  },
  http: {
    port: 8080,
    mediaroot: "./media",
    allow_origin: "*",
    api: true,
  },
  trans: {
    ffmpeg: "/usr/bin/ffmpeg",
    tasks: [
      {
        app: "live",
        hls: true,
        rtmp: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]",
        'websocket-flv': true, // Not working
      },
    ],
  },
};

var nms = new NodeMediaServer(config);
nms.run();

With that you get the flv or do I need to use ffmpeg in the config ?

I saw this

You can use ffmpeg to re-push.

ffmepg -re -i FLV -c copy -f flv rtmp://server-ip/live/stream

Then you can access through ws://server-ip:8000/live/stream.flv

Where should I insert that ?

With that I should be able to support more concurrent watcher in the same stream right ?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant