有人推荐上传某音的视频,最好是以下两个参数,那我们就来看看现在在上面的某音视频是不是都是这样子,下面的参数分竖屏与模屏:
竖屏:
分辨率:1080×1920(竖屏)
编码器:h264
码率/比特率:10000k(pr:vbr1次 10m)
帧率:30fps
横屏:
分辨率:1920×1080
编码器:h264
码率码/比特率:10000k(vbr1次)
帧率:30fps
那我们来看看下载的某音视频是不是符合这个格式 :

分辨率:360×480(竖屏)
编码器:h264
码率/比特率:607kb/s
帧率:29.95fps

分辨率:358×1170(竖屏)
编码器:h264
码率/比特率:527kb/s
帧率:24.98fps
使用命令转化后的:
ffmpeg -i dy2.mp4 -b 1024k -r 30 dy2-916.mp4

ffmpeg -i dy2.mp4 -b 1024k -r 30 -s 1080*1920 dy2-1080.mp4

可以使用以下命令获得参数:
ffprobe -show_streams -i dy2.mp4 >dy2.txt
以下是详细信息:
[STREAM]
index=1
codec_name=h264
codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
profile=High
codec_type=video
codec_tag_string=avc1
codec_tag=0x31637661
width=658
height=1170
coded_width=658
coded_height=1170
closed_captions=0
film_grain=0
has_b_frames=2
sample_aspect_ratio=82:75
display_aspect_ratio=26978:43875
pix_fmt=yuv420p
level=31
color_range=tv
color_space=bt709
color_transfer=bt709
color_primaries=bt709
chroma_location=left
field_order=progressive
refs=1
is_avc=true
nal_length_size=4
id=0x2
r_frame_rate=25/1
avg_frame_rate=25575/1024
time_base=1/12800
start_pts=0
start_time=0.000000
duration_ts=1047552
duration=81.840000
bit_rate=527829
max_bit_rate=N/A
bits_per_raw_sample=8
nb_frames=2046
nb_read_frames=N/A
nb_read_packets=N/A
extradata_size=55
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=0
DISPOSITION:still_image=0
TAG:creation_time=2022-06-16T06:05:15.000000Z
TAG:language=und
TAG:handler_name=Core Media Video
TAG:vendor_id=[0][0][0][0]
[/STREAM]
网友评论