Node-Media-Server
Node-Media-Server copied to clipboard
RTMP Relay Push Not Accepting Commands
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?
Any solution?
@mohsen-rasouli Nothing