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: Foobar 2.24 question (Read 2161 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Foobar 2.24 question

Hi,
I installed newest FB2.24/64 and found that:
- Added %channel_mask% title formatting field, on top of on $info(WAVEFORMATEXTENSIBLE_CHANNEL_MASK) - does not work with .m2ts files nor with sacd.iso. It works with mp3 and stereo or multichannel flac though.
- Added stream_count info for formats that support multiple streams  - I tried %stream_count% and %__stream_count% and it always produces "?", even with .m2ts or .mkv, while $info(stream_count) always produces blank space.
How to properly use those?

Re: Foobar 2.24 question

Reply #1
Channel mapping information like %channel_mask% and $info(WAVEFORMATEXTENSIBLE_CHANNEL_MASK) requires that the decoders tell foobar2000 this information. If the file format doesn't support it, particular file doesn't contain it, or a third party component does not report this data, then foobar2000 will not hallucinate the information.

The $info(stream_count) and the %__stream_count% alias work just fine for files that have multiple audio streams.

Note that if your files were known to foobar2000 before reporting of particular data was added to decoder(s) responsible for reporting it, the information won't be in the metadata cache and you won't see it until you reload information from the files.

Re: Foobar 2.24 question

Reply #2
Channel mapping information like %channel_mask% and $info(WAVEFORMATEXTENSIBLE_CHANNEL_MASK) requires that the decoders tell foobar2000 this information. If the file format doesn't support it, particular file doesn't contain it, or a third party component does not report this data, then foobar2000 will not hallucinate the information.

The $info(stream_count) and the %__stream_count% alias work just fine for files that have multiple audio streams.

Note that if your files were known to foobar2000 before reporting of particular data was added to decoder(s) responsible for reporting it, the information won't be in the metadata cache and you won't see it until you reload information from the files.

I am afraid I do not fully understand what you said.

If I play a .m2ts file (bluray) it shows ex. FL FR FC....on the Stream selector but it does not show anything in JS3 with %channel_mask%. Does this mean that stream selector guesses the layout?
I play .m2ts file with 4 streams and the $info(stream_count) and the %__stream_count% show nothing or ? in JS3.

And this part is not understood: Note that if your files were known to foobar2000 before reporting of particular data was added to decoder(s) responsible for reporting it, the information won't be in the metadata cache and you won't see it until you reload information from the files. - What should I do? I do not use Libray. I play files from folders by manually dragging those folders from the disk to FB. How do I reload information?

Re: Foobar 2.24 question

Reply #3
Stream selector shows the channel config like my foo_outinfo component, it shows what is currently playing and it is the core's best guess from the channel count. It is what is being played but it may not be how the channels should be.

M2TS is not supported natively by the player. While ffmpeg input seems to support stream switching it does not report this tech info field. Which is not surprising as the component is from 2022 and this new tech info is brand new.

If the decoders you use get the support for these fields, and the files you are playing actually contains the information, you reload the information for example by using the 'Tools' -> 'Reload info' button found in Properties dialog. Or by pressing shift, right clicking the files, select 'Tagging' -> 'Reload info from file(s)'.

Re: Foobar 2.24 question

Reply #4
Does this mean that I have to ask Peter to include tech info field into ffmpeg input component in order to make "steam count" and "channel mode" work with m2ts (I suppose DSD is out of question?)?
What kind of files should stream count work with if not m2ts and mkv (it does not work with flac or mp3 or ac3 or dts or dsd either - but that is expected)? What files people use for multi stream audio?

Re: Foobar 2.24 question

Reply #5
If DSD supports such thing it would be the job for the DSD decoder author to also use this field. And for ffmpeg input that's a job for Peter.
I'm sorry but I don't know all the formats that support multiple streams. I know MKV does and I tested it to work beautifully.

Re: Foobar 2.24 question

Reply #6
I checked again with mkv file and it displayed blank space - I only have one such file and it has one stream "stereo AC3" - shouldn't it show 1 or does it work only if the file really has more than 1 stream?

Re: Foobar 2.24 question

Reply #7
It is only populated when needed so only when there are multiple streams.