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

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
copb.phoenix

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

Post 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.
Post Reply