Question / Help Can't set correct ffmpeg parameters for x264. Please, Help.

Kovlur

New Member
I want to set up custom parameters in Advanced Custom Output FFMPEG, but I can't seem to grasp how to write the parameters I need for the x264 encoder (libx264)
I am mainly trying to set up some custom parameters like metadata and the video encoder specifics:
The "" are examples.
Code:
ffmpeg i input.avc crf=16 preset=superfast g=120 metadata_media_type="10" metadata_show="20" metadata_season_number="20" metadata_title="Audio Tracks" metadata_episode_id="1. ALL Channel; 2. Desktop; 3. Mono Mic; 4. Media" metadata_episode_sort="20" metadata:s:a:0 language=eng c:v=libx264 c:a=pcm_s24le output.mkv
But I fail every time, no matter what parameters I try.
Also, how do I check if my parameters were loaded correctly and weren't ignored?

Here is the log file, I have tried so many different kinds of syntax:
 

koala

Active Member
It's not possible to use every ffmpeg option. As far as I understand the OBS interface, there are 3 input fields available for options. One input field for Muxer settings (container format, such as mkv or mp4), one input field for Video encoder settings and one input field for Audio Encoder settings.

Muxer settings set options for the container your selected in the dropdown list and are specific to that container.
Video encoder settings set options for the video encoder you selected in the dropdown list and are specific to that encoder.
Audio encoder settings set options for the audio encoder you selected in the dropdown list and are specific to that encoder.

You have to enter an option into the correct input field, i. e. you cannot enter an audio option into the muxer settings field.
Settings that doesn't fall into these 3 categories cannot be used.
Settings that are invalid for the chosen muxer, video encoder or audio encoder cannot be used as well.
A codec cannot be given (c:v=xxx and c:a=xxx), because this is what you set with the dropdown lists.
The options are given as keyword=value pairs, space-separated.

I'm unable to find many of your options. The Matroska metadata options, for example, are documented here:
 
Last edited:

Kovlur

New Member
It's not possible to use every ffmpeg option. As far as I understand the OBS interface, there are 3 input fields available for options. One input field for Muxer settings (container format, such as mkv or mp4), one input field for Video encoder settings and one input field for Audio Encoder settings.

Muxer settings set options for the container your selected in the dropdown list and are specific to that container.
Video encoder settings set options for the video encoder you selected in the dropdown list and are specific to that encoder.
Audio encoder settings set options for the audio encoder you selected in the dropdown list and are specific to that encoder.

You have to enter an option into the correct input field, i. e. you cannot enter an audio option into the muxer settings field.
Settings that doesn't fall into these 3 categories cannot be used.
Settings that are invalid for the chosen muxer, video encoder or audio encoder cannot be used as well.
A codec cannot be given (c:v=xxx and c:a=xxx), because this is what you set with the dropdown lists.
The options are given as keyword=value pairs, space-separated.

I'm unable to find many of your options. The Matroska metadata options, for example, are documented here:
Thank you for the reply and the clear explanation on what to do in each field with what kind of syntax to use.

One last thing to ask, do you know any way on how to confirm that all the mixer commands are running? Is there some kind of tool or file to check that everything is actually running properly, because when I input the "proper" settings in the mixer fields, the log file just shows blanks before the recording start field in the file?

So, I would guess that if the log file shows blank on the ffmpeg section, then everything is running correctly, right?
 

koala

Active Member
Yes, as far as I see it, any rejected parameters are listed in the log, while accepted parameters are not listed. No news are good news.
 
Top