Resource icon

FFmpeg Encoders for OBS Studio 0.4.0

Status
Not open for further replies.

Velocity93

New Member

Attachments

  • obs hevc.PNG
    obs hevc.PNG
    733.1 KB · Views: 855
  • obs settings.PNG
    obs settings.PNG
    40.2 KB · Views: 857
Last edited:

Velocity93

New Member
That really doesn't change that you still have a Pascal GPU and Pascal GPUs do not have HEVC B-Frame encoding support. Set B-Frames to 0 and try again, which is the same value of B-frames custom ffmpeg output produces.
i am an idiot or something.
i've been trying to do that but i cant get it to work.
look.
 

Attachments

  • result.PNG
    result.PNG
    65.2 KB · Views: 534
  • settings 1.PNG
    settings 1.PNG
    45.8 KB · Views: 550
  • settings 2.PNG
    settings 2.PNG
    48.2 KB · Views: 518
  • settings 3.PNG
    settings 3.PNG
    46.4 KB · Views: 462

developa

New Member
Xaymar can help me i compile ffmpeg for windows with libfdk_aac.
obs does not work
Failed to set acodec=libfdk_aac:profile:a=aac_he:signaling=implicit:afterburner=1
he-acc-1.png
 

Xaymar

Active Member
Xaymar updated FFmpeg Encoders for OBS Studio with a new update entry:

0.4.0 - NVENC Improvements, Single Graphics Context and more!

Who needs lower CPU and GPU usage? Everyone! And that's why the new (Hardware) integration now shares the graphics context with OBS Studio, which should result in an even further reduced CPU and GPU usage for everyone. This change requires that you are using OBS Studio 24.0.x, and ideally you are using 24.0.3 or newer.

However due to a problem with Mixer streaming, I had to rename the unique id for each encoder so that Mixer streaming works again. Due to that you will lose all your previous...

Read the rest of this update entry...
 

Velocity93

New Member
can you explain what are the first two encoder options or point me somewhere to read on them please?
 

Attachments

  • Screenshot (23).png
    Screenshot (23).png
    39.8 KB · Views: 241

Xaymar

Active Member
can you explain what are the first two encoder options or point me somewhere to read on them please?

"(Hardware)" is true hardware encoding, the frame never leaves the GPU. Equivalent to the "(new)" nvenc, but with more features.
"(Software)" is pseudo hardware encoding, the frame is transferred to RAM and then back to the GPU that is selected. Equivalent to the "old" nvenc, but also with more features.
 

Velocity93

New Member
EXCELLENT !
So if anyone wants to stream with their gpu, they can use your plugin and get advantage of the UI instead of writing commands and screw up. testing now!
edit:
one more question.
buffer size can exceed the maximum upload speed or not?
 

Xaymar

Active Member
EXCELLENT !
So if anyone wants to stream with their gpu, they can use your plugin and get advantage of the UI instead of writing commands and screw up. testing now!
edit:
one more question.
buffer size can exceed the maximum upload speed or not?

Buffer Size is meant to stabilize the bitrate over a specific time frame. You would usually have this at 2x your target bitrate
 

Blansi

New Member
Hello, I've updated the plugin to the 4.0, but now OBS don't load it. I've tried reinstalling OBS, the plugin, update windows... And nothing happens.

