YongJiang Zhang
YongJiang Zhang

Reputation: 2011

no audio after mp3 + jpg with ffmpeg

I have a mp3 file. I checked. It has audio. After run command

ffmpeg -i 31.mp3 -i cover.jpg -c:a copy -s 1280x720 -pix_fmt yuv420p 31.mp4

I got 31.mp4 but it has no audio.

I use macbook pro and ffmpeg version 4.1

Upvotes: 1

Views: 110

Answers (1)

YongJiang Zhang
YongJiang Zhang

Reputation: 2011

It's not ffmpeg issue. It's quicktime player issue. Change "-c:a copy" to "-c:a aac" fixed the issue.

Upvotes: 1

Related Questions