Page 1 of 1

Pixel-by-pixel feed to ffmpeg as valid input, how?

Posted: 2010-12-14T05:35:55-07:00
by copb.phoenix
The title is confusing, but the idea is to feed the pixels one at a time to ffmpeg, so that we end up with a video that just changes colors as it iterates through the image.

Right now, it would be nice to avoid any intermediate, so I keep trying (and failing) with stream:

Code: Select all

stream test.jpg png:- | ffmpeg -vcodec png -i pipe:0 -f mp4 -vcodec mpeg4 -r 25 -s 25x25 -an output.mp4
It returns

Code: Select all

pipe:0: Invalid data found when processing input
I've written and rewritten that line quite a few times, to the point of having invalid videos and trash files alike. Attempting to declare a format for the piped data is a last ditch effort before asking for help. What is it I'm clearly not getting about the behaviour of stream and/or ffmpeg?

Any help is greatly appreciated, and thank you in advance.