Recording with ffmpeg: 24bit FLAC

Drexel2k

New Member
Hey!

I am currently preparing a 4k recording setup. I record a facecam beside the game video, so I set up a video width of 4920x2160 which isn't supprted by NVENC/h264. So I setup NVENC/HEVC (h265) recording with ffmpeg which works fine. I also took the chance to switch the audio recording to flac, and I want to record 24 bits depth FLAC, as the microphone supports 24bits, but OBS always records FLAC with 16 bits depth.

If I encode an audio on the command line to flac, I can set it with the paramter -sample_fmt s32 to 24 bits depth, but when I set this in the audio encoder settings, the log says: Failed to set sample_fmt=s32

I attached a screenshot with the settings, here is the log file: https://obsproject.com/logs/gJ0S9WuC2vBOYugJ

Any ideas?

Best regards
Matthias
 

Attachments

  • 4.png
    4.png
    42.6 KB · Views: 325

rockbottom

Active Member
I've been trying to figure it out myself.

Worst case, record PCM, then convert the PCM to FLAC & replace the PCM & mux it all with mkvmerge..
 

Drexel2k

New Member
Thank you for your commitment. It is not super important to be lossless for, I can still go with aac 320KBit/s which is nearly lossless for a stereo track. I think PCM then is a little bit overdone.
 

rockbottom

Active Member
OK but if you're not going to use FLAC or PCM, I highly suggest that you get Core Audio installed on your system.
10:08:11.964: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
 

DayGeckoArt

Member
I've recently switched to Mov files with PCM audio for compatibility with Premiere, but FLAC 24 bit would be great! It's so efficient and if a track has no sound, it has zero bitrate!
 
Top