Streaming to Youtube

418 views
Skip to first unread message

Aaron Street

unread,
Apr 8, 2021, 8:28:56 AM4/8/21
to motioneye
Hi, 

Can any one suggest a way to stream to youtube from araspberry pi also running motion eye? 

I am running a Pi Zero and already it seems to struggle (indeed so do my pi 3b) to capture at a decent frame rate. but i would like to be able to redirect the stream to youtube as well as inside my house. 

Thank you 

Kevin Shumaker

unread,
Apr 8, 2021, 8:43:51 AM4/8/21
to Aaron Street, motioneye
Unfortunately, motionEye grabs control of the camera and doesn't share the actual camera nicely. You could possibly use the shared stream at port 8081 on something like
using the URL: http://localhost:8081
but this is going to be very unsatisfactory on a PiZeroW, might be tolerable on a Pi3B+ or Pi4B with gigabit ethernet...


--
You received this message because you are subscribed to the Google Groups "motioneye" group.
To unsubscribe from this group and stop receiving emails from it, send an email to motioneye+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/motioneye/cff77a63-e429-4596-956a-fc7c2f3d18edn%40googlegroups.com.


--
Thanks

Kevin Shumaker


N38° 19' 56.52"
W85° 45' 8.56"

Semper Gumby
“Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA
Ethics are what we do when no one else is looking.
Quis custodiet ipsos custodes?
“There is no end to the good you can do if you don’t care who gets the credit.” - C Powell
You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

Aaron Street

unread,
Apr 8, 2021, 9:20:53 AM4/8/21
to motioneye
I was thinking if its possible to leverage the movie_extpipe part of the config 

    This option specifies whether to send the output to a pipe for external encoding into a movie
           and examples are 

          movie_extpipe ffmpeg -y -f rawvideo -pix_fmt yuv420p -video_size %wx%h -framerate %fps -i pipe:0 -vcodec libx264 -preset ultrafast -f mp4 %f.mp4

Which is not far what you would use to stream to youtube which is something like this. 

ffmpeg -loglevel debug -threads:v 2 -threads:a 8 -filter_threads 2 -thread_queue_size 512 -f dshow -i video="HP Wide Vision HD" -f dshow -i audio="Microphone Array (Realtek Audio)" -pix_fmt yuv420p -c:v libx264 -qp:v 19 -profile:v high -rc:v cbr_ld_hq -level:v 4.2 -r:v 60 -g:v 120 -bf:v 3 -refs:v 16 -f flv rtmp://youtube_stream_url/stream_key

I not sure why this would not work. (apart from the resorces the zero has :) )

David Chew

unread,
Apr 8, 2021, 9:26:46 AM4/8/21
to Aaron Street, motioneye
you could probably do it using a full linux distro (not motionOS).    Start streamyard in a browser and point it to youtube channel.  

On Thu, Apr 8, 2021 at 8:28 AM Aaron Street <devilwah...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "motioneye" group.
To unsubscribe from this group and stop receiving emails from it, send an email to motioneye+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/motioneye/cff77a63-e429-4596-956a-fc7c2f3d18edn%40googlegroups.com.


--
David T. Chew

Kevin Shumaker

unread,
Apr 8, 2021, 9:37:26 AM4/8/21
to David Chew, Aaron Street, motioneye
@Aaron Street
by using motion_extpipe you are basically talking to motion (https://github.com/Motion-Project/motion) directly, anyway.
One or the other is going to suffer ppor to unacceptable performance (especially on a Zero)

Reply all
Reply to author
Forward
0 new messages