I took a FLAC file and JPG to create a video
ffmpeg -loop 1 -i aa.jpg -i bb.flac -c:a copy -shortest cc.mkv
However after uploading the resultant MKV to YouTube I noticed that the audio cuts out about 5 times around the end for 1/2 second each.
I read on how to fix audio problems with YouTube, which suggest to use AAC.
Would it be best to use
- FLAC with a different command
- AAC lossless (if that exists)
- something else
To clarify, the errors only occur on YouTube, not with the local FLAC or local MKV files.
I ended up going with this silly command; the skipping seems to have gone away.
ffmpeg -loop 1 -i aa.jpg -i bb.flac -shortest \ -c:a aac -strict -2 -b:a 529200 cc.mp4