Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Recent Posts
1
FLAC / Re: FLAC v1.3.3
Last post by Porcus -
for /r %G IN (*.flac) works as well I think. So the differences stayed about the same, and that is not the explanation. (Reason why I asked is this thread.)

But the Beautiful World must have had a 5.5 gigabytes padding or something? Given that the art was that 446553 file. (You can find art size by Mp3tag.)
dBpoweramp has the option to encode to "uncompressed" FLAC (I don't remember how, does maybe it forces VERBATIM for everything ... everything but wasted bits I think). Probably it was implemented to attract audiophools or maybe to shut them up.
It is possible to get out that information by checking the output of flac -a - which would be a text file same order of magnitude as the file or something, that is for the curious.
3
FLAC / Re: FLAC v1.3.3
Last post by sheik124 -
There was only a <1 KB difference between any of the builds or 1.3.2 for 44/16, using Muse's "Take a Bow" from that old post.

Just to be sure that it isn't padding or seektable ... tried
metaflac.exe --dont-use-padding --remove-all
?
(It will also remove the vendor (version) string, so make a copy first.)

You know, I don't think I've ever used metaflac or even flac.exe itself, it's usually piped through via foobar or EAC or something.
If you ever want a lazy way to do operations like that for all FLAC files in a folder + its subfolders,
Code: [Select]
FOR /F "tokens=*" %G IN ('dir /b /s *.flac') DO metaflac.exe --dont-use-padding --remove-all "%G"
No fancy table this time
Code: [Select]
Before:
2021-09-18  01:04 PM        32,819,331 01 Take A Bow 1.3.2.flac
2021-09-18  01:09 PM        32,819,357 01 Take A Bow flac-v1.3.3.git-ce6dd6b-x64.flac
2021-09-18  01:07 PM        32,819,370 01 Take A Bow 1.3.3_313ab58-Ozz.flac
2021-09-18  01:10 PM        32,819,379 01 Take A Bow mingw-w64-x86_64-flac-git-1.3.3.r3909.7a35c528.flac
After:
2021-09-18  11:46 PM        32,689,426 01 Take A Bow 1.3.2.flac
2021-09-18  11:46 PM        32,689,452 01 Take A Bow flac-v1.3.3.git-ce6dd6b-x64.flac
2021-09-18  11:46 PM        32,689,474 01 Take A Bow mingw-w64-x86_64-flac-git-1.3.3.r3909.7a35c528.flac
2021-09-18  11:46 PM        32,689,476 01 Take A Bow 1.3.3_313ab58-Ozz.flac
The "giant" 4616 kbps FLAC out of curiosity:
2019-10-22  06:18 PM       189,548,998 01 - Beautiful World.flac - Before
2021-09-18  11:53 PM       183,454,510 01 - Beautiful World.flac - After
2021-09-18  03:09 PM       183,586,602 01 - Beautiful World.wav - Still tagged with embedded album art too BTW...
2021-09-18  03:05 PM           446,533 heart station.jpg
4
AAC - Tech / Re: AAC Gapless playback information
Last post by snotlicker -
No idea why anyone would touch ffmpeg/fdkaac when you're on a mac and the target device is an ipod. Surely using the built in** apple codecs is the way to go?? I'd have to assume that's what XLD is doing? And according to this...

https://wiki.hydrogenaud.io/index.php?title=XLD_Configuration#.22Batch.22_tab

there is a batch section in the preferences.

** huge assumption on my part about this. I really have no idea.  :))



5
AAC - Tech / Re: AAC Gapless playback information
Last post by apastuszak -
I did more experimenting this afternoon.

I wrote a small script to do conversion:

Code: [Select]
#!/bin/bash

ffmpeg -i "$1" -f wav - | fdkaac -I -m 5 -G 0 - -o "$2"

This was supposed to write the iTunSMPB atom to the file. I used this script, and took the resulting m4a file and confirmed that the iTunSMPB atom is there using FooBar2000 properties.

I synced that file to the iPod, and I DID NOT get gapless playback.

So, I changed the -G 0 to a -G 2, which is supposed to write both iTunSMPB Atoms and ISO standard (edts + sgpd).

I synced this album over to the iPod, and playing these tracks caused the iPod to reboot.

The one thing that DOES work, is to use the Mac application xld to convert the FLACs to AAC.  They work, and they play gapless. But, I have 33,000+ songs, and I don't think XLD does batch processing.
6
AAC - Tech / Re: AAC Gapless playback information
Last post by apastuszak -
I just tried this, and it strips all the metadata from the m4a file.

