Author Topic: XMPlay RealAudio plugin  (Read 320298 times)

Dotpitch

  • Posts: 2871
Re: XMPlay RealAudio plugin
« Reply #250 on: 4 Nov '08 - 15:09 »
rtsp://rm.bbc.co.uk:554/worldservice/newshour2000.ra
Yup, at 90 seconds into the stream, xmp-ra starts sending out SET_PARAMETER packets like crazy (seriously, a ridiculous amount of packets), and then locks up XMPlay.

Fraggie

  • Posts: 710
Re: XMPlay RealAudio plugin
« Reply #251 on: 4 Nov '08 - 16:39 »
rtsp://rm.bbc.co.uk:554/worldservice/newshour2000.ra
Yup, at 90 seconds into the stream, xmp-ra starts sending out SET_PARAMETER packets like crazy (seriously, a ridiculous amount of packets), and then locks up XMPlay.

Did it send any SET_PARAMETER packets before 90th second?

Dotpitch

  • Posts: 2871
Re: XMPlay RealAudio plugin
« Reply #252 on: 4 Nov '08 - 17:21 »
Did it send any SET_PARAMETER packets before 90th second?
It certainly did. However, when the stream is started, all SET_PARAMETER packets (and the packets sent close around it) signal a TCP window of 0.
Quote from: wiki.wireshark.org
TCP ZeroWindow - Occurs when a receiver advertises a receive window size of zero. This effectively tells the sender to stop sending because the receiver's buffer is full. Indicates a resource issue on the receiver, as the application is not retrieving data from the TCP buffer in a timely manner. (link)

[edit]
The stream server probes the connection, and after a couple of times xmp-ra sends a SET_PARAMETER (sometimes with timeout=80), immediately followed by a TCP window update, and stream continues happily.

But after 70 seconds or so, things go wrong. xmp-ra forgets to open the window, so the server does nothing. xmp-ra starts sending packets containing up to 8 SET_PARAMETER calls, without opening the window, while XMPlay shows it's rebuffering. Then, all of a sudden, xmp-ra decides to update the TCP window, the server starts streaming again (a bit faster, to get the buffer filled again), and XMPlay completely stalls. I've attached the network capture file.
[/edit]
« Last Edit: 4 Nov '08 - 19:17 by Dotpitch »

Fraggie

  • Posts: 710
Re: XMPlay RealAudio plugin
« Reply #253 on: 4 Nov '08 - 19:42 »
Thanks Dotpitch.

Guys, please redownload the plugin. It's now sending the heartbeat every 60 seconds of downloaded data. It looks like it's fine in both cases. Please test.

Dotpitch

  • Posts: 2871
Re: XMPlay RealAudio plugin
« Reply #254 on: 4 Nov '08 - 20:07 »
Please test.
It now plays properly here :). And with you, Brian?

r

  • Posts: 188
Re: XMPlay RealAudio plugin
« Reply #255 on: 4 Nov '08 - 21:59 »
I downloaded the RA latest version from:
http://dhost.info/pieknyman/download.html
and it locks up around 12 mins :(

Which is much better than 3 mins!

Brian

  • Posts: 733
Re: XMPlay RealAudio plugin
« Reply #256 on: 5 Nov '08 - 13:05 »
All seems fine here at the moment.

Fraggie

  • Posts: 710
Re: XMPlay RealAudio plugin
« Reply #257 on: 5 Nov '08 - 18:39 »
I downloaded the RA latest version from:
http://dhost.info/pieknyman/download.html
and it locks up around 12 mins :(

Which is much better than 3 mins!
Sigh. :) Does it lock up after 12 minutes systematically?

SmartOne

  • Posts: 217
Re: XMPlay RealAudio plugin
« Reply #258 on: 18 Jan '09 - 04:02 »
While playing RM files, ocassionally a whole second of audio is skipped.  I'm using XMPlay 3.4.2.85.
« Last Edit: 20 Jan '09 - 03:00 by SmartOne »

Fraggie

  • Posts: 710
Re: XMPlay RealAudio plugin
« Reply #259 on: 19 Jan '09 - 22:17 »
Bug report rejected. ;D

Need more details. Example files, URL's etc.

SmartOne

  • Posts: 217
Re: XMPlay RealAudio plugin
« Reply #260 on: 20 Jan '09 - 02:57 »
Where can I send a file...?

They are files on my hard drive, just like an MP3s except with stupid Real RM encoding.  :P  (Not my fault, ripped streams using FlashGet.)  They're not bad files because Windows Media Player can play them without (what I suspect are) buffering issues.

I've never uploaded using FTP before...  I tried my preinstalled CoreFTP client and couldn't get it to work.
« Last Edit: 20 Jan '09 - 03:28 by SmartOne »

Dotpitch

  • Posts: 2871
Re: XMPlay RealAudio plugin
« Reply #261 on: 20 Jan '09 - 08:47 »
If the file is small, you can attach it to your forum post (see Additions Options...). If it's too big, use RapidShare or a similar site. Do the files play correctly in RealPlayer?

SmartOne

  • Posts: 217
Re: XMPlay RealAudio plugin
« Reply #262 on: 20 Jan '09 - 18:22 »
Do the files play correctly in RealPlayer?

Ew, you actually want me to install that?  ;)

Here's a good test file: http://www.mediafire.com/?sharekey=67bf92ff0e8a76147432d3c9683f450ae04e75f6e8ebb871

Unzipped, the filename: bach_2_part_invention_in_d_minor-34446.rm

Dotpitch

  • Posts: 2871
Re: XMPlay RealAudio plugin
« Reply #263 on: 20 Jan '09 - 19:43 »
Ew, you actually want me to install that? ;)
Well, you need some reference when trying to find the bug ;).

