Question / Help auto change hls stream to match live stream

robertkwild

New Member
hi all,

atm i have this line

exec /usr/bin/ffmpeg -i rtmp://localhost/live/$name -threads 2 -c:v libx264 -profile:v baseline -b:v 4000K -s 1280x720 -f flv -c:a aac -ac 1 -strict -2 -b:a 128k rtmp://localhost/hls/$name;

but trouble with this is when someone changes the settings on the encoder box of the live stream it breaks my hls stream as i need to then reconfigure the video/audio bitrate and size

could i change it with this line

exec /usr/bin/ffmpeg -i rtmp://localhost/live/$name -threads 2 -c:v libx264 -profile:v baseline -f flv -c:a aac -ac 1 -strict -2 rtmp://localhost/hls/$name;

thanks,
rob
 

robertkwild

New Member
smashed it

exec /usr/bin/ffmpeg -i rtmp://localhost/live/$name -threads 2 -vcodec libx264 -vprofile baseline -acodec aac -strict -2 -f flv rtmp://localhost/hls/$name;
 
Top