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.
:::bash
ffmpeg -f x11grab -r 25 -s cif -i :0.0 $(date +%m%d%H%M%S).mp4The command below record screen into a MP4 video named out.mp4 in macOS.
:::bash
ffmpeg -f avfoundation -i "1" -pix_fmt yuv420p -r 25 $(date +%m%d%H%M%S).mp4Convert Video Files¶
Convert a MOV video file to a MP4 video file.
ffmpeg -i my-video.mov -vcodec h264 -acodec mp2 my-video.mp4