[MPlayer-users] Any tips on DMA on TSSTcorpRe: DVD trouble on Inspiron 6000 (SCSI: No DMA): including compile errors (was: libdts)

Reshat Sabiq sabiq at csociety.org
Thu Nov 17 14:56:14 CET 2005


Dominik 'Rathann' Mierzejewski <dominik <at> rangers.eu.org> writes:

> 
> On Wednesday, 16 November 2005 at 10:01, Reshat Sabiq wrote:
> > On Mon, 2005-11-14 at 15:28 +0200, Reshat Sabiq wrote:
> > > Don't build ffmpeg separately. Just copy libav{codec,util,format} dirs 
> > > to MPlayer source directory and don't use any --enable options that
> > > are autodetected by default..
> > 
> > > SPDIF passthrough requires direct
> > > access to the sound driver. Use OSS or ALSA.
> > 
> > Thanks, Guillaume and Dominik. 
> > 
> > I also had to add:
> > #define CONFIG_MUXERS 1 // config.h
> > and
> > CONFIG_MUXERS=yes // config.mak
> > 
> > It wasn't going to compile w/o them: this is probably a bug in a case
> > like this, because those entries should be made by configure, although
> > it wasn't hard to figure out.
> 
> This definitely should not happen. Post your ./configure command line
> and output.
Must have been something about the CVS snapshot, i guess, as i didn't have to do
it in latest CVS co.
> 
> There's nothing out of ordinary in the above log except that you're using
> an outdated CVS snapshot. I know it's a pain, but snapshot generation
> doesn't work currently, so please get a cvs checkout yourself and try
> that. The bug may have been fixed already.

The CVS co worked out fine from mplayer perspective: see log below. But i have a
jumpy playback because of no DMA. One can still view and follow the videos, but
it doesn't meet expectations of someone who has seen playback w/ DMA.

You guys have been helpful so far, though i should have read the instructions
better myself. 

I don't think speedup options like -cache -framedrop will help. I haven't
noticed much of an effect from them. I'd really appreciate any feedback on DMA
you might have, even though it's a side-topic for this forum:

# hdparm -i /dev/hdc

/dev/hdc:

 Model=TSSTcorpCD-RW/DVD-ROM TSL462C, FwRev=DE01, SerialNo=
 Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
 RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
 BuffType=unknown, BuffSize=0kB, MaxMultSect=0
 (maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
 IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4
 DMA modes:  sdma0 sdma1 sdma2 mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 *udma2
 AdvancedPM=no
 Drive conforms to: Unspecified:  ATA/ATAPI-3 ATA/ATAPI-4 ATA/ATAPI-5 ATA/ATAPI-6

 * signifies the current active mode
[root at localhost main]# hdparm -d /dev/hdc

/dev/hdc:
 using_dma    =  0 (off)
[root at localhost main]# hdparm -d1 /dev/hdc

/dev/hdc:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Operation not permitted
 using_dma    =  0 (off)

>From what i understand this is a PATA device on an SATA controller, but it's
just a guess. I have a feeling that this bug is a kind of what i have:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=163418#c15

And the last thing i see there suggests to make a custom kernel. Is that on the
right track?

I tried hdc=ide-scsi yesterday, and i got a scd0 device, but playback was even
worse with that. Perhaps that means that the device isn't SCSI per se, but again
is a PATA device on an SATA controller.

Also, another distro wouldn't be like to help with DMA for this device, would it?

Any feedback here would be welcome, but i'll try asking around elsewhere.

P.S. Successful playback w/ no DMA:
$ gmplayer dvd://1
MPlayer dev-CVS-051117-13:42-4.0.2 (C) 2000-2005 MPlayer Team
CPU: Intel Pentium M Dothan (Family: 6, Stepping: 8)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Playing dvd://1.
Reading disc structure, please wait...
There are 4 titles on this DVD.
There are 16 chapters in this DVD title.
There are 1 angles in this DVD title.
DVD successfully opened.
MPEG-PS file format detected.
VIDEO:  MPEG2  720x480  (aspect 3)  29.970 fps  9800.0 kbps (1225.0 kbyte/s)
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
AC3: 5.1 (3f+2r+lfe)  48000 Hz  448.0 kbit/s
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 480 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Also try adding the scale filter, e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
Building audio filter chain for 48000Hz/2ch/s16le -> 0Hz/0ch/??...
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
Starting playback...
VDec: vo config request - 720 x 480 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 720x480 => 854x480 Planar YV12
A:   0.6 V:   0.6 A-V:  0.036 ct:  0.033  14/ 11 ??% ??% ??,?% 0 0
demux_mpg: 24000/1001fps progressive NTSC content detected, switching framerate.
A:   7.7 V:   6.4 A-V:  1.325 ct:  0.350 154/151 42%  6% 49.4% 50 0

           ************************************************
           **** Your system is too SLOW to play this!  ****
           ************************************************

Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
  - Try -ao sdl or use the OSS emulation of ALSA.
  - Experiment with different values for -autosync, 30 is a good start.
- Slow video output
  - Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
  - Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,
    e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
- Broken file
  - Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
  - Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
  - Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.

A:  10.1 V:  10.1 A-V: -0.004 ct:  0.326 6480/6477 51% 2069%  8.3% 739 0




More information about the MPlayer-users mailing list