如何在 ffmpeg 中获取音轨分配

发布于 2025-01-05 20:19:56 字数 1397 浏览 0 评论 0原文

有没有办法在 ffmpeg 中获取音轨分配?例如,如果您在 QuickTime 中,则可以查看信息 (Command - I),并查看轨道分配。它看起来像这样:

Apple ProRes 422 (HQ), 1,920 x 1,080
Linear PCM, 24 bit little-endian signed integer, 48000 Hz, **Left**
Linear PCM, 24 bit little-endian signed integer, 48000 Hz, **Right**
Linear PCM, 24 bit little-endian signed integer, 48000 Hz, **Center**
Linear PCM, 24 bit little-endian signed integer, 48000 Hz, **LFE Screen**
etc...

当我执行 $ ffmpeg -i 时,它不显示轨道分配 -

Stream #0:12(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32, 1152 kb/s
Metadata:
  creation_time   : 2010-09-16 02:23:49
  handler_name    : ?Apple Alias Data Handler
Stream #0:13(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32, 1152 kb/s
Metadata:
  creation_time   : 2010-09-16 02:23:49
  handler_name    : ?Apple Alias Data Handler
Stream #0:14(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32, 1152 kb/s
Metadata:
  creation_time   : 2010-09-16 02:23:49
  handler_name    : ?Apple Alias Data Handler
Stream #0:15(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, stereo, s32, 2304 kb/s
Metadata:
  creation_time   : 2010-09-16 02:23:49
  handler_name    : ?Apple Alias Data Handler
Stream #0:16(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, stereo, s32, 2304 kb/s

有没有办法在 ffmpeg 或其他程序中获取轨道分配?

Is there a way to get the audio track assignment in ffmpeg? For example, if you are in QuickTime, you can view info (Command - I), and see the track assignment. It looks something like this:

Apple ProRes 422 (HQ), 1,920 x 1,080
Linear PCM, 24 bit little-endian signed integer, 48000 Hz, **Left**
Linear PCM, 24 bit little-endian signed integer, 48000 Hz, **Right**
Linear PCM, 24 bit little-endian signed integer, 48000 Hz, **Center**
Linear PCM, 24 bit little-endian signed integer, 48000 Hz, **LFE Screen**
etc...

When I do $ ffmpeg -i, it does not show the track assignments --

Stream #0:12(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32, 1152 kb/s
Metadata:
  creation_time   : 2010-09-16 02:23:49
  handler_name    : ?Apple Alias Data Handler
Stream #0:13(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32, 1152 kb/s
Metadata:
  creation_time   : 2010-09-16 02:23:49
  handler_name    : ?Apple Alias Data Handler
Stream #0:14(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32, 1152 kb/s
Metadata:
  creation_time   : 2010-09-16 02:23:49
  handler_name    : ?Apple Alias Data Handler
Stream #0:15(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, stereo, s32, 2304 kb/s
Metadata:
  creation_time   : 2010-09-16 02:23:49
  handler_name    : ?Apple Alias Data Handler
Stream #0:16(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, stereo, s32, 2304 kb/s

Is there a way to get the track assignments in ffmpeg or another program?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小嗷兮 2025-01-12 20:19:56

$ffmpeg -i 输出音频流描述中的通道信息。例如:

Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), s16, 448 kb/s

其中:
5.1(侧面)- 前中、左、右、侧左、右以及 LFE 通道。
s16 - 16 位有符号整数样本。

有关其他多通道和示例格式及其字符串表示形式,请参阅 ffmpeg 源代码中的samplefmt.h 和audioconvert.h。

$ffmpeg -i outputs channel information in audio stream description. For example:

Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), s16, 448 kb/s

where:
5.1(side) - front center, left and right, side left and right, and LFE channels.
s16 - 16-bit signed integer samples.

See samplefmt.h and audioconvert.h from ffmpeg source for other multi-channel and sample formats and their string representations.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文