# When starting the Terminal, I suggest to set the Desktop as working space, in # order to easily find the files during the class. # for Linux/Mac/Windows Terminal or WSL/Windows locally cd Desktop # if it does not work, try either cd ~/Desktop cd $HOME/Desktop # for Windows on OneDrive Cloud cd OneDrive # generate a video exercise file ffmpeg -f lavfi -i mandelbrot -c:v rawvideo -pix_fmt uyvy422 -t 10 mandelbrot.avi # play it ffplay mandelbrot.avi # create an audio exercice file ffmpeg -f lavfi -i "sine=frequency=440" -c:a pcm_s16le -ar 48k -ac 2 -t 10 la.wav # play it ffplay la.wav # create a new file joining the generated image and sound files ffmpeg -i mandelbrot.avi -i la.wav -c:v copy -c:a copy mandela.avi # play it ffplay mandela.avi # analyse its technical metadata with FFmpeg (and save the results into a text # file) ffprobe mandela.avi ffprobe -show_format -show_streams mandela.avi ffprobe -show_format -show_streams -print_format flat mandela.avi ffprobe -show_format -show_streams -print_format xml mandela.avi ffprobe -show_format -show_streams -print_format json mandela.avi ffprobe -show_format -show_streams -print_format json mandela.avi > mandela.txt # analyse its technical metadata with MediaInfo mediainfo mandela.avi