2 a2323669a a2323669a 于 2016.03.20 19:26 提问

windows 下ffmpeg 转MP4 没有画面 报 libx264错误

y@Lenovo-PC ~
$ ffmpeg.exe -threads 4 -i d:/temp/ffmpeg/test.avi -ab 32 -ar 22050 -vcodec lib
x264 -qscale 6 -r 25 -s 480x360 -flags +loop -crf 24 -bt 256k -vol 200 -vf yadi
f d:/2.mp4
ffmpeg version N-48731-g7e5c5fa Copyright (c) 2000-2013 the FFmpeg developers
built on Jan 10 2013 19:47:49 with gcc 4.7.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg sm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --e nable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --e nable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --en able-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable -libxavs --enable-libxvid --enable-zlib --enable-filter=frei0r
libavutil 52. 13.100 / 52. 13.100
libavcodec 54. 86.100 / 54. 86.100
libavformat 54. 59.107 / 54. 59.107
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 32.100 / 3. 32.100
libswscale 2. 1.103 / 2. 1.103
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Input #0, avi, from 'd:/temp/ffmpeg/test.avi':
Duration: 00:02:07.40, start: 0.000000, bitrate: 153 kb/s
Stream #0:0: Video: tscc (tscc / 0x63637374), rgb555le, 800x600, 15 tbr, 15 tbn, 15 tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 24000 Hz, stereo, s16p, 56 kb /s
Please use -q:a or -q:v, -qscale is ambiguous
File 'd:/2.mp4' already exists. Overwrite ? [y/N] y
-vol has been deprecated. Use the volume audio filter instead.
-vol is forwarded to lavfi similarly to -af volume=0.781250.
[libx264 @ 02298400] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE 4.2 AVX AVX2 FMA3 BMI1 BMI2
[libx264 @ 02298400] profile High 4:4:4 Predictive, level 2.1, 4:4:4 8-bit
[libx264 @ 02298400] 264 - core 129 r2230 1cffe9f - H.264/MPEG-4 AVC codec - Cop yleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deb lock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 m e_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chro ma_qp_offset=4 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 in terlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b _bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecu t=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=24.0 qcomp=0.60 qpmin=0 $

我已经把x264.exe 和 dll 文件加进去了 还是报错

2个回答

caozhy
caozhy   Ds   Rxr 2016.03.20 23:23

如果你是源代码,你自己重新编译下
http://yu2xiangyang.blog.163.com/blog/static/373156382011111341417526/
或者你可以找新版本,你的版本是3年前的,太旧了。

wangyaninglm
wangyaninglm   Ds   Rxr 2016.03.20 21:35

是不是路径设置的原因,导致没有找到对应的库

a2323669a
a2323669a 两个文件 x264.exe 和 libx264-129.dll都放在msys的bin目录下了
一年多之前 回复
a2323669a
a2323669a 我把两个文件放在和ffmpeg.exe相同目录下了
一年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!