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.
Topic: Please check FLAC-in-MP4 support on Mac (Read 241 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Please check FLAC-in-MP4 support on Mac

I'd like to know whether playback of FLAC-in-MP4 is supported in the Safari browser, and possibly in other Mac software. I can check Windows and Linux software, but I do not have access to Mac hardware, therefore this question.

There's a file here: http://audiograaf.nl/misc_stuff/test-FLAC-in-MP4.mp4 Source material has been licensed under Creative Commons Attribution 3.0. (c) copyright 2008, Blender Foundation / www.bigbuckbunny.org. I converted a small chunk with latest ffmpeg git to H264 + FLAC in an MP4 container.

Please let me know whether Safari (or other software) accepts this, whether you can hear audio while playing back and what version you're testing with.
Music: sounds arranged such that they construct feelings.

Re: Please check FLAC-in-MP4 support on Mac

Reply #1
Works on macOS Monterey 12.4, it is supported from the OS, it works always.

Re: Please check FLAC-in-MP4 support on Mac

Reply #2
Could you be a little more specific? If I understand you correctly you say that an OS component does the demuxing and decoding, how do you know? Still, it is useful to know which program used these OS components.
Music: sounds arranged such that they construct feelings.

Re: Please check FLAC-in-MP4 support on Mac

Reply #3
I tried, but if you don't trust my eyes and ears you can query it from the command line.

Webm is supported by the browser, in general for an operating system it is a bad idea, it is better to have the possibility to convert each format into an internal metaformat, this command also allows you to encode to other formats. Also BeOS in the 90's did it this way.

afconvert -hf

Audio file and data formats:
    '3gpp' = 3GP Audio (.3gp)
               data_formats: 'Qclp' 'aac ' 'aace' 'aacf' 'aacg' 'aach'
                             'aacl' 'aacp' 'samr'
    '3gp2' = 3GPP-2 Audio (.3g2)
               data_formats: 'Qclp' 'aac ' 'aace' 'aacf' 'aacg' 'aach'
                             'aacl' 'aacp' 'samr'
    'adts' = AAC ADTS (.aac, .adts)
               data_formats: 'aac ' 'aach' 'aacp'
    'ac-3' = AC3 (.ac3)
               data_formats: 'ac-3'
    'AIFC' = AIFC (.aifc, .aiff, .aif)
               data_formats: I8 BEI16 BEI24 BEI32 BEF32 BEF64 UI8 'ulaw'
                             'alaw' 'MAC3' 'MAC6' 'ima4' 'QDMC' 'QDM2'
                             'Qclp' 'agsm'
    'AIFF' = AIFF (.aiff, .aif)
               data_formats: I8 BEI16 BEI24 BEI32
    'amrf' = AMR (.amr)
               data_formats: 'samr' 'sawb'
    'm4af' = Apple MPEG-4 Audio (.m4a, .m4r)
               data_formats: '.mp1' '.mp2' '.mp3' 'aac ' 'aace' 'aacf'
                             'aacg' 'aach' 'aacl' 'aacp' 'ac-3' 'alac'
                             'ec-3' 'flac' 'paac' 'pac3' 'pec3'
    'm4bf' = Apple MPEG-4 AudioBooks (.m4b)
               data_formats: 'aac ' 'aace' 'aacf' 'aacg' 'aach' 'aacl'
                             'aacp' 'paac'
    'caff' = CAF (.caf)
               data_formats: '.mp1' '.mp2' '.mp3' 'QDM2' 'QDMC' 'Qclp'
                             'Qclq' 'aac ' 'aace' 'aacf' 'aacg' 'aach'
                             'aacl' 'aacp' 'ac-3' 'alac' 'alaw' 'dvi8'
                             'ec-3' 'flac' 'ilbc' 'ima4' I8 BEI16 BEI24
                             BEI32 BEF32 BEF64 LEI16 LEI24 LEI32 LEF32
                             LEF64 'ms\x00\x02' 'ms\x00\x11' 'ms\x001'
                             'opus' 'paac' 'pac3' 'pach' 'pacp' 'pec3'
                             'pusa' 'qaac' 'qac3' 'qach' 'qacp' 'qec3'
                             'qflc' 'qlac' 'qusa' 'samr' 'ulaw' 'usac'
                             'zaac' 'zac3' 'zach' 'zacp' 'zec3' 'zlac'
    'ec-3' = EC3 (.ec3)
               data_formats: 'ec-3'
    'flac' = FLAC (.flac)
               data_formats: 'flac'
    'loas' = LATM/LOAS (.loas, .latm, .xhe)
               data_formats: 'aac ' 'aace' 'aacf' 'aacg' 'aach' 'aacl'
                             'aacp' 'usac'
    'MPG1' = MPEG Layer 1 (.mp1, .mpeg, .mpa)
               data_formats: '.mp1'
    'MPG2' = MPEG Layer 2 (.mp2, .mpeg, .mpa)
               data_formats: '.mp2'
    'MPG3' = MPEG Layer 3 (.mp3, .mpeg, .mpa)
               data_formats: '.mp3'
    'mp4f' = MPEG-4 Audio (.mp4)
               data_formats: '.mp1' '.mp2' '.mp3' 'aac ' 'aace' 'aacf'
                             'aacg' 'aach' 'aacl' 'aacp' 'ac-3' 'alac'
                             'ec-3' 'flac' LEF32 BEF32 LEF64 BEF64 LEI32
                             BEI32 UI0 UI0 UI0 UI0 'paac' 'pusa' 'qaac'
                             'qac3' 'qec3' 'qflc' 'qlac' 'qusa' 'usac'
    'NeXT' = NeXT/Sun (.snd, .au)
               data_formats: I8 BEI16 BEI24 BEI32 BEF32 BEF64 'ulaw' 'alaw'
    'Sd2f' = Sound Designer II (.sd2)
               data_formats: I8 BEI16 BEI24 BEI32
    'WAVE' = WAVE (.wav)
               data_formats: UI8 LEI16 LEI24 LEI32 LEF32 LEF64 'ulaw'
                             'alaw'
    'BW64' = WAVE (BW64 for length over 4 GB) (.wav)
               data_formats: UI8 LEI16 LEI24 LEI32 LEF32 LEF64 'ulaw'
                             'alaw'
    'RF64' = WAVE (RF64 for length over 4 GB) (.wav)
               data_formats: UI8 LEI16 LEI24 LEI32 LEF32 LEF64 'ulaw'
                             'alaw'
    'W64f' = Wave64 (.w64)
               data_formats: UI8 LEI16 LEI24 LEI32 LEF32 LEF64 'ulaw'
                             'alaw'

Re: Please check FLAC-in-MP4 support on Mac

Reply #4
Some abbreviations in there  ... what is "zlac" that I cannot google up?
Last two months' worth of foobar2000.org ad revenue has been donated to support war refugees from Ukraine: https://www.foobar2000.org/

Re: Please check FLAC-in-MP4 support on Mac

Reply #5
p* q* z* are variants, for example pusa it is an usac variant, etc.

 

Re: Please check FLAC-in-MP4 support on Mac

Reply #6
Thanks for the info, but did you try the file I supplied? That was created with ffmpeg. I see flac is also supported in m4a, that is something ffmpeg isn't able to create. I do hope Apple used the same identifiers as ffmpeg does, otherwise this is going to be an incompatible mess.
Music: sounds arranged such that they construct feelings.