我一直在尝试在ffmpeg上每一个选项的排列,试图在Chrome-OSX39.0.2171.71(64位)上显示一个代码转换的视频--到目前为止,没有什么效果。
我目前使用的设置如下所示:
/usr/local/Cellar/ffmpeg/2.4.3/bin/ffmpeg -i source.m4v -vcodec libx264 -pix_fmt yuv420p -profile:v baseline -level 3.0 -preset slower -crf 23 -vf scale=640:360 target.mp4但我尝试过各种不同的答案,但都没有成功。
视频-js演示视频工作良好,所以它必须是可能的。下面是编码视频的转储:
*** General Parameters ***
- Name: test-1 (2).mp4
- Container: MP4 - QuickTime
- Size: 3.45 MB
- Duration: 32s 299ms
- Bitrate: 856 Kbps
*** Video Track Parameters ***
- Format: H.264/MPEG-4 AVC
- Bitrate: Max.: --- / Average: 721 Kbps / Min.: ---
- Frame rate (fps): Max.: --- / Average: 30.000 / Min.: ---
- Encoding profile: Baseline@L3.0
- Image size: 640*360
- Pixel Aspect Ratio: Undefined
- Display Aspect Ratio: 16:9
- Interlacing: Progressive
*** First Audio Track Parameters ***
- Format: AAC - MPEG-4 audio
- Bitrate: 128 Kbps
- Resolution: Undefined
- Rate: 44.1 KHz
- Channel(s): 2 (stereo)
- Position: Front: L R 发布于 2014-12-15 16:32:04
结果发现元数据在错误的地方。将-movflags +faststart添加到ffmpeg参数列表使其开始工作。
https://stackoverflow.com/questions/27422192
复制相似问题