INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Lossless audio conversion results in much larger files  (Read 1807 times)

geier22

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 418
Lossless audio conversion results in much larger files
« on: February 25, 2022, 03:58:22 am »

The conversion of a -.wav file with Media Center 28 results in a significantly larger file than the original for all lossless formats.
I rarely convert music files. Previously, this had always delivered the desired result.
For comparison, the same wav file with on-board resources (Xfca)
converted.

As an example, the conversion with MC 28.0.103 in 4 different lossless formats. and 2 (xcfa) with on-board resources

Code: [Select]
ls -lhgG /home/hans/Musik/wav_to_lossless/
insgesamt 2,3G
-rw-r--r-- 1 667M 24. Feb 19:08  The_Heart_Of_Our_Nearest_Star_Part_II.aif
-rw-r--r-- 1 359M 24. Feb 19:01  The_Heart_Of_Our_Nearest_Star_Part_II.ape
-rw-r--r-- 1 414M 25. Feb 10:39  The_Heart_Of_Our_Nearest_Star_Part_II.flac
-rw-r--r-- 1 405M 24. Feb 19:03  The_Heart_Of_Our_Nearest_Star_Part_II.m4a

-rwxrw-rw- 1 223M 12. Mär 2019   The_Heart_Of_Our_Nearest_Star_Part_II.wav

-rw-r--r-- 1 134M 25. Feb 10:25 'The_Heart_Of_Our_Nearest_Star_Part_II (xcfa).ape'
-rw-r--r-- 1 136M 25. Feb 10:25 'The_Heart_Of_Our_Nearest_Star_Part_II (xcfa).flac'

What's going on there ?
Logged
Debian Testing x64 (multiarch) Xfce
TEAC UD-H01 - Yamaha A-S1000 /
Midrange- Studiomonitore by FÖÖN
AsRock Z390 Extreme4- Intel Core i9 9900/ 32 GB Ram

Wheaten

  • Guest
Re: Lossless audio conversion results in much larger files
« Reply #1 on: February 25, 2022, 05:01:07 am »

Isn't this related to your bitdepth settings? (8,16,24,32,64 bit)
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10708
Re: Lossless audio conversion results in much larger files
« Reply #2 on: February 25, 2022, 05:13:11 am »

Indeed I would assume you have some settings that either increase the bitdepth, or maybe DSP that increases the sample rate, which would result in a bigger file.
Logged
~ nevcairiel
~ Author of LAV Filters

geier22

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 418
Re: Lossless audio conversion results in much larger files
« Reply #3 on: February 25, 2022, 05:55:04 am »

ok - I can't remember ordering anything there, but the bitdepth was set to 24 bit (wav file is 16 bit). This reduced the file size. -- Thanks

it has now become very complicated to reach the settings, since this is only partially possible in the convert dialog. You now have to use the options for compression, for example.

But there is still another problem I can't solve;
Here's the data
1: wav file
2: Encoded with MC (Compression: 8 / Bitdepth: Auto)
3: Encoded with on-board resources

Where does the very different file size come from? Or where can I change that?

E.g.: Sampling rate : 44.1 kHz vs: 88.2 kHz (MC)

Code: [Select]
Audio
Format                                   : PCM
Format settings                          : Little / Signed
Codec ID                                 : 1
Duration                                 : 21 min 57 s
Bit rate mode                            : Constant
Bit rate                                 : 1 411.2 kb/s
Channel(s)                               : 2 channels
Sampling rate                            : 44.1 kHz
Bit depth                                : 16 bits
Stream size                              : 222 MiB (100%)

Code: [Select]
Audio
Format                                   : FLAC
Format/Info                              : Free Lossless Audio Codec
Duration                                 : 21 min 57 s
Bit rate mode                            : Variable
Bit rate                                 : 1 219 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 88.2 kHz
Bit depth                                : 16 bits
Compression mode                         : Lossless
Replay gain                              : -7.65 dB
Replay gain peak                         : 0.988553
Stream size                              : 192 MiB (99%)
Writing library                          : libFLAC 1.3.3 (UTC 2019-08-04)
HDCD                                     : Yes

