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: Any tools to encode mp4 to stream of frames?

2 pointsby kevroneabout 8 years ago
I don't understand video encoding/decoding algorithms. What I want is to process a video stream and parse each frame individually, either as an image or as a matrix of rgba values. Anything out there that can help me with that?

4 comments

lovelearningabout 8 years ago
If you're looking for a library to do this programmatically, try imageio (Python) or OpenCV's VideoCapture (C/C++/Python/Java). I recommend imageio - very easy to deploy, compared to OpenCV. Don't know about other languages.
NeuroWinterabout 8 years ago
Here is one way to just extract the frames:<p>ffmpeg -i in.avi -q:v 0 imagename_%04d.jpg
sp332about 8 years ago
ImageMagick <a href="http:&#x2F;&#x2F;www.imagemagick.org&#x2F;script&#x2F;index.php" rel="nofollow">http:&#x2F;&#x2F;www.imagemagick.org&#x2F;script&#x2F;index.php</a>
fratlasabout 8 years ago
Google h264 to raw. Yuv format is what you describe