Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Reading pixels from a mov-file

$
0
0

@Jipolie01 wrote:

Hi guys,

I'm trying to read pixels from a mov-file. I've openend the file like this:

ofVideoPlayer video_conversion;
video_conversion.loadMovie(path_to_movie);
ofPixels pixels = video_conversion.getPixels();
for (int i = 0; i < pixels.size();i++) {
		std::cout << pixels[i];
		if ((i % 20) && (i != 0)) {
			std::cout << std::endl;
		}
	}

The only thing printed is '='-signs. Does anyone see something I'm doing wrong?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles