Help - Search - Members - Calendar
Full Version: WavPack question
Hydrogenaudio Forums > Lossless Audio Compression > WavPack
Anacondo
Hi. Sorry if this has been answered before, I couldn't find any info about it.

Is there a way to join two wavpack hybrid files without recompressing?

Thanks in advance. smile.gif
Anacondo
Just yes or no, please.
guruboolez
It's not possible I would say. Maybe the DOS command line for merging two files (can't remember the command's name) would work in some conditions (same encoding profile), but I suggest you to reencod them (merging two or more existing files without extracting them from CD again is easy with foobar2000; it just take some time).
xmixahlx
shntools

wavpack may not be supported under *nix (last version came out before a unix port existed) but should work on windows.

i can look into linux support - i think the author left it as an unused feature in an autotools check.


later
Anacondo
QUOTE(guruboolez @ Feb 14 2005, 11:45 PM)
It's not possible I would say. Maybe the DOS command line for merging two files (can't remember the command's name) would work in some conditions (same encoding profile), but I suggest you to reencod them (merging two or more existing files without extracting them from CD again is easy with foobar2000; it just take some time).
*


Yeah, I think if I trim the header from 2nd file, delete all tags from both and join the data afterwards it *might* work (same profile was used), but who knows. I'll try it.

QUOTE(xmixahlx @ Feb 15 2005, 12:01 AM)
shntools

wavpack may not be supported under *nix (last version came out before a unix port existed) but should work on windows.

i can look into linux support - i think the author left it as an unused feature in an autotools check.


later
*


I'll dig into it. Don't worry about the *nix support, I'm on Windows.

Thanks both very much. Cheers.
rjamorim
I suspect the format is so damn robust, it would work with DOS binary merge without any header trimming or anything.

Please try to do so and report if it works smile.gif
Anacondo
I tried DOS binary copy and *nix CAT from cygwin and it doesn't work. sad.gif I think I'll dig into the format, learn how much bytes I need to remove from both files and try merging again.

Cheers.
bryant
Sorry I have not been active lately on the boards, but I have now moved into a new house and will be getting Internet this week so I will be able to catch up. Many thanks to those who have filled in the gaps these few months!

I assume by this question you mean concatenating two WavPack files serially (one after the other) rather than merging a WavPack lossy file with its correction file, right? The answer is that you can simply merge the two with a binary concatenation, but then the headers on each block must be updated to reflect the new length (and indexes for the second file). Fortunately, this can be done very quickly because it can happen "in-place". Unfortunately, there is no program to do it. sad.gif

If I get a chance I might throw something like this together, but I'm still really short of time right now. However, it should be REALLY easy to do. As a starting point, I created a sample program some time ago to simply parse a WavPack file. This could be easily enhanced to update the headers, I think...

http://wavpack.com/wvparser.c

Thanks, and I hope to be posting more often soon (maybe even get out a release).
ChristianHJW
Joining of Wavpack files should work already when they are in MKV container, using the --merge command of mkvmerge in PRE version. Just a pitty we cant play it yet wink.gif ....
Anacondo
QUOTE(bryant @ Feb 15 2005, 01:54 AM)
Sorry I have not been active lately on the boards, but I have now moved into a new house and will be getting Internet this week so I will be able to catch up. Many thanks to those who have filled in the gaps these few months!

I assume by this question you mean concatenating two WavPack files serially (one after the other) rather than merging a WavPack lossy file with its correction file, right? The answer is that you can simply merge the two with a binary concatenation, but then the headers on each block must be updated to reflect the new length (and indexes for the second file). Fortunately, this can be done very quickly because it can happen "in-place". Unfortunately, there is no program to do it.  sad.gif

If I get a chance I might throw something like this together, but I'm still really short of time right now. However, it should be REALLY easy to do. As a starting point, I created a sample program some time ago to simply parse a WavPack file. This could be easily enhanced to update the headers, I think...

http://wavpack.com/wvparser.c

Thanks, and I hope to be posting more often soon (maybe even get out a release).
*


Yes, I mean concatenating 2 hybrid files. But please, don't worry about this too much, I don't think I can modify that code right now (I lack knowledge and skills) and it doesn't seem to be a very demanded feature, so I'll live without it. Thanks anyway for your response and this great format and best luck with your new home!

QUOTE(ChristianHJW @ Feb 16 2005, 12:37 AM)
Joining of Wavpack files should work already when they are in MKV container, using the --merge command of mkvmerge in PRE version. Just a pitty we cant play it yet wink.gif ....
*


