Jump to content
JohnDisney

YouTube not allowing Youtubers under 1000 subscribers to stream

Recommended Posts

On 4/7/2019 at 3:43 PM, robramdisk said:

Is a Raspberri Pi considered a computer? If EoE streams are broadcast to Facebook, a Python script can poll https://www.facebook.com/pg/EyesOnEars/videos/ and rebroadcast livestreams to Youtube. I believe "Stream Labs" can also broadcast to multiple platforms (YT,FB,Twitch etc...)

I think @dbeedle was trying a Raspberri Pi with mediocre results

Share this post


Link to post
Share on other sites
13 hours ago, robramdisk said:

RPi 1,2 or 3? I imagine a RPi 1 will struggle.

I have experimented with a Pi 3B+ using ffmpeg.  Also a docker image called restreamer (https://datarhei.github.io/restreamer/)  which is using ffmpeg on the back end.  With the right camera I think it can perform well.  In my case, the camera (a cheaper Logitech) does not output a stream that YouTube likes so, it has to transcode the stream.  The quality of the stream is OK but I only get around 7 frames per second.  Usable but not the smoothest. But, it's also not burying the CPU with the right (lower) quality settings. 

I blame the camera for the low performance in my case.  With a camera that outputs a H.264 mp4 stream natively, the Pi would just act as a pass though, more or less, with no CPU spent on the transcoding, just pumping the data through.  I've seen reports of folks getting pretty good results in that case.  

 

Edited by dbeedle

Share this post


Link to post
Share on other sites
10 minutes ago, dbeedle said:

I have experimented with a Pi 3B+ using ffmpeg.  Also a docker image called restreamer (https://datarhei.github.io/restreamer/)  which is using ffmpeg on the back end.  With the right camera I think it can perform well.  In my case, the camera (a cheaper Logitech) does not output a stream that YouTube likes so, it has to transcode the stream.  The quality of the stream is OK but I only get around 7 frames per second.  Usable but not the smoothest. But, it's also not burying the CPU with the right (lower) quality settings. 

I blame the camera for the low performance in my case.  With a camera that outputs a H.264 mp4 stream natively, the Pi would just act as a pass though, more or less, with no CPU spent on the transcoding, just pumping the data through.  I've seen reports of folks getting pretty good results in that case.  

 

Well you certainly did your research ! I wonder about one of those PC sticks or set top PCs. The ones running a cheery trail cpu

Share this post


Link to post
Share on other sites
28 minutes ago, Fizbain said:

Well you certainly did your research ! I wonder about one of those PC sticks or set top PCs. The ones running a cheery trail cpu

With a good web cam, I'd say they should do, at least, reasonably well.  It doesn't take a lot of CPU if the transcoding isn't needed.  It seems that in may depend more on the camera.

But now I'm curious!  I'm tempted to get a Pi Zero W and a camera module and see how it goes!  This may just be an urge to tinker!

Edited by dbeedle

Share this post


Link to post
Share on other sites

When I suggested the Pi, I was referring to it polling EoE Facebook live-streams and transferring the live video feeds in real time to the perspective Eoe C1-6 youtube channels until the 1k sub is achieved. This setup does not involve a webcam. There are utilities available to accomplish this: 'streamlink' and 'youtube-upload' which are both on github. Since the live Eoe YT upload feeds originate from a home based Pi, it shouldn't violate YT's TOS. The Eoe Streamers (Resort & Mobile) would simply stream to FB. This would increase the exposure to Eoe streams as Eoe FB has a larger following than YT at the moment. I've successfully captured four simultaneous 1080/720p livestreams on a Pi2 in realtime without a problem as I developed a Eoe DVR that also records MASL and USL soccer matches (youtube) in real time. It's been running in my home since 2016. When there aren't any Eoe live streams, I enjoy previous ambient recorded streams in the meantime. The above can also be accomplished on a Eoe Staff's PC, leased VM on Amazon/Google/DigitalOcean or elsewhere.

Edited by robramdisk

Share this post


Link to post
Share on other sites
On 4/12/2019 at 11:20 AM, robramdisk said:

When I suggested the Pi, I was referring to it polling EoE Facebook live-streams and transferring the live video feeds in real time to the perspective Eoe C1-6 youtube channels until the 1k sub is achieved. This setup does not involve a webcam. There are utilities available to accomplish this: 'streamlink' and 'youtube-upload' which are both on github. Since the live Eoe YT upload feeds originate from a home based Pi, it shouldn't violate YT's TOS. The Eoe Streamers (Resort & Mobile) would simply stream to FB. This would increase the exposure to Eoe streams as Eoe FB has a larger following than YT at the moment. I've successfully captured four simultaneous 1080/720p livestreams on a Pi2 in realtime without a problem as I developed a Eoe DVR that also records MASL and USL soccer matches (youtube) in real time. It's been running in my home since 2016. When there aren't any Eoe live streams, I enjoy previous ambient recorded streams in the meantime. The above can also be accomplished on a Eoe Staff's PC, leased VM on Amazon/Google/DigitalOcean or elsewhere.

Interesting idea. I see the hardest part of something like this being timing. Maybe we can discuss live?

Share this post


Link to post
Share on other sites
On 4/14/2019 at 10:56 PM, Fizbain said:

Interesting idea. I see the hardest part of something like this being timing. Maybe we can discuss live?

Sure. In the meantime, to capture any live FB stream we can use streamlink which would run in a bash/batch script in a while loop in the background. If there are no current live streams streamlink will return: "error: No playable streams found on this URL" (it only processes live streams), so we sleep and retry. Additional scripting would determine the correct target YT channel (Eoe streamer puts "C1,C2,C3" in the title?), handle multiple live broadcasts on the same FB page etc...
FB Consumer script (1of2):
# use 'streamingthemagic' as a test as they are live now:
streamlink -o test.mp4 https://www.facebook.com/pg/streamingthemagic/videos/ best
[cli][info] Found matching plugin facebook for URL https://www.facebook.com/pg/streamingthemagic/videos/
[cli][info] Available streams: 144p (worst), 240p, 360p, 480p, 504p (best)
[cli][info] Opening stream: 504p (dash)
[download][test.mp4] Written 2.6 MB (20s @ 134.4 KB/s)   

To upload to youtube, we can use youtube-upload which runs in another background bash/bat script that polls the directory looking for input files (consumed by streamlink above). youtube-upload will begin uploading at the 0 byte offset of the input file thus preserving the timing (very minor lag). After further research, I'd use ffmpeg to stream to the perspective Eoe channel's stream.name/key.

Very basic high level sample:
YT Producer script (2of2):

# 'client_secrets.json' contains the Google auth key for the perspective Eoe YT channel:
[ -f ./test.mp4 ] && youtube-upload –client-secrets=client_secrets_chan1.json –title=”WDW Polynesian Live” –category=Travel/yada/yada/ test.mp4 || echo "No live stream to upload."
OR (tested - see live stream below):
ffmpeg -re -i "./test.mp4"  -acodec libmp3lame  -ar 44100 -b:a 128k -pix_fmt yuv420p -profile:v baseline -s 640x342 -bufsize 2048k -
vb 400k -maxrate 800k -deinterlace -vcodec libx264 -g 30 -r 30 -f flv "rtmp://a.rtmp.youtube.com/live2/gydk-6uxx-xxxx-xxxx"

I have no experience streaming as I've always been interested & focused on consuming live content (big thanks to the Eoe Streamers!) and playing back which is why I dev'd the Eoe Uo Kodi add-on which has new FB live stream functionality. I've written Python functions to scrape FB pages to retrieve live stream titles and most importantly transact with the live FB video servers to request, receive and process the FB M3U stream URLs via FB JSON (streamlink has FB compatibility already built in). I'd be glad to contribute the FB scrape Python code (which can already be found in the most recent Kodi add-on source- see FacebookLive() func) to the effort. 'streamlink' and 'youtube-upload' are written in Python too btw.

Streaming "live" via a RaspberryPi (source is a raw EoE FLV 7 hour ustream.com oldie but goodie and includes ustream's dropped frames - those were the days! :D):

 

Edited by robramdisk

Share this post


Link to post
Share on other sites
4 hours ago, dbeedle said:

Meant to fiddle with this over the weekend but alas, no such luck!  

FB channels that frequently have live video stream content (non Disney) for 'fiddling' :D
https://www.facebook.com/pg/WFMYNews2/videos/
https://www.facebook.com/pg/WVTM13/videos/

Edited by robramdisk

Share this post


Link to post
Share on other sites

I have hope (hopefully not false hope) that the deployment of 5G cell service will help at least with the quality of the streams.  Facebook or Periscope or maybe even YouTube if the come to their senses and remove the 1000 subscriber limit.

 

 

Share this post


Link to post
Share on other sites

I was curious why there is now a limit for YouTube and, with little googling, found that it is not a new requirement but had been dropped from 10,000 viewers to 1.000 then eliminated sometime around May of 2017.  It's now back to that 1,000 viewers.  I suppose, to preserve some level of quality (not that more viewers = better quality) and to make money via advertising versus the (considerable) cost of resources used to process video on such a scale.

YouTube did still have requirements after that May 2017. It seems that the 1,000 viewers was still officially required but not enforced.  Now they are back to enforcing it.

I wonder if if some sort of open source, private server streaming service would be usable.  

Share this post


Link to post
Share on other sites

Now the only way to live stream on YouTube is to upload non-live videos and hope you attract a fan base.  

We might need to start a regularly scheduled Disney VLOG :)

Only what format to use?  :huh:

   

Share this post


Link to post
Share on other sites

I theorize that Google enforced the 1,000 subscriber limit requisite to deter a madman from mobile live streaming horrific acts on a whim. Chances are, someone of this caliber is a lone wolf who does not have a 1,000+ sub count prior to committing the act on Google's video streaming platform. I do apologize for being pessimistic (downer) in my theory on a Disney fan site. My 2 cents.

Edited by robramdisk

Share this post


Link to post
Share on other sites
17 minutes ago, oshpopham said:

Now the only way to live stream on YouTube is to upload non-live videos and hope you attract a fan base.  

We might need to start a regularly scheduled Disney VLOG :)

Only what format to use?  :huh:

   

Until they get shut down:  CamOn Live, Streamlabs several others.  At least they worked the other day.

Share this post


Link to post
Share on other sites
4 hours ago, dbeedle said:

Until they get shut down:  CamOn Live, Streamlabs several others.  At least they worked the other day.

It appears that Google endorses the use of Streamlabs Mobile Encoding and "Wirecast Go" for IOS:
https://support.google.com/youtube/answer/2907883?hl=en

Edited by robramdisk

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×