使用ffmpeg
我轉換FLV文件到一個MP4文件中。但MP4文件有0個字節。這是我用來轉換的命令是使用FFMPEG MP4文件FLV轉換爲MP4格式之後具有0字節
ffmpeg -i sample.flv -b 1104k -ab 122k sample.mp4
這是我得到了上面的ffmpeg的命令的輸出:
ffmpeg version 0.8.5-4:0.8.5-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
built on Jan 24 2013 18:01:36 with gcc 4.6.3
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
[flv @ 0x64f7a0] Estimating duration from bitrate, this may be inaccurate
Input #0, flv, from '/home/kirthiga/Desktop/videopine/test.flv':
Metadata:
creationdate : Thu Mar 28 12:46:29
Duration: 00:00:09.82, start: 0.000000, bitrate: N/A
Stream #0.0: Video: flv, yuv420p, 320x240, 1k tbr, 1k tbn, 1k tbc
Stream #0.1: Audio: nellymoser, 22050 Hz, mono, s16
[buffer @ 0x64f720] w:320 h:240 pixfmt:yuv420p
encoder 'aac' is experimental and might produce bad results.
Add '-strict experimental' if you want to use it.