-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Description
Hello,
I have stream server using nginx 1.12.0, nginx-rtmp-module 1.1.11 and ffmpeg 3.2.5-1~bpo8+1. When I connect to nginx using OBS everything goes fine, but ffmpeg often stuck at startup, but hardly ever doesn't goes stuck and everything works fine.
My command for ffmpeg:
ffmpeg -i rtmp://127.0.0.1:1935/$1/$STREAM_KEY -vcodec libx264 -vprofile high -preset ultrafast -x264opts keyint=40 -vf scale=640x360 -minrate 600k -maxrate 800k -acodec aac -strict -2 -f flv rtmp://127.0.0.1:1935/hls/"$NICK"_low -vcodec libx264 -vprofile high -preset ultrafast -x264opts keyint=40 -vf scale=858x480 -minrate 900k -maxrate 1200k -acodec aac -strict -2 -f flv rtmp://127.0.0.1:1935/hls/"$NICK"_mid -c copy -f flv rtmp://127.0.0.1:1935/hls/"$NICK"_src
FFmpeg output before it goes stuck
Splitting the commandline.
Reading option '-re' ... matched as option 're' (read input at native frame rate) with argument '1'.
Reading option '-i' ... matched as input url with argument 'rtmp://127.0.0.1:1935/show/EOKvvX9IgGJYjwa38zLeVUMEVBwHGq925pwVA52aJaIpqdOGI2'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input url rtmp://127.0.0.1:1935/show/EOKvvX9IgGJYjwa38zLeVUMEVBwHGq925pwVA52aJaIpqdOGI2.
Applying option re (read input at native frame rate) with argument 1.
Successfully parsed a group of options.
Opening an input file: rtmp://127.0.0.1:1935/show/EOKvvX9IgGJYjwa38zLeVUMEVBwHGq925pwVA52aJaIpqdOGI2.
[rtmp @ 0x56351812d140] No default whitelist set
[tcp @ 0x56351812d740] No default whitelist set
[rtmp @ 0x56351812d140] Handshaking...
[rtmp @ 0x56351812d140] Type answer 3
[rtmp @ 0x56351812d140] Server version 13.14.10.13
[rtmp @ 0x56351812d140] Proto = rtmp, path = /show/EOKvvX9IgGJYjwa38zLeVUMEVBwHGq925pwVA52aJaIpqdOGI2, app = show, fname = EOKvvX9IgGJYjwa38zLeVUMEVBwHGq925pwVA52aJaIpqdOGI2
[rtmp @ 0x56351812d140] Server bandwidth = 5000000
[rtmp @ 0x56351812d140] Client bandwidth = 5000000
[rtmp @ 0x56351812d140] New incoming chunk size = 4000
[rtmp @ 0x56351812d140] Creating stream...
[rtmp @ 0x56351812d140] Sending play command for 'EOKvvX9IgGJYjwa38zLeVUMEVBwHGq925pwVA52aJaIpqdOGI2'
Nginx receive play command, because I can find it in access log.
Situation is same with this very simple command that should ends with error there is needed atleast one output.
ffmpeg -i rtmp://127.0.0.1:1935/$1/$STREAM_KEY
When I kill ffmepg with CTRL+C I get Input/Output error.
There shouldn't be any problem with RTMP stream, because it plays normally in VLC.
In my PC everything worked fine, but in server of my company I get this error.
Metadata
Metadata
Assignees
Labels
No labels