Fluctuating Biterate streaming YouTubeLive

#1

I'm running the latest Octopi on a Raspberry Pi 3 with 7" lcd. I'm using the YouTubeLive plugin to stream my 3d prints, but the bitrate keeps dropping, rising and dropping, etc. I connected an ethernet cable, just to confirm this wasn't a wireless connection issue. I'm running a Logitech C922 with [camera_usb_options="-r 1280x720 -f 10"]. When I do a speedtest on the pi, I get Upload: 11.79 Mbit/s give or take a few decimals. I run 'top' and the results are below..

Any ideas?

From YouTube's LIVE STREAM

11:27 AM OK Video output low
The stream's current bitrate (687.00 Kbps) is lower than the recommended bitrate. We recommend that you use a stream bitrate of 2500 Kbps.
The audio stream's current bitrate (0) is lower than the recommended bitrate. We recommend that you use an audio stream bitrate of 128 Kbps.

11:27 AM Good Stream is healthy
Stream health is excellent.

11:25 AM OK Video output low
The stream's current bitrate (698.00 Kbps) is lower than the recommended bitrate. We recommend that you use a stream bitrate of 2500 Kbps.

11:25 AM Good Stream is healthy
Stream health is excellent.

11:17 AM OK Video output low
The stream's current bitrate (703.00 Kbps) is lower than the recommended bitrate. We recommend that you use a stream bitrate of 2500 Kbps.

11:15 AM OK Video output low
The stream's current bitrate (708.00 Kbps) is lower than the recommended bitrate. We recommend that you use a stream bitrate of 2500 Kbps.

11:13 AM Good Stream is healthy
Stream health is excellent.

From 'top'

top - 11:27:34 up 36 min, 1 user, load average: 0.77, 0.86, 0.60
Tasks: 123 total, 1 running, 79 sleeping, 0 stopped, 0 zombie
%Cpu(s): 21.5 us, 1.9 sy, 0.0 ni, 76.0 id, 0.0 wa, 0.0 hi, 0.7 si, 0.0 st
KiB Mem : 896668 total, 361780 free, 240908 used, 293980 buff/cache
KiB Swap: 102396 total, 91644 free, 10752 used. 576464 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1749 root 20 0 170596 18656 8560 S 56.3 2.1 6:51.57 ffmpeg
402 pi 20 0 265972 65584 8396 S 34.1 7.3 8:17.64 octoprint
451 pi 20 0 52272 9644 8816 S 0.7 1.1 0:08.96 mjpg_streamer
753 pi 20 0 538804 120560 97384 S 0.7 13.4 0:16.13 chromium-browse
2046 pi 20 0 8108 3140 2660 R 0.7 0.4 0:01.82 top
8 root 20 0 0 0 0 I 0.3 0.0 0:01.37 rcu_sched
316 avahi 20 0 6536 3208 2796 S 0.3 0.4 0:02.17 avahi-daemon
584 haproxy 20 0 12148 6840 2036 S 0.3 0.8 0:07.32 haproxy
1498 root 20 0 0 0 0 I 0.3 0.0 0:00.18 kworker/3:0
1903 root 20 0 0 0 0 I 0.3 0.0 0:00.96 kworker/0:1

#2

I've not really figured out a good way to compensate for this in my plugin. You might get better results with the webcamstreamer plugin. That plugin allows for manipulating the ffmpeg commands and you might be able to tweak it to get better results.

#3

I just installed the webcamstreamer and it's doing the same thing but worse..

I'm not really not sure what is going on, what to tweak or even where to start diagnosing the issue.

Advise would be appreciated.

9:13 PM OK Video output low

The stream's current bitrate (211.00 Kbps) is lower than the recommended bitrate. We recommend that you use a stream bitrate of 2500 Kbps.

The stream's current bitrate (211.00 Kbps) is lower than the recommended bitrate. We recommend that you use a stream bitrate of 2500 Kbps.

The audio stream's current bitrate (0) is lower than the recommended bitrate. We recommend that you use an audio stream bitrate of 128 Kbps.

9:13 PM Good Stream is healthy

Stream health is excellent.

9:11 PM OK Video output low

The stream's current bitrate (221.00 Kbps) is lower than the recommended bitrate. We recommend that you use a stream bitrate of 2500 Kbps.

The stream's current bitrate (221.00 Kbps) is lower than the recommended bitrate. We recommend that you use a stream bitrate of 2500 Kbps.

The audio stream's current bitrate (0) is lower than the recommended bitrate. We recommend that you use an audio stream bitrate of 128 Kbps.

9:11 PM Good Stream is healthy

Stream health is excellent.

8:57 PM OK Video output low

The stream's current bitrate (210.00 Kbps) is lower than the recommended bitrate. We recommend that you use a stream bitrate of 2500 Kbps.

The stream's current bitrate (210.00 Kbps) is lower than the recommended bitrate. We recommend that you use a stream bitrate of 2500 Kbps.

The audio stream's current bitrate (0) is lower than the recommended bitrate. We recommend that you use an audio stream bitrate of 128 Kbps.

8:57 PM Good Stream is healthy

Stream health is excellent.

8:53 PM OK Video output low

The stream's current bitrate (215.00 Kbps) is lower than the recommended bitrate. We recommend that you use a stream bitrate of 2500 Kbps.

The stream's current bitrate (215.00 Kbps) is lower than the recommended bitrate. We recommend that you use a stream bitrate of 2500 Kbps.

The audio stream's current bitrate (0) is lower than the recommended bitrate. We recommend that you use an audio stream bitrate of 128 Kbps.