一开始尝试的是
ffmpeg -i 1.h264 -vcodec copy -i 2.aac -acodec copy out.avi
输出结果是画面正常,但没有声音,输出avi的音轨mediainfo:
Audio
ID : 1
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Muxing mode : ADTS
Codec ID : FF
Duration : 2mn 8s
Bit rate mode : Variable
Bit rate : 160 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 44.1 KHz
Compression mode : Lossy
Stream size : 2.46 MiB (3%)
Alignment : Aligned on interleaves
Interleave, duration : 23 ms (0.70 video frame)
ffmpeg -i 1.h264 -vcodec copy -i 2.m4a -acodec copy out.avi
结果是声音正常,但画面N倍速,mediainfo:
Audio
ID : 1
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : FF
Duration : 2mn 8s
Bit rate : 159 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 44.1 KHz
Compression mode : Lossy
Stream size : 2.42 MiB (3%)
Alignment : Split accross interleaves
Interleave, duration : 23 ms (0.70 video frame)
请教下前辈正确的方式应该是什么呢。。。
在此谢过先。。
ffmpeg -i 1.h264 -vcodec copy -i 2.aac -acodec copy out.avi
输出结果是画面正常,但没有声音,输出avi的音轨mediainfo:
Audio
ID : 1
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Muxing mode : ADTS
Codec ID : FF
Duration : 2mn 8s
Bit rate mode : Variable
Bit rate : 160 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 44.1 KHz
Compression mode : Lossy
Stream size : 2.46 MiB (3%)
Alignment : Aligned on interleaves
Interleave, duration : 23 ms (0.70 video frame)
ffmpeg -i 1.h264 -vcodec copy -i 2.m4a -acodec copy out.avi
结果是声音正常,但画面N倍速,mediainfo:
Audio
ID : 1
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : FF
Duration : 2mn 8s
Bit rate : 159 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 44.1 KHz
Compression mode : Lossy
Stream size : 2.42 MiB (3%)
Alignment : Split accross interleaves
Interleave, duration : 23 ms (0.70 video frame)
请教下前辈正确的方式应该是什么呢。。。
在此谢过先。。