0
Follow
0
View

In 16:9 ratio, does width 2160 correspond to height 1214 or 1215 or 1216?

mwb_100 注册会员
2023-02-27 14:45
< div class = "md_content_show e397 data - v - 3967" = "" >

the reference answer GPT ᴼ ᴾ ᴱ ᴺ ᴬ ᴵ < br / > according to the ratio of 16:9, width 2160 corresponds to the height should be 1215. This is because a ratio of 16:9 can be expressed as a ratio of width to height of 16/9, and 2160/16*9=1215, so in the general case a resolution of width 2160 corresponds to a height of 1215.

echo_xiuxiu 注册会员
2023-02-27 14:45

I know how to encode 2160 1215 video, But I want to ask in general, is it 1214 or 1215 or 1216

dyl1207 注册会员
2023-02-27 14:45

the reference answer GPT ᴼ ᴾ ᴱ ᴺ ᴬ ᴵ < br / > according to the ratio of 16:9, width 2160 corresponding theoretical height should be 1215. However, some encoders may not support odd resolution, so they may compress the video to 1214 or 1216.

Normally, the height of the video is scaled equally to the width. Common video resolutions include:

  • 4K UHD: 3840 x 2160
  • 1080p Full HD: 1920 x 1080
  • 720p HD: 1280 x 720

If you want to encode 1215 video, you can try using another encoder or custom encoder parameters to do so. For example, with ffmpeg command line encoders, you can set the output video resolution to 2160x1215 by adding the parameter "-vf scale=2160:1215".

dg_ken 注册会员
2023-02-27 14:45
< div class = "md_content_show e397 data - v - 3967" = "" >

< span > I know how to code 2160 < / span > < em > 1215 video, But I want to ask in general, is it 1214 or 1215 or 1216

aa285312415 注册会员
2023-02-27 14:45

Part of the answer references GPT, GPT_Pro to solve the problem better
According to the 16:9 ratio, width 2160 corresponds to height 1215, But libx264 and libx265 don't support odd resolutions, so they compress the video to 1214. Typically, such videos are 1/1214, 1/1215, or 1/1216. To enable encoder to encode 1215 video, we can use ffmpeg tool to implement.

When using the ffmpeg tool, you can use the following code:

ffmpeg -i input.mp4 -vf scale=2160:1215 output.mp4 

Where input.mp4 is the input file and output.mp4 is the output file. Specify that you want to change the resolution of the video to 2160:1215 by adding the -vf parameter. This will change the original video resolution to 2160:1215 and generate a new video file.

In addition, ffmpeg has many features about image processing, such as cropping, rotation, compression, adding watermarks, and so on. Using ffmpeg can be very convenient for image processing or modification, effectively help us to deal with picture related problems.
If the answer is helpful, please accept it.

About the Author

Question Info

Publish Time
2023-02-27 14:45
Update Time
2023-02-27 14:45

Related Question

linux查看用户和组群的配置文件后5行

Docker卷挂载没有IP地址的windows共享文件夹

typora导入不了大文件,word拆分不成功

编译ORBSLAM2时报错

RuntimeError:张量的元素0不需要grad,也没有grad_fn

unity LineRender画线时抖动

运行dataflow example wordcount.py时出错

PageFactory.InitElements with Selenium 4

cnpm install 报错了

Tplink ssh密码