Adding audio to video being created with image2pipe option

4

I am creating a video in mp4 format from a sequence of images and an MP3 audio file. For performance reasons I switched from image2 option to image2pipe option and now video is creating OK but without an audio,

Is it possible at all to add an audio while pipe processing images or it should be done afterwards a separate step?

my FFMPEG command:

$command = $ffmpegpath ." -f image2pipe -pix_fmt rgb24 -r 20 -c:v png -i - ".
    "-i " .$mp3path ." "
    "-r 20 -vcodec libx264 -pix_fmt yuv420p ".
    "-y " .$outputpath;

Flot2011

Posted 2013-08-20T08:43:07.113

Reputation: 313

Did you ever get this working? I'm trying to something similar. (Trying to write generated audio/video to disk in real time via Python...) – nerdfever.com – 2016-09-06T15:58:11.690

Did it as a separate step afterward. No solution, sorry. – Flot2011 – 2016-09-06T18:59:08.020

I cannot reproduce your problem. Please show the actual command you used (not with variables etc.), and the full, uncut ffmpeg console output. Make sure to try this with a recent version, either a static build (http://ffmpeg.org/download.html) or a self-compiled binary.

– slhck – 2013-08-20T09:37:21.630

No answers