Question / Help Recordings I do with the utvideo encoder are messed up. Why?

So I wanted to record lossless video. I found out that in the Custom Output (FFmpeg) you can use the video encoder utvideo in avi container format to record lossless. I also used RGB color format because it has true color. The color space was 709 and the range full. Because windows cant play that file I downloaded the utvideo codec and then it played it. It looked great but when I moved the cursor there was a second red cursor in the video. Sometimes there were 2 white cursors, sometimes there was a second red cursor. Also when a window with an orange background was moved the colors messed up and also the audio was messed up. It sounded like there were two audio recordings playing but they were not synchronized. Then I used the NV12 color space and the second red cursor was gone but the colors looked terrible. Then I recorded with the same settings in Dxtory and there were no problems. Also Premiere pro showed these problems as well, so it's not a player issue (I was using Windows Media Player because the default player doesn't support avi files). Please help.

Log file:

Frames from the recording:
2020-03-13 15-41-440.png


I was moving the Nvidia control panel as an example:
2020-03-13 15-41-441.png
2020-03-13 15-41-442.png
2020-03-13 15-41-443.png
2020-03-13 15-41-444.png
 

koala

Active Member
For lossless recordings, I use simple output mode. As quality setting there is "lossless quality" available. I used this and nvenc as encoder. This also results in *.avi with utvideo codec. Depending on what you set in Settings->Advanced->Video->Color format, different video formats within the utvideo codec seems to result.

If I use NV12, video is fine but with 4:2:0 subsampling. codec id used according to MediaInfo: ULH0
If I use i444, weird things happen with the colors: It seems some of the color info is taken from the previous frame and merged into the current frame. Color format reported by MediaInfo is ULH4, seems to be a 4:4:4 subsampling, i. e. no subsampling.
If I use RGB, video is fine. No color bleeding from the previous frame. MediaInfo reports color format RGB with codec id ULRG.

Perhaps you might try simple mode with nvenc and RGB as color format.

The double pointer also appears for me sometimes. But it's not specific to lossless recording, it always appears. It doesn't appear if I simply move the mouse around. But if I drag a window with a mouse (to simulate motion for the test vide), I see a double mouse pointer. I assume this is an artifact created by OBS Studio. I don't know it for sure, but I assume while you drag a window, Windows makes the actual mouse pointer (the hardware pointer) invisible and draws the mouse pointer graphics on the window title bar. While you drag the window, Windows drags a snapshot image of the window including the drawn mouse pointer around. OBS doesn't handle this but draws an image of the mouse cursor at the actual mouse position of the (hidden) pointer, so you see 2 pointers: the one drawn by OBS and the one drawn by Windows at the start of the drag. I call this a bug in OBS (well, not really a bug, but a flaw).
[I probably just proved this assumption: Don't use any window capture source but only a single display capture source. Disable recording of the mouse pointer in the display capture source. Now you will see no mouse pointer unless you drag some window: in this case a mouse pointer appears on the title bar as long as you are dragging the window. Since OBS isn't drawing it, it's only Windows left that draws it]
 
Top