Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
It is suggested that you use OpenCV for Python and moviepy (instead of FFmpeg) to manipulate multimedia.
-
extrac audio from video
-
convert between different formats of audios
Record Screen
The command below record screen into a MP4 video named out.mp4
in Linux.
ffmpeg -f x11grab -r 25 -s cif -i :0.0 $(date +%m%d%H%M%S).mp4
The command below record screen into a MP4 video named out.mp4
in macOS.
ffmpeg -f avfoundation -i "1" -pix_fmt yuv420p -r 25 $(date +%m%d%H%M%S).mp4
Convert Video Files
Convert a MOV video file to a MP4 video file.
ffmpeg -i my-video.mov -vcodec h264 -acodec mp2 my-video.mp4
References
-
https://ffmpeg.org/
-
https://www.labnol.org/internet/useful-ffmpeg-commands/28490/
-
https://catswhocode.com/ffmpeg-commands/
-
https://opensource.com/article/17/6/ffmpeg-convert-media-file-formats
-
https://www.ostechnix.com/20-ffmpeg-commands-beginners/
-
https://averagelinuxuser.com/convert-video-to-images-with-ffmpeg-in-linux/