Opened 5 years ago

Closed 5 years ago

#184 closed defect (invalid)

specifying vpre for libx264 cause "bad value for 'weightp': ''" error message

Reported by: verem Owned by:
Priority: normal Component: avcodec
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

I am trying to use preset of libx264 supplied with ffmpeg, but faild due to error message:

-- skipped --
[libx264 @ 0x9ae5b60] bad value for 'weightp':
-- skipped --

adding option wpredp to libx264-default.ffpreset
[...]
wpredp=2
[...]
does not solve a problem...

full ffmpeg output:

[root@dev-4 ~]# dvgrab -noavc - | /usr/local/enctools/bin/ffmpeg -f dv -i - -s cif -acodec libfaac -vcodec libx264 -ab 64k -ac 1 -vb 512k -vpre default -f mp4 -y test.dat
ffmpeg version git-N-29757-gb97b4b5, Copyright (c) 2000-2011 the FFmpeg developers

built on May 10 2011 08:40:57 with gcc 4.5.1 20100924 (Red Hat 4.5.1-4)
configuration: --prefix=/usr/local/enctools --extra-cflags=-I/usr/local/enctools/include --extra-ldflags=-L/usr/local/enctools/lib --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-avfilter --enable-pthreads --enable-bzlib --enable-zlib --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid
libavutil 51. 2. 1 / 51. 2. 1
libavcodec 53. 5. 0 / 53. 5. 0
libavformat 53. 0. 3 / 53. 0. 3
libavdevice 53. 0. 0 / 53. 0. 0
libavfilter 2. 5. 0 / 2. 5. 0
libswscale 0. 14. 0 / 0. 14. 0
libpostproc 51. 2. 0 / 51. 2. 0

Found AV/C device with GUID 0x0050c2fffe54e000
Waiting for DV...
[dv @ 0x9acdb20] Estimating duration from bitrate, this may be inaccurate
Input #0, dv, from 'pipe:':

Duration: N/A, start: 0.000000, bitrate: 28800 kb/s

Stream #0.0: Video: dvvideo, yuv420p, 720x576, 28800 kb/s, PAR 16:15 DAR 4:3, 25 tbr, 25 tbn, 25 tbc
Stream #0.1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s

[buffer @ 0x9acd980] w:720 h:576 pixfmt:yuv420p tb:1/1000000 sar:16/15
[scale @ 0x9adf940] w:720 h:576 fmt:yuv420p -> w:352 h:288 fmt:yuv420p flags:0xa0000004
[libx264 @ 0x9ae5b60] bad value for 'weightp':
Output #0, mp4, to 'test.dat':

Stream #0.0: Video: libx264, yuv420p, 352x288 [PAR 16:15 DAR 176:135], q=10-51, 512 kb/s, 90k tbn, 25 tbc
Stream #0.1: Audio: libfaac, 48000 Hz, 1 channels, s16, 64 kb/s

Stream mapping:

Stream #0.0 -> #0.0
Stream #0.1 -> #0.1

Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height
Error: no DV

[root@dev-4 ~]#

Change History (1)

comment:1 Changed 5 years ago by llogan

  • Resolution set to invalid
  • Status changed from new to closed

FFmpeg can directly access the libx264 presets instead of emulating them with a text file (these files have been removed), so in most cases you should be using -preset instead of -vpre. To modify any options the preset sets, or to add additional options, you can use -x264opts such as:

ffmpeg -i input -vcodec libx264 -preset medium -x264opts weightp=1 -threads 0 output

Unrelated side note: --enable-pthreads --enable-bzlib --enable-zlib are detected automatically, so you don't need these in your configure.

Note: See TracTickets for help on using tickets.