Code:
13:12:16.917: CPU Name: AMD Ryzen 5 1600X Six-Core Processor           
13:12:16.917: CPU Speed: 3600MHz
13:12:16.917: Physical Cores: 6, Logical Cores: 12
13:12:16.917: Physical Memory: 16334MB Total, 11635MB Free
13:12:16.917: Windows Version: 10.0 Build 18362 (revision: 476; 64-bit)
13:12:16.917: Running as administrator: false
13:12:16.917: Aero is Enabled (Aero is always on for windows 8 and above)
13:12:16.917: Windows 10 Gaming Features:
13:12:16.917:     Game Bar: Off
13:12:16.917:     Game DVR: Off
13:12:16.917:     Game DVR Background Recording: Off
13:12:16.918: Sec. Software Status:
13:12:16.922:     Antivirus de Windows Defender: disabled (AV)
13:12:16.922:     Firewall de Windows: enabled (FW)
13:12:16.922: Current Date/Time: 2019-11-18, 13:12:16
13:12:16.922: Browser Hardware Acceleration: true
13:12:16.922: Portable mode: false
13:12:17.255: OBS 24.0.3 (64-bit, windows)
13:12:17.255: ---------------------------------
13:12:17.255: ---------------------------------
13:12:17.255: audio settings reset:
13:12:17.255:     samples per sec: 44100
13:12:17.255:     speakers:        2
13:12:17.257: ---------------------------------
13:12:17.257: Initializing D3D11...
13:12:17.257: Available Video Adapters: 
13:12:17.259:     Adapter 0: NVIDIA GeForce GTX 1060 6GB
13:12:17.259:       Dedicated VRAM: 2051014656
13:12:17.259:       Shared VRAM:    4269246464
13:12:17.259:       output 0: pos={0, 0}, size={1920, 1080}, attached=true
13:12:17.259:       output 1: pos={1920, 0}, size={1920, 1080}, attached=true
13:12:17.260: Loading up D3D11 on adapter NVIDIA GeForce GTX 1060 6GB (0)
13:12:17.311: D3D11 loaded successfully, feature level used: b000
13:12:17.311: D3D11 GPU priority setup failed (not admin?)
13:12:17.754: ---------------------------------
13:12:17.754: video settings reset:
13:12:17.754:     base resolution:   1920x1080
13:12:17.754:     output resolution: 1280x720
13:12:17.754:     downscale filter:  Bicubic
13:12:17.754:     fps:               30/1
13:12:17.754:     format:            NV12
13:12:17.754:     YUV mode:          601/Partial
13:12:17.754: NV12 texture support enabled
13:12:17.755: Audio monitoring device:
13:12:17.755:     name: Por defecto
13:12:17.755:     id: default
13:12:17.756: ---------------------------------
13:12:17.757: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
13:12:17.758: Failed to load 'en-US' text for module: 'decklink-ouput-ui.dll'
13:12:17.784: [AMF] AMF Test failed due to one or more errors.
13:12:17.784: Failed to initialize module 'enc-amf.dll'
13:12:17.798: [obs-browser]: Version 2.7.15
13:12:17.799: LoadLibrary failed for '../../obs-plugins/64bit/obs-ffmpeg-encoder.dll': (null) (126)
13:12:17.799: Module '../../obs-plugins/64bit/obs-ffmpeg-encoder.dll' not loaded
13:12:17.801: NVENC supported
13:12:17.908: Couldn't find VLC installation, VLC video source disabled
13:12:17.913: No blackmagic support
13:12:17.916: ---------------------------------
13:12:17.916:   Loaded Modules:
13:12:17.916:     win-wasapi.dll
13:12:17.916:     win-mf.dll
13:12:17.916:     win-dshow.dll
13:12:17.916:     win-decklink.dll
13:12:17.916:     win-capture.dll
13:12:17.916:     vlc-video.dll
13:12:17.916:     text-freetype2.dll
13:12:17.916:     rtmp-services.dll
13:12:17.916:     obs-x264.dll
13:12:17.916:     obs-vst.dll
13:12:17.916:     obs-transitions.dll
13:12:17.916:     obs-text.dll
13:12:17.916:     obs-qsv11.dll
13:12:17.916:     obs-outputs.dll
13:12:17.916:     obs-filters.dll
13:12:17.916:     obs-ffmpeg.dll
13:12:17.916:     obs-browser.dll
13:12:17.916:     image-source.dll
13:12:17.916:     frontend-tools.dll
13:12:17.916:     enc-amf.dll
13:12:17.916:     decklink-ouput-ui.dll
13:12:17.916:     coreaudio-encoder.dll
13:12:17.916: ---------------------------------
13:12:17.916: ==== Startup complete ===============================================
13:12:17.916: Service '' not found
13:12:17.918: All scene data cleared
13:12:17.918: ------------------------------------------------
13:12:17.957: WASAPI: Device 'T22B300 (2- NVIDIA High Definition Audio)' initialized
13:12:17.985: WASAPI: Device 'Blue (Blue Snowball)' initialized
13:12:17.986: Switched to scene 'Escena'
13:12:17.986: ------------------------------------------------
13:12:17.986: Loaded scenes:
13:12:17.986: - scene 'Escena':
13:12:17.986: ------------------------------------------------
13:12:18.035: adding 46 milliseconds of audio buffering, total audio buffering is now 46 milliseconds (source: Mic/Aux)
13:12:18.035:
 

