[MPlayer-cygwin] [TEST] working CD playback in windows - Track Number not reported probably NODEAMON

Stefan Gürtler helfmir at surfeu.de
Tue Oct 25 11:01:54 CEST 2005


Erik Lunchpail schrieb:

>Yo,
>
>Rocky has committed the changes I sent to him in
>libcdio CVS, so it should compile cleanly in mingw
>now. I managed to port read_toc in cddb.c to windows,
>so cddb lookup is working(properly?). Here's another
>patch. I've stripped out all the VCD stuff for now
>until I can get it working in which case i'll send a
>separate patch.
>
>Someone check my read_toc() function in cddb.c, it
>appears to be working fine, but i'm not all that
>familiar with the cdrom ioctl's.
>
>Again, here's a new binary for testing with the cddb
>functionality:
>http://vayne.fdns.net/mplayer/mplayer.exe
>
>Regards,
>Erik
>
>P.S. This should also work in linux with libcdio as
>well, i'll have to check that later.
>  
>
Hi Erik
I wanted to give your binary a try under win32 (WindowsXP SP2, two 
cdrom-devices (I: and J:)  from cmd.exe.
Hot to spezify the cdrom-device properly?
I have tryed
mplayer cdda://1
->
Playing cdda://1.
++ WARN: could not read TOC (6)
Found Audio CD with 255 tracks
++ WARN: could not read TOC (6)
++ WARN: could not read TOC (6)
Seek failed

mplayer cdda://1 -cdrom-devic j:
->
Playing cdda://1.
Found Audio CD with 11 tracks

CD plays, while the cdrom-device speeds up and therefore is quite noisy.

mplayer cdda://1 -cdrom-device j: -cdda speed=2
->
Playing cdda://1.
Found Audio CD with 11 tracks

CD plays, and the noise disappeared. Great!

-----------------------------------------------------
Just one funy thing:
-----------------------------------------------------
Playing cdda://1.
Found Audio CD with 11 tracks

Track 1
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
Building audio filter chain for 44100Hz/2ch/s16le -> 0Hz/0ch/??...
AO: [dsound] 44100Hz 2ch s16le (2 bytes per sample)
Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
Video: no video
Starting playback...

Track 3
A:  18.4 (18.3) of 0.0 (unknown) 28.2%
A:  22.0 (21.9) of 0.0 (unknown) 27.2%
  =====  PAUSE  =====

Track 1 became Track 3 in the last line before the playback statistics
( before "A:  18.4 (18.3) of 0.0 (unknown) 28.2%")

The track played is the first track.

So i tryed Track 2:
mplayer cdda://2 -cdrom-device j: -cdda speed=2
->
Playing cdda://2.
Found Audio CD with 11 tracks

Track 2
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
Building audio filter chain for 44100Hz/2ch/s16le -> 0Hz/0ch/??...
AO: [dsound] 44100Hz 2ch s16le (2 bytes per sample)
Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
Video: no video
Starting playback...
A:  13.6 (13.6) of 0.0 (unknown) 34.7%
  =====  PAUSE  =====

Track 2 is reported once before the output of the audio decoder.


So i tryed Track 3:
mplayer cdda://3 -cdrom-device j: -cdda speed=2
->
Playing cdda://3.
Found Audio CD with 11 tracks
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
Building audio filter chain for 44100Hz/2ch/s16le -> 0Hz/0ch/??...
AO: [dsound] 44100Hz 2ch s16le (2 bytes per sample)
Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
Video: no video
Starting playback...
A:   6.2 (06.2) of 0.0 (unknown) 27.7%
  =====  PAUSE  =====

Track 3 is never mentioned.

Track 4 is mentioned once befor the the output of the audio decoder, 
just like track 2.
So is track 5, 6 ,7
Going back to track 3, it is not reported anywhere.
Going back to track 1, track 1 is reported before the output of the 
audio decoder, and the
missing "Track 3" just ahead of the playback statistics.

Looks like there is something messed up, problably not in your code.
This behaviour is repeated on another Audio CD with again 11 tracks.
This behaviour is repeated on the other cdrom-device with another Audio 
CD with again 11 tracks.
This behaviour is repeated on another Audio CD with 15 tracks.

So, when playing the first track, the Output contais both "Track 1" and 
"Track 3", which is missing
completely when the third track is played.

Stefan





More information about the MPlayer-cygwin mailing list