FFmpeg: Unrecognized option preset
Matthew Harrington
I'm using ffmpeg to convert yuv to mp4 losslesly in ubuntu 14.04.
My code is (without line splitting):
ffmpeg -f rawvideo -vcodec rawvideo -s 560x448 -r 40 -pix_fmt yuv420p -i
C_L_560x448_40_realtime_maxSSIM.yuv -c:v libx265 -preset ultrafast -qp 0
realtimeC_L_560x448_40_realtime_maxSSIM.mp4I get
Unrecognized option 'preset'.
Error splitting the argument list: Option not foundThis is the full console output:
ffmpeg version N-80953-gd4c8e93 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3) configuration: libavutil 55. 28.100 / 55. 28.100 libavcodec 57. 50.100 / 57. 50.100 libavformat 57. 41.100 / 57. 41.100 libavdevice 57. 0.102 / 57. 0.102 libavfilter 6. 47.100 / 6. 47.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 1.100 / 2. 1.100
Unrecognized option 'preset'.
Error splitting the argument list: Option not foundDo you know how to fix this?
41 Answer
For me this meant I had run configure with --disable-everything and enabled libx264, but not enabled its "encoder" so this fixed it up: --enable-libx264 --enable-encoder=libx264
Something like this:
ffmpeg $ ./configure --disable-everything --enable-libx264 --enable-encoder=libx264
You might be able to get away with just --enable-libx264