[LAU] ffmpeg video creation issue

Jeanette C. julien at mail.upb.de
Mon Mar 9 15:44:44 CET 2020


Hey hey,
when creating videos with ffmpeg, using a still image, I always end up with video files much longer than the audio content. This is the commandline I use:
ffmpeg -loop 1 -framerate 1 -i image.jpg -i audio.wav -c:v libx264 -tune stillimage -profile:v main -level 3.1 -crf 18 -c:a aac -shortest -pix_fmt yuv420p video.mp4

Is there something wrong with it? Can someone suggest a fix?

TIA and best wishes,

Jeanette

-- 
  * Website: http://juliencoder.de - for summer is a state of sound
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
  * SoundCloud: https://soundcloud.com/jeanette_c
  * Twitter: https://twitter.com/jeanette_c_s
  * Audiobombs: https://www.audiobombs.com/users/jeanette_c
  * GitHub: https://github.com/jeanette-c

For whatever reason,
I feel like I've been wanting you all my life <3
(Britney Spears)


More information about the Linux-audio-user mailing list