DBSTalk Forum banner
Status
Not open for further replies.
1 - 20 of 36 Posts

· AllStar
Joined
·
59 Posts
Discussion Starter · #1 ·
I got Twonky v4.1 installed and I also installed the MP3 decoder addon. I integrated Twonky with iTunes (which is why I want to use Twonky) and I can see all of my files from the HR20 just dandy. When I play back an MP3 it's like it's in slow motion. WMP works fine, but I want Twonky damnit! I've restarted the server and restarted my computer with no success.

Any ideas?
 

· Cool Member
Joined
·
13 Posts
I don't have a solution for you, but I can confirm that I see the same behavior. I have some theories, but nothing that I have been able to confirm.

You probably know this, but at the risk of stating the obvious: Twonky transcodes your mp3 files to LPCM format for playback on the HR20. When you grabbed the LPCM plugin off of the Twonky site, you grabbed Lame with hard configured program (cgi-lame) that drives Lame with the '--decode' option to generate the LPCM version of the file. It saves the LPCM file in a directory called 'twonkmedia.db/cache'. One interesting side effect (noted elsewhere in this forum) is that the Twonky disk consumption grows quite rapidly as these files are uncompressed audio files.

Anyway, I pulled one of the LPCM files off of my machine running the Twonky server and ran it through a different server (ushare). That server also played back the song very slowly (almost 1/2 speed). I also manually decoded a MP3 file using Lame and the settings that Twonky's cgi-lame is using and got the same result (slow sounding music).

So, I duplicated those results with two different media servers playing off of two different machines (with radically different CPUs and configurations). The music sounded exaclty the same when transcoded with Twonky's Lame settings.

Is it possible that the HR20 has a fixed bitrate playback and it is 2x higher than the transcoded file?

Is it a CBR vs. a VBR thing?

I'm not sure. I'll play around with it some more tomorrow.

For now, WMP with a slide show running is the only solid solution that I've heard.
 

· Hall Of Fame
Joined
·
1,914 Posts
Snaxter said:
I don't have a solution for you, but I can confirm that I see the same behavior. I have some theories, but nothing that I have been able to confirm.

You probably know this, but at the risk of stating the obvious: Twonky transcodes your mp3 files to LPCM format for playback on the HR20. When you grabbed the LPCM plugin off of the Twonky site, you grabbed Lame with hard configured program (cgi-lame) that drives Lame with the '--decode' option to generate the LPCM version of the file. It saves the LPCM file in a directory called 'twonkmedia.db/cache'. One interesting side effect (noted elsewhere in this forum) is that the Twonky disk consumption grows quite rapidly as these files are uncompressed audio files.

Anyway, I pulled one of the LPCM files off of my machine running the Twonky server and ran it through a different server (ushare). That server also played back the song very slowly (almost 1/2 speed). I also manually decoded a MP3 file using Lame and the settings that Twonky's cgi-lame is using and got the same result (slow sounding music).

So, I duplicated those results with two different media servers playing off of two different machines (with radically different CPUs and configurations). The music sounded exaclty the same when transcoded with Twonky's Lame settings.

Is it possible that the HR20 has a fixed bitrate playback and it is 2x higher than the transcoded file?

Is it a CBR vs. a VBR thing?

I'm not sure. I'll play around with it some more tomorrow.

For now, WMP with a slide show running is the only solid solution that I've heard.
Snaxter,

It sounds like you did some good testing. I am wondering why I don't hear this slow motion with TwonkyMedia.

Maybe it's a codec issue?
 

· Cool Member
Joined
·
13 Posts
Yeah - pretty bizarre. Again, all of the Lame settings are hard coded in the cgi-lame program, so it is hard to believe it is something to do with the transcoding.

I just tried manually decoding an mp3 file that was encoded at 192kbps (my previous test file was encoded at 128kbps). It still played back incredibly slow, but it was hard to tell if it was any different than the other file that I've been playing with.

I have no idea why it works fine for mikeny and doesn't work for me & Oliwa.
 

