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: Encoding and Decoding complexities in FLAC,WavPack (Read 3820 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Encoding and Decoding complexities in FLAC,WavPack

Hi,
I need the complexity level to be similar in the encoding and decoding processes as I need to use it online i.e. simultaneous encode decode process....
If encoding and decoding processes do not take same time(same compexity) then there will be a mismatch at the decoder...
If i want to play an audio file after encoding and decoding online then there will be problems...
Does FLAC or WavPack has offer this feature..??

Encoding and Decoding complexities in FLAC,WavPack

Reply #1
Quote
Hi,
I need the complexity level to be similar in the encoding and decoding processes as I need to use it online i.e. simultaneous encode decode process....
If encoding and decoding processes do not take same time(same compexity) then there will be a mismatch at the decoder...
If i want to play an audio file after encoding and decoding online then there will be problems...
Does FLAC or WavPack has offer this feature..??
[{POST_SNAPBACK}][/a]

Here's a chart that shows the encoding and decoding speed of various lossless codecs with different settings, maybe it helps you:
[a href="http://web.inter.nl.net/users/hvdh/lossless/All.htm]http://web.inter.nl.net/users/hvdh/lossless/All.htm[/url]
Proverb for Paranoids: "If they can get you asking the wrong questions, they don't have to worry about answers."
-T. Pynchon (Gravity's Rainbow)

Encoding and Decoding complexities in FLAC,WavPack

Reply #2
WavPack, by default, works symmetrically.  It can work asymmetrically.

FLAC works asymmetrically.

However, I don't really see that this is a requirement for you - I think an asymmetrical process would just restrict you to the slower process, and not make the system unworkable.

However, as WavPack is symmetrical by nature I would suggest WavPack anyway.

[span style='font-size:8pt;line-height:100%']Edit: spelling[/span]
I'm on a horse.

Encoding and Decoding complexities in FLAC,WavPack

Reply #3
Quote
If encoding and decoding processes do not take same time(same compexity) then there will be a mismatch at the decoder...
If i want to play an audio file after encoding and decoding online then there will be problems...[a href="index.php?act=findpost&pid=331504"][{POST_SNAPBACK}][/a]

I don't see what problem it would cause... Care to elaborate, out of curiosity?

Encoding and Decoding complexities in FLAC,WavPack

Reply #4
Quote
Here's a chart that shows the encoding and decoding speed of various lossless codecs with different settings, maybe it helps you:
http://web.inter.nl.net/users/hvdh/lossless/All.htm[{POST_SNAPBACK}][/a]


Unfortunately, that chart is outdated. It doesn't feature latest Wavpack versions, that are much faster than 4.0 in decoding speed.

For a more up-to-date chart, check out [a href="http://foobar2000.net/lossless/decoding.htm]guruboolez'[/url]

Encoding and Decoding complexities in FLAC,WavPack

Reply #5
Quote
However, I don't really see that this is a requirement for you - I think an asymmetrical process would just restrict you to the slower process, and not make the system unworkable.


If the process is asymmetric then I think I will face problems. If my requirement is to take audio data from a CD/DVD, which is being played by some player, encode and then transmit. On the receiver side I am decoding it and playing again...I need the  process to be synchronous... In case of asymmetric process there will be lack of data for some time at decoder, as it has played the frame and waiting for the next frame but the encoder is taking time(more than decoder to decode) to encode and send it....
So is how I see the problem.
If you have  a solution please suggest...

Encoding and Decoding complexities in FLAC,WavPack

Reply #6
Hehe. "Symmetric", in lossless codecs, means that encoding and decoding take the same time to be performed. WavPack, Monkey's Audio...

Assymetric, on the other hand, are codecs that take longer to encode than decode. FLAC, ALAC...

 

Encoding and Decoding complexities in FLAC,WavPack

Reply #7
Quote
If the process is asymmetric then I think I will face problems. If my requirement is to take audio data from a CD/DVD, which is being played by some player, encode and then transmit. On the receiver side I am decoding it and playing again...I need the  process to be synchronous... In case of asymmetric process there will be lack of data for some time at decoder, as it has played the frame and waiting for the next frame but the encoder is taking time(more than decoder to decode) to encode and send it....

this is not an encoding/decoding speed issue, it's a network protocol one.

if the encoding is faster than realtime, it can already send data fast enough and the receiver will implement some flow control (to tell the sender to pause temporarily).  if it is slower, the receiver will have to buffer some data before starting playback.  this is a common problem in streaming and there are several protocols to address it.

Josh