如何在 ffmpeg 中获取音轨分配
有没有办法在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
$ffmpeg -i
输出音频流描述中的通道信息。例如:其中:
5.1(侧面)- 前中、左、右、侧左、右以及 LFE 通道。
s16 - 16 位有符号整数样本。
有关其他多通道和示例格式及其字符串表示形式,请参阅 ffmpeg 源代码中的samplefmt.h 和audioconvert.h。
$ffmpeg -i
outputs channel information in audio stream description. For example: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.