· Registered
Joined
·
5,451 Posts
Wow, this is a spin that I have not run across either. So I am running a dual core CPU and Twonky has been flawless in my environment.

I am also running a wireless conection.

Any chance it is the horse power releated?
 

· Cool Member
Joined
·
13 Posts
well... I doubt it, but you never know...

One of the systems is a 3.6GHz P4 (single core), the other is a 266MHz ARM. Both have identical playback symptoms. I'd expect a horse power problem to show up as drop outs or very garbled sound. This sounds just like you're playing the audio back at 1/2 speed.
 

· Legend
Joined
·
217 Posts
Snaxter said:
well... I doubt it, but you never know...

One of the systems is a 3.6GHz P4 (single core), the other is a 266MHz ARM. Both have identical playback symptoms. I'd expect a horse power problem to show up as drop outs or very garbled sound. This sounds just like you're playing the audio back at 1/2 speed.
I have Twonky 4.1 on Windows 2000 and a 1.4GHz P4 with this same issue. I was thinking horsepower until I read this thread..... WMP 11 works fine on my XP laptop, but I was looking for a W2k solution that would serve up my wife's podcasts too....

Now I am wondering about W2k, what OS are you running on your systems?
 

· Cool Member
Joined
·
13 Posts
The 3.6GHz P4 system is running WinXP. The 266MHz ARM is running a Linux variant (Unslung). All of these systems are wired (as opposed to wireless) to the HR20, so it seems unlikely that it is a network issue.

I'm pretty sure it isn't a CPU performance issue, and I don't think it is OS related. I think it is something with the Lame settings or install.

