Skip to main content

transcoding

#copy all audio into mp4 video with static image (useful for playing back audio with video players (shows cover while playing))

for i in *.mp3; 
do ffmpeg -loop 1 -i image-file,file.jpg -i $i -c:a copy -c:v h264 -q:v 255 -shortest -y -s cif -pix_fmt yuv420p mp4/$i.mp4; 
done