Yes, the command I gave was simply to generate an m4a file from flac with only gapless information included. 
I'm confused, your first post says your on Linux, your 3rd says your on a Mac?

You could try this command.  It only carries over basic tags from the flac file without cover art, but will add all of the gapless atoms: iTunSMPB, edts + sgpd, and pgap.
Code: [Select]
ffmpeg -i filename.flac -f caf - | fdkaac -S -p2 -m5 -a1 -f0 -G2 --moov-before-mdat --tag pgap:1 - -o "filename.m4a"

Another option to write tags to existing files is to use AtomicParsley.  This will write the "Gapless Playback" tag to every file in the directory, but it will not add the specific iTunSMPB tag that fdkaac adds each file.
Code: [Select]
for file in *; do AtomicParsley "$file" --overWrite --gapless "1"; done

I'm not familiar with beets.io.  Maybe there is a way to modify the command it uses to encode files?
https://beets.readthedocs.io/en/stable/plugins/convert.html

I have a little bit of everything in the house. My main computer is Linux, but I also have a Mac.
9
AAC - Tech / Re: AAC Gapless playback information
Last post by Replica9000 -
I just tried this, and it strips all the metadata from the m4a file.

Yes, the command I gave was simply to generate an m4a file from flac with only gapless information included. 
I'm confused, your first post says your on Linux, your 3rd says your on a Mac?

You could try this command.  It only carries over basic tags from the flac file without cover art, but will add all of the gapless atoms: iTunSMPB, edts + sgpd, and pgap.
Code: [Select]
ffmpeg -i filename.flac -f caf - | fdkaac -S -p2 -m5 -a1 -f0 -G2 --moov-before-mdat --tag pgap:1 - -o "filename.m4a"

Another option to write tags to existing files is to use AtomicParsley.  This will write the "Gapless Playback" tag to every file in the directory, but it will not add the specific iTunSMPB tag that fdkaac adds each file.
Code: [Select]
for file in *; do AtomicParsley "$file" --overWrite --gapless "1"; done

I'm not familiar with beets.io.  Maybe there is a way to modify the command it uses to encode files?
https://beets.readthedocs.io/en/stable/plugins/convert.html
10
Listening Tests / Personal blind sound quality comparison of Opus hard-CBR with framesize options
Last post by Kamedo2 -
Abstract:
Personal blind sound quality comparison of the Opus codec from 28 to 80 kbps, hard-cbr, on various framesize.
Hard CBR is designed so that encrypted secret speech cannot be guessed by network eavesdroppers through the bitrate side channel.
The Opus encoding introduces 26.5 ms of delay on default. 26.5 ms is short but according to the manual, the small delay can be reduced further, by setting a shorter framesize. In this test, we will see whether this is useful for narrowband connections down to 56 kbps.
In this test, longer framesize was tested as well.

Encoders:
The official Opus encoder, official Windows build opus-tools-0.2-opus-1.3, the latest distributed versions as of 2021 July, was used.

Settings:
opusenc --hard-cbr --bitrate 28 --framesize 20 in.wav out.opus
opusenc --hard-cbr --bitrate 28 --framesize 60 in.wav out.opus
opusenc --hard-cbr --bitrate 40 --framesize 20 in.wav out.opus
opusenc --hard-cbr --bitrate 40 --framesize 60 in.wav out.opus
opusenc --hard-cbr --bitrate 56 --framesize 20 in.wav out.opus
opusenc --hard-cbr --bitrate 56 --framesize 5 in.wav out.opus
opusenc --hard-cbr --bitrate 80 --framesize 20 in.wav out.opus
opusenc --hard-cbr --bitrate 80 --framesize 5 in.wav out.opus

Sample tracks:
15 sound samples from Kamedo2's samples.
12 sound samples from IgorC's samples.
Total 27 diverse music and speech sound samples.
Due to my mistake, three sound sample tracks (Waiting, Experiencia, Heart to Heart) were tested twice. The duplicated ratings were averaged.

Hardware:
Sony PSP-3000 + AKG K712.

Results:




