gpt4 book ai didi

video - 将 DAV 转换为 MP4 和 OGG

转载 作者:行者123 更新时间:2023-12-04 10:21:45 26 4
gpt4 key购买 nike

我想准备包含来自安全摄像机的影片的网页。每个录像机传输 DAV 格式的视频文件,因此每个电影都通过脚本转换为 MP4 格式,使用这样的语法:

ffmpeg -y -i movie.dav -vcodec libx264 -crf 24 movie.mp4

所以我在 HTMLv5 代码中包含了这样的条目:

 <video width="320" height="240">
<source src="movie.mp4" type="video/mp4">
</video>

它可以在 Chrome 上正常工作,但不能与 Firefox 一起工作。为了在 FF 中正常工作,有必要添加指向 OGG 文件的链接。因此,两种浏览器的正确 HTMLv5 语法应该如下所示:

 <video width="320" height="240">
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
</video>

谁能帮我传递正确的 ffmpeg 语法来创建 OGG 文件?

使用 -movflags +faststart 选项后控制台的输出

[maciek@piotr MMM]$ ../ffmpeg-2.4.2-64bit-static/ffmpeg -movflags +faststart -y -i   04.24.23-04.24.38\[M\]\[@0\]\[0\].dav -vcodec libx264 -crf 24 10.mp4
ffmpeg version 2.4.2- http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2014 the FFmpeg developers
built on Oct 9 2014 07:24:56 with gcc 4.8 (Debian 4.8.3-11)
configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable- libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --disable-ffserver --enable-libass --enable-gnutls --cc=gcc-4.8
libavutil 54. 7.100 / 54. 7.100
libavcodec 56. 1.100 / 56. 1.100
libavformat 56. 4.101 / 56. 4.101
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 1.100 / 5. 1.100
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 0.100 / 53. 0.100
Option movflags not found.

最佳答案

ffmpeg -i movie.dav -vn -acodec libvorbis audiofile.ogg

我没有测试这个。

关于video - 将 DAV 转换为 MP4 和 OGG,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26493613/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com