- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 python soundfile
到我的一个项目中的音频文件。我有一个包含 opus
的数据集文件。
python soundfile
无法直接读取 opus 文件,但可以读取 ogg 文件。 (https://github.com/bastibe/python-soundfile/issues/252)
如何使用 ffmpeg 将所有 opus 文件转换为 ogg 文件?
我尝试了以下命令,
ffmpeg -i test_file_2.opus -c:a libvorbis -b:a 16k test_file_2.ogg
但我得到一个错误,
ffmpeg version 4.3 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 7.3.0 (crosstool-NG 1.23.0.449-a04d0)
configuration: --prefix=/opt/conda --cc=/opt/conda/conda-bld/ffmpeg_1597178665428/_build_env/bin/x86_64-conda_cos6-linux-gnu-cc --disable-doc --disable-openssl --enable-avresample --enable-gnutls --enable-hardcoded-tables --enable-libfreetype --enable-libopenh264 --enable-pic --enable-pthreads --enable-shared --disable-static --enable-version3 --enable-zlib --enable-libmp3lame
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
[ogg @ 0x55bad6b9cbc0] 543 bytes of comment header remain
Input #0, ogg, from 'test_file_2.opus':
Duration: 00:00:14.10, start: 0.000000, bitrate: 34 kb/s
Stream #0:0: Audio: opus, 48000 Hz, mono, fltp
Metadata:
album : Onder Moeders Vleugels
ENCODER_OPTIONS : --quiet
artist : Louisa May Alcott
title : 02 - Een vroolijk kerstfeest
encoder : opusenc from opus-tools 0.1.10;Lavf57.83.100
Unknown encoder 'libvorbis'
最佳答案
未知编码器“libvorbis”
您的 ffmpeg 没有 libvorbis 支持。它不见了--enable-libvorbis
在 configure
线。 libvorbis 是一个输出 Vorbis 音频格式的音频编码器。 Vorbis 是 OGG/OGA 容器中通常使用的音频格式。 libvorbis 是推荐的 Vorbis 音频编码器。
查找具有 --enable-libvorbis
的 ffmpeg 新版本/包或重新编译 ffmpeg 并包含它。
实验性 vorbis 编码器
FFmpeg 有一个名为 vorbis 的内置编码器,但它被认为是实验性的,无法与 libvorbis 相提并论。如果您关心质量,请改用 libvorbis。如果你想尝试 vorbis:
ffmpeg -i input.opus -c:a vorbis -strict experimental output.ogg
或通过管道连接到 oggenc
ffmpeg -i input.opus -f wav - | oggenc -o output.ogg -
关于audio - 使用 ffmpeg [python soundfile] 从 opus 转换为 ogg 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69342452/
我正在使用 libogg 和 libogg,我已成功将这些库添加到我的 iPhone xCode 项目并使用 Speex 对我的声音进行编码。问题是我不知道如何用 ogg 打包这些音频数据包。有人知道
我正在使用 libogg 和 libogg,我已成功将这些库添加到我的 iPhone xCode 项目并使用 Speex 对我的声音进行编码。问题是我不知道如何用 ogg 打包这些音频数据包。有人知道
我正在使用 Ogg Vorbis SPI作为解码 .ogg 文件的一种方式。 我用于加载 .ogg 文件并转换为 PCM 的代码片段与文档中建议的代码片段没有太大的不同: // The streams
您好,我一直在尝试使用本教程安装带有一些库的 FFmpeg https://trac.ffmpeg.org/wiki/CompilationGuide/Centos?version=85 使用此命令安
我正在尝试更改我的视频的帧速率。下面是示例输入和输出。我自己构建了 ffmpeg,我很确定我错过了正确的解码器/解复用器,但我不知道我需要什么。我认为 --enable-libtheora 足以启用多
关闭。这个问题是off-topic .它目前不接受答案。 想改进这个问题? Update the question所以它是on-topic对于堆栈溢出。 9年前关闭。 Improve this que
我有一个名为setSound()的方法,该方法设置队列并向其中添加轨道,然后播放。我在simpleInitGame()中调用该方法。但是没有声音播放,eclipse中的控制台说: Mar 13, 20
关闭。这个问题是off-topic .它目前不接受答案。 想改进这个问题吗? Update the question所以它是on-topic用于堆栈溢出。 关闭 10 年前。 Improve thi
最近我试图了解如何ogg vorbis在里面工作,所以我为 ogg vorbis 编写了简单的编码器/解码器.现在我试图了解所有互联网 ogg 广播电台是如何工作的。我不明白的事情:如果您需要处理所有
有时音乐甚至没有开始播放,但是当开始播放时,它会在几秒钟后停止。文件长 2 分钟。我真的不知道是什么问题。 @Override public void onCreate(Bundle savedIns
当我看到 http://www.vorbis.com/music/Hydrate-Kenny_Beltrey.ogg 时,我感到非常惊讶链接没有给我下载选项,但有一个播放器不是 flash 播放音频。
我尝试使用标签音频。将 mp3 转换为 ogg 使用 ffmpeg -i "123.mp3" "1234.ogg" .ogg 的服务器响应内容类型,例如 video/ogg。我尝试了内容类型的 au
现在我正在制作一个服务器,用 HTML 显示视频。我尝试在我的计算机上使用 ..mp4 和 .ogg 视频,效果非常好。但是当我尝试使用移动设备时,只显示 .mp4,而 .ogg 没有显示。移动设备无
我正在尝试将章节添加到包含 vorbis 音频的 ogg 文件中。 来自 this link我复制了以下 ffmpeg 命令。 ffmpeg -threads auto -y -i in.ogg -i
如果我将带有专辑封面的音频文件转换为: ffmpeg -i sample1.flac -ar 48000 -vn -c:a libvorbis -b:a 320k sample1.ogg 我的 sam
回答问题 "How-to make a silent mp3 or wav-file" on ubuntuforums.org FakeOutdoorsman 提供了以下配方: Another met
我正在尝试从浏览器捕获用户的音频输入。我已经用 WAV 完成了,但是文件真的很大。我的一个 friend 告诉我,OGG 文件要小得多。 有谁知道如何将WAV转换为OGG? 我也有原始数据缓冲区,我真
是否有一个模块支持在 Windows 上的 Python 2.6 中播放 Ogg/Speex(不是 Ogg/Vorbis)编码文件的音频? 最佳答案 到目前为止,VLC Python 绑定(bind)
我有三个声音文件:sound1.ogg,sound2.ogg和sound3.ogg。每个文件的长度都是几秒钟,并存储在我项目的/res/raw文件夹中。 我希望它们在我的main_activity上的
我正在尝试从远程服务器获取ogg音频文件,并将播放器呈现给用户。我正在使用下面的代码。 这导致没有输出。但是检查代码可以发现音频标签在容器中: 但是,它在Firefox的检查器中显示为灰色。 DOM
我是一名优秀的程序员,十分优秀!