USB Streaming



My main reason for streaming is to create a monitor pi for my 3d printer. Using the pi Camera, it was nice to stream the video and monitor the printing process from another location. Even from a desk nearby so that you don't have to consistently go over and check the print job.
Using a USB camera offers a lot more distance than having a long pi camera ribbon cable, so I would like to use that. Though propping the pi up so the ribbon cable and camera were looking down over the hood worked, it did not seem very secure. I believe I actually screwed up the camera by man handling it a bit too much, and it is now not working. This was while I was trying to 3D print a mounting enclosure for it and quickly realized that the ribbon cable simply did not offer enough freedom of movement.

Streaming with Pi Camera

I have been trying to get USB streaming to work on my pi.
Streaming with the pi camera seemed pretty simple using ffmpeg.
raspivid -o - -t 0 -w 1280 -h 720 -fps 25 -b 128000 -g 50 | ffmpeg -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/video0 -f h264 -i - -vcodec copy -acodec aac -ab 128k -g 50 -strict experimental -f flv rtmp://

Streaming with USB

Getting the usb camera settings
ffmpeg -f v4l2 -list_formats all -i /dev/video0

Though I am able to stream using the command:
ffmpeg -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -s 960x720 -f v4l2 -r 10 -i /dev/video0 -vcodec h264 -g 50 -strict experimental -acodec aac -ac 2 -ar 44100 -ab 128k -pix_fmt yuv420p -f flv rtmp://
I am getting buffering issues.
I did however notice that I had motion installed on this pi and have disabled it. I believe I was probably getting conflicts. One of the problems with testing all of this stuff is that you forget what all you have installed and how you installed it. Though I have noted most of it, after a few months or years have passed, you really lose track.
I may even revisit Motion, but would like to get the YouTube streaming working.
I will update the command string if I can get it working 100% without issues, but after research, there are quite a few commands and variations of ffmpeg config. I think it is the option, but just cannot seem to dial in the settings.
I also tried streaming directly from YouTube camera option but I am getting "device in use" so possibly I still have something else conflicting with the usb camera.
This may be my entire problem.
44.4968817,101.0329761,05-20-2019 01:17:41 AM,!Picking Pateunias