Settings

Theme

Ask HN: Any tools to encode mp4 to stream of frames?

2 points by kevrone 9 years ago · 5 comments · 1 min read


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?

lovelearning 9 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.

NeuroWinter 9 years ago

Here is one way to just extract the frames:

ffmpeg -i in.avi -q:v 0 imagename_%04d.jpg

sp332 9 years ago

ImageMagick http://www.imagemagick.org/script/index.php

fratlas 9 years ago

Google h264 to raw. Yuv format is what you describe

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection