or
for one 90-deg clockwise rotation.
ffmpeg -i input.mp4 -vf "transpose=1" output.mp4
or
ffmpeg -i input.mp4 -vf "transpose=clock" output.mp4
for one 90-deg clockwise rotation.
I tried at least 5 commands from different sites, and only this one worked well enough for me - about 37x speed, waitable.
ffmpeg -loop 1 -f image2 -r 2 -i image.jpg -i audio.m4a -c:v libx264 -c:a copy -shortest video.mp4
https://discussions.apple.com/docs/DOC-7942
It seems that it isn't easy to handle aac/m4a files in sox anymore. Online help threads suggest using ffmpeg to convert it to mp3 instead:
ffmpeg -i input.m4a -c:a libmp3lame -q:a 8 output.mp3
Reference link: https://askubuntu.com/questions/1200430/how-to-convert-m4a-audio-files-to-mp3-use-command-line
# Create background noise profile from mp3
/usr/bin/sox noise.mp3 -n noiseprof noise.prof
# Remove noise from mp3 using profile
/usr/bin/sox input.mp3 output.mp3 noisered noise.prof 0.21
Referral:ffmpeg -y -i merged.mp4 -i combined.mp3 -c:a aac -map 0:v -map 1:a output.mp4
Referral: