Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER General Discussion Forum

Reply
 
Thread Tools Display Modes
Old 02-04-2020, 11:44 AM   #1
Ice
Human being with feelings
 
Join Date: Aug 2014
Posts: 887
Default Working in FLAC. Too CPU intensive or not?

Certainly, the power of our computer can change this result wildly.

I'm just curious how much harder than .WAV is it to use FLAC as a native format?

I know I know, disk space is cheap, use .WAV I'm just curious.
Ice is offline   Reply With Quote
Old 02-04-2020, 11:57 AM   #2
serr
Human being with feelings
 
Join Date: Sep 2010
Posts: 12,627
Default

Best performance is wav files on a SSD.

I'll archive my projects to FLAC and put them on a 7200rpm HDD. If I open one up in a pinch in that state and just hit play, it just works. If I were to try seeking around wildly like you might do when in an editing frenzy, NOW I get the little half second lags here and there. Especially if you zoom in past the range of the peak images!

When I first started running live sound with Reaper it was on a C2D machine. A SSD was required if I wanted to record multitrack at the same time while running the live sound. 95% CPU use on that last generation machine. FLAC would not have been an option in that scenario.

Editing/seeking or doing anything that's already pushing your system would make FLAC a poor choice. You'd be none the wiser with mundane projects.
serr is online now   Reply With Quote
Old 02-04-2020, 08:54 PM   #3
cassembler
Human being with feelings
 
cassembler's Avatar
 
Join Date: Aug 2017
Location: Dallas, TX
Posts: 348
Default

I asked same question a while back, and ended up doing some testing.

TL;DR - no, the only real disadvantages to flac are:
1) Limited to 24 bit depth (meaning clipping is a risk)
2) If you collaborate or work with folks who can't handle flac

Otherwise, literally no material difference in performance (*except drawing the initial waveform image). I'm still surprised, but I welcome anyone to validate the results.

See Post#15:

https://forum.cockos.com/showthread....72#post2062972
__________________
It helps if the hitter thinks you're a little crazy
- Nolan Ryan

Last edited by cassembler; 02-04-2020 at 09:07 PM. Reason: * corrected only difference I detected
cassembler is offline   Reply With Quote
Old 02-04-2020, 09:13 PM   #4
Ice
Human being with feelings
 
Join Date: Aug 2014
Posts: 887
Default

Quote:
Originally Posted by cassembler View Post
I asked same question a while back, and ended up doing some testing.

TL;DR - no, the only real disadvantages to flac are:
1) Limited to 24 bit depth (meaning clipping is a risk)
2) If you collaborate or work with folks who can't handle flac

Otherwise, literally no material difference in performance (*except drawing the initial waveform image). I'm still surprised, but I welcome anyone to validate the results.

See Post#15:

https://forum.cockos.com/showthread....72#post2062972
Cool thanks for pointing out the other thread and the tests!
Ice is offline   Reply With Quote
Old 05-19-2023, 09:53 AM   #5
phNord
Human being with feelings
 
Join Date: Jul 2005
Location: Boston
Posts: 22
Default Multi-Track Recording to FLAC though?

Would recording 16 tracks to FLAC on a relatively well-powered cause a ton of CPU overhead during the process, or should I not worry about it?

Context:

I have a residency I run & perform in every Sunday night. It's a big jam session, I end up at times using almost every channel on the Behringer X Air X18 Mixer. I've been recording the shows for archival purposes, and to be safe I tend to record every channel of the 16, in case people pop-in later so I can set-and-forget REAPER until the show is over

I'm currently recording in 44.1K 24-bit wav. After the shows, sometime during the week, I end up loading up the project file and batch-processing them all down to 24-bit FLACS, getting rid of the wavs

Problem is this is taking up a lot of space on my SSD until I get around to archiving it, and that's not great as I sometimes forget to. Moreover, last week I managed to eat-up my whole free-space on my SSD and lost the end of the show

The reason I haven't just been recording straight to FLAC as of yet:

I am *ALSO* using my computer to stream the video of the show. I do so through OBS, and it hogs a lot of CPU. It also archives the video locally, just in case, so it's writing to the disk as well

I haven't hit any CPU or RAM issues... at this point. My computer is a 2017 MBP with a 3.1 Ghz Quad-Core i7, 16 GB of 2133 MHz RAM, an internal 1TB SSD, etc.

But I'd like to start making my process more efficient by recording straight to FLAC in REAPER.

I imagine that *should* be fine? I can't imagine FLAC taking a ton more CPU overhead to encode in real-time than recording in WAV; I imagine it will be negligible on my computer?

But if I am wrong about that, I don't want to lose a show to my computer stuttering, and I won't really have an opportunity to test-run it outside of a gig...

... so I'd love advice / insight
phNord is offline   Reply With Quote
Old 05-19-2023, 10:12 AM   #6
serr
Human being with feelings
 
Join Date: Sep 2010
Posts: 12,627
Default

If you're just recording with Reaper and not running the live sound with it - using the XR18 instead for the live mix - the computer is only idling. There's no performance to even consider.

If you were running the live mix with Reaper, now you might have to consider the extra CPU hit. It's live sound in front of an audience. So that would lead me to avoid inviting trouble and just flac the files after the show. Use an app like XLD and it's a quick drag/drop.

