或者
./ffmpeg -i "/video/c_054c0389_a.mp4"-vcodec libx264-b 1200k -r 25 -vprofile baseline -v ...
FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers
built on Sep 11 2013 10:18:48 with gcc 4.1.2 20080704 (Red Hat 4.1.2-54)
configuration: --enable-gpl --enable-version3 --enable-postproc --enable-nonfree --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libxvid --enable-libx264 --enable-libfaac --enable-pthreads --enable-swscale --enable-avfilter --disable-ffserver --disable-ffplay --enable-shared --arch=x86_64 --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --prefix=/usr/local
libavutil 50.36. 0 / 50.36. 0
libavcore 0.16. 1 /0.16. 1
libavcodec 52.108. 0 / 52.108. 0
libavformat 52.93. 0 / 52.93. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1.74. 0 /1.74. 0
libswscale 0.12. 0 /0.12. 0
libpostproc 51. 2. 0 / 51. 2. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/video/c_054c0389_a.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf54.33.100
Duration: 00:00:25.07, start: 0.072562, bitrate: 1274 kb/s
Stream #0.0(und): Video: h264, yuv420p, 1024x768, 1207 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc
Stream #0.1(und): Audio: aac, 22050 Hz, stereo, s16, 64 kb/s
Undefined constant or missing '(' in 'baseline'
yum install git-core
git://source.ffmpeg.org/ffmpeg.git
然后编译ffmpeg就可以了
Liang 发表于 2013-10-30 09:27
b:v 改成 vb 试试
能贴出完整的 参数嘛!?
./ffmpeg -i "/video/c_054c0389_a.mp4"-vcodec libx264-vb 1200k -r 25 -vprofile baseline -vlevel1.0 -acodec mp3 -ac 2 -ab 128 -ar 22050 -s 1024x768 -y -f flv "/video/asssdas.flv"
页:
1
[2]