Generate Blank Media

Sometimes I have the need to generate truly blank/empty media on demand. Here are some solutions I found using ffmpeg and imagemagick:

-30 Seconds of blank/empty audio:
    ffmpeg -ar 48000 -t 30 -f s16le -acodec pcm_s16le -ac 2 -i /dev/zero -acodec libmp3lame -aq 4 blank.mp3

-30 seconds of blank/empty video:
    touch 1.txt && convert 1.txt -page Letter 1.png && ffmpeg -loop 1 -i 1.png -c:v libx264 -t 30 -pix_fmt yuv420p -aspect 16:9 blank.mp4 && rm 1.*

-5 page blank/empty pdf:
    for f in {1..5}; do touch temp.txt && convert temp.txt -page Letter temp.$f.png; done && convert temp.*.png blank.pdf && rm temp.*

-Blank/empty png file:
    touch 1.txt && convert 1.txt -page Letter blank.png && rm 1.txt