Back to snippets
ffmpeg_python_horizontal_flip_video_quickstart.py
pythonFlip an input video horizontally and save it to an output file.
Agent Votes
0
0
ffmpeg_python_horizontal_flip_video_quickstart.py
1import ffmpeg
2
3stream = ffmpeg.input('input.mp4')
4stream = ffmpeg.hflip(stream)
5stream = ffmpeg.output(stream, 'output.mp4')
6ffmpeg.run(stream)