Anyway, RealPlayer plays this file properly. xmp-ra crashes 9 seconds into the file (tried 5 times: 4 times silent, 1 time on DEP), but when seeking past that it plays alright. I can't hear any skips, do they occur at regular intervals or at specific places in this file?

SmartOne

  • Posts: 217
Re: XMPlay RealAudio plugin
« Reply #264 on: 20 Jan '09 - 20:57 »
Whoa, mine never crashes.

(Maybe I should have picked a song with less off-beat hits ;D)
Skips:
1:18
2:38
3:55 
5:14
6:35

Another song:
1:19
2:38
3:58
5:14

Seems like intervals.  RealAudio (beta9) Config menu I only have the last three boxes checked.  XMPlay buffer size is 0.100s.  I'm not using resampling.  Dithering and Noise shaping are checked, but that only applies to songs with bit depths other than 16...?  DirectSound - USB Audio DAC
« Last Edit: 20 Jan '09 - 21:07 by SmartOne »

Dotpitch

  • Posts: 2871
Re: XMPlay RealAudio plugin
« Reply #265 on: 21 Jan '09 - 12:34 »
XMPlay buffer size is 0.100s.  I'm not using resampling.  Dithering and Noise shaping are checked, but that only applies to songs with bit depths other than 16...?  DirectSound - USB Audio DAC
Do you have the same problem when playing mp3s? And what if you use the Wave-writer?

Skips: 1:18, 2:38, 3:55, 5:14, 6:35
80 second intervals... looks like there's a packet saved in the stream that xmp-ra doesn't expect. I've tried it with the same settings, but I cannot reproduce the skips. I'll install the new RealAlternative and try again. I won't install the new version, the installer refuses to extract the dlls as long as I have RealPlayer installed. My current RA dlls are dated 28-6-2007, what version do you use?
« Last Edit: 21 Jan '09 - 12:55 by Dotpitch »

SmartOne

  • Posts: 217
Re: XMPlay RealAudio plugin
« Reply #266 on: 21 Jan '09 - 17:08 »
The problem only happens using the RealAudio plugin.  The only files I have that use it are RM.  Renaming them to RMVB produces the same results.  WAV Writer same results.

Not sure where to find the DLL version...  I downloaded and installed Real Alternative on 9/15/2008.

Dotpitch

  • Posts: 2871
Re: XMPlay RealAudio plugin
« Reply #267 on: 21 Jan '09 - 17:18 »
Could you try a regular .RA file, so not one saved from a stream?

SmartOne

  • Posts: 217
Re: XMPlay RealAudio plugin
« Reply #268 on: 21 Jan '09 - 17:20 »
Where could I find one?
Renaming RM to RA or RAM doesn't help. (But the files do still play.)
http://rosemck1.tripod.com/southern-gospel.html lol
The file faith-like-that.ram from the above link plays without skips.
« Last Edit: 21 Jan '09 - 17:36 by SmartOne »

Fraggie

  • Posts: 710
Re: XMPlay RealAudio plugin
« Reply #269 on: 21 Jan '09 - 17:55 »
Are all your problematic files encoded with ATRAC? (Details are in the info window.)

SmartOne

  • Posts: 217
Re: XMPlay RealAudio plugin
« Reply #270 on: 21 Jan '09 - 18:57 »
Format RealAudio (RMFF) (version 8.0)
Codec ATRAC3/Tokyo ("ATRC")
Flavour "176 kbps Stereo Music - RA 8" (#5)
Muxer Generic interleaver ("GENR")
Packets 10140
Packet Size 1024 bytes
Block Size 30720 bytes (30 packets)
Bit rate 176 kbps
Sample rate 44100 hz
Channels 2
Length 7:50
Output 44100 hz - stereo - 32 bit

So yes, it appears they are all ATRAC3...
« Last Edit: 23 Jan '09 - 02:44 by SmartOne »

SmartOne

  • Posts: 217
Re: XMPlay RealAudio plugin
« Reply #271 on: 23 Jan '09 - 18:13 »
Uh, any ideas?

Dotpitch

  • Posts: 2871
Re: XMPlay RealAudio plugin
« Reply #272 on: 24 Jan '09 - 12:33 »
Uh, any ideas?
So, you've got some streamripped files with a funny structure. RealAlternative itself can play the files correctly. xmp-ra uses RealAlternative codecs, but has problems with some saved packets. The problematic files are all ATRAC. Can you try a stream with a different codec and save that in the same way? Just to check whether it's limited to ATRAC ;).
For the rest, you'll have to wait until Fraggie has time to work on it. I think he's working on xmp-ahx first ::).

Fraggie

  • Posts: 710
Re: XMPlay RealAudio plugin
« Reply #273 on: 24 Jan '09 - 19:26 »
Usually a key frame (key packet) is the first packet of a block (30 packets here). But this file also has a key frame every 80 seconds, breaking the block. You need to have the whole block to rearrange the packets correctly. I'm not sure what needs to be done in such case.

You say the file plays okay in RealPlayer, so I guess it's not broken and so I'll have to do some research. :)

SmartOne

  • Posts: 217
Re: XMPlay RealAudio plugin
« Reply #274 on: 25 Jan '09 - 05:02 »
Can you try a stream with a different codec and save that in the same way? Just to check whether it's limited to ATRAC ;).

I have some crap-ily encoded 22050 Hz Cooker/G2/Gecko ("COOK") streamed RM files that seem to skip... But in different places?  It's hard to tell because most of them have a "separated" sound anyway.

Here's a good test: http://www.mediafire.com/?sharekey=67bf92ff0e8a76147432d3c9683f450ae04e75f6e8ebb871
(one_last_touch.rm inside ZIP)

Skips:
1:21
2:40