Hacker News new | past | comments | ask | show | jobs | submit login

There's no particular reason for collecting images this way other than that's what the hardware I have allow (an ESP32CAM).

> There are super cheap cameras that output rtsp streams.

Yeah I forgot about that. I think that if I can't get my current setup to work I'll buy one, thanks for the advice. I didn't think of buying an RTSP camera because I thought these cameras were made for local networks only given that it's the standard protocol for security cameras (I didn't know what RTSP was until I actually started working on this)

> GStreamer is pretty neat for this sort of stuff. More flexible than FFMpeg for this sort of use case.

Thanks for the recommendation, I'll read their docs

> I also don't understand the "ffmpeg finishes .. mid-transmission" part .. are you getting chopped images in your video stream?

It's just that when I execute ffmpeg on my terminal in parallel with receiving + writing the image files to a folder, the ffmpeg process finishes (instead of continuing indefinitely as long as I'm receiving files) because it goes faster than the actual rate at which files are coming. I found that the -re flag tells ffmpeg to process files at the same frame rate of video - which is exactly what I'd need, since that would ensure it would go on as long as I had images coming - but since I'm processing JPEGs I don't have a constant frame rate, so that's what I'm trying to figure out right now in order to make it work.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: