ffmpeg - html5 video标签播放视频时,声音和图像不同步(声音快)。

 mobiledu2502875063 发布于 2022-11-07 16:01

手里有一个通过ffmpeg(v0.6.3)转换生成的mp4视频,通过html5的

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'superfly.360p.mp4':
  Metadata:
major_brand     : isom
minor_version   : 512
compatible_brands: isomiso2avc1mp41
creation_time   : 1970-01-01 00:00:00
encoder         : Lavf52.64.2
Duration: 00:05:04.83, start: 0.000000, bitrate: 567 kb/s
Stream #0.0(und): Video: h264 (Constrained Baseline), yuv420p, 640x360 [PAR 1:1 DAR 16:9], 502 kb/s, 24 fps, 24 tbr, 24 tbn, 48 tbc
Metadata:
  creation_time   : 1970-01-01 00:00:00
Stream #0.1(und): Audio: aac, 44100 Hz, stereo, s16, 61 kb/s
Metadata:
  creation_time   : 1970-01-01 00:00:00
  
[STREAM]
index=0
codec_name=h264
codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
codec_type=video
codec_time_base=1/48
codec_tag_string=avc1
codec_tag=0x31637661
width=640
height=368
has_b_frames=0
sample_aspect_ratio=1:1
display_aspect_ratio=40:23
pix_fmt=yuv420p
r_frame_rate=24/1
avg_frame_rate=24/1
time_base=1/24
start_time=0.000000
duration=304.833333
nb_frames=7316
TAG:creation_time=1970-01-01 00:00:00
TAG:language=und
[/STREAM]
[STREAM]
index=1
codec_name=aac
codec_long_name=Advanced Audio Coding
codec_type=audio
codec_time_base=0/1
codec_tag_string=mp4a
codec_tag=0x6134706d
sample_rate=44100.000000
channels=2
bits_per_sample=0
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/44100
start_time=0.000000
duration=304.785125
nb_frames=13126
TAG:creation_time=1970-01-01 00:00:00
TAG:language=und
[/STREAM]
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有