简体   繁体   English

FPS 对视频处理有何影响

[英]how does FPS affect on video processing

I am new to video processing.我是视频处理的新手。 I am using Opencv and python to process videos and save them.我正在使用 Opencv 和 python 来处理视频并保存它们。 for saving a video I used this line of code:为了保存视频,我使用了这行代码:

out = cv2.VideoWriter(name,fourcc, 20,(320,180),False)

this code gives me a 20 fps output, My question how fps parameter affects on video processing and what is important to know about it?这段代码给了我 20 fps 的输出,我的问题是 fps 参数如何影响视频处理以及了解它的重要内容是什么? Is it about the size of output or what?是关于输出的大小还是什么? Thanks谢谢

File size is indeed affected by the frame rate.文件大小确实受帧速率的影响。 The higher the frame rate the more images that are packed into each second of video, so the file size goes up.帧速率越高,每秒打包到视频中的图像就越多,因此文件大小也会增加。 More images is more data which also means higher processing times as well.更多的图像是更多的数据,这也意味着更长的处理时间。

The standard fps used for tv is 30 or 29.97 fps.用于电视的标准 fps 是 30 或 29.97 fps。 Cinematic standards are 24 or 23.97 fps.电影标准是 24 或 23.97 fps。 If I were recording a video game I would want to keep that at least in the 30 fps range but 60 would be better.如果我正在录制视频游戏,我希望至少将其保持在 30 fps 范围内,但 60 会更好。 Depending on the source though.虽然取决于来源。

This is tough to answer because the answer really depends on the video source.这很难回答,因为答案实际上取决于视频源。 You should try and stay true to that if you can to maintain the same quality and user experience of the original.如果可以保持与原版相同的质量和用户体验,您应该尝试并坚持这一点。 Doing 24 or 30 if you are not sure what the source is should be fine.如果您不确定来源是什么,则执行 24 或 30 应该没问题。

Reducing the frame rate for your videos from whatever they defaulted to can affect them greatly.将视频的帧速率从默认设置降低会极大地影响它们。 Anything from how smooth the video plays to the style you are going for.从视频播放的流畅程度到您想要的风格。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM