Ultimate Youtube Live Camera!


Why Tinkernut, what do you have here? This is my homemade Youtube live streaming camera. Why stream dead, when you can stream live? Ahhhh! That’s right, at long last my live streaming YouTube camera is finally done. And if you want to learn how I made it you can click here, beside my head. In this video I’m just gonna finish it up and show you how it works. If at any time I’m going too fast or you just get sick of looking at me you can head over to the project page at hackster.io Hackster.io. Why does that name sound so familiar? Oh that’s right, They’re a sponsor. So thank you all your beautiful Hacksterians What I’m using to design the case is a free online program called Tinkercad And I like it because it’s really simple to use and I’m a really stupid person. So what I did was I made small scale models of the camera and the Raspberry Pi and the battery and with it as a whole, I can then create the case around it which is what I did with these parts. Pretty crazy huh, welcome to Cad. Save it, export it. You’re done The 3D print is done, and I think it turned out pretty darn well if I do say so myself. Alright let’s see if this thing works. Oh that is nice. That is nice, look at that. Works like a charm. I’m a genius. So this is designed to fit both the Raspberry Pi and the LCD screen. Let’s see how well it actually does. Oh look at that, look at that. That will work, that right there will work just fine and here’s what the other side looks like so it’s got little risers for the Raspberry Pi. The camera itself is gonna go on the front and the battery is gonna go right behind. So one thing I just noticed is That’s where you’re gonna plug in the battery. And as of right now that is just not gonna fit, so one option would be to take the wires and wire them directly on to the back of the Raspberry Pi, but I’m not exactly sure which wire goes where so let’s find out. So now I’m gonna consult the purveyor of all things internet Mr. Google, let’s see what happens here doing an image search. Bada Bing bada boom. So now that we’ve got the information that we need I know exactly what you’re thinking. Why does he have a can of easy cheese on his desk? Well… Now that I know how to connect the wires to the Raspberry Pi, let’s solder them in place. So I’ll take the ground which goes to the top. PP5 That looks good, and then the power. Oh? Goes to BP2. Okay, so both of those are in place now, but the Connection is a little bit not connected as well as I’d like to be so to hold it in place I’m gonna add some hot glue. The camera and the battery go on the opposite side. This is the little YouTube logo, or is supposed to be at least and I have little notches cut out on the reverse side so that the camera should fit in there perfectly. Look at that. That’s what measuring properly can do for you kids. Now the battery portion of this should fit right in behind the camera and you want the bottom to kind of go where the bottom notch is and then the top is gonna be for the little switching mechanism so this should fit up top like that and the charging port should fit at the bottom like that and we’re just gonna have to use some hot glue to hold this into place. Just be careful with the hot glue, put it on the surface first before you put the battery on because heat and a lithium polymer battery, not a good thing folks, not a good thing and then it’s just a matter of hot gluing all the things. So the irritating thing about hot glue is holding the part in place while the hot glue dries. Stay! Stay I tell you! Do not move! Let’s add with a more hot glue. To keep the battery in place I’m obviously gonna need a spacer to put between it, the camera and the Raspberry Pi and I just thought I’d use these little supports that came from the 3D printer. All right everything is stuffed inside and secured but before I close it all up I’m gonna flip the switch see how it works. So flipped it on. I’ve got a white screen for now. Hopefully it’ll boot up here in a second. Yeah, there’s the boot screen And then it should auto launch the python script and there we go, and that is a beautiful, beautiful thing. Let’s hit preview, see if it works. Yeah, so there’s a screen. There’s my shirt, and there’s me. I was about to seal it up and I realized something kind of critical that I left out. So the microphone is in here plugged into USB, but it’s enclosed, there’s actually no way to hear it. Instead of redesigning it and 3D printing something else, I think I’m just gonna drill some holes Maybe in the side, maybe this side. I know it’s not the prettiest thing, then again neither am I. So now let’s seal this puppy up and call it a day. But it’s missing one thing. That should be white. Maybe I could just put a triangular piece of paper on it. No, I think I’ll paint it. This is the finished product. You have your little camera right there on the front, on the back you have your touch screen. LCD, at the top you have your on/off switch and on the bottom you have your USB charging port, as well as a tripod mount and that should mount on most standard tripods. Just like this. Pretty cool. If I were to continue to improve it I’d probably add status lights and maybe some way to connect it to your wireless through the touchscreen and some way to enter in the ID for your YouTube livestream. What would you add to it? Let me know in the comments below. What ideas would you like me to cover next? Submit or vote for your favorites at tinkernut.com/ideas. Click here to watch more videos like this and if you got any value out of my show and would like to give some value back, please feel free to like, subscribe, comment, follow me on social media or donate at tinkernut.com/donate. All right, that’s it for this tutorial. For more go to tinkernut.com.

