gpt4 book ai didi

ffmpeg - 是否可以使用 FFmpeg 精确分割 AAC 文件的帧?

转载 作者:行者123 更新时间:2023-12-04 23:13:55 27 4
gpt4 key购买 nike

我做了什么:

# create source material
ffmpeg -y -i some.file -c:a libfdk_aac -profile:a aac_he -b:a 128k -ar 44100 source.m4a

# split into two parts
ffmpeg -y -ss 00:00:00 -i source.m4a -to 6 -c copy part1.m4a
ffmpeg -y -ss 00:00:06 -i source.m4a -c copy part2.m4a

# re-encode only the first part with the same setting as source file
fmpeg -y -i part1.m4a -c:a libfdk_aac -profile:a aac_he -b:a 128k -ar 44100 part1reencoded.m4a

# create file list to be concatenated
echo 'ffconcat version 1.0
file part1reencoded.m4a
file part2.m4a' > my.list

# finally concatenate both parts
ffmpeg -y -f concat -safe 0 -i my.list -c copy parts.m4a

# play the result
ffplay parts.m4a

不幸的是,结果文件在 00:00:06 处有噪音。 .

是否可以使用 FFmpeg 精确分割 AAC 文件的帧?

最佳答案

您可以准确地分割帧,在 44100 处,每帧为 23 毫秒。

你不能做的是连接来自不同编码的 aac。

关于ffmpeg - 是否可以使用 FFmpeg 精确分割 AAC 文件的帧?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56097781/

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