[FFmpeg-user] Encoding a stream of base64 image strings into video

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Jul 14 14:19:32 CEST 2015

Yotam Laufer <y <at> utab.com> writes:

> The example I included for rasterizing a base64 datauri 
> is taken from the documentation and uses GIF, running 
> it on the command line will generate an image, so I’m 
> guessing some support is there. I use PNGs if it 
> matters.

I am not sure I understand this sentence, but in any 
case: There is a png parser but no gif parser, so if 
you try to send gifs through a pipe (no matter if 
base64 encoded or not), it will not work, sending 
pngs through a pipe to FFmpeg is expected to work 

> Following your answer, these questions arise:
> Is base64-over-pipe not supported at all?

Apparently not, at least judging from your report.

> What are my options apart from decoding base64 to 
> binary in the host, which is very slow?

You could implement an option to the pipe 
protocol to accept (and decode) base64.
Note that a base64 decoder exists in libavutil.

Please fix your quoting and do not top-post;-)

Carl Eugen

More information about the ffmpeg-user mailing list