HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: nu774 on 2012-10-24 13:27:03

Title: foo_input_caf - CAF input plugin based on AppleApplicationSupport
Post by: nu774 on 2012-10-24 13:27:03
Requires Apple Application Support (shipped with iTunes or QuickTime).
Supports playback and tagging of CAF (Apple Core Audio Format) files.
Supported codecs (not thoroughly tested):

Download (foo_input_caf_x.x.x.zip in the following page):
https://sites.google.com/site/qaacpage/cabinet (https://sites.google.com/site/qaacpage/cabinet)
Release note:
https://sites.google.com/site/qaacpage/news/fooinputcaf001 (https://sites.google.com/site/qaacpage/news/fooinputcaf001)
Title: Re: foo_input_caf - CAF input plugin based on AppleApplicationSupport
Post by: nu774 on 2012-10-25 15:05:18
Updated to 0.0.2.
Now it passes 3 of 4 decoder validation tests by foo_input_validator;
However, for most of codecs, "Random Access" test fails.
As far as I tested, only Linear PCM, ALAC, A-Law, μ-Law could pass that (although many of standard decoder seems to fail that test, too ... so probably this is inevitable).
Title: Re: foo_input_caf - CAF input plugin based on AppleApplicationSupport
Post by: nu774 on 2012-11-01 03:23:28
Updated to 0.0.3 (although nobody other than me might be interested on this).

Actually when I tested before (on fb2k 1.1.15) LC-AAC failed the test, but now it seems working (without changes on plugin side).
As for MP1,2,3 case, it turned out that ExtAudioFileSeek() API doesn't perform pre-rolling for these codecs. Therefore, on this version foo_input_caf takes care of MP1,2,3 preroll.
For others (especially HE-AAC), it seems subtle difference exists on decoded result after seeking, which cannot be recovered by simple pre-rolling. Therefore, these are not random-access safe. It's not a serious problem just for listening or decoding whole song, but don't use with cuesheet.
Title: Re: foo_input_caf - CAF input plugin based on AppleApplicationSupport
Post by: nu774 on 2012-11-04 11:39:48
Updated to 0.0.4
fixed a problem: VBR bitrate was not being properly refreshed until seeking once.
Title: Re: foo_input_caf - CAF input plugin based on AppleApplicationSupport
Post by: mudlord on 2012-11-04 11:49:24
Quote
input_cuesheet_factory_t


Interesting...
Title: Re: foo_input_caf - CAF input plugin based on AppleApplicationSupport
Post by: nu774 on 2012-11-04 15:12:26
Quote
input_cuesheet_factory_t


Interesting...

Actually, I just added two or so (non-working) functions and switched from input_single_track_t to input_cuesheet_factory_t. Only few lines of modification.
Title: Re: foo_input_caf - CAF input plugin based on AppleApplicationSupport
Post by: nu774 on 2012-11-13 13:22:46
Released v0.0.5.
Fixed a crash when AppleApplicationSupport is not installed on the system.
Title: Re: foo_input_caf - CAF input plugin based on AppleApplicationSupport
Post by: nu774 on 2012-12-25 12:14:51
Released 0.0.6.
Show channel layout on property dialog.
Title: Re: foo_input_caf - CAF input plugin based on AppleApplicationSupport
Post by: a3aan on 2015-03-15 23:27:47
Should I be able to playback .mov files with Qdesign 2 audio with this plugin? What are the required steps to get there? Cheers.
Title: Re: foo_input_caf - CAF input plugin based on AppleApplicationSupport
Post by: nu774 on 2015-03-16 01:59:20
Should I be able to playback .mov files with Qdesign 2 audio with this plugin? What are the required steps to get there? Cheers.

