bramp / ffmpeg-cli-wrapper

Java wrapper around the FFmpeg command line tool
BSD 2-Clause "Simplified" License
1.72k stars 413 forks source link

How To Use FFmpegBuilder Create The Thumb Image #301

Closed Yeung-Ming closed 11 months ago

Yeung-Ming commented 11 months ago

The question Use this command can be create thumb image. but the FFmpegExecutor thow an Error like "[image2 @ 000002d03ef565c0] Cannot write more than one file with the same name. Are you missing the -update option or a sequence pattern? [vost#0:0/mjpeg @ 000002d03ef56c00] Error submitting a packet to the muxer: Invalid argument Last message repeated 1 times [out#0/image2 @ 000002d03ecd9500] Error muxing a packet [out#0/image2 @ 000002d03ecd9500] Task finished with error code: -22 (Invalid argument) [out#0/image2 @ 000002d03ecd9500] Terminating thread with return code -22 (Invalid argument)"

Example ffmpeg command

ffmpeg -i input.mp4 -vcode mjpeg -ss 00:00:05 -an -sn -r 1/1 output.png