ffmpeg -loglevel debug -i input_file -vf "frei0r=straightlines:number_of_lines|sample_size|extreme_line_mode|long_line_mode" -t output_file_seconds output_file
ffmpeg -loglevel debug -i videoplayback.mp4 -vf "frei0r=straightlines:2000|10|n|y" -t 30 lovebff.mp4
- Number of Lines - Default: 1000
- Sample size - Number of attempts to build a line. Default: 10
- Extreme Line Mode - Should draw the extreme lines? Default: false
- Long Line Mode - Should draw lines to the end of the screen? Default: true
I am grateful to
- BadAppleFLSL for the algorithm, the idea and the open source code
- frei0r (GPL-2.0 license) for the open source code and a wonderful cross-platform framework for creating video filters in C++
- ffmpeg for the open source code