是否可以使用FFMPEG精确地将框架精确地拆分框架



我做了什么:

# 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。

相关内容

最新更新