Tenshi3

New Member
Having some trouble with this, I seem to be able to record using the H.264/AVC NVidia NVENC (Hardware) encoder, but not stream. In fact I don't seem to be able to stream with any encoders or settings!

Below is a snippet of the logs when attempting streaming and recording. Any help would be appreciated!

14:02:14.514: [obs-ffmpeg-encoder] [opus] Initializing...
14:02:14.514: [obs-ffmpeg-encoder] [opus] FFmpeg:
14:02:14.514: [obs-ffmpeg-encoder] [opus] Custom Settings:
14:02:14.514: [obs-ffmpeg-encoder] [opus] Standard Compliance: Strict
14:02:14.514: [obs-ffmpeg-encoder] [opus] Threading: None (with 1 threads)
14:02:14.514: [obs-ffmpeg-encoder] [opus] Video:
14:02:14.514: [obs-ffmpeg-encoder] [opus] Input: 0x0 (null) Unknown Partial
14:02:14.514: [obs-ffmpeg-encoder] [opus] Output: 0x0 (null) Unknown Partial
14:02:14.514: [obs-ffmpeg-encoder] [opus] On GPU Index: 0
14:02:14.514: [obs-ffmpeg-encoder] [opus] Framerate: 1/0 (inf FPS)
14:02:14.515: [obs-ffmpeg-encoder] [opus] Keyframes:
14:02:14.515: [obs-ffmpeg-encoder] [opus] Distance: 60 frames
14:02:14.515: [obs-ffmpeg-encoder] Unexpected exception in function '_create': Initializing encoder 'opus' failed with error: Experimental feature (code -733130664).
14:02:14.515: Stream output type 'ftl_output' failed to start!

14:02:16.295: [obs-ffmpeg-encoder] [h264_nvenc] Initializing...
14:02:16.295: [obs-ffmpeg-encoder] [h264_nvenc] FFmpeg:
14:02:16.295: [obs-ffmpeg-encoder] [h264_nvenc] Custom Settings:
14:02:16.295: [obs-ffmpeg-encoder] [h264_nvenc] Standard Compliance: Strict
14:02:16.295: [obs-ffmpeg-encoder] [h264_nvenc] Threading: Slice & Frame (with 1 threads)
14:02:16.295: [obs-ffmpeg-encoder] [h264_nvenc] Video:
14:02:16.295: [obs-ffmpeg-encoder] [h264_nvenc] Texture: 1920x1080 nv12 BT.601 625 tv
14:02:16.295: [obs-ffmpeg-encoder] [h264_nvenc] Framerate: 30/1 (30.000000 FPS)
14:02:16.295: [obs-ffmpeg-encoder] [h264_nvenc] Keyframes:
14:02:16.295: [obs-ffmpeg-encoder] [h264_nvenc] Distance: 60 frames
14:02:16.295: [obs-ffmpeg-encoder] [h264_nvenc] Nvidia NVENC:
14:02:16.296: [obs-ffmpeg-encoder] [h264_nvenc] Preset: default

etc..
 

Xaymar

Active Member
Having some trouble with this, I seem to be able to record using the H.264/AVC NVidia NVENC (Hardware) encoder, but not stream. In fact I don't seem to be able to stream with any encoders or settings!

Below is a snippet of the logs when attempting streaming and recording. Any help would be appreciated!
Which version of the plugin are you using?
 
Status
Not open for further replies.
Top