Interesting... Will the merged files extract as one afterwards? Doesn't foobar read .mka files? Is .mkv any different from .mka?

Cheers.
ChristianHJW
QUOTE(Anacondo @ Feb 16 2005, 01:44 AM)
QUOTE(ChristianHJW @ Feb 16 2005, 12:37 AM)
Joining of Wavpack files should work already when they are in MKV container, using the --merge command of mkvmerge in PRE version. Just a pitty we cant play it yet wink.gif ....

Interesting... Will the merged files extract as one afterwards? Doesn't foobar read .mka files? Is .mkv any different from .mka?


mka is the audio only extension of mkv, technically they are exactly the same. I dont believe Wavpack extraction will work already in mkvextract, i will check with robux4. If it works, you could theoretically use --merge to concatenate them, and extract a single Wavpack file from this mka.
Anacondo
Thanks, that'd be nice. Where can I find last PRE version, btw? In www.bunkus.org I can only see 1.0.2. If it isn't available I'll just wait for wavpack support to be implemented.

Cheers.
kurtnoise
QUOTE(Anacondo @ Feb 16 2005, 04:16 PM)
Thanks, that'd be nice. Where can I find last PRE version, btw?
*


http://www.bunkus.org/videotools/mkvtoolnix/win32/pre/HEAD/
Anacondo
Thanks kurtnoise.

Latest mkvmerge (mkvtoolnix-head-20050212-1.rar) doesn't seem to recognize the --merge option. But no problem, I'll just wait for the stable release. smile.gif

Cheers.
xmixahlx
i just uploaded a modified shntools debian binary to <guess where>

it now supports wavpack and some other random formats (bonk, kexis, la, lpac, mkw)

i actually need some test files to figure out if mkw actually works (if so, it would be the only way to use this format on *nix that i know of.

please, some enlightened soul upload me a few short tracks of this format to test with! smile.gif


later
ChristianHJW
QUOTE(xmixahlx @ Feb 17 2005, 05:22 AM)
i actually need some test files to figure out if mkw actually works (if so, it would be the only way to use this format on *nix that i know of.
please, some enlightened soul upload me a few short tracks of this format to test with! smile.gif


.mkw ? are you talking .mkv ? There are various players for Linux with support for matroska, namely

Xine
Gstreamer
mplayer

Gstreamer is your first option for playing Wavpack in MKV/MKA, our long time supporter alley_cat wrote a Wavpack plugin for Gstreamer some time ago ...

For the sample file, come to #matroska on irc.corecodec.org and i will make one for you.

Christian
matroska project admin
http://www.matroska.org
xmixahlx
no, mkw - it is a scarce and horrible lossless format.

ALSO, it appears that the wavpack support is only for 3.xx format, anything created with the linux port (4.xx) doesn't decode.... bummer


later
Anacondo
QUOTE(ChristianHJW @ Feb 16 2005, 12:37 AM)
Joining of Wavpack files should work already when they are in MKV container...

Just to report I succesfully merged the 2 wavpack hybrid files with mkvtoolnix-1.4.1 and then extracted the result with mkvextract. The resulting WV file plays perfectly.

Two thumbs up! smile.gif

Regards.
ChristianHJW
QUOTE(Anacondo @ Mar 23 2005, 02:10 AM)
QUOTE(ChristianHJW @ Feb 16 2005, 12:37 AM)
Joining of Wavpack files should work already when they are in MKV container...

Just to report I succesfully merged the 2 wavpack hybrid files with mkvtoolnix-1.4.1 and then extracted the result with mkvextract. The resulting WV file plays perfectly.
Two thumbs up! smile.gif
Regards.


Great !! Mosu roxxx smile.gif !

And here, right at the time, a first alpha DirectShow decoder filter for wavpack, when being used in matroska container, based on David's latest lib :

http://www.matroska.org/~toff/WavPackDSDecoder20050321-2.zip

Wavpack splitter to come soon, so you can play Wavpack files in WindowsMediaplayer

Christian
matroska project admin
http://www.matroska.org
mosu
QUOTE(ChristianHJW @ Mar 23 2005, 08:10 AM)
Great !! Mosu roxxx smile.gif !


Honor to whom honor is due: Steve Lhomme wrote the WavPack code pretty much all by himself. All I did was integrate his code into mkv* and criticise some parts of it.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.