还是单独开一个吧 每次找挺烦的

播放YUV序列

ffmpeg -f rawvideo -pix_fmt yuv420p -s 3840x2160 -i "Wood.yuv" -vf "scale=1280x720" -c:v rawvideo -pix_fmt yuv420p -f sdl "Wood"

4K序列转720P

ffmpeg -f rawvideo -pix_fmt yuv420p -s 3840x2160 -i "G:\xiph_dataset\2020tcsvt\YUV_4K\Traffic Flow.yuv" -vf "scale=1280x720" -c:v rawvideo -pix_fmt yuv420p -f rawvideo "G:\xiph_dataset\2020tcsvt\4K\Traffic Flow.yuv"

按100帧分割视频

for %i in ("G:\xiph_dataset\2020tcsvt\4K\*.yuv") do ffmpeg  -pixel_format yuv420p -f rawvideo -s 1280x720 -i "%i" -vf format=yuv420p -f segment  -segment_frames 100,200 -reset_timestamps 1 -map 0 "G:\xiph_dataset\2020tcsvt\100frame\%~ni_%03d.yuv"

按30帧分割视频

for %i in ("G:\xiph_dataset\2020tcsvt\100frame\*.yuv") do ffmpeg  -pixel_format yuv420p -f rawvideo -s 1280x720 -i "%i" -vf format=yuv420p -f segment  -segment_frames 30,60,90,120,150,180,210,240,270,300,330,360,390,420,450,480,510,540,570,600,630,660,690,720,750,780 -reset_timestamps 1 -map 0 "G:\xiph_dataset\2020tcsvt\my420\%~ni_%03d.yuv"

计算txt行中特殊字符数量

findstr /R /C:"0$" "D:\dls\2022TMM\root\list\local_5_15_test.txt" | find /C /V ""
findstr /R /C:"1$" "D:\dls\2022TMM\root\list\local_5_15_test.txt" | find /C /V ""
findstr /R /C:"2$" "D:\dls\2022TMM\root\list\local_5_15_test.txt" | find /C /V ""

计算txt行中特殊字符数量

for %i in ("D:\dls\2019TCSVT\local_exam\5M_15M\recon2\*.yuv") do ffmpeg -s 1280x720 -i "%i" -vf "setpts=PTS-STARTPTS" -q:v 1 "D:\dls\2022TMM\Dataset\5M_15M\my\1\%~ni_%2d.png"

for %i in ("D:\dls\2019TCSVT\local_exam\15M\recon2\*.yuv") do ffmpeg -s 1280x720 -i "%i" -vf "setpts=PTS-STARTPTS" -q:v 1 "D:\dls\2022TMM\Dataset\5M_15M\my\1\%~ni_%2d.png"

for %i in ("D:\dls\2019TCSVT\local_exam\5M_15M_15M\recon2\*.yuv") do ffmpeg -s 1280x720 -i "%i" -vf "setpts=PTS-STARTPTS" -q:v 1 "D:\dls\2022TMM\Dataset\5M_15M\my\2\%~ni_%2d.png"

for %i in ("D:\dls\2019TCSVT\local_exam\15M_15M\recon2\*.yuv") do ffmpeg -s 1280x720 -i "%i" -vf "setpts=PTS-STARTPTS" -q:v 1 "D:\dls\2022TMM\Dataset\5M_15M\my\2\%~ni_%2d.png"

点赞(0) 打赏

评论列表 共有 0 条评论

暂无评论

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部