x264 lossless RGB recording

huhn

New Member
i'm currently playing around with local recording and found that RGB doesn't seem to work with x264 and it falls back to 420.
444 recording is working flawless so i'm now wondering why RGB isn't but is an option in advanced -> video. it's supported by x264 as input
--input-csp bgr, bgra, rgb, rgb24, bgr24 and lot's more formats even RGBA
and it supports it as an output
--output-csp rgb

so any one an idea why it's not working? is the --output-csp rgb syntax incorrect but needed?
13:52:16.648: CoInitializeEx succeeded: 0x00000001
13:52:16.648: CPU Name: AMD Ryzen 7 3700X 8-Core Processor
13:52:16.648: CPU Speed: 3600MHz
13:52:16.648: Physical Cores: 8, Logical Cores: 16
13:52:16.648: Physical Memory: 32721MB Total, 22095MB Free
13:52:16.648: Windows Version: 10.0 Build 19041 (release: 2004; revision: 329; 64-bit)
13:52:16.648: Running as administrator: false
13:52:16.648: Aero is Enabled (Aero is always on for windows 8 and above)
13:52:16.648: Windows 10 Gaming Features:
13:52:16.648: Game Bar: Off
13:52:16.648: Game DVR: Off
13:52:16.648: Game DVR Background Recording: Off
13:52:16.649: Sec. Software Status:
13:52:16.650: Microsoft Defender Antivirus: enabled (AV)
13:52:16.650: Windows Firewall: enabled (FW)
13:52:16.651: Current Date/Time: 2020-06-26, 13:52:16
13:52:16.651: Browser Hardware Acceleration: true
13:52:16.651: Portable mode: false
13:52:16.840: OBS 25.0.8 (64-bit, windows)
13:52:16.840: ---------------------------------
13:52:16.841: ---------------------------------
13:52:16.841: audio settings reset:
13:52:16.841: samples per sec: 44100
13:52:16.841: speakers: 2
13:52:16.842: ---------------------------------
13:52:16.842: Initializing D3D11...
13:52:16.842: Available Video Adapters:
13:52:16.844: Adapter 0: AMD Radeon RX 5700 XT
13:52:16.844: Dedicated VRAM: 4252262400
13:52:16.844: Shared VRAM: 4270729216
13:52:16.844: PCI ID: 1002:731f
13:52:16.845: Driver Version: 26.20.15029.27017
13:52:16.845: output 0: pos={0, 0}, size={1920, 1080}, attached=true, refresh=240, name=27GK750F
13:52:16.845: output 1: pos={-1920, 0}, size={1920, 1080}, attached=true, refresh=120, name=VG248
13:52:16.846: Loading up D3D11 on adapter AMD Radeon RX 5700 XT (0)
13:52:16.873: D3D11 loaded successfully, feature level used: b000
13:52:16.873: DXGI increase maximum frame latency success
13:52:16.873: D3D11 GPU priority setup failed (not admin?)
13:52:17.206: ---------------------------------
13:52:17.206: video settings reset:
13:52:17.206: base resolution: 1920x1080
13:52:17.206: output resolution: 1920x1080
13:52:17.206: downscale filter: Bicubic
13:52:17.206: fps: 60/1
13:52:17.206: format: RGBA
13:52:17.206: YUV mode: None
13:52:17.206: GPU conversion not available for format: 6
13:52:17.206: NV12 texture support not available
13:52:17.210: Audio monitoring device:
13:52:17.210: name: Default
13:52:17.210: id: default
13:52:17.210: ---------------------------------
13:52:17.212: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
13:52:17.212: Failed to load 'en-US' text for module: 'decklink-ouput-ui.dll'
13:52:17.395: [AMF] Version 2.7.0 loaded (Compiled: 1.4.14.0, Runtime: 1.4.16.0, Library: 1;4;16;0;19.50.29.27;202005151521;CL#2116351).
13:52:17.477: [AMF] [Capability Manager] Testing Direct3D 11 Adapter 'AMD Radeon RX 5700 XT (VEN_1002/DEV_731f/SUB_2398148c/REV_00c1)':
13:52:17.477: H264/AVC: Supported
13:52:17.477: H265/HEVC: Supported
13:52:17.477:
13:52:17.489: [obs-browser]: Version 2.8.6
13:52:17.743: Couldn't find VLC installation, VLC video source disabled
13:52:17.747: A DeckLink iterator could not be created. The DeckLink drivers may not be installed
13:52:17.747: No blackmagic support
13:52:17.750: ---------------------------------
13:52:17.750: Loaded Modules:
13:52:17.750: win-wasapi.dll
13:52:17.750: win-mf.dll
13:52:17.750: win-dshow.dll
13:52:17.750: win-decklink.dll
13:52:17.750: win-capture.dll
13:52:17.750: vlc-video.dll
13:52:17.750: text-freetype2.dll
13:52:17.750: rtmp-services.dll
13:52:17.750: obs-x264.dll
13:52:17.750: obs-vst.dll
13:52:17.750: obs-transitions.dll
13:52:17.750: obs-text.dll
13:52:17.750: obs-qsv11.dll
13:52:17.750: obs-outputs.dll
13:52:17.750: obs-filters.dll
13:52:17.750: obs-ffmpeg.dll
13:52:17.750: obs-browser.dll
13:52:17.750: image-source.dll
13:52:17.750: frontend-tools.dll
13:52:17.750: enc-amf.dll
13:52:17.750: decklink-ouput-ui.dll
13:52:17.750: coreaudio-encoder.dll
13:52:17.750: ---------------------------------
13:52:17.750: ==== Startup complete ===============================================
13:52:17.751: Service '' not found
13:52:17.752: All scene data cleared
13:52:17.752: ------------------------------------------------
13:52:17.778: WASAPI: Device 'Speakers (Realtek(R) Audio)' [48000 Hz] initialized
13:52:17.778: [Loaded global audio device]: 'Desktop Audio'
13:52:17.796: WASAPI: Device 'Microphone (2- USB2.0 High-Speed True HD Audio)' [96000 Hz] initialized
13:52:17.796: [Loaded global audio device]: 'Mic/Aux'
13:52:17.832: adding 46 milliseconds of audio buffering, total audio buffering is now 46 milliseconds (source: Mic/Aux)
13:52:17.832:
13:52:18.253: Switched to scene 'Scene'
13:52:18.253: ------------------------------------------------
13:52:18.253: Loaded scenes:
13:52:18.253: - scene 'Scene':
13:52:18.253: - source: 'Game Capture' (game_capture)
13:52:18.253: ------------------------------------------------
13:52:22.277: [game-capture: 'Game Capture'] attempting to hook fullscreen process: java.exe
13:52:22.314: [game-capture: 'Game Capture'] gl shared texture capture successful
13:52:22.327: [game-capture: 'Game Capture'] shared texture capture successful
13:52:25.169: Starting recording due to hotkey
13:52:25.170: ---------------------------------
13:52:25.170: [x264 encoder: 'recording_h264'] preset: ultrafast
13:52:25.170: [x264 encoder: 'recording_h264'] settings:
13:52:25.170: rate_control: CRF
13:52:25.170: bitrate: 0
13:52:25.170: buffer size: 0
13:52:25.170: crf: 0
13:52:25.170: fps_num: 60
13:52:25.170: fps_den: 1
13:52:25.170: width: 1920
13:52:25.170: height: 1080
13:52:25.170: keyint: 250
13:52:25.170:
13:52:25.170: [x264 encoder: 'recording_h264'] custom settings: --output-csp rgb
13:52:25.174: ---------------------------------
13:52:25.175: [FFmpeg aac encoder: 'Track1'] bitrate: 160, channels: 2, channel_layout: 3
13:52:25.175:
13:52:25.180: ==== Recording Start ===============================================
13:52:25.180: [ffmpeg muxer: 'adv_file_output'] Writing file 'C:/Users/huhn/Videos/2020-06-26 13-52-25.mkv'...
13:52:30.558: Stopping recording due to hotkey
13:52:31.010: [ffmpeg muxer: 'adv_file_output'] Output of file 'C:/Users/huhn/Videos/2020-06-26 13-52-25.mkv' stopped
13:52:31.010: Output 'adv_file_output': stopping
13:52:31.010: Output 'adv_file_output': Total frames output: 323
13:52:31.010: Output 'adv_file_output': Total drawn frames: 350
13:52:31.010: ==== Recording Stop ================================================
13:53:08.812: ---------------------------------
13:53:08.812: video settings reset:
13:53:08.812: base resolution: 1920x1080
13:53:08.812: output resolution: 1920x1080
13:53:08.812: downscale filter: Bicubic
13:53:08.812: fps: 60/1
13:53:08.812: format: I444
13:53:08.812: YUV mode: 709/Full
13:53:08.812: NV12 texture support not available
13:53:08.833: Settings changed (advanced)
13:53:08.833: ------------------------------------------------
13:53:16.134: Starting recording due to hotkey
13:53:16.135: ---------------------------------
13:53:16.135: [x264 encoder: 'recording_h264'] preset: ultrafast
13:53:16.135: [x264 encoder: 'recording_h264'] settings:
13:53:16.135: rate_control: CRF
13:53:16.135: bitrate: 0
13:53:16.135: buffer size: 0
13:53:16.135: crf: 0
13:53:16.135: fps_num: 60
13:53:16.135: fps_den: 1
13:53:16.135: width: 1920
13:53:16.135: height: 1080
13:53:16.135: keyint: 250
13:53:16.135:
13:53:16.135: [x264 encoder: 'recording_h264'] custom settings: --output-csp rgb
13:53:16.139: ---------------------------------
13:53:16.139: [FFmpeg aac encoder: 'Track1'] bitrate: 160, channels: 2, channel_layout: 3
13:53:16.139:
13:53:16.143: ==== Recording Start ===============================================
13:53:16.143: [ffmpeg muxer: 'adv_file_output'] Writing file 'C:/Users/huhn/Videos/2020-06-26 13-53-16.mkv'...
13:53:23.683: Stopping recording due to hotkey
13:53:24.125: [ffmpeg muxer: 'adv_file_output'] Output of file 'C:/Users/huhn/Videos/2020-06-26 13-53-16.mkv' stopped
13:53:24.125: Output 'adv_file_output': stopping
13:53:24.125: Output 'adv_file_output': Total frames output: 453
13:53:24.125: Output 'adv_file_output': Total drawn frames: 479
13:53:24.125: ==== Recording Stop ================================================
14:09:39.740: Settings changed (outputs)
14:09:39.740: ------------------------------------------------
 

albgabor

New Member
ok got it working after i found out that a different syntax for x264 settings are used.
Can you share the solution? :D I couldn't figure it out. The only thing worked for me is "costum ffmpeg" with libx264rgb encoder. (With x264 in "standard" type it's not working.) (I've tried for x264 options: input-csp=rgb output-csp=rgb)
 
Top