Live sound usually gets into low latency settings and pushing a couple bigger plugins through that. Don't want to take extra risks in front of live audiences! The computer isn't really doing anything when just recording. (With 'don't care' high latency settings and no plugins.)
serr is online now   Reply With Quote
Old 05-19-2023, 10:22 AM   #7
MiddleC
Human being with feelings
 
Join Date: Apr 2021
Posts: 570
Default

Quote:
Originally Posted by Ice View Post
I know I know, disk space is cheap, use .WAV I'm just curious.
What was that? Didn't hear you.

Anyway, disk space is cheap. Use .WAV.

At 17MB/minute at 48khz, lessee...

64GB storage = 64,000MB / 17 / 60 = 62 hours

FLAC halves the space needed, but at a PITA cost.

Last edited by MiddleC; 05-19-2023 at 10:29 AM.
MiddleC is online now   Reply With Quote
Old 05-19-2023, 10:23 AM   #8
Ice
Human being with feelings
 
Join Date: Aug 2014
Posts: 887
Default

Quote:
Originally Posted by phNord View Post
Would recording 16 tracks to FLAC on a relatively well-powered cause a ton of CPU overhead during the process, or should I not worry about it?
I just did a quick test. It might be a little unfair as it's on a Mac M1 Studio Ultra, in a completely empty project (no plugins). It was recording to an external 16TB drive that isn't terribly fast.


24 stereo tracks all in record. 24-bit 48k

Performance Meter reported:

IDLE - CPU 2.4% (cur/avg: 2.38/2.22%. range: 2.1-2.5%)
WAVE - CPU 3.0% (cur/avg: 2.96/2.47%. range: 2.1-3.0%)
FLAC - CPU 3.4% (cur/avg: 3.43/2.92%. range: 2.1-3.7%)

FLAC was set to compression 5 (default)

It looks pretty negligible to me and this is 8 more tracks than your example. But this computer is pretty grunty. My guess is it'll be fine.

Good luck!!!
Ice is offline   Reply With Quote
Old 05-20-2023, 02:10 PM   #9
jamesp
Human being with feelings
 
Join Date: Feb 2007
Location: Hampshire, UK
Posts: 378
Default

Quote:
Originally Posted by phNord View Post
Would recording 16 tracks to FLAC on a relatively well-powered cause a ton of CPU overhead during the process, or should I not worry about it?
Don't worry about it - I've done 16 tracks of FLAC at 96KHz 24 bit on my old 2004 vintage XP laptop and it worked reliably. The increase in processor power needed is compensated to some extent by the decrease in disk traffic. When you are recording high sample rate multitrack for hours on end the difference in disk space is many GB when using FLAC.
__________________
JRP Music - audio mastering and restoration. https://www.jrpmusic.co.uk
https://www.facebook.com/JRPMus/
jamesp is online now   Reply With Quote
Old 05-27-2023, 07:03 PM   #10
ayskura
Human being with feelings
 
Join Date: Apr 2019
Posts: 379
Default

I only record FLAC since many years, big projects, recording often live multitracks of 32 channels, playbacks of 50+ tracks, all in flac, render in flac, process in flac, nothing but flac. Never an issue with it, even on opld machines like a Mac Pro 2006, or very old laptops. Even on Raspberry pi I can playback 24+ track in Flac without any issues.

on the plus side, when playing from old hard drives, computer seem to be snappier with bigger project, probably because they need to read less data from HD.

For my point of view WAV/AIFF formats are DEAD long time ago
ayskura is offline   Reply With Quote
Old 05-27-2023, 07:07 PM   #11
ayskura
Human being with feelings
 
Join Date: Apr 2019
Posts: 379
Default

forgot to add: I have settings of FLAC in Reaper as Maximum compression /Slowest. It's really incredible, projects of 20GB, become less than 10 easily.
I can have full albums to work on, my limited laptop SSD etc, really amazing
ayskura is offline   Reply With Quote
Old 05-28-2023, 12:28 AM   #12
F1308
Human being with feelings
 
F1308's Avatar
 
Join Date: Nov 2022
Location: It is season dependant.
Posts: 755
Default

Quote:
Originally Posted by ayskura View Post
forgot to add: I have settings of FLAC in Reaper as Maximum compression /Slowest. It's really incredible, projects of 20GB, become less than 10 easily.
I can have full albums to work on, my limited laptop SSD etc, really amazing
I render using FLAC and MP3 simultaneously.

The first to grant quality and the second to avoid the file going over 20 MB so as to be able to send it via Gmail.

😀😀😀😀
🎹🎹🎹🎹
F1308 is offline   Reply With Quote
Old 05-28-2023, 07:26 AM   #13
/AND/
Human being with feelings
 
Join Date: Aug 2022
Posts: 731
Default

I started using FLAC and WavPack predominantly for recordings, takes and comping, and anything requiring huge audio files. (I actually prefer WavPack, but BitWig sadly doesn't support it yet. Reaper does, however)

Haven't noticed a hiccup in performance, and frankly I've saved SO MUCH SPACE while keeping everything lossless. In my opinion, go full on FLAC/WP.
/AND/ is offline   Reply With Quote
Old 05-28-2023, 07:27 AM   #14
/AND/
Human being with feelings
 
Join Date: Aug 2022
Posts: 731
Default

If there was a way to convert my whole sample library to FLAC/WP somehow, and my projects be able to discover the files automatically, I'd do it without a second thought.
/AND/ is offline   Reply With Quote
Old 05-28-2023, 07:39 AM   #15
serr
Human being with feelings
 
Join Date: Sep 2010
Posts: 12,627
Default

Quote:
Originally Posted by /AND/ View Post
If there was a way to convert my whole sample library to FLAC/WP somehow, and my projects be able to discover the files automatically, I'd do it without a second thought.
XLD (X Lossless Decoder) will batch convert. Drag/drop a whole folder of files and walk away.

Reaper has some intelligence with replacing files. 'Browse' for the first missing file in the missing files dialog and select the new flac file with the same name. Reaper will look in the same directory for the rest of the files and go by name replacing them unprompted.

That will lead to a quick browse to open every project the first time after that format change. PITA perhaps but not the worst!
serr is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:26 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.