ffmpeg -y -i tmp sample flv -vcodec libx264 -acodec copy test avi FFmp

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
$ ffmpeg -y -i /tmp/sample.flv -vcodec libx264 -acodec copy test.avi
FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-nonfree --enable-pthreads --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-vhook --prefix=/home/a2k/ffmpeg
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 0 / 52.20. 0
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
built on Oct 13 2009 09:19:26, gcc: 4.1.2 20070925 (Red Hat 4.1.2-33)
[flv @ 0xe6f5b0]Could not find codec parameters (Audio: 0x0000, 0 channels, s16)
Input #0, flv, from '/tmp/sample.flv':
Duration: 00:00:04.40, start: 0.000000, bitrate: N/A
Stream #0.0: Video: flv, yuv420p, 320x240, 1k tbr, 1k tbn, 1k tbc
Stream #0.1: Audio: 0x0000, 0 channels, s16
Output #0, avi, to 'test.avi':
Stream #0.0: Video: libx264, yuv420p, 320x240, q=2-31, 200 kb/s, 90k tbn, 1k tbc
Stream #0.1: Audio: 0x0000, 0 channels, s16
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
[libx264 @ 0xf04050]using cpu capabilities: MMX2 SSE2Fast SSSE3 PHADD SSE4 Cache64
[avi @ 0xe792f0]sample rate not set
Could not write header for output file #0 (incorrect codec parameters ?)