是否可以使用ffmpeg缩放原始YUV视频?我有一个1920x1080的原始yuv视频,我想将其缩小到960x540。
我使用了下面的命令,但没有成功。
ffmpeg -i input.yuv -vf scale=960:540 -c:v rawvideo -pix_fmt yuv420p out.yuv
输出:
[IMGUTILS @ 0xbfbd3924] Picture size 0x0 is invalid
[IMGUTILS @ 0xbfbd34e4] Picture size 0x0 is invalid
[IMGUTILS @ 0xbfbd3534] Picture size 0x0 is invalid
[rawvideo @ 0xa79f340] Could not find codec parameters for stream 0 (Video: rawvideo (I420 / 0x30323449), yuv420p, -4 kb/s): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
crowd_run_1080p50_100frame.yuv: could not find codec parameters