赞
踩
认识FFmpeg
yum install -y ffmpeg
指令范例
ffmpeg -i test.h264 -c:v libx264 -strict -2 test.mp4
ffmpeg -i test.mp4 -r 指定帧率 -f image2 test/image-%03d.jpg
ffmpeg -i test.h264 -threads 1 -ss 00:00:05.167 -f image2 -r 1 -t 1 -s 256*256 test-%2d.jpg
ffplay -i good_scale.mp4 -vf "smartblur=enable='between(t,1,20)',curves=enable='gte(t,3)':preset=cross_process"
ffmpeg -i test.h264 -vf "select=between(n\,0\,1)" -y test-%2d.jpg
const shell = require('shelljs');
// 执行ffmpeg
shell.exec(`ffmpeg -i topic.h264 -vf "select='between(n,0,1)'" -y -acodec copy topic.jpg`, (error, stdout, stderr) => {});
complete!!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。