My version of nginx is 1.16.1, and this is all running on Ubuntu 18.04.Įric Asks: Why do we remember the past but not the future? Am I doing something wrong? I would like to have scaling as I don't want to be sending the same resolution across different bitrates. If I remove the -vf "scale=." flags then everything works as expected with 5 streams under the /hls application. When I begin streaming to the server, the /movie application shows data streams, but the /hls application gets nothing. I verify this by checking the stat page that the rtmp module provides. Hls_variant _src BANDWIDTH=4096000 # Source bitrate, source resolutionįor some reason, scaling the video with -vf "scale=." doesn't work (same goes for using the -s wxh flag), as no output is created. Hls_variant _hd720 BANDWIDTH=2048000 # High bitrate, HD 720p resolution Hls_variant _high BANDWIDTH=1152000 # High bitrate, higher-than-SD resolution Hls_variant _mid BANDWIDTH=448000 # Medium bitrate, SD resolution Hls_variant _low BANDWIDTH=288000 # Low bitrate, sub-SD resolution c copy -f flv rtmp://localhost:1935/hls/movie_src c:v libx264 -c:a libvo_aacenc -b:v 1024k -b:a 128k -vf "scale=960:trunc(ow/a/2)*2" -tune zerolatency -preset veryfast -crf 23 -f flv rtmp://localhost:1935/hls/movie_high c:v libx264 -c:a libvo_aacenc -b:v 768k -b:a 96k -vf "scale=720:trunc(ow/a/2)*2" -tune zerolatency -preset veryfast -crf 23 -f flv rtmp://localhost:1935/hls/movie_mid c:v libx264 -c:a libvo_aacenc -b:v 256k -b:a 32k -vf "scale=480:trunc(ow/a/2)*2" -tune zerolatency -preset veryfast -crf 23 -f flv rtmp://localhost:1935/hls/movie_low Exec ffmpeg -i rtmp://localhost:1935/movie -async 1 -vsync -1
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |