Question / Help Testing the new Version - custom ffmpeg

Hey,
I'm just testing the new version with multi audio in custom ffmpeg output.

I wonder how (or if) i can set ffmpeg parameters like
bf (bframes) g (gop aka keyframes) or r (rate = framerate)

so as i understand i have to add the encoder settings like key=value
instead of ffmpeg style -key value

stuff like profile, preset etc is working. Is there any workaround because if I cannot set -r premiere always thinks mkv files have 1000 fps :/

heres an example ffmpeg setting i usually use with ffmpeg, how would this look like in the custom ffmpeg parameters?

-c:v h264_nvenc -profile:v high -rc constqp -qp 18 -preset slow -r 60 -g 30 -bf 0

this results in an nvenc encoded h264 with 60fps, keyint of 30 (0.5 seconds) 0 bframes qp 18 with preset slow and profile high
 

Zidakuh

Member
For your commandline, use the allready OBS specific parameter value.
Choose h264_nvenc on the dropdown for video encoder under ffmpeg, then use:
profile=high level=4.2 (for 1080p60, use 5.1 or 5.2 for higher resolutions) preset=slow rc=constqp qp=18 and bframes=0
That should theoretically work, however you will be limited to only 1 referenceframe with ffmpeg, compared to the "standard" NVENC encoder for streaming 2 reference frames.
Hope this helps

EDIT:
I have a full list of all available parameters for NVENC here if interested.
 
ok so I can only use the encoder specific parameters, not ffmpeg parameters at all like -bf -r or -g?
why is it so complicated?
 

Zidakuh

Member
Yes, only encoder specific parameters.
I havr no idea why it is so complicated, trust me, I've cursed it multiple time for the same thing allready
 
okay thanks anyway. if they dont fix the 1000fps problem (its correct with default output with h264_nvenc) its useless :/
hoped to use the hevc encoder in the next version but i guess i have to wait further
 

Zidakuh

Member
I never had the 1000 fps issue? And I've been testing every "nvenc" option available in ffmpeg. Weird
 
Top