Code: [Select]
Audio
Format                                   : FLAC
Format/Info                              : Free Lossless Audio Codec
Duration                                 : 21 min 57 s
Bit rate mode                            : Variable
Bit rate                                 : 863 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 44.1 kHz
Bit depth                                : 16 bits
Compression mode                         : Lossless
Stream size                              : 136 MiB (100%)
Writing library                          : libFLAC 1.3.3 (UTC 2019-08-04)


Logged
Debian Testing x64 (multiarch) Xfce
TEAC UD-H01 - Yamaha A-S1000 /
Midrange- Studiomonitore by FÖÖN
AsRock Z390 Extreme4- Intel Core i9 9900/ 32 GB Ram

Wheaten

  • Guest
Re: Lossless audio conversion results in much larger files
« Reply #4 on: February 25, 2022, 06:55:46 am »

Flac size depends on 4 parameters:
- sample rate
- bitdepth
- compression.
- overhead
If you need more info on flac, or what everything means, use google.

Depending on the used program you can control 1, 2 or all 3 parameters. In JRiver only 1 option can be controlled under options at audio conversions.
So using different settings in different programs or even different libraries, will result in different sizes.
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2554
Re: Lossless audio conversion results in much larger files
« Reply #5 on: February 25, 2022, 07:59:43 am »

Depending on the used program you can control 1, 2 or all 3 parameters. In JRiver only 1 option can be controlled under options at audio conversions.

Bitdepth can be set in conversion options, sample rate can be set via DSP in conversion options, and the compression level (and tag structures) can be set in the encoder settings.
Logged

Wheaten

  • Guest
Re: Lossless audio conversion results in much larger files
« Reply #6 on: February 25, 2022, 08:40:57 am »

euh, aren't you mixing file conversion and audio conversion during playback?
Question was convert file from wav to flac, not playback
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2554
Re: Lossless audio conversion results in much larger files
« Reply #7 on: February 25, 2022, 10:20:58 am »

euh, aren't you mixing file conversion and audio conversion during playback?
Question was convert file from wav to flac, not playback

No. DSP settings can be applied during the conversion when the "Apply DSP" checkbox is checked.
Logged

Wheaten

  • Guest
Re: Lossless audio conversion results in much larger files
« Reply #8 on: February 25, 2022, 10:50:30 am »

ow, wasn't aware of this. So we keep on learning
Logged

geier22

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 418
Re: Lossless audio conversion results in much larger files
« Reply #9 on: February 25, 2022, 10:52:51 am »

No. DSP settings can be applied during the conversion when the "Apply DSP" checkbox is checked.

that was the solution -- THX !!!

Now the file has the same size as the converted file with the internal tool

There was set - for whatever reason

44100Hz ---> 88200Hz

Now the file has the same size as the converted file with the internal tool

Code: [Select]
Audio
Format                                   : FLAC
Format/Info                              : Free Lossless Audio Codec
Duration                                 : 21 min 57 s
Bit rate mode                            : Variable
Bit rate                                 : 858 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 44.1 kHz
Bit depth                                : 16 bits
Compression mode                         : Lossless
Replay gain                              : -7.65 dB
Replay gain peak                         : 0.988553
Stream size                              : 135 MiB (99%)
Writing library                          : libFLAC 1.3.3 (UTC 2019-08-04)
HDCD                                     : Yes

One last question : Why is at
Code: [Select]
Stream size : 135 MiB (99%)
displayed ? (Mediainfo) ---->1 % Is that the metadata ?
Logged
Debian Testing x64 (multiarch) Xfce
TEAC UD-H01 - Yamaha A-S1000 /
Midrange- Studiomonitore by FÖÖN
AsRock Z390 Extreme4- Intel Core i9 9900/ 32 GB Ram

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10708
Re: Lossless audio conversion results in much larger files
« Reply #10 on: February 25, 2022, 11:44:23 am »

The 1% is basically the file overhead. Metadata, seek index, headers, all that stuff that makes audio files easier to use, instead of just the audio in them.
Logged
~ nevcairiel
~ Author of LAV Filters
Pages: [1]   Go Up