[FFmpeg-user] can't set x264 profile

xuyuand xuyuand at 163.com
Wed Nov 16 11:37:39 CET 2011


hi,
I use lastest ffmpeg:ffmpeg-git-985e768-win32-shared.7z,I use this command:
ffmpeg -threads 4 -i "E:\clipts\111.rmvb" -r 25.00 -profile main -level 31 -vcodec libx264 -s 720x576 -x264opts keyint=123:min-keyint=20:vbv-maxrate=2000:vbv-bufsize=300:vbv-init=0.9:nal-hrd=cbr:bitrate=2000:bframes=3:videoformat=pal -acodec mp2 -ab 128k -ar 48000 -ac 2  -y d:\h264.ts
It will appear next error message,
Input #0, rm, from 'E:\clipts\1111.rmvb':
  Metadata:
    title           :
    author          :
    copyright       :
    comment         :
  Duration: 00:42:47.19, start: 0.000000, bitrate: 815 kb/s
    Stream #0:0: Audio: cook (cook / 0x6B6F6F63), 44100 Hz, stereo, flt, 44 kb/s
    Stream #0:1: Video: rv40 (RV40 / 0x30345652), yuv420p, 1024x576, 717 kb/s, 25 fps, 25 tbr, 1k tb
n, 25 tbc
    Stream #0:2: Data: none
[buffer @ 00BB3C20] w:1024 h:576 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:
[scale @ 003EA580] w:1024 h:576 fmt:yuv420p -> w:720 h:576 fmt:yuv420p flags:0x4
Incompatible sample format 'flt' for codec 'mp2', auto-selecting format 's16'
[libx264 @ 00B98020] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
[libx264 @ 00B98020] profile Main, level 3.1
[NULL @ 00BBFB00] [Eval @ 0022DB28] Undefined constant or missing '(' in 'main'
[NULL @ 00BBFB00] Unable to parse option value "main"
[NULL @ 00BBFB00] Error setting option profile to value main.
Output #0, mpegts, to 'd:\h264.ts':
  Metadata:
    title           :
    author          :
    copyright       :
    comment         :
    Stream #0:0: Video: h264, yuv420p, 720x576, q=-1--1, 2000 kb/s, 90k tbn, 25 tbc
    Stream #0:1: Audio: none, 48000 Hz, 2 channels, s16, 128 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (rv40 -> libx264)
  Stream #0:0 -> #0:1 (cook -> mp2)
Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height
 
 
please tell me what to do?


More information about the ffmpeg-user mailing list