»
首页
|
手机数码
|
汽车资讯
|
游戏硬件
|
评测专题
|
手机壁纸
|
海淘值得买
|
度假
|
求职招聘
|
广告联系
» 您尚未登录:请
登录
|
注册
|
标签
|
帮助
|
小黑屋
|
TGFC Lifestyle
»
完全数码讨论区
» 有没有ffmpeg高手,请教一个音频转换命令
发新话题
发布投票
发布商品
发布悬赏
发布活动
发布辩论
发布视频
打印
[电脑]
有没有ffmpeg高手,请教一个音频转换命令
refo
天外飞仙
帖子
10605
精华
0
积分
15307
激骚
400 度
爱车
主机
相机
手机
注册时间
2007-11-4
发短消息
加为好友
当前离线
1
#
大
中
小
发表于 2026-2-1 20:26
显示全部帖子
微软copilot的回答:
Got it 👍 — you want to take an MKV file that has multiple audio tracks (possibly in different formats), convert all of them to AAC, and output a new MKV file **without touching the video or subtitle streams**.
Here’s the correct **FFmpeg command**:
```bash
ffmpeg -i input.mkv -map 0 -c:v copy -c:s copy -c:a aac -b:a 192k output.mkv
```
### Explanation:
- `-i input.mkv` → your source MKV file.
- `-map 0` → includes **all streams** (video, audio, subtitles).
- `-c:v copy` → copies video as-is (no re-encoding).
- `-c:s copy` → copies subtitle streams unchanged.
- `-c:a aac` → converts **all audio streams** to AAC.
- `-b:a 192k` → sets audio bitrate (you can adjust, e.g., 128k, 256k).
- `output.mkv` → final file with AAC audio, original video, and subtitles intact.
### Notes:
- If you want **only audio streams** (dropping video and subs entirely), use:
```bash
ffmpeg -i input.mkv -map 0:a -c:a aac -b:a 192k output.mkv
```
This keeps only audio tracks, all converted to AAC.
- If your MKV has multiple audio formats (e.g., DTS, AC3, MP3), FFmpeg will transcode each one into AAC automatically.
Do you want the **video and subtitles preserved** (just audio converted), or do you want an **audio-only MKV**?
UID
92976
帖子
10605
精华
0
积分
15307
交易积分
0
阅读权限
40
在线时间
17268 小时
注册时间
2007-11-4
最后登录
2026-2-2
查看详细资料
TOP
控制面板首页
密码修改
积分交易
积分记录
公众用户组
基本概况
版块排行
主题排行
发帖排行
积分排行
交易排行
在线时间
管理团队
管理统计