No, only CAF files.
Title: Re: foo_input_caf - CAF input plugin based on AppleApplicationSupport
Post by: markanini on 2016-12-30 05:49:44
Core Audio Format is a container format created by Apple to support files larger than 4GB files and contain various audio formats and metadata. Official spec: https://developer.apple.com/library/content/documentation/MusicAudio/Reference/CAFSpec/CAF_intro/CAF_intro.html
Title: Re: foo_input_caf - CAF input plugin based on AppleApplicationSupport
Post by: nu774 on 2016-12-30 07:42:42
https://github.com/nu774/foo_input_caf/releases
Title: Re: foo_input_caf - CAF input plugin based on AppleApplicationSupport
Post by: markanini on 2016-12-30 07:56:12
Doesn't show up in preferences>components even though I see the files have been copied to  %USERPROFILE%\AppData\Roaming\foobar2000\user-components
Title: Re: foo_input_caf - CAF input plugin based on AppleApplicationSupport
Post by: nu774 on 2016-12-30 09:11:42
Probably you have to rename the directory name of "foo_input_caf_0.2.0" to "foo_input_caf".
Title: Re: foo_input_caf - CAF input plugin based on AppleApplicationSupport
Post by: markanini on 2016-12-31 00:14:55
Unfortunately it didn't fix the issue.
Title: Re: foo_input_caf - CAF input plugin based on AppleApplicationSupport
Post by: kode54 on 2016-12-31 02:30:46
Extract the ZIP and install the DLL, or fix the directories.

It needs to be:

%appdata%\foobar2000\user-components\foo_input_caf\foo_input_caf.dll

Installing the ZIP as a component leaves it:

%appdata%\foobar2000\user-components\foo_input_caf\foo_input_caf_0.2.0\foo_input_caf.dll

Apparently, foobar2000 does not search more than one subdirectory deep.
Title: Re: foo_input_caf - CAF input plugin based on AppleApplicationSupport
Post by: markanini on 2016-12-31 08:50:38
Thanks, I'm glad I could make it work.
Title: Re: foo_input_caf - CAF input plugin based on AppleApplicationSupport
Post by: markanini on 2016-12-31 09:59:55
Does it read native metadata? If not is it at least retained should you write some tags?
Title: Re: foo_input_caf - CAF input plugin based on AppleApplicationSupport
Post by: DJ Graco on 2024-05-15 16:28:55
Hi,
If I am creating a thread in the wrong place, please moderators  move it.
I have a problem with one of the CAF files. I'm using a component by nu777 foo_input_caf and all files play fine otherwise. VLC Media Player plays it, but not completely. It may be a component error, but I don't rule out another error.
Maybe this file is corrupt.
File integrity verifier shows
Code: [Select]
1  Name: startup-old; Status: Failed: Unsupported format or corrupted file; Warnings: <none>; MD5: N/A; CRC32: N/A
Media Info shows
Code: [Select]
Ogólne
Pełna ścieżka                           : C:\Users\graco\Downloads\Compressed\startup-old.caf
Format                                  : CAF
Format/Informacja                       : Core Audio Format
Wersja formatu                          : Version 1
Rozmiar pliku                           : 57,3 KiB
Czas trwania                            : 2s 499 ms
Całkowita przepływność bitów            : 188 kb/s

Audio
Format                                  : ADPCM
ID kodeka                               : ima4
Czas trwania                            : 2s 499 ms
Przepływność bitów                      : 187 kb/s
Kanały                                  : 1 kanał
Częstotliwość próbkowania               : 44,1 kHz
Rozmiar strumienia                      : 57,2 KiB (100%)

Title: Re: foo_input_caf - CAF input plugin based on AppleApplicationSupport
Post by: Gus. on 2024-05-15 17:04:51
foobar2000 v2.1.5 x64 + FFmpeg Decoder Wrapper + FFmpeg 7.0 plays it!

https://www.foobar2000.org/components/view/foo_input_ffmpeg

https://github.com/GyanD/codexffmpeg/releases

Added *.CAF to Wrapper config.
Title: Re: foo_input_caf - CAF input plugin based on AppleApplicationSupport
Post by: nu774 on 2024-05-16 12:19:17
That file contains a couple of issues (in other words, it's broken).
Anyway, I fixed foo_input_caf and now it's OK on v0.4.3:
https://github.com/nu774/foo_input_caf/releases/tag/v0.4.3
Title: Re: foo_input_caf - CAF input plugin based on AppleApplicationSupport
Post by: DJ Graco on 2024-05-17 18:20:32
Thanks, this version works properly with this file.