ffmpeg - whatsapp:不支持视频格式 [英] ffmpeg - whatsapp: video format not supported
问题描述
使用ffmpeg我检查了他们的属性:
a)属性上传的视频:
持续时间:00:00:56.45,开始:0.148000,比特率:1404 kb / s
流#0:0(und):视频:h264(高)(avc1 / 0x31637661),yuv420p,1080x1080,1359 kb / s,23.98 fps,23.98 tbr,90k tbn,47.95 tbc(默认)
元数据:
handler_name:VideoHandler
流#0:1(eng):音频:aac(HE-AACv2)(mp4a / 0x6134706D),48000 Hz,stereo,fltp,47 kb / s $ b元数据:
handler_name:SoundHandler
必须至少指定一个输出文件
b)不会上传到whatsapp的视频(因为它不支持格式)
持续时间:00:00:56.10 ,开始:0.000000,比特率:543 kb / s
流#0:0:视频:h264(高)(H264 / 0x34363248),yuv420p,1080x1080 [SAR 1:1 DAR 1:1],464 kb / s,23.98流量#0:1:音频:aac(LC)([255] [0] [0] [0] / 0x00FF),48000 Hz,立体声,fltp, 56 kb / s
我注意到视频的区别:
(avc1 / 0x31637661)
vs (H264 / 0x34363248)
1359 kb / s
vs 464 kb / s
90k tbn
vs 23.98 tbn
什么原因
另外第二个视频没有在Android中播放。
视频的链接是
https:/ /drive.google.com/open?id=0B4UM6vTHw4pyMExQQ1lxZGp0N2c
ffmpeg -i brokenvideo.mp4 -c:v libx264 -c:aac fixedvideo.mp4
还必须应用此修复程序:一个href =https://stackoverflow.com/questions/20847674/ffmpeg-libx264-height-not-divisible-by-2> FFMPEG(libx264)高度不能被2整除
I have two videos (.mp4) files. One uploads to whatsapp and another does not.
using ffmpeg i checked their properties:
a) Properties of video which uploads:
Duration: 00:00:56.45, start: 0.148000, bitrate: 1404 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1080x1080, 1359 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(eng): Audio: aac (HE-AACv2) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 47 kb/s (default)
Metadata:
handler_name : SoundHandler
At least one output file must be specified
b) video which does not upload to whatsapp (because its says format not supported)
Duration: 00:00:56.10, start: 0.000000, bitrate: 543 kb/s
Stream #0:0: Video: h264 (High) (H264 / 0x34363248), yuv420p, 1080x1080 [SAR 1:1 DAR 1:1], 464 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn, 47.95 tbc
Stream #0:1: Audio: aac (LC) ([255][0][0][0] / 0x00FF), 48000 Hz, stereo, fltp, 56 kb/s
The difference in video I noticed:
(avc1 / 0x31637661)
vs (H264 / 0x34363248)
1359 kb/s
vs 464 kb/s
90k tbn
vs 23.98 tbn
What can be the reason
Also the second video is not being played in Android.
The link for the video is
https://drive.google.com/open?id=0B4UM6vTHw4pyMExQQ1lxZGp0N2c
ffmpeg -i brokenvideo.mp4 -c:v libx264 -c:a aac fixedvideo.mp4
Also had to apply this fix: FFMPEG (libx264) "height not divisible by 2"
这篇关于ffmpeg - whatsapp:不支持视频格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!