转码为 webm 时出现 ffmpeg 音频问题
在过去的几天里,我一直在尝试将无损 .mov 视频(有音轨)转换为 .webm 格式。
有关视频和视频的一些信息音频的特点是 fps 为 30。此外,在您开始听到一些音乐之前,音轨有大约 3-5 秒的静音/空白音频。
我的问题是,在转码到 webm 的过程中,它似乎会去掉这个空白音频,因为当我去播放视频时,音频会立即开始。我还注意到它在视频中立即跳到约 4 秒。当我在浏览器上播放它时,它会跳转到时间轴中的那一刻。如果我尝试擦洗到开头,视频就会结束。
我已经想通了一些事情
- 这只是一个webm问题。 ogv 或 mp4 不会发生这种情况,
- 只有当它们在音轨开头为空白音频时才会发生。
我将 ffmpeg 与 libvpx 和 libvorbis 库一起使用,并且只进行基本的命令行设置
ffmpeg -i "infile" "outfile.webm"
For the past few days, I have been trying to get my lossless .mov video(that has an audio track) to a .webm format.
Some info on the video & audio is that the fps is 30. Also the audio track has about 3-5 seconds of silence/blank audio before you start hearing some music.
My problem is that is seems during the transcoding to webm, it strips away this blank audio because when I go to play the video, the audio starts right away.I've also notice that it jumps right away to ~4 seconds in the video. When i play it on the browser, it jumps to that moment in the timeline. If I try to scrub to the beginning, the video ends.
I've have figured somethings out.
- This is just a webm problem. This does not happen with ogv or mp4
- It only happens if they is blank audio in the beginning of the audio track.
I am using ffmpeg with the libvpx and libvorbis librarys and I am doing just the basic command line setup
ffmpeg -i "infile" "outfile.webm"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论