[FFmpeg-user] Best option for live stream
Anthony Griffiths
neuronetv at gmail.com
Fri Jul 20 15:40:29 EEST 2018
On Fri, Jul 20, 2018 at 12:20 PM, hans gerte <hansoggerte at gmail.com> wrote:
> Hi all.
> need some advise on parameters for live streaming.
> This is currently my string, it takes the stream from tvheaedned:
> need to lower the bitstream as im sending the stream over wan. but the
> problem that i have, is that it uses a lot of cpu and sometimes the picture
> isn't smooth.. have seen some using minbitrate and maxbittrate. but dont
> really understand what and how to use it. plus others ar using crt 24 or
> fast..slow and so on
>
> so i like to get your opinion or suggestion on what your using for
> livestream.
>
> ffmpeg -f mpegts -i
> http://username:password@192.168.0.14:4445/stream/channelid/14 -vcodec
> libx264 -vb 1000k -acodec aac -ar 48000 -ab 48k -f flv
> rtmp://localhost/myapp/mystream
> _______________________________________________
>
I found this page very good for help setting up a live rtmp stream and it
works in streaming to mobile phones as well:
https://www.vultr.com/docs/setup-nginx-on-ubuntu-to-stream-live-hls-video
this is the command I use to stream live tv (from a usb tv tuner) to a vps
running nginx. To keep the stream smooth and manageable over wan you have
to send it up small and inflate the image at the receiving end.
ffmpeg -y -f mpegts -i /dev/dvb/adapter0/dvr0 -f flv -codec:v libx264
-preset slow -s 320x180 -qscale:v 20 -maxrate 600k -bufsize 1000k -vf
scale=-1:240 -threads 0 -vsync cfr -framerate 15 -c:a aac -b:a 64k -af
aformat=s16:44100 rtmp://<my-vps-server>
My live stream is at www.livebit.co.uk
More information about the ffmpeg-user
mailing list