72 Replies to “Ultimate Youtube Live Camera!

  1. Youtube logo supposed to look like CRT screen, the one you made looks like a huge soap LOL, nevertheless awesome project, thanks

  2. Wouldn't it be easier to use Arduino nano and run some custom software on it to run python scripts? This would be less expensive would it not be and it would save a lot of room inside the case for others things like maybe a speaker or microphone that's better than the one you already have.

  3. I'm gonna call into the comment show. (dails in) Hi, can i call in on the comment show
    no!
    why?
    cuz you this is the comment show for the you tube streaming camera. you must post comments.

  4. I like the concept but there are a few things I'd do differently.
    Firstly, I'd make a case that could be easily taken apart for maintenance either with screws or tabs for a streamlined look. Perhaps with areas designed to improve grip when used handheld.
    The other thing is the depth of the case is too big so I'd do as much as possible to reduce the thickness of the contents by removing unwanted headers and any other unnecessary bulky components.
    Looks like you're not a confident solderer but one important tip is to ADD solder to any joint when first soldering it as well as tinning the wires – this would make for a much more physically robust connection as well as improve the flow of the solder due to the flux core within the solder. This is particularly important when connecting wires to / from LiPo and Li-ion batteries as a detached wire could lead to a dangerous short causing a battery fire or damage sensitive components on the Arduino PCB.
    I would have printed the play button in white filament and have it clip in for easy assembly.
    I don't particularly like to use hot melt glue to hold things together – whilst it can be handy in some situations it makes disassembly much more difficult and components are harder to reuse with glue all over them. I'd have used screws where possible (any PCB's and the camera module) or double stick foam pads / tape for the battery.
    Overall I'm impressed with your efforts and I'm quite sure I'd struggle with the programming side of things where you obviously excel!

  5. Haven’t looked at your videos in three years man, I just remembered I was subscribed to your channel. It’s awesome, I don’t want to sound harsh but you have much more personality in your videos than you used to, and that adds a lot to them. Cheers!

  6. amazingly amazing amazingly nice good good ,. how is youtube/google/facebook/tutorial for is replying the last word i live in Australia y was born in Chile,. and how to photoshop mix edit photo i love to learn in future am easy beginner learning me goodbye

  7. Gigafide, could you jump on for a few seconds. Nothing special, just let us know you're okay.
    As for your next project, I'm sure a few of us would like a Pi controlled lawn mower. Just saying.

  8. Hi, I really enjoy your comments & videos, I gave you a like#438, shared and subbed#489k to your channel, it would be great if you could do the same, thanks and keep up the good work~ =)

  9. I used to watch every single one of your videos when I was a kid, now that I'm 19 and in programming School I'm rewatching all of them… you're awesome.

  10. I have a request. Now since I haven't donated you may not consider this, but its just a suggestion. Over the years, I've been watching most of your videos, and I LOVE your Raspberry Pi videos. Over the last few months, I've been "tinkering" with software for the Raspberry Pi, called Pi-Hole. It's content filtering for your network. Of course I have YouTube whitelisted, and your website, but I've told it to filter content on most other websites, that I do not, neither want to support. I was wondering if you could make a video over installing Pi-Hole on a Raspberry Pi. Maybe you could go over it's content filter, and DHCP server (for the WHOLE network)…..? I haven't been able to donate just yet, but a little bit from now, I will be able to donate to you. Thank you for everything you do for this community of nerds….

  11. Hey, so first let me say i have been following this seriers of videos and really finding them helpful and enjoying. but that beimg said i have hit a major wall. i have followed your script down to the wire but my pi refuses to stream. i need help please.

    here is my code:

    import subprocess
    import picamera
    import time
    YOUTUBE="rtmp://a.rtmp.youtube.com/live2/"
    KEY = "dzsh-y2dj-mkgm-bjwu"
    stream_cmd = 'ffmpeg -f h264 -r 25 -i – -itsoffset 5.5 -fflags nobuffer -f alsa -ac 1 -i hw:1,0 -vcodec copy -acodec aac -ac 1 -ar 8000 -ab 32k -map 0:0 -map 1:0 -strict experimental -f flv ' + YOUTUBE + KEY
    stream_pipe = subprocess.Popen(stream_cmd, shell=True, stdin=subprocess.PIPE)
    camera = picamera.PiCamera(resolution=(640, 480), framerate=25)
    try:
    now = time.strftime("%Y-%m-%d-%H:%M:%S")
    camera.framerate = 25
    camera.vflip = True
    camera.hflip = True
    camera.start_recording(stream_pipe.stdin, format='h264', bitrate = 2000000)
    while True:
    camera.wait_recording(1)
    except KeyboardInterrupt:
    camera.stop_recording()
    finally:
    camera.close()
    stream_pipe.stdin.close() Input #0, h264, from 'pipe:':
    Duration: N/A, bitrate: N/A
    Stream #0:0: Video: h264 (High), yuv420p(progressive), 640×480, 25 fps, 25 tbr, 1200k tbn, 50 tbc
    Unknown input format: 'al
    stream_pipe.wait()
    print("Camera safely shut down")
    print("Good bye")

    here is the result i get from my terminal. PLEASE HELP ME

    Input #0, h264, from 'pipe:':
    Duration: N/A, bitrate: N/A
    Stream #0:0: Video: h264 (High), yuv420p(progressive), 640×480, 25 fps, 25 tbr, 1200k tbn, 50 tbc
    Unknown input format: 'alsa'
    Traceback (most recent call last):
    File "stream_2.py", line 21, in <module>
    camera.close()
    File "/usr/lib/python2.7/dist-packages/picamera/camera.py", line 737, in close
    self.stop_recording(splitter_port=port)
    File "/usr/lib/python2.7/dist-packages/picamera/camera.py", line 1196, in stop_recording
    self.wait_recording(0, splitter_port)
    File "/usr/lib/python2.7/dist-packages/picamera/camera.py", line 1167, in wait_recording
    encoder.wait(timeout)
    File "/usr/lib/python2.7/dist-packages/picamera/encoders.py", line 398, in wait
    raise self.exception
    IOError: [Errno 32] Broken pip

  12. I really, really, really love you, forever! <3 <3 <3 May God bless you with all sorts of blessings, and if you need someone to pay you a beer, I'll be here!

  13. Do you sell any of these projects on a online store if so what's the link I would like to buy the twitch stream box

Leave a Reply

Your email address will not be published. Required fields are marked *