2015-10-20 206 views
1

我有這些flv文件從adobe連接導出,我想用ffmpeg取出它們的音頻文件,ffmpeg不能識別它們的某些音頻文件 此日誌來自1個文件,該文件有問題:ffmpeg無法識別音頻文件

>ffmpeg.exe -i r7anupl75gl_0_1965937.flv test1.mp3 
ffmpeg version N-76123-g002b049 Copyright (c) 2000-2015 the FFmpeg                  
built with gcc 5.2.0 (GCC) 
configuration: --enable-gpl --enable-version3 --disable-w32threads      
libavutil  55. 4.100/55. 4.100 
libavcodec  57. 7.100/57. 7.100 
libavformat 57. 8.102/57. 8.102 
libavdevice 57. 0.100/57. 0.100 
libavfilter  6. 11.100/6. 11.100 
libswscale  4. 0.100/4. 0.100 
libswresample 2. 0.100/2. 0.100 
libpostproc 54. 0.100/54. 0.100 
[flv @ 0000000000522140] Could not find codec parameters for stream 1   

(Audio: none, 0 channels): unknown codec 
Consider increasing the value for the 'analyzeduration' and 'probesize' 
options 
Input #0, flv, from 'r7anupl75gl_0_1965937.flv': 
Metadata: 
lasttimestamp : 5026 
lastkeyframetimestamp: 5022 
audiodelay  : 0 
canSeekToEnd : false 
creationdate : unknown 
metadatacreator : Manitu Group FLV MetaData Injector 2 
videosize  : 251586025 
audiosize  : 55776880 
datasize  : 516 
Duration: 01:23:47.75, start: 0.000000, bitrate: 489 kb/s 
Stream #0:0: Video: vp6f, yuv420p, 1184x704, 1k tbr, 1k tbn, 1k tbc 
Stream #0:1: Audio: none, 0 channels 
Output #0, mp3, to 'test1.mp3': 
Output file #0 does not contain any stream 

注:音頻編解碼器是得到Nellymoser和一些文件轉換工程successfuly

回答

1

我發現我的解決方案,因爲它在我的日誌apears寫在這裏爲他人

問題是從probesize及其beacuase在fi中首先10-15分鐘,flv文件沒有任何音頻文件,通過增加probsize ffmpeg在文件中找到音頻並檢測它。 希望這個答案可以幫助別人。

更新: 在我的情況下,我還必須設置分析大於5000000 = 5秒與適當的探測。