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;
  • 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 (ffmpeg.org/download.html) or a self-compiled binary. – slhck Aug 20 '13 at 9:37
  • 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 Sep 6 '16 at 15:58
  • Did it as a separate step afterward. No solution, sorry. – Flot2011 Sep 6 '16 at 18:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.