[FFmpeg-user] Bitrate won't change

Michael Murphy mmurphy at uottawa.ca
Mon Dec 18 16:20:24 EET 2017

Fairly new user here trying to stream an IP camera from a Rasberry Pi3 (Debian) to Youtube for live view.

This works but crashes as the audio and video bitrate do not change and are too high.

Here's my command line:

ffmpeg -f lavfi -i anullsrc -rtsp_transport tcp -thread_queue_size 512 -i rtsp://admin:password@xx.xx.xx.xxx/544/h264/ch1/main/av_stream -tune zerolatency -vcodec libx264 -preset slower  -x264opts bitrate=2500:vbv-maxrate=2500:vbv-bufsize=166  -g 120 -pix_fmt yuv420p+ -c:v copy -c:a aac -strict experimental -b:a 128k  -f flv rtmp://a.rtmp.youtube.com/live2/my_youtube_key

Once launched terminal shows stream as
Frame=  69 fps= 68 q=-1.0  size=   1043kb  time=00:00:02.09  bitrate=4086.9kbits/

Youtube reports:
The audio stream's current bitrate (2.00 Kbps) is lower than the recommended bitrate. We recommend that you use an audio stream bitrate of 128 Kbps.
The stream's current bitrate (4001.00 Kbps) is higher than the recommended bitrate. We recommend that you use a stream bitrate of 2500 Kbps.

Mike Murphy - Supervisor
uOttawa Science Electronics Shop
009-140 Louis Pasteur Priv
Ottawa, ON  K1N 6N5
(613)562-5800 ext.6745
mmurphy at uottawa.ca<mailto:mmurphy at uottawa.ca>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 2352 bytes
Desc: image001.png
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20171218/18eee82c/attachment.png>

More information about the ffmpeg-user mailing list