Conclusions & Observations:
  • Opus at 56kbps hard-CBR, default framesize, exceeded 3.0 on a MOS scale on the majority of the test tracks.
  • Opus at 80kbps hard-CBR, default framesize, exceeded 3.0 on a MOS scale on all of the test tracks.
  • Changing the Opus framesize, from the default 20 millisecond setting, always resulted in worse fidelity or remained about the same--The default setting was the best.
  • In Opus 56kbps and 80kbps, setting shorter framesize resulted in severe fidelity loss, compared to the default setting.
  • In Opus 28kbps and 40kbps, setting longer framesize also resulted in fidelity loss on the average on the test tracks, which is in line with the official manual. Strictly speaking, it is unclear whether the longer framesize will decrease fidelity on average. They passed the Student's paired t-test (p<0.05) but the multiple comparisons problem remains.
  • In Opus 56kbps, on the "Trust" sample track, setting shorter framesize resulted in better fidelity as an exception. It was a transient sample; the applause from all directions was recorded in the sample track. Adaptive use of 5ms framesize in Opus may be worth considering in the future Opus development.
  • In Opus 56kbps, on the "applaud" sample track, on the default framesize, was an outlier. The volume of the crowd is notably bigger in 0:02, like something other than the delight have happened in the scene. It indeed changes the nuance of the original recording, where codecs should achieve fidelity and transparency. Like the "Trust" sample, setting 5ms framesize resulted in better fidelity.

Anova analysis:
Code: [Select]
FRIEDMAN version 1.24 (Jan 17, 2002) http://ff123.net/
Blocked ANOVA analysis

Number of listeners: 27
Critical significance:  0.05
Significance of data: 1.11E-016 (highly significant)
---------------------------------------------------------------
ANOVA Table for Randomized Block Designs Using Ratings

Source of         Degrees     Sum of    Mean
variation         of Freedom  squares   Square    F      p

Total              215         140.21
Testers (blocks)    26          33.35
Codecs eval'd        7          82.91   11.84   89.97  1.11E-016
Error              182          23.96    0.13
---------------------------------------------------------------
Fisher's protected LSD for ANOVA:   0.195

Means:

std-80k  std-56k  std-40k  short-80 long-40k short-56 std-28k  long-28k
  3.92     3.38     2.78     2.64     2.63     2.17     2.11     2.01

---------------------------- p-value Matrix ---------------------------

         std-56k  std-40k  short-80 long-40k short-56 std-28k  long-28k
std-80k  0.000*   0.000*   0.000*   0.000*   0.000*   0.000*   0.000*
std-56k           0.000*   0.000*   0.000*   0.000*   0.000*   0.000*
std-40k                    0.173    0.130    0.000*   0.000*   0.000*
short-80                            0.881    0.000*   0.000*   0.000*
long-40k                                     0.000*   0.000*   0.000*
short-56                                              0.549    0.097
std-28k                                                        0.287
-----------------------------------------------------------------------

std-80k is better than std-56k, std-40k, short-80k, long-40k, short-56k, std-28k, long-28k
std-56k is better than std-40k, short-80k, long-40k, short-56k, std-28k, long-28k
std-40k is better than short-56k, std-28k, long-28k
short-80k is better than short-56k, std-28k, long-28k
long-40k is better than short-56k, std-28k, long-28k


Raw data:
Code: [Select]
std-28k	long-28k	std-40k	long-40k	std-56k	short-56k	std-80k	short-80k
%feature 7 20 ms 60 ms 20 ms 60 ms 20 ms 5 ms 20 ms 5 ms
%feature 10 28kbps 28kbps 40kbps 40kbps 56kbps 56kbps 80kbps 80kbps
%feature 11 --bitrate 28 --bitrate 28 --bitrate 40 --bitrate 40 --bitrate 56 --bitrate 56 --bitrate 80 --bitrate 80
%feature 12 --framesize 20 --framesize 60 --framesize 20 --framesize 60 --framesize 20 --framesize 5 --framesize 20 --framesize 5
%genre Kamedo2's 15 sample
1.800 1.600 2.600 2.400 3.300 1.700 3.900 1.900
2.200 2.000 2.500 2.600 3.800 1.800 4.300 3.100
1.600 1.500 2.900 2.200 3.300 1.700 3.700 2.400
2.000 1.700 2.800 2.500 3.500 1.800 3.800 2.400
2.100 2.300 2.700 2.800 3.700 2.900 3.900 3.200
1.800 1.600 2.300 2.200 3.400 1.500 3.900 1.900
2.600 2.700 3.700 3.500 3.900 2.300 4.100 3.200
1.900 1.700 2.800 3.100 3.500 1.500 3.700 1.800
1.800 1.700 2.400 2.000 2.600 1.600 3.300 2.200
1.600 1.600 2.500 2.400 3.400 1.500 3.900 1.900
1.900 1.600 2.300 2.000 2.800 3.600 3.700 3.500
2.250 2.250 2.600 2.700 3.550 1.750 3.800 2.000
2.100 1.950 3.100 3.100 3.750 2.000 4.050 2.250
1.750 1.850 2.700 2.750 3.650 1.550 4.150 2.400
2.200 1.900 2.600 2.700 3.300 2.100 3.700 2.300

