This tool implements smart trim using python-ffmpeg. It allows precise trimming of a video with minimum re-encoding for minimum quality loss.
For more info about smart trim, see here.
pip3 install ffmpeg_smart_trim
python3 -m ffmpeg_smart_trim.trim in.mp4 --start_time 12.345 --end_time 67.890 --output out.mp4