ffmpeg batch code example
Example 1: python ffmpeg
# to install ffmpeg
pip install ffmpeg-python
Example 2: get chunks of a mp4 in ffmpeg
ffmpeg -i input.mp4 -c copy -map 0 -segment_time 00:20:00 -f segment -reset_timestamps 1 output%03d.mp4
# to install ffmpeg
pip install ffmpeg-python
ffmpeg -i input.mp4 -c copy -map 0 -segment_time 00:20:00 -f segment -reset_timestamps 1 output%03d.mp4