%genre IgorC's 12 sample
2.300 2.200 2.600 2.500 3.400 2.400 3.900 3.300
3.300 3.200 3.900 3.700 4.200 3.500 4.300 4.000
1.800 1.900 2.900 2.300 3.500 1.500 4.000 1.600
1.600 1.700 2.300 2.500 2.900 1.500 3.600 1.800
1.900 1.800 2.500 2.300 3.600 2.100 4.100 3.100
1.500 1.600 1.800 1.700 2.900 1.900 3.900 2.700
2.000 1.900 2.600 2.200 1.500 2.800 3.700 2.500
2.700 2.600 3.000 2.900 3.300 2.800 3.500 3.100
2.600 2.700 3.300 3.100 3.600 2.900 3.900 3.500
2.400 2.200 2.900 3.000 3.300 2.100 3.900 2.300
3.500 2.700 4.300 3.600 3.800 3.100 5.000 3.400
1.800 1.700 2.400 2.200 3.800 2.700 4.100 3.600

%samples 41_30sec Perc.
%samples finalfantasy Strings
%samples ATrain Jazz
%samples BigYellow Pops
%samples FloorEssence Techno
%samples macabre Classic
%samples mybloodrusts Guitar
%samples Quizas Latin
%samples VelvetRealm Techno
%samples Amefuribana Pops
%samples Trust Gospel
%samples Waiting Rock
%samples Experiencia Latin
%samples Heart to Heart Pops
%samples Tom's Diner Acappella

%samples 01 castanets inst.
%samples 02 fatboy_30sec Techno
%samples 03 eig Techno
%samples 04 Bachpsichord inst.
%samples 05 Enola Techno
%samples 06 trumpet inst.
%samples 07 applaud Live
%samples 08 velvet perc.
%samples 09 Linchpin Rock
%samples 10 spill_the_blood guitar
%samples 11 female_speech Speech
%samples 12 French_Ad Speech

Bitrates:

The tested setting was the hard-cbr, so every frame was exactly the same size.
According to the official document of Opus-tools, hard-cbr delivers lower overall quality but is useful where bitrate changes might leak data in encrypted channels or on synchronous transports.
Understandably, the file-based bitrates were almost unchanged over many diverse musical contents.
However, by using a longer framesize, the Opus file occupied slightly less storage. About 0.1 ~ 0.3 kbps worth of file-based bitrates were saved.



Code: [Select]
%y_axis File-based bitrates of each track [bps]
%bitrate
std28k long28k std40k long40k std56k short56k std80k short80k
28866 28607 40874 40748 56885 58067 80901 82075
28852 28600 40857 40738 56863 58064 80872 82073
29000 28734 41010 40877 57023 58209 81043 82222
28925 28667 40938 40813 56955 58121 80981 82132
28985 28718 40995 40861 57007 58194 81026 82206
29027 28773 41035 40915 57046 58231 81063 82240
28979 28723 40990 40868 57005 58178 81028 82189
28869 28610 40873 40748 56879 58079 80886 82087
29309 29043 41321 41188 57337 58538 81360 82561
28917 28659 40927 40802 56941 58108 80962 82115
28876 28616 40884 40758 56896 58077 80914 82086
28994 28727 41009 40876 57029 58188 81059 82200
28982 28715 40990 40856 57000 58187 81016 82197
28871 28612 40877 40752 56885 58076 80897 82083
28987 28732 41000 40878 57018 58176 81044 82184
29752 29485 41799 41665 57861 58935 81954 82974
28865 28606 40871 40745 56878 58069 80889 82076
29115 28849 41131 40997 57151 58314 81182 82329
28916 28658 40926 40801 56938 58116 80957 82126
28877 28617 40884 40758 56894 58074 80909 82081
29333 29067 41344 41211 57358 58559 81380 82581
29478 29212 41490 41356 57505 58706 81528 82730
29236 28987 41257 41142 57286 58440 81330 82463
29073 28821 41080 40960 57088 58289 81101 82302
28851 28591 40854 40728 56859 58059 80865 82066
28995 28728 41002 40869 57013 58199 81029 82208
29225 28976 41243 41127 57267 58420 81302 82436

SimplePortal 1.0.0 RC1 © 2008-2021