Node-Media-Server icon indicating copy to clipboard operation
Node-Media-Server copied to clipboard

RTMP Relay Push Not Accepting Commands

Open ProdigyView opened this issue 3 years ago • 2 comments

I am trying to resize the RTMP push to resize to a smaller video. I have the following config:

relay: {
    ffmpeg: '/usr/bin/ffmpeg',
    tasks: [
      {
        app: 'live',
        mode: 'push',
        vc: "libx264",
        vcParam: ['-filter_complex','"scale=\'if(gt(iw,1920),1920,-1)\':\'if(gt(ih,1080),1080,-1)\':force_original_aspect_ratio=decrease"', '-crf', 20],
        edge: 'rtmp://www.example.com',
      }
    ]
  }

Except in my output, I am getting this:

/usr/bin/ffmpeg -i rtmp://127.0.0.1:1935/live/123456 -c copy -f flv rtmp://www.examplee.com/live/123456

Its using the copy and not passed commands. Any ideas on why its ignoring the config?

ProdigyView avatar Apr 13 '21 14:04 ProdigyView

Any solution?

mohsen-rasouli avatar Sep 06 '21 12:09 mohsen-rasouli

@mohsen-rasouli Nothing

ProdigyView avatar Feb 18 '22 23:02 ProdigyView