创建纯音频再现-未压缩的8KHz 16位LittleEndian。wav

时间:2018-12-11 08:41:08

标签: ffmpeg

我需要将具有16个通道的文件从pcm_s24le转换为pcm_s16le,然后将其放入wav容器中。

当我尝试对其进行转换时,它仅针对第一个流进行转换,而其他15个流则丢失。我需要在wav容器中的s16le输出中包含所有通道。

使用的代码:ffmpeg -f s24le -ar 48000 -ac 16 -i输入文件-acodec pcm_s16le -ac 16 output.wav

输入文件:   元数据:       file_package_umid:0x060A2B340101010101010D1313000000417264656E646F0117124A5702366C00       track_name:图片     流#0:1:音频:pcm_s24le,48000 Hz,1声道,s32(24位),1152 kb / s     元数据:       file_package_umid:0x060A2B340101010101010D1313000000417264656E646F0117124A5702366C00       track_name:音频0     流#0:2:音频:pcm_s24le,48000 Hz,1通道,s32(24位),1152 kb / s     元数据:       file_package_umid:0x060A2B340101010101010D1313000000417264656E646F0117124A5702366C00       track_name:音频1     流#0:3:音频:pcm_s24le,48000 Hz,1通道,s32(24位),1152 kb / s     元数据:       file_package_umid:0x060A2B340101010101010D1313000000417264656E646F0117124A5702366C00       track_name:音频2     流#0:4:音频:pcm_s24le,48000 Hz,1通道,s32(24位),1152 kb / s     元数据:       file_package_umid:0x060A2B340101010101010D1313000000417264656E646F0117124A5702366C00       track_name:音频3     流#0:5:音频:pcm_s24le,48000 Hz,1通道,s32(24位),1152 kb / s     元数据:       file_package_umid:0x060A2B340101010101010D1313000000417264656E646F0117124A5702366C00       track_name:音频4     流#0:6:音频:pcm_s24le,48000 Hz,1通道,s32(24位),1152 kb / s     元数据:       file_package_umid:0x060A2B340101010101010D1313000000417264656E646F0117124A5702366C00       track_name:音频5     流#0:7:音频:pcm_s24le,48000 Hz,1通道,s32(24位),1152 kb / s     元数据:       file_package_umid:0x060A2B340101010101010D1313000000417264656E646F0117124A5702366C00       track_name:音频6     流#0:8:音频:pcm_s24le,48000 Hz,1通道,s32(24位),1152 kb / s     元数据:       file_package_umid:0x060A2B340101010101010D1313000000417264656E646F0117124A5702366C00       track_name:音频7     流#0:9:音频:pcm_s24le,48000 Hz,1通道,s32(24位),1152 kb / s     元数据:       file_package_umid:0x060A2B340101010101010D1313000000417264656E646F0117124A5702366C00       track_name:音频8     流#0:10:音频:pcm_s24le,48000 Hz,1通道,s32(24位),1152 kb / s     元数据:       file_package_umid:0x060A2B340101010101010D1313000000417264656E646F0117124A5702366C00       track_name:音频9     流#0:11:音频:pcm_s24le,48000 Hz,1通道,s32(24位),1152 kb / s     元数据:       file_package_umid:0x060A2B340101010101010D1313000000417264656E646F0117124A5702366C00       track_name:音频10     流#0:12:音频:pcm_s24le,48000 Hz,1通道,s32(24位),1152 kb / s     元数据:       file_package_umid:0x060A2B340101010101010D1313000000417264656E646F0117124A5702366C00       track_name:音频11     流#0:13:音频:pcm_s24le,48000 Hz,1通道,s32(24位),1152 kb / s     元数据:       file_package_umid:0x060A2B340101010101010D1313000000417264656E646F0117124A5702366C00       track_name:音频12     流#0:14:音频:pcm_s24le,48000 Hz,1通道,s32(24位),1152 kb / s     元数据:       file_package_umid:0x060A2B340101010101010D1313000000417264656E646F0117124A5702366C00       track_name:音频13     流#0:15:音频:pcm_s24le,48000 Hz,1通道,s32(24位),1152 kb / s     元数据:       file_package_umid:0x060A2B340101010101010D1313000000417264656E646F0117124A5702366C00       track_name:音频14     流#0:16:音频:pcm_s24le,48000 Hz,1通道,s32(24位),1152 kb / s     元数据:       file_package_umid:0x060A2B340101010101010D1313000000417264656E646F0117124A5702366C00       track_name:音频15

输出文件:

元数据:     编码器:Lavf57.56.101   持续时间:01:52:03.57,比特率:12288 kb / s     流#0:0:音频:pcm_s16le([1] [0] [0] [0] / 0x0001),48000 Hz,六边形,s16,12288 kb / s

0 个答案:

没有答案