How to record video with lossless audio (flac) using OBS local recording?

mtbest

New Member
Is it possible to record video with lossless audio (wide dynamic range, wav or flac) using OBS local recording?
Using output-advanced-recording I manage only to record flac audio, no video.
 

koala

Active Member
To get both audio and video lossless, set simple output mode, then Settings->Output->Recording->Recording quality->Lossless Quality, tremendously large file size.
The resulting video has utvideo+pcm codec, like this:
Code:
General
Complete name               : D:\Dateien\Allgemein\Video\Aufzeichnungen\2020-10-06 11-17-14.avi
Format                      : AVI
Format/Info                 : Audio Video Interleave
File size                   : 754 MiB
Duration                    : 8 s 341 ms
Overall bit rate            : 759 Mb/s
Writing application         : Lavf58.29.100

Video
ID                          : 0
Format                      : RGB
Codec ID                    : ULRG
Codec ID/Info               : Ut Video Lossless Codec
Codec ID/Hint               : Ut Video
Duration                    : 8 s 333 ms
Bit rate                    : 758 Mb/s
Width                       : 2 560 pixels
Height                      : 1 440 pixels
Display aspect ratio        : 16:9
Frame rate                  : 60.000 FPS
Color space                 : RGB
Bit depth                   : 8 bits
Bits/(Pixel*Frame)          : 3.426
Stream size                 : 753 MiB (100%)

Audio
ID                          : 1
Format                      : PCM
Format settings             : Little / Signed
Codec ID                    : 1
Duration                    : 8 s 341 ms
Bit rate mode               : Constant
Bit rate                    : 1 536 kb/s
Channel(s)                  : 2 channels
Sampling rate               : 48.0 kHz
Bit depth                   : 16 bits
Stream size                 : 1.53 MiB (0%)
Alignment                   : Aligned on interleaves
Interleave, duration        : 21  ms (1.28 video frame)
 

mtbest

New Member
Thanks for your answer @koala. Tremendous file size is a barrier for me.

Is there a way to record compressed video and lossless audio?
I am experimenting with output-advanced-recording settings but I cannot find container format that supports such a combination.

Lossless audio is much smaller than lossless video, so I keep searching for solution in OBS.
 

mtbest

New Member
I found a combination of asf container that supports flac audio and mpeg video. File size is reasonable.
obs-flac-video.png
 

R1CH

Forum Admin
Developer
I would recommend x264 / FLAC in a MKV container instead, ASF and MSMPEG4 are very old formats.
 

mtbest

New Member
MKV container is NOT AVAILABLE in the menu.
It would be my preference, but MKV is missing from the container dropout menu.

I tried various combinations of containers and codecs and OBS either stops recording with some error or produces file that does not have intended features.
 
Top