ChinaFFmpeg

 找回密码
 立即注册

QQ登录

只需一步,快速开始

12
返回列表 发新帖
楼主: hfeiop12

ffmpeg 引用-vcodec libx264 会报错

[复制链接]
 楼主| 发表于 2013-10-30 09:30:43 | 显示全部楼层
T-Bagwell 发表于 2013-10-30 09:27
或者

./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
[NULL @ 0x41b6010] [Eval @ 0x7fffd9f18680] Undefined constant or missing '(' in 'baseline'
回复 支持 反对

使用道具 举报

发表于 2013-10-30 09:31:13 | 显示全部楼层

  1. yum install git-core
  2. git://source.ffmpeg.org/ffmpeg.git
  3. 然后编译ffmpeg就可以了
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-10-30 09:31:44 | 显示全部楼层

能贴出完整的 参数嘛!?
回复 支持 反对

使用道具 举报

发表于 2013-10-30 09:39:33 | 显示全部楼层

./ffmpeg -i "/video/c_054c0389_a.mp4"  -vcodec libx264  -vb 1200k -r 25 -vprofile baseline -vlevel  1.0 -acodec mp3 -ac 2 -ab 128 -ar 22050 -s 1024x768 -y -f flv "/video/asssdas.flv"
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|Archiver|ChinaFFmpeg

GMT+8, 2024-5-4 03:19 , Processed in 0.057815 second(s), 11 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表