wangdl_100a
帖子: 39
注册时间: 2012-03-13 10:02

ffmepg提取音轨的问题

原始视频信息:
General
完整名称 : D:\UserProfile\All Users\Documents\Camtasia Studio\2013-06-24\Untitled.avi
文件格式 : AVI
文件格式/信息 : Audio Video Interleave
格式简介 : OpenDML
文件大小 : 29.9 GiB
长度 : 9mn 9s
平均混合码率 : 468 Mbps

Video
ID : 0
文件格式 : RGB
编码设置ID : 0x00000000
编码设置ID/信息 : Basic Windows bitmap format. 1, 4 and 8 bpp versions are palettised. 16, 24 and 32bpp contain raw RGB samples
长度 : 9mn 8s
码率 : 467 Mbps
画面宽度 : 1 016 pixels
画面高度 : 638 pixels
画面比例 : 1.592
帧率 : 30.000 fps
位深度 : 8 bits
bits/(pixel*frame)(数据密度) : 24.000
大小 : 29.8 GiB (100%)

Audio
ID : 1
文件格式 : PCM
格式设置, Endianness : Little
格式设置, Sign : Signed
编码设置ID : 1
长度 : 9mn 9s
码率模式 : Constant
码率 : 1 536 Kbps
声道 : 2 channels
采样率 : 48.0 KHz
位深度 : 16 bits
大小 : 101 MiB (0%)
对齐方式 : Aligned on interleaves
交错间隔时间 : 33 ms (1.00 video frame)
音频预读时间 : 133 ms
我使用的批处理文件:

代码: 全选

rem @echo off
set tools=D:\Program Files\megui_dev\tools
cd /d "%~dp0"

rem encode audio
"%tools%\ffmpeg\ffmpeg.exe" -y -i "%~1" -acodec copy Untitled.wav
我把这个用camtasia studio 8 录制后导出的Untitled.avi文件,拖到这个批处理文件上就开始执行了。
但今天在命令提示符窗口里面有如下显示,看起来是有问题:
01.png
从视频文件信息里面可以知道音频部分占据101M,而最后执行完解出来的音频文件只有13M,这肯定不对了。我之前就是这样提取音频,能得到完整的,但现在不知道为什么会这样,是不是因为视频文件太大的导致的bug?
以后再提取音轨,应该咋办?难道是这个ffmpeg不稳定?

回到 “视频编码器 / Video encoder discussion”