file:{0} --》 視訊檔案
{1} --》 輸出檔案
音頻:
./bin/ffmpeg -i file:{0} -vn -acodec pcm_s16le -ac 1 -ar 16k -y {1}
視訊:
./bin/ffmpeg -i file:{0} -an -vf select='not(mod(n\,50))',setpts=N/TB -r 1 -vframes 5 {1}_%03d.jpg
視訊舉例:
./bin/ffmpeg -i file:/home/work/IMG_10.MOV -an -vf select='not(mod(n\,50))',setpts=N/TB -r 1 -vframes 5 /home/work/abc_%03d.jpg