ffmpeg-140秒提取方案 精确时间提取视频 twitter专用2分20秒视频

关键字:twitter视频|ffmpeg|ffmpeg精准提取视频

脚本版本1

@echo off

ffmpeg -ss 00:01:55 -t 23 -i G:\GoogleVideo\1020\C9268AF3D6A91C8F0788BAECE2DEE01C.mp4 -y -c:v libx264 -c:a aac -strict experimental -b:a 98k -y G:\GoogleVideo\1020\temp\C9268AF3D6A91C8F0788BAECE2DEE01C_1.mp4
ffmpeg -ss 00:03:35 -t 23 -i G:\GoogleVideo\1020\C9268AF3D6A91C8F0788BAECE2DEE01C.mp4 -y -c:v libx264 -c:a aac -strict experimental -b:a 98k -y G:\GoogleVideo\1020\temp\C9268AF3D6A91C8F0788BAECE2DEE01C_2.mp4
ffmpeg -ss 00:05:15 -t 23 -i G:\GoogleVideo\1020\C9268AF3D6A91C8F0788BAECE2DEE01C.mp4 -y -c:v libx264 -c:a aac -strict experimental -b:a 98k -y G:\GoogleVideo\1020\temp\C9268AF3D6A91C8F0788BAECE2DEE01C_3.mp4
ffmpeg -ss 00:06:55 -t 23 -i G:\GoogleVideo\1020\C9268AF3D6A91C8F0788BAECE2DEE01C.mp4 -y -c:v libx264 -c:a aac -strict experimental -b:a 98k -y G:\GoogleVideo\1020\temp\C9268AF3D6A91C8F0788BAECE2DEE01C_4.mp4
ffmpeg -ss 00:08:35 -t 23 -i G:\GoogleVideo\1020\C9268AF3D6A91C8F0788BAECE2DEE01C.mp4 -y -c:v libx264 -c:a aac -strict experimental -b:a 98k -y G:\GoogleVideo\1020\temp\C9268AF3D6A91C8F0788BAECE2DEE01C_5.mp4
ffmpeg -ss 00:10:15 -t 23 -i G:\GoogleVideo\1020\C9268AF3D6A91C8F0788BAECE2DEE01C.mp4 -y -c:v libx264 -c:a aac -strict experimental -b:a 98k -y G:\GoogleVideo\1020\temp\C9268AF3D6A91C8F0788BAECE2DEE01C_6.mp4

echo "file 'C9268AF3D6A91C8F0788BAECE2DEE01C_1.mp4'\nfile 'C9268AF3D6A91C8F0788BAECE2DEE01C_2.mp4'\nfile 'C9268AF3D6A91C8F0788BAECE2DEE01C_3.mp4'\nfile 'C9268AF3D6A91C8F0788BAECE2DEE01C_4.mp4'\nfile 'C9268AF3D6A91C8F0788BAECE2DEE01C_5.mp4'\nfile 'C9268AF3D6A91C8F0788BAECE2DEE01C_6.mp4'" >> G:\GoogleVideo\1020\temp\C9268AF3D6A91C8F0788BAECE2DEE01C_files.txt

ffmpeg -f concat -i G:\GoogleVideo\1020\temp\C9268AF3D6A91C8F0788BAECE2DEE01C_files.txt -c copy -y G:\GoogleVideo\1020\Prev\C9268AF3D6A91C8F0788BAECE2DEE01C.mp4

echo "14\n"

脚本版本2

@echo off

ffmpeg -ss 00:01:55 -t 23 -i G:\GoogleVideo\1020\C9268AF3D6A91C8F0788BAECE2DEE01C.mp4 -y -c:v libx264 -c:a aac -strict experimental -b:a 98k -y G:\GoogleVideo\1020\temp\C9268AF3D6A91C8F0788BAECE2DEE01C_1.mp4
ffmpeg -ss 00:03:35 -t 23 -i G:\GoogleVideo\1020\C9268AF3D6A91C8F0788BAECE2DEE01C.mp4 -y -c:v libx264 -c:a aac -strict experimental -b:a 98k -y G:\GoogleVideo\1020\temp\C9268AF3D6A91C8F0788BAECE2DEE01C_2.mp4
ffmpeg -ss 00:05:15 -t 23 -i G:\GoogleVideo\1020\C9268AF3D6A91C8F0788BAECE2DEE01C.mp4 -y -c:v libx264 -c:a aac -strict experimental -b:a 98k -y G:\GoogleVideo\1020\temp\C9268AF3D6A91C8F0788BAECE2DEE01C_3.mp4
ffmpeg -ss 00:06:55 -t 23 -i G:\GoogleVideo\1020\C9268AF3D6A91C8F0788BAECE2DEE01C.mp4 -y -c:v libx264 -c:a aac -strict experimental -b:a 98k -y G:\GoogleVideo\1020\temp\C9268AF3D6A91C8F0788BAECE2DEE01C_4.mp4
ffmpeg -ss 00:08:35 -t 23 -i G:\GoogleVideo\1020\C9268AF3D6A91C8F0788BAECE2DEE01C.mp4 -y -c:v libx264 -c:a aac -strict experimental -b:a 98k -y G:\GoogleVideo\1020\temp\C9268AF3D6A91C8F0788BAECE2DEE01C_5.mp4
ffmpeg -ss 00:10:15 -t 23 -i G:\GoogleVideo\1020\C9268AF3D6A91C8F0788BAECE2DEE01C.mp4 -y -c:v libx264 -c:a aac -strict experimental -b:a 98k -y G:\GoogleVideo\1020\temp\C9268AF3D6A91C8F0788BAECE2DEE01C_6.mp4

echo file 'G:\\GoogleVideo\\1020\\temp\\C9268AF3D6A91C8F0788BAECE2DEE01C_1.mp4' >> G:\\GoogleVideo\\1020\\temp\\C9268AF3D6A91C8F0788BAECE2DEE01C_files.txt
echo file 'G:\\GoogleVideo\\1020\\temp\\C9268AF3D6A91C8F0788BAECE2DEE01C_2.mp4' >> G:\\GoogleVideo\\1020\\temp\\C9268AF3D6A91C8F0788BAECE2DEE01C_files.txt
echo file 'G:\\GoogleVideo\\1020\\temp\\C9268AF3D6A91C8F0788BAECE2DEE01C_3.mp4' >> G:\\GoogleVideo\\1020\\temp\\C9268AF3D6A91C8F0788BAECE2DEE01C_files.txt
echo file 'G:\\GoogleVideo\\1020\\temp\\C9268AF3D6A91C8F0788BAECE2DEE01C_4.mp4' >> G:\\GoogleVideo\\1020\\temp\\C9268AF3D6A91C8F0788BAECE2DEE01C_files.txt
echo file 'G:\\GoogleVideo\\1020\\temp\\C9268AF3D6A91C8F0788BAECE2DEE01C_5.mp4' >> G:\\GoogleVideo\\1020\\temp\\C9268AF3D6A91C8F0788BAECE2DEE01C_files.txt
echo file 'G:\\GoogleVideo\\1020\\temp\\C9268AF3D6A91C8F0788BAECE2DEE01C_6.mp4' >> G:\\GoogleVideo\\1020\\temp\\C9268AF3D6A91C8F0788BAECE2DEE01C_files.txt

ffmpeg -f concat -i G:\GoogleVideo\1020\temp\C9268AF3D6A91C8F0788BAECE2DEE01C_files.txt -c copy -y G:\GoogleVideo\1020\Prev\C9268AF3D6A91C8F0788BAECE2DEE01C.mp4

echo 14