Looped FLAC? by Kurausukun at 2:32 AM EDT on October 30, 2015
Just wondering--is there any looped version of FLAC (or any other lossless format) that is recognized by vgmstream or some other foobar plugin?
by hcs at 3:05 AM EDT on October 30, 2015
For vgmstream, you can use a .pos file with .wav, which provides loop info, I think you can create a .pos with vgmtoolbox. There are also a few ways to put loop info in a .wav directly, such as the smpl chunk; vgmstream supports the .lwav extension so that the default .wav support in Winamp or whatever doesn't handle the file without the loop.

.pos+.wav is the best bet right now. Someone implemented flac support long ago but I never integrated it.
by RukarioGyiyg996 at 3:34 AM EDT on October 30, 2015
Doesn't FLAC allow you to set a LOOP_START= LOOP_END= like OGG files? Like how PSO used loop points with OGG?
by hcs at 3:38 AM EDT on October 30, 2015
But what players support that?
by RukarioGyiyg996 at 5:52 AM EDT on October 30, 2015
I know vgmstream supports those tags with .logg, but good point.
by Kurausukun at 8:59 AM EDT on October 30, 2015
I was hoping for a compressed lossless format since uncompressed audio takes up tons of space, but beggars can't be choosers. Thanks for the info.
by robotortoise at 6:06 PM EDT on October 30, 2015
You can compress .wav files using Microsoft ADPCM and loop points function correctly, like in the Source Engine games.

That's about the best I can do for ya. :(
by WDLmaster at 6:28 PM EDT on October 30, 2015
FLAC supports loop points kinda "natively" through the use of a RIFF sampler chunk. BUT most (if not all?) players ignore it. I know exactly one program, which is not a player, that actually reads the sampler chunk and sets the loop points correctly.
foo_loop by weiweiwowwow at 6:15 AM EST on November 11, 2015
I did some search and found THIS AMAZING SOLUTION for foobar2000, but only the source code available.I don't know how to compile a dll, so hope you guys can have a look at this and share your compiled dll fb2k component. Here is the README

edited 6:16 AM EST November 11, 2015
by WDLmaster at 8:04 AM EST on November 11, 2015
you mean something like this?
by Kurausukun at 9:01 AM EST on November 11, 2015
Thanks, but how do I use it?
by WDLmaster at 10:02 AM EST on November 11, 2015
Don't know. With Foobar2000 maybe? He asked for a DLL and there it is. I think the README above my last post describes how to use it.
by marcusss at 11:00 PM EST on November 13, 2015
I think basically you have
e.g.

Menu.ogg
create a new file (blank)called Menu.ogg.loop and add the loop points into the new file
LoopStart/LoopLength into that new file. Like
---------------------
LoopStart=012345
Looplength=1234567890
---------------------
Same for .wav .flac etc..

I guess you play the loop file like you would with a .pos file.

That is what I think it does..
any updates on looping lossless format? by VGSB at 6:43 PM EST on February 12, 2018
Is there any foobar2000 component that can play a FLAC file with loop points in its metadata as described earlier in this thread, or any other for losslessly compressed format? If not, could vgmstream be updated to support something like .lwav that could actually be losslessy compressed (such as perhaps a new extension labeled .lflac that has the previously mentioned loop metadata)?
by bxaimc at 8:04 PM EST on February 12, 2018
I think with vgmstream’s implementation of ffmpeg, it might be possible? The only question is where would be loop data be stored? In WAV, it’s located internally in the smpl chunk. Maybe, like you mentioned, in the metadata/tags like Ogg does. On the other hand, I’m staying away from using Flac on some gamerips because it doesn’t always recreate the original header. The raw data is fine but sometimes the size defined in the RIFF header is occasionally truncated, especially if there’s extra zero data at the end, even if it’s part of the raw stream, flac gets rid of it.
by bnnm at 1:33 PM EST on February 13, 2018
Looping FLACs do work:
- rename to something foobar/etc accepts, ex. file.vgmstream
- create a pos file: file.vgmstream.pos (notice the double extension), LE 32b loop_start, 32b loop_end (optional: 32b num_samples, needed if FFmpeg can't determine num_samples)

Same can be done with any FFmpeg format, ex. mp3/ape/tak/mp4 all (probably) work.
by bxaimc at 2:17 PM EST on February 13, 2018
Oh yea, forgot about that. So what he said then —-^
using Python to convert integer samples from vgmstream to little endian 32 bit samples for pos files by VGSB at 1:12 PM EDT on June 20, 2018
I've created a Python script that can get the loop point sample counts of a streamed audio file using vgmstream. I would like for it to export .pos files to go along with the .flac.vgmstream files. But I'm not really familiar with how to convert integer samples to little endian 32 bit samples. Does anybody know of how to do this with Python or by calling an external exe?
by SmartOne at 6:42 PM EDT on June 22, 2018
Don't you just need the sample count? The sample format shouldn't matter?

Oh, you need to convert the sample count format for the POS file format. Never mind.

The output of vgmstream isn't little endian?

edited 6:45 PM EDT June 22, 2018
by VGSB at 6:28 PM EDT on June 24, 2018
Based on other POS files I've seen and testing, it seems that you can't just use a POS file with normal text file formatting where you can specify the number of samples as integers. It seems to require binary 32 bit samples, which I don't have enough experience with.


Go to Page 0

Search this thread

Show all threads

Reply to this thread:

User Name Tags:

bold: [b]bold[/b]
italics: [i]italics[/i]
emphasis: [em]emphasis[/em]
underline: [u]underline[/u]
small: [small]small[/small]
Link: [url=http://www.google.com]Link[/url]

[img=https://www.hcs64.com/images/mm1.png]
Password
Subject
Message

HCS Forum Index
Halley's Comet Software
forum source