How to transcode a video to H.264 baseline using ffmpeg

The following command will transcode a video to H.264 baseline using ffmpeg:

example.sh
ffmpeg -i input.mp4 -threads 8 -c:v libx264 -profile:v baseline -level:v 4.0 -c:a copy baseline.mp4

Check out similar posts by category: Audio/Video, Ffmpeg