I posted something over in the Twonky forums (http://www.twonkyvision.de/forum/viewtopic.php?t=2601) to see if anyone had any ideas over there.
 

· Legend
Joined
·
217 Posts
Snaxter said:
The 3.6GHz P4 system is running WinXP. The 266MHz ARM is running a Linux variant (Unslung). All of these systems are wired (as opposed to wireless) to the HR20, so it seems unlikely that it is a network issue.

I'm pretty sure it isn't a CPU performance issue, and I don't think it is OS related. I think it is something with the Lame settings or install.

I posted something over in the Twonky forums ... removed not enough posts to post....{HDinVT} to see if anyone had any ideas over there.
Thanks for the link. It sure is weird that it works for some but not others.
 

· Cool Member
Joined
·
13 Posts
It does appear to be a bitrate problem. I managed to find an old mp3 file that I had encoded at 64kbps and it plays properly. To confirm this theory, I took one of the mp3s that is playing slowly and converted it from 128kbps to 64kbps. Amazingly enough, the file that previously played slowy now sounds just fine.

I think this is all caused by Lame transcoding the file and botching the bitrate. Unfortunately, all of the Lame command line switches are embedded in the cgi-lame program. I'll play around with building a new version of Lame with the "right" switches.

mikeny - can you look at the bitrate of the files that you are playing through Twonky (right click->properties->Summary->Advanced, scroll to the bottom)? Are they 64kbps by any chance?
 

· Registered
Joined
·
5,451 Posts
The file that I checked has Bit Rate 128kbps and Audio sample rate 44kHz.

I do have WMP11 installed and by default the files are set to open with WMP11.

I have not run across any yet that are not set to these values. I have not verified every song.

I have played the music at a shuffle selection for about 45 minutes using twonky without any problems. When listening to music, I use my Bose hardrive library. The Twonky is just a feature, not a preference.
 

· Hall Of Fame
Joined
·
1,914 Posts
Snaxter said:
It does appear to be a bitrate problem. I managed to find an old mp3 file that I had encoded at 64kbps and it plays properly. To confirm this theory, I took one of the mp3s that is playing slowly and converted it from 128kbps to 64kbps. Amazingly enough, the file that previously played slowy now sounds just fine.

I think this is all caused by Lame transcoding the file and botching the bitrate. Unfortunately, all of the Lame command line switches are embedded in the cgi-lame program. I'll play around with building a new version of Lame with the "right" switches.

mikeny - can you look at the bitrate of the files that you are playing through Twonky (right click->properties->Summary->Advanced, scroll to the bottom)? Are they 64kbps by any chance?
bitrate:128 kbps
channels: 2 channels stereo
audio sample rate: 44 khz

I would love to solve the server dropping issue though. I wonder if there's some optimum router mtu setting or something.
 

· AllStar
Joined
·
59 Posts
Discussion Starter · #13 ·
90% of my songs are VBR and average above 192kbits. I will try to convert it to a lower bitrate to see what happens. I never would have thought that.

As a side note, I tried Lame v3.97B2 with the same result.

Anyone try the latest Lame version?
 

· Cool Member
Joined
·
13 Posts
I pulled down the latest release of lame (3.97 which should be the same as 3.97B3) and built it fresh off of the source. That didn't make a difference.

I tried this experiment - decode a file using lame and play it back using WMP. You have to drop the '-t' option off of lame (lame --decode -x in.mp3 out.lpcm), but that generates a wave file that WMP can play back. The '-t' option disables writing the wave header, so that needs to be there for WMP to figure out what kind of file it is reading.

Surprisingly enough, the decoded file plays back just fine (correct speed), and it was *not* downsampled to 64kbps. I streamed that file off of the same share that the HR20 is playing back.

Weird. So it seems like it isn't a problem with Lame after all (!?)

Could it be that the HR20 is doing some sort of auto-throttle based off of the network consumption? It slows down the playback when it starts to saturate the network?? Maybe the 64kbps experiment works because it is lower BW consumption? Sounds too crazy.
 

· Registered
Joined
·
5,451 Posts
mikeny said:
bitrate:128 kbps
channels: 2 channels stereo
audio sample rate: 44 khz

I would love to solve the server dropping issue though. I wonder if there's some optimum router mtu setting or something.
I am using the default MTU settings on my wireless and router. Both are Linksys and both use default parameter settings for TX/RX.

I do use a static IP address scheme and a routing IP number scheme, not the private non-routing IP numbers.
 

· AllStar
Joined
·
59 Posts
Discussion Starter · #16 ·
I just flashed the bios of my router to the latest version and it didn't help.
 

· Cool Member
Joined
·
13 Posts
I played around with this a bit more today and continue to be really puzzled by the whole thing.

I have been using ushare (open source server similar in function to Twonky) to experiment with some of the settings. ushare exhibits exactly the same behavior on my system where almost all songs play very slowly. The only exceptions are songs that have a really low bitrate (64kbps)

I had ushare print the size of the requests coming from the HR20 along with the number of bytes that the server is returning. Irrespective of the song bitrate, the HR20 requests just over 1MB every 10-15 seconds. While I wasn't able to do any sort of controlled experiment, the request rated did not seem to change when I varied the load on my network.

I hacked ushare so that it returned 1/2 the requested number of bytes and then hacked it again so that it returned 2x the request. So, the HR20 would request 1MB and ushare would return 512KB in one experiment and 2MB in the other experiment. I was pretty surprised that this didn't break the HR20 playback, but it didn't. And, to my surprise, it didn't make any difference at all in the playback - it still sounded slow. Wow.

I also pulled down a 3rd party wav editor and played back some of the wav files that Lame decoded. As with WMP, this editor played back the wav files at normal speed. Those experiments aren't totally conclusive as the HR20 only plays back wav files with the headers removed and the other programs require the headers.

I poked a bit at Twonky to see if the UPnP library is common with ushare. As far as I can tell, Twonky uses a totally independent library. So, it is unlikely that ushare and Twonky exhibit the same behavior because a bug in the underlying library.

I think the biggest mystery is that Twonky works just fine for some people and for others, the playback is just broken (plays slow). There's got to be something obvious here.....
 

· Registered
Joined
·
5,451 Posts
Are you using any other type of software to serve the files up to the HR20, like WMP11?
Are there any errors being reported in the network stats?
What type of router/gateway are you using to make the connection to the HR20?
 
1 - 20 of 36 Posts
Status
Not open for further replies.
Top