Log in

View Full Version : ffmpeg/x264 Won't Recognize Options


rec
8th March 2013, 11:28
I'm using ffmpeg to encode avs files to h264. I want to lower the size of the GOP from it's default of 250. But when I insert "-keyint 30", I get an error: Unrecognized option 'keyint'.

Can anyone help? I have no idea what to do.

:scared:

Here's the script. It works fine, except for this glitch.

for %%a in (*.avs) DO (
ffmpeg -i "%%a" -vcodec libx264 -crf 15 -keyint 30 -level 4.0 -tune fastdecode -acodec ac3 -ar 48000 -ac 2 -ab 448k "%%~na.mp4")

xooyoozoo
8th March 2013, 11:51
-keyint=30

Edit: on second thought, I normally just use ' -g ## ' in ffmpeg

Selur
8th March 2013, 14:25
iirc ffmpeg normally used "-x264opts keyint=30" to set the x264 keyint

rec
8th March 2013, 23:04
Selur - The -264opts worked, thanks! I assume this works for other parameters as well, yes? But what's the story with this - why do some parameters work straight away and others need -264opts?

xooyoozoo - I tried "-g keyint=30" but it didn't work. Thanks anyway!

sneaker_ger
8th March 2013, 23:35
He meant "-g 30" with his edit and that should indeed also work.

rec
9th March 2013, 00:50
Intereresting. Where do you get a list of these letters? How do you know that -g refers to keyint?

poisondeathray
9th March 2013, 00:54
Intereresting. Where do you get a list of these letters? How do you know that -g refers to keyint?

ffmpeg -help

or

ffmpeg -h full
for the full help


-g is used for gop length for other codecs in ffmpeg as well



also specifically for ffmpeg x264 encoding

https://sites.google.com/site/linuxencoding/x264-ffmpeg-mapping