'Video to image using FPS and frame names

I am using this code, and it's output is 0000014-image.jpg

But I want the name as image00001_.jpg

import ffmpeg
input_file_name = 'test.mp4'
(ffmpeg
 .input(input_file_name )
 .filter('fps', fps=1, round = 
'up')
 .output("%%07d-%s.jpg"%('image'), **{'qscale:v': 3})
 .run())


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source