TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Advice on a live video processing project

3 pointsby pedrolinsabout 3 years ago
Hello HN, I&#x27;d love some advice on live video processing for a hobby project I&#x27;m working on.<p>I&#x27;m currently working on placing a live camera on a beach. My current setup leaves a lot to be desired, but my main problem has been with video-processing-related stuff which I have had no contact with as a developer until now.<p>It consists of a camera-equipped microcontroller connected to WiFi that is constantly sending JPEGs to a server through HTTP POST requests. On the server side, these JPEGs get saved as files in a folder which in turn are converted to an RTMP live video feed - using ffmpeg - which gets sent to a streaming platform (Twitch or Youtube).<p>There are problems with my current approach mainly that ffmpeg &quot;finishes&quot; converting my JPEGs mid &quot;transmission&quot; (I use quotes here because all that means is that my microcontroller is still sending JPEGs to the server).<p>I searched extensively but I&#x27;ve had trouble formulating the queries given how specific my use-case seems to be, and have had little success in this regard. That leads me into believing that I&#x27;m commiting mistakes in my approach to this project - which is of no surprise, given my lack of experience in video, specially streaming.<p>So I&#x27;d like some pointers or suggestions from you - it could be pointed at any part of the process I&#x27;m currently doing, though what made me write this in the first place was the video streaming problems I&#x27;m facing. It could be general resources into encoders, decoders, transcoders, video in general... Or even just comment what you&#x27;d change to make streaming work.<p>Perhaps as a way of being more direct: how does can &quot;generic&quot; - as in normal practice - livestreaming be achieved without the help of something like OBS?<p>Thank you.

2 comments

tgflynnabout 3 years ago
I&#x27;ve had a small amount of experience with this sort of thing, though not with the full blown streaming apps like OBS. For example I&#x27;ve written an Android App that sends video frames from a phone&#x27;s camera to a remote client. I believe I set it up so that the camera side acts as the server and the client side just issues GET requests, but it&#x27;s been a while since I looked at the code so I&#x27;m not entirely sure. It worked OK for what I wanted but I always hoped to improve it, which I is something I have yet to get around to.<p>As for your setup I&#x27;m wondering why you chose to use a microcontroller on the camera side instead of something more powerful like a RasberryPi. I would think the later would give you more options and I doubt the cost difference would be very significant to the overall project.
评论 #30462124 未加载
brutus1213about 3 years ago
May I ask why you are using a collecting images this way? There are super cheap cameras that output rtsp streams. Are you dealing with a low-bw connection?<p>GStreamer is pretty neat for this sort of stuff. More flexible than FFMpeg for this sort of use case.<p>I also don&#x27;t understand the &quot;ffmpeg finishes .. mid-transmission&quot; part .. are you getting chopped images in your video stream?
评论 #30462266 未加载