从UYVY422到YUV420P的FFmpeg转换 [英] FFmpeg conversion FROM UYVY422 TO YUV420P
问题描述
我执行该命令()
ffmpeg -y -r 25.0 -f rawvideo -s 1920x1080 -pix_fmt uyvy422 -i input.avi -pix_fmt yuv420p -f avi -r 25 -s 1920x1080 output.avi
我的输出视频似乎浮动(右边的视频开始出现在左边缘,它从左到右移动)
有没有人知道什么我做错了吗?我试图将输出视频设置为原始格式,但它没有工作... \
ffmpeg -y -r 25.0 -f rawvideo -s 1920x1080 -pix_fmt uyvy422 -i
input.avi -pix_fmt yuv420p -f avi -r 25 -s 1920x1080 output.avi
这里的问题是源是AVI文件。它可能包含原始的YUV框架,但它不是一个原始的YUV文件,它还有AVI头等。您正在告诉它将其解析为原始的YUV文件,这就是您看到滚动框架的原因。
我将删除所有的选项-i,然后它应该正常工作:
ffmpeg -i input.avi -pix_fmt yuv420p -c:v rawvideo -an -s 1920x1080 -y output.avi
I have raw video in UYVY422 format and I want to convert it YUV420p. I'am executing that command()
ffmpeg -y -r 25.0 -f rawvideo -s 1920x1080 -pix_fmt uyvy422 -i input.avi -pix_fmt yuv420p -f avi -r 25 -s 1920x1080 output.avi
and my output video seems to float(right side of video start to be present at left edge and it is moving from left to right)
Has anyone got any idea about what I am doing wrong? I was trying to set output video to raw format, but it didnt work...\
ffmpeg -y -r 25.0 -f rawvideo -s 1920x1080 -pix_fmt uyvy422 -i input.avi -pix_fmt yuv420p -f avi -r 25 -s 1920x1080 output.avi
The problem here is that the source is an AVI file. It may contain raw YUV frames, but it's not a raw YUV file, it still has AVI headers etc. around it. You're telling it to parse it as a raw YUV file, which is why you're seeing the rolling frames.
I'd just remove all the options before the -i, and then it should work correctly:
ffmpeg -i input.avi -pix_fmt yuv420p -c:v rawvideo -an -s 1920x1080 -y output.avi
这篇关于从UYVY422到YUV420P的FFmpeg转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!