Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the board
Thread view  Mix view  Order  «  
 
Khusraw

E-mail

Bucharest, Romania,
23.01.2012, 18:42
 

New DJGPP Mplayer build from SVN (Announce)

What's new:
+ added HDA sound card support in ao wss.
+ added networking support with libwatt (untested).
+ added preliminary and minimal support for external binary codecs. Sometimes it works, but sometimes it crashes. I don't recommend the use of external codecs, mplayer has internal support for most of the codecs you will need.
- removed support for svgalib video drivers.

The binaries are available here, and the source code here.

You may modify the configuration files from "mplayer" subfolder according to your needs and preferences. Please read mplayer's manual before anything else.

---
Glory to God for all things

ron

Homepage E-mail

Australia,
23.01.2012, 21:21

@ Khusraw

New DJGPP Mplayer build from SVN

> The binaries are available
> here,

Got it. Will test. :)

Ron

ron

Homepage E-mail

Australia,
23.01.2012, 22:39

@ ron

New DJGPP Mplayer build from SVN

> > The binaries are available
> > here,
>
> Got it. Will test. :)

Cannot get this mplayer to play ANY video.

Starts OK with vid details showing, then:

"DVB Card must be between 1 and 4"

very long pause, then:

"AO_WSS: detected Ultrasound"

then total lockup requiring several Ctrl+C to get out.

I have an SB16 sound card, NOT a Gravis Ultrasound.


With the AO=WSS REM'd out in CONFIG, I get the partial first frame of a vid
and then a total lock-up again.

My system: AMD K6, 600 MHz, 256 MB RAM, Soundblaster 16.

Ron

glennmcc

Homepage E-mail

North Jackson, Ohio (USA),
24.01.2012, 00:24

@ ron

New DJGPP Mplayer build from SVN

> > > The binaries are available
> > > here,
> >
> > Got it. Will test. :)
>
> Cannot get this mplayer to play ANY video.
>
> Starts OK with vid details showing, then:
>
> "DVB Card must be between 1 and 4"
>
> very long pause, then:
>
> "AO_WSS: detected Ultrasound"
>
> then total lockup requiring several Ctrl+C to get out.
>
> I have an SB16 sound card, NOT a Gravis Ultrasound.
>
>
> With the AO=WSS REM'd out in CONFIG, I get the partial first frame of a vid
>
> and then a total lock-up again.
>
> My system: AMD K6, 600 MHz, 256 MB RAM, Soundblaster 16.
>
> Ron


I get similar problems to Ron's

I was able to play a video without audio via -ao null

But ... it complains that my system is too slow to play the video

I would think that this P4-2.6ghz machine _should_ be fast enough.

Your build from Sep of 2010 works perfectly on this same machine
for both video & audio.

--
glennmcc

ron

Homepage E-mail

Australia,
24.01.2012, 00:46

@ glennmcc

New DJGPP Mplayer build from SVN

> I was able to play a video without audio via -ao null

Confirmed !

> But ... it complains that my system is too slow to play the video
> I would think that this P4-2.6ghz machine _should_ be fast enough.

No such complaint on my 600 MHz machine. But still no sound.

> Your build from Sep of 2010 works perfectly on this same machine
> for both video & audio.

For me, too.

Ron

Doug

E-mail

24.01.2012, 04:58

@ Khusraw

New DJGPP Mplayer build from SVN

All right! Much appreciated....

My (limited) testing results:

* Video plays (AVI, MPG, MOV, WMV, FLV, WEBM).

* There is sound, but it is *barely* audible... with the speaker's physical volume knob maxed and MPlayer's volume (* key) maxed. (Still promising, as no other build had any!)

From MPlayer:

  Intel_ICH: Intel ICH4 integrated AC97 audio found.
  Intel_ICH: PCI BASE0 at I/O 1C00
  Intel_ICH: PCI BASE1 at I/O 18C0
  AO_WSS: detected Intel ICH4 integrated AC97 audio.

Running on: IBM ThinkCentre M51 (system), Intel P4 2g4hz (cpu), 845 (north), 801DB ICH4 (south), ATI Rage 128 Pro Ultra (video).

- Doug B.

Khusraw

E-mail

Bucharest, Romania,
24.01.2012, 09:22
(edited by Khusraw, 24.01.2012, 12:39)

@ ron

New DJGPP Mplayer build from SVN

> Cannot get this mplayer to play ANY video.
>
> Starts OK with vid details showing, then:
>
> "DVB Card must be between 1 and 4"

If it shows the message it means that you don't have any correct config file in the "mplayer" subfolder, and it tries to play using ao mpegpes.

> very long pause, then:
>
> "AO_WSS: detected Ultrasound"
>
> then total lockup requiring several Ctrl+C to get out.
>
> I have an SB16 sound card, NOT a Gravis Ultrasound.

WSS can't detect GUS except if you have ULTRASND environment variable set, as you can see looking at the source code.
For the present remove it before running mplayer (I will add later the option to specify soundcard and volume as ao wss parameters) and put a correct config file in the "mplayer" subfolder. Or if you don't know how/don't want to use a config file, run mplayer with:

mplayer -really-quiet -ao wss -vo vesa -double -zoom -fs -framedrop

---
Glory to God for all things

Khusraw

E-mail

Bucharest, Romania,
24.01.2012, 09:24
(edited by Khusraw, 24.01.2012, 09:44)

@ glennmcc

New DJGPP Mplayer build from SVN

> I get similar problems to Ron's
>
> I was able to play a video without audio via -ao null
>
> But ... it complains that my system is too slow to play the video
>
> I would think that this P4-2.6ghz machine _should_ be fast enough.
>
> Your build from Sep of 2010 works perfectly on this same machine
> for both video & audio.

Please see my answer to Ron. How it is possible that you see the system too slow message when the config file has "really-quiet" set? Put a correct config file where it should be, or use the command line options.

---
Glory to God for all things

RayeR

Homepage

CZ,
24.01.2012, 10:26

@ Doug

New DJGPP Mplayer build from SVN

> * There is sound, but it is *barely* audible... with the speaker's physical
> volume knob maxed and MPlayer's volume (* key) maxed. (Still promising, as
> no other build had any!)

Funny, on my HDA (intel ICH7+ALC888) the MPlayer and Judas player are very loud. I had to add option -volume 15 to decrease at normal level. I'm not sure it this options touch mixer (wave or master volume) or does it software volume control (that is losing low bits)?

---
DOS gives me freedom to unlimited HW access.

Khusraw

E-mail

Bucharest, Romania,
24.01.2012, 13:54

@ Khusraw

Mplayer with fixed ao wss problems

You may download it from here. I hope that the ao wss problems which some of you had are fixed. Now ao wss may take the device id and the hardware volume as parameters. Please read "README.WSS" for usage. The volume setting accuracy depends on the number of steps your codec's amplifiers have, a value of 0 means minimum volume and a value of 31 means maximum volume.

---
Glory to God for all things

ron

Homepage E-mail

Australia,
24.01.2012, 22:41

@ Khusraw

Mplayer with fixed ao wss problems

> You may download it from
> here. I hope that the
> ao wss problems which some of you had are fixed.

Yep ! That fixed it, and sound works just fine.

Ron

glennmcc

Homepage E-mail

North Jackson, Ohio (USA),
25.01.2012, 01:34
(edited by glennmcc, 25.01.2012, 02:41)

@ Khusraw

Mplayer with fixed ao wss problems

> You may download it from
> here. I hope that the
> ao wss problems which some of you had are fixed. Now ao wss may take the
> device id and the hardware volume as parameters. Please read "README.WSS"
> for usage. The volume setting accuracy depends on the number of steps your
> codec's amplifiers have, a value of 0 means minimum volume and a value of
> 31 means maximum volume.

Same problem here with the 'fixed' version as with the last.

Can only get it to play silent video via -ao null

Without -ao null .... blank black screen.... no sound

The sound card I have is a PCI CMI8738

Your build of mplayer.exe from Sep of 2010 plays audio perfectly
thru this card with no 'tweaking' of the -ao settings needed.

From that Sep 2010 build with no config file in-place
(everything autodetected or via compiled-in defaults)

Command line.... mplayer.exe g:\graphics\mpg\courtne1.mpg

Creating config file: C:/!/MPLAYER_/mplayer/config
MPlayer SVN-r31981-snapshot-`gcc (C) 2000-2010 MPlayer Team

Playing g:\graphics\mpg\courtne1.mpg.
MPEG-PS file format detected.
VIDEO: MPEG1 384x288 (aspect 1) 25.000 fps 0.0 kbps ( 0.0 kbyte/s)
svgalib: Assuming low end SVGA/8514 monitor (35.5 KHz).
Using nvidia driver, 16384KB, Type: RivaTNT (NV 6).
svgalib 1.9.25
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmpeg1] vfm: ffmpeg (FFmpeg MPEG-1)
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 22050 Hz, 2 ch, s16le, 64.0 kbit/9.07% (ratio: 8000->88200)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO_WSS: detected Sound Blaster Pro for WDM SBPro emulation
AO: [wss] 21739Hz 2ch s16le (2 bytes per sample)
Starting playback...
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
[swscaler @ 932270]using unscaled yuv420p -> bgra special converter
VO: [svga] 384x288 => 384x288 BGRA
[VO_SVGA] Vid_mode: 59, 400x300 32bpp.
[VO_SVGA] Video mode is linear and memcpy could be used for image transfer.
[VO_SVGA] Video mode has 16 page(s).
[VO_SVGA] Centering image. Starting at (0,6)
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
A: 0.0 V: 0.5 A-V: -0.492 ct: 0.000 2/ 2 ??% ??% ??,?% 0 0
A: 0.0 V: 0.5 A-V: -0.516 ct: 0.000 2/ 2 ??% ??% ??,?% 0 0

Exiting... (Quit)

____________

And now from today's fixed build

Creating config file: C:/MPLAYERK//mplayer/config
MPlayer Khusraw-SVN-r34587 (C) 2000-2012 MPlayer Team

Playing g:\graphics\mpg\courtne1.mpg.
libavformat version 53.24.2 (internal)
MPEG-PS file format detected.
VIDEO: MPEG1 384x288 (aspect 1) 25.000 fps 0.0 kbps ( 0.0 kbyte/s)
Load subtitles in g:\graphics\mpg\
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 53.42.4 (internal)
Selected video codec: [ffmpeg1] vfm: ffmpeg (FFmpeg MPEG-1)
==========================================================================
==========================================================================
Requested audio codec family [mpg123] (afm=mpg123) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 22050 Hz, 2 ch, floatle, 64.0 kbit/4.54% (ratio: 8000->176400)
Selected audio codec: [ffmp2float] afm: ffmpeg (FFmpeg MPEG layer-1 and layer-2 audio)
==========================================================================
DVB card number must be between 1 and 4
AO_WSS: detected Sound Blaster Pro.
AO: [wss] 21739Hz 2ch s16le (2 bytes per sample)
Starting playback...
[mp2float @ 439e70]Header missing
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [vesa] 384x288 => 384x288 Planar YV12
[VO_VESA] Found VESA VBE BIOS Version 3.0 Revision: 305.
[VO_VESA] Video memory: 16384 Kb.
[VO_VESA] VESA Capabilities: 8-bit DAC, VGA CRTC, normal RAMDAC, no stereoscopic, no stereo.
[VO_VESA] !!! OEM info will be printed below !!!
[VO_VESA] You should see 5 OEM related lines below; If not, you've broken vm86.
[VO_VESA] OEM info: NVidia.
[VO_VESA] OEM Revision: 305.
[VO_VESA] OEM vendor: NVidia Corporation.
[VO_VESA] OEM Product Name: Riva TNT.
[VO_VESA] OEM Product Rev: Chip Rev B1.
[VO_VESA] Hint: For working TV-Out you should have plugged in the TV connector
[VO_VESA] before booting since VESA BIOS initializes itself only during POST.
[VO_VESA] Using VESA mode (29) = 13d [640x400@16]
[swscaler @ 339150]using unscaled yuv420p -> rgb565le special converter
[VO_VESA] Using DGA (physical resources: FC000000h, 01000000h)[VO_VESA]
You have to specify the capabilities of the monitor. Not changing refresh rate.
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.

A: 0.3 V: 0.5 A-V: -0.226 ct: 0.000 2/ 2 ??% ??% ??,?% 0 0
A: 0.3 V: 0.5 A-V: -0.266 ct: 0.000 3/ 3 ??% ??% ??,?% 0 0

Exiting... (Quit)
___________________

RayeR

Homepage

CZ,
25.01.2012, 03:44

@ Khusraw

Mplayer with fixed ao wss problems

> Now ao wss may take the device id and the hardware volume as parameters.
> Please read "README.WSS" for usage.

Thanks, the volume control works for me. BTW for sure, dev=-1 means autodetect?

---
DOS gives me freedom to unlimited HW access.

ron

Homepage E-mail

Australia,
25.01.2012, 03:51

@ ron

Mplayer with fixed ao wss problems

> > You may download it from
> > here. I hope that
> the
> > ao wss problems which some of you had are fixed.
>
> Yep ! That fixed it, and sound works just fine.

I have also successfully used it to stream from a remote site, getting full screen with sound (and a few necessary framedrops) running in Arachne.

I am impressed !

Ron

Doug

E-mail

25.01.2012, 05:59

@ Khusraw

Mplayer with fixed ao wss problems

> I hope that the ao wss problems which some of you had are fixed.

Tested fixed version, but same issue -- sound barely audible, with speaker volume and MPlayer volume both maxed. Tried it with dev=2:vol=31, dev=3:vol=31, dev=26:vol=31, dev=27:vol=31 -- all the same result.

Just to be sure, i tried playing the test file (.mpg) with MPXPlay -- played fine, normal good volume.

IBM P4 system with Intel 801DB ICH4 AC'97.

- Doug B.

Khusraw

E-mail

Bucharest, Romania,
25.01.2012, 09:03

@ glennmcc

Mplayer with fixed ao wss problems

> Same problem here with the 'fixed' version as with the last.
>
> Can only get it to play silent video via -ao null

It still doesn't find the config file. Try better to set MPLAYER_HOME or HOME environment variables pointing to mplayer's full path.

---
Glory to God for all things

Khusraw

E-mail

Bucharest, Romania,
25.01.2012, 09:05

@ RayeR

Mplayer with fixed ao wss problems

> Thanks, the volume control works for me. BTW for sure, dev=-1 means
> autodetect?

Yes, dev=-1 means autodetect.

---
Glory to God for all things

Khusraw

E-mail

Bucharest, Romania,
25.01.2012, 09:07
(edited by Khusraw, 25.01.2012, 10:32)

@ Doug

Mplayer with fixed ao wss problems

> Tested fixed version, but same issue -- sound barely audible, with speaker
> volume and MPlayer volume both maxed. Tried it with dev=2:vol=31,
> dev=3:vol=31, dev=26:vol=31, dev=27:vol=31 -- all the same result.
>
> Just to be sure, i tried playing the test file (.mpg) with MPXPlay --
> played fine, normal good volume.
>
> IBM P4 system with Intel 801DB ICH4 AC'97.

The AC97 support is not written by me. I will look at it during the next days.

EDIT: BTW, do you use headphones or mono output?

---
Glory to God for all things

RayeR

Homepage

CZ,
25.01.2012, 16:05

@ Doug

Mplayer with fixed ao wss problems

You can try to set sound output to WAV file and then check in wave editor if it is properly modulated (using full dynamic range) to be sure if it's not caused by anything else than soundcard.

---
DOS gives me freedom to unlimited HW access.

Khusraw

E-mail

Bucharest, Romania,
25.01.2012, 17:12

@ Doug

Mplayer with fixed ao wss problems

Doug, you may download a new test build from here, which I hope that finally fixes the ICH AC97 volume problem, now it may be set to the loudest possible.

---
Glory to God for all things

glennmcc

Homepage E-mail

North Jackson, Ohio (USA),
25.01.2012, 17:32

@ Khusraw

Mplayer with fixed ao wss problems

> > Same problem here with the 'fixed' version as with the last.
> >
> > Can only get it to play silent video via -ao null
>
> It still doesn't find the config file. Try better to set MPLAYER_HOME or
> HOME environment variables pointing to mplayer's full path.


Those posted test results were without a config file.

The same thing happens with the included config file which is being found
and which had the setting for autodetect of dev=-1

I then tried all possible dev settings.

The only setting that allowed anything to happen other than a blank black
screen & no audio was dev=0 which finally resulted in the video playing
but of-course without audio.

This new build simply does not work with my PCI CMI8783 sound card.

Since your build from Sep of 2010 works perfectly with this card...
something has apparently gotten broken in the AO code

Doug

E-mail

25.01.2012, 17:45

@ RayeR

Mplayer with fixed ao wss problems

> You can try to set sound output to WAV file and then check in wave editor
> if it is properly modulated (using full dynamic range) to be sure if it's
> not caused by anything else than soundcard.

Ahh, good idea!

Ok, did it: -ao pwm. The resulting WAV file looked and played fine in MPXPlay. So it must be a soundcard/hardware issue.

- Doug B.

Doug

E-mail

25.01.2012, 17:48

@ Khusraw

Mplayer with fixed ao wss problems

> BTW, do you use headphones or mono output?

Nope. Stereo speakers + subwoofer.

- Doug B.

RayeR

Homepage

CZ,
25.01.2012, 17:53

@ Doug

Mplayer with fixed ao wss problems

> Ok, did it: -ao pwm. The resulting WAV file looked and played fine in
> MPXPlay. So it must be a soundcard/hardware issue.

I'm not sure if MPXplay doesn't have some normalizer, rather chech the waveform in GoldWave/CoolEdit/Audacity/etc...

Ou, I missed your second post, problem fixed, congrat.

---
DOS gives me freedom to unlimited HW access.

Doug

E-mail

25.01.2012, 17:54

@ Khusraw

Mplayer with fixed ao wss problems

> Doug, you may download a new test build from
> here, which I hope
> that finally fixes the ICH AC97 volume problem, now it may be set to the
> loudest possible.

It works! And very loudly! :-)

Last night, before i downloaded this newest "fixed" build, i actually found a kludgey "solution" for your previous MPlayer "fix" -- it might be of interest, so i'm posting it momentarily.

Thanks for *all* your work!

- Doug B.

Doug

E-mail

25.01.2012, 18:06

@ Doug

Mplayer with fixed ao wss problems - my "kludgy" solution

Please note: This post refers to Khusraw's first "fix"... not the most-recent one in the post immediately above.

Ok, i found a "kludgy" solution. The issue seems similar to those i had in the recent "SOUND support in DOS | Piotr | HDA" thread.

I got the (first) MPlayer fix to play sound by independently enabling audio using ICHINIT.COM (not ICHINIT.EXE -- please see my "important note" below) and then running MPlayer with*out* ICH initialization:

mplayer -ao wss:dev=27 [filename]

27 was the only dev= value that worked. All others (including dev=26) disabled sound, even if the sound was previously working. And using dev=27 after that did nothing. The only way to get sound back was to run ICHINIT.COM again, then use dev=27 with MPlayer.

Also, the vol= parameter had no effect whatsoever -- whether maxed (vol=31) or mined (vol=0), the audio level was the same. Volume was only dependent on two ICHINIT.COM switches (/mo:#, /wo:#). In particular, setting /wo:1 gave similar results to my previous reporting (sound barely audible).

But i'm happy -- i can initialize audio using ICHINIT.COM in AUTOEXEC.BAT and set ao=wss:dev=27 in MPlayer's CONFIG file.

Important note: The ICHINIT.COM i'm referring to is the .ASM-source version from the Judas Player site. The ICHINIT.EXE C-source version does *not* initialize my system correctly! (This bug/regression was reported near the end of the previous "SOUND support in DOS | Piotr | HDA" thread by the Judas/ICHInit author.)

Dex's AC97CD.COM / TEST.COM programs also initialize my system audio properly... and even more loudly than using ICHINIT /MO:31 /WO:31! Dex kindly released the FASM source for the initialization-only code in the "SOUND support in DOS | Piotr | HDA" thread.

The ICHINIT.COM and asm source can be found at the bottom of this page in the .ZIP file:

http://www.piotrkn22.republika.pl/judas/index.html

Computer: IBM, P4, i801DB ICH4.

- Doug B.

Khusraw

E-mail

Bucharest, Romania,
25.01.2012, 21:40
(edited by Khusraw, 25.01.2012, 21:54)

@ glennmcc

Mplayer with fixed ao wss problems

> This new build simply does not work with my PCI CMI8783 sound card.
>
> Since your build from Sep of 2010 works perfectly with this card...
> something has apparently gotten broken in the AO code

I assure you that there is nothing broken in the ao code. Try to read all the available documentation. Run a simple audio file with mplayer -ao:wss:dev=15 file.ext.

---
Glory to God for all things

ron

Homepage E-mail

Australia,
25.01.2012, 21:49

@ ron

Mplayer with fixed ao wss problems

> I have also successfully used it to stream from a remote site, getting
> full screen with sound (and a few necessary framedrops) running in
> Arachne.

And I confirm that -dumpstream also works OK.

Ron

glennmcc

Homepage E-mail

North Jackson, Ohio (USA),
26.01.2012, 02:19

@ Khusraw

Mplayer with fixed ao wss problems

> > This new build simply does not work with my PCI CMI8783 sound card.
> >
> > Since your build from Sep of 2010 works perfectly with this card...
> > something has apparently gotten broken in the AO code
>
> I assure you that there is nothing broken in the ao code. Try to read all
> the available documentation. Run a simple audio file with mplayer
> -ao:wss:dev=15 file.ext.

Already tried that to no avail :(

glennmcc

Homepage E-mail

North Jackson, Ohio (USA),
26.01.2012, 03:03
(edited by glennmcc, 26.01.2012, 04:56)

@ glennmcc

Mplayer with fixed ao wss problems

> > > This new build simply does not work with my PCI CMI8783 sound card.
> > >
> > > Since your build from Sep of 2010 works perfectly with this card...
> > > something has apparently gotten broken in the AO code
> >
> > I assure you that there is nothing broken in the ao code. Try to read
> all
> > the available documentation. Run a simple audio file with mplayer
> > -ao:wss:dev=15 file.ext.
>
> Already tried that to no avail :(

Ah ha....
finally some very limited success with the test build in Mpac97fix.7z

mplayer -ao wss:dev=-1 filename.wav

The 1st 1/2 second of audio plays over and over again in a loop
never stopping till 'q' or Ctrl+C are pressed.

mplayer -ao wss:dev=-1 filename.mpg

No video showing on screen but... same as above...
the 1st 1/2 second of audio plays over and over again in a loop
never stopping till 'q' or Ctrl+C are pressed.

Same method required as with the 1st 2 builds
to get the video to play correctly but without audio

mplayer -ao wss:dev=0 filename.mpg

or

mplayer -ao null filename.mpg


----

But, as stated before, your build of mplayer from Sep 2010 works pefectly
on this same machine for both video & audio via simply....

mplayer filename.mpg

Zyzzle

26.01.2012, 04:52

@ Khusraw

New DJGPP Mplayer build from SVN

WOW! It is looking like a good year for DOS. Now, in 2012 we are able to finally play our videos with the "modern" Intel HDA sound in all its glory! Many thanks to you and the fine folks of this forum for making the synthesis happen.

TESTED! It works well on my little Acer Aspire one netbook (Intel 945GCM onboard video and Intel HDA audio). The caveat was I had to get around the pixel aspect problem of the stretching which occurs. All 4x3 content displays streched in VESA modes, which are 4:3 like 640x480, and 800x600. I believe this problem will also occur on all fixed-pixel 16:10 LCD monitors (which these days is VIRTUALLY all LCD monitors sold). Unless you have native 1:1 display drivers for DOS for your video card. On my netbook, only 640x480 and 800x600 are available VBE 2.0 modes). The native resolution of the display is 1024x600 pixels.

Using these options put the 4x3 material in proper aspect ratio:

Mplayer -vo vesa -monitorpixelaspect 1.200 -zoom -fs -x 800 -y 600 -really-quiet

Did I calculate the monitorpixelaspect ratio correctly? I used this (16/10) / (4/3) to get 1.20. Or, have I misunderstood that option and should it just be (1024/600) / (800/600) = 1.280? Yes, I did RTFM!!

Audio works very well. Occasionally it would get stuck and / or out of sync when FF or REW videos, but overall, it is exceptional.

Insurmountable problems remain: The DOS 2 GB limit! (or is this version 'patched' to allow up to 4 GB - 1 file sizes?)

One REQUEST: Is it possible to provide a binary WITHOUT networking or support for external codecs? These options add to bloat & I feel very few will use them. It would be very much appreciated!

Khusraw

E-mail

Bucharest, Romania,
26.01.2012, 09:29

@ Zyzzle

New DJGPP Mplayer build from SVN

> Insurmountable problems remain: The DOS 2 GB limit! (or is this version
> 'patched' to allow up to 4 GB - 1 file sizes?)

When DJGPP headers will define off_t as off64_t and fseek as fseeko64 in case _FILE_OFFSET_BITS=64 or _LARGEFILE_SOURCE are defined, it will work. Until then, no.

> One REQUEST: Is it possible to provide a binary WITHOUT networking or
> support for external codecs? These options add to bloat & I feel very few
> will use them. It would be very much appreciated!

The source code is provided and you can build whatever custom mplayer you want by simply editing the config.h file and typing make.

---
Glory to God for all things

RayeR

Homepage

CZ,
26.01.2012, 10:31

@ glennmcc

Mplayer with fixed ao wss problems

It looks like some IRQ/DMA problem when sound buffer doesn't update and loop endlessly...

---
DOS gives me freedom to unlimited HW access.

Khusraw

E-mail

Bucharest, Romania,
26.01.2012, 10:43

@ glennmcc

Mplayer with fixed ao wss problems

Do you use it in Windows98? The only change I made to ao wss comparing to my 2010 build is that I removed Windows SBPRO emulation from autodetection. If you use it in Windows98, you should run it with -ao wss:dev=9.

---
Glory to God for all things

ron

Homepage E-mail

Australia,
26.01.2012, 11:52

@ Zyzzle

New DJGPP Mplayer build from SVN

> One REQUEST: Is it possible to provide a binary WITHOUT networking or
> support for external codecs? These options add to bloat & I feel very few
> will use them.

Networking is a large part of what makes this port attractive to me.
I will be using that a lot. Without that it is simply another player restricted to local disks.

And IMHO being able to use external codecs is a sensible thing - ya never know !

Ron

Zyzzle

26.01.2012, 22:13

@ Khusraw

New DJGPP Mplayer build from SVN

> When DJGPP headers will define off_t as off64_t and fseek as fseeko64 in
> case _FILE_OFFSET_BITS=64 or _LARGEFILE_SOURCE are defined, it will work.
> Until then, no.

yea, I know it's a DJGPP limit... eonder if doing this alone would fix it, as the DOS I/O code also probably needs to be patched for 64-bit fileseeks as well.


> The source code is provided and you can build whatever custom mplayer you
> want by simply editing the config.h file and typing make.

If it's really that easy, I'll have a go at it. What compiler did you use or recommend? Can you cross-compile from within (*evil*) Windows?

MORE TESTING completed... Works well in my other two boxes, one with Intel HDA7 Audio, onboard Intel graphics, and c2d E8400. My newest box, with Intel HDA10 and 2600k processor, with onchip Intel graphics will work, but I can't get sound playing in that one. That one screams at 5.5 Ghz stable, so it would be possible to play 1080p 24 fps material in DOS alone, but perhaps my variant of Intel HDA is too new.

Khusraw

E-mail

Bucharest, Romania,
26.01.2012, 23:14

@ Zyzzle

New DJGPP Mplayer build from SVN

> yea, I know it's a DJGPP limit... eonder if doing this alone would fix it,
> as the DOS I/O code also probably needs to be patched for 64-bit fileseeks
> as well.

DJGPP has both off64_t and fseeko64.

> If it's really that easy, I'll have a go at it. What compiler did you use
> or recommend? Can you cross-compile from within (*evil*) Windows?

I use DJGPP 2.04 with he latest ports of GNU packages, in Windows XP. Anyway, removing support for the external binary codecs may be an option for my final build in this "season", as it still doesn't work as it should. But this won't mean too much re: the bloat.

> MORE TESTING completed... Works well in my other two boxes, one with Intel
> HDA7 Audio, onboard Intel graphics, and c2d E8400. My newest box, with
> Intel HDA10 and 2600k processor, with onchip Intel graphics will work, but
> I can't get sound playing in that one. That one screams at 5.5 Ghz stable,
> so it would be possible to play 1080p 24 fps material in DOS alone, but
> perhaps my variant of Intel HDA is too new.

It doesn't detect your card, or it detects it but there is no sound?

---
Glory to God for all things

glennmcc

Homepage E-mail

North Jackson, Ohio (USA),
26.01.2012, 23:32
(edited by glennmcc, 27.01.2012, 00:34)

@ Khusraw

Mplayer with fixed ao wss problems

> Do you use it in Windows98? The only change I made to ao wss comparing to
> my 2010 build is that I removed Windows SBPRO emulation from autodetection.
> If you use it in Windows98, you should run it with -ao wss:dev=9.


No windows of any kind here... not even MSDOS from any version of windows.

I'm booting to Caldera OpenDos v7.01
and using QEMM v9.0 for memory managment.

Just in-case... I'll try dev=9

BRB

____

No good with the 1st build.... no video... no audio.... just sits there
doing nothing till I press Ctrl+C

Will now try the latest test build from mpac97fix.7z

BRB
____

OK... a small amount of additional progress.

The audio now plays a little bit more (about 5sec), and then loops for a
second, and then continues to play the audio.

But.... the video is 'frozen' at frame number 1
and does not progress past that point.

in config ... ao=wss:dev=9

command line..... mplayer g:\graphics\mpg\courtne1.mpg


Will now try a WAV file

BRB

___

Just now played a 48sec WAV with no problems at-all.

Will now try some different video/audio files

___

BRB

FANTASTIC !!!

100% success !!!

Fixed the frozen video via....

framedrop = no

_____

Thank you !!!


_________ current enabled settings in config _________

really-quiet=yes
vo=vesa
fs=yes
double=yes
vsync=yes
framedrop = no
zoom=yes
ao=wss:dev=9
_______________________________

Zyzzle

26.01.2012, 23:52

@ glennmcc

Mplayer with fixed ao wss problems

> OK... a small amount of additional prgress.
>
> The audio now plays a little bit more (about 5sec), and then loops for a
> second, and then continues to play the audio.
>
> But.... the video is 'frozen' at frame number 1
> and does not progress past that point.

Get rid of QEMM and try it with no EMS... I had so many problems with QEMM in the past that I gave it up for good & use regular HIMEM.SYS from DOS 7.1

RayeR

Homepage

CZ,
27.01.2012, 03:06

@ Zyzzle

Mplayer with fixed ao wss problems

> Get rid of QEMM and try it with no EMS... I had so many problems with QEMM
> in the past that I gave it up for good & use regular HIMEM.SYS from DOS 7.1

Yes, on modern machines is QEMM little bit unstable (buit in old days it was perfect memory manager, used on my 1st 486 15 years ago...) and supports only 256MB XMS. JEMMEX rulez :)

---
DOS gives me freedom to unlimited HW access.

RayeR

Homepage

CZ,
27.01.2012, 03:12

@ Zyzzle

New DJGPP Mplayer build from SVN

> MORE TESTING completed... Works well in my other two boxes, one with Intel
> HDA7 Audio, onboard Intel graphics, and c2d E8400. My newest box, with
> Intel HDA10 and 2600k processor, with onchip Intel graphics will work, but
> I can't get sound playing in that one. That one screams at 5.5 Ghz stable,
> so it would be possible to play 1080p 24 fps material in DOS alone, but
> perhaps my variant of Intel HDA is too new.

What chipset? It should recognize intel 5, 6, 7 series. I tested succ. on H57.

---
DOS gives me freedom to unlimited HW access.

Khusraw

E-mail

Bucharest, Romania,
27.01.2012, 10:25

@ Zyzzle

New DJGPP Mplayer build from SVN

Can you provide your ICH10 HDA vendor and device id?

---
Glory to God for all things

Deniska

Homepage E-mail

27.01.2012, 12:47

@ Khusraw

New DJGPP Mplayer build from SVN

Thanks for this port! This is great news for everyone! However, whilst everyone is reporting on their success in getting sound, I have been less lucky... I get silence on my Intel HD Audio with 92HD81. The videos are played well and MP3 files seem to progress, but the volume is muted. Here is the output from mplayer during initialisation:

MPlayer Khusraw-SVN-r34600 (C) 2000-2012 MPlayer Team
183 audio & 394 video codecs

Playing e:\DOCS\DENISKA\MUSIC\Pogoda.mp3.
libavformat version 53.24.2 (internal)
Audio only file format detected.
Clip info:
Title: Track 3
Artist: Artist
Album: Album
Year:
Comment: Ripped by Winamp
Track: 3
Genre: Other
Load subtitles in e:\DOCS\DENISKA\MUSIC\
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 53.42.4 (internal)
AUDIO: 44100 Hz, 2 ch, floatle, 127.7 kbit/4.53% (ratio: 15965->352800)
Selected audio codec: [ffmp3float] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==========================================================================
HDA: 5 Series/3400 Series Chipset HD Audio found.
HDA: i/o base found at 96930000.
HDA: i/o base mapped to 01CF1000, selector 00D7.
HDA: reset was succesful, codec mask: 0009, osd base 0100.
HDA: codec found, address 0000, vendor id 111D, device id 7605.
HDA: starting node id 0001, total number of nodes 1.
HDA: node id 0001 supports audio functions.
HDA: starting function/widget id 000A, total number of functions/widgets 25.
HDA: parsing node id 000A.
HDA: parsing node id 000B.
HDA: found pin type HP OUT, node id 000B.
HDA: no jack is plugged-in.
HDA: the number of connections for node id 000B is 3.
HDA: index 0 has node id 0013.
HDA: parsing node id 0013.
HDA: found DAC, node id 0013.
HDA: selected connection for node id 000B is index 0.
HDA: parsing node id 000C.
HDA: parsing node id 000D.
HDA: found pin type SPEAKER, node id 000D.
HDA: this pin doesn't support presence detection.
HDA: the number of connections for node id 000D is 3.
HDA: index 0 has node id 0013.
HDA: selected connection for node id 000D is index 0.
HDA: parsing node id 000E.
HDA: found pin type LINE OUT, node id 000E.
HDA: no jack is plugged-in.
HDA: the number of connections for node id 000E is 3.
HDA: index 0 has node id 0013.
HDA: selected connection for node id 000E is index 0.
HDA: parsing node id 000F.
HDA: parsing node id 0010.
HDA: parsing node id 0011.
HDA: parsing node id 0012.
HDA: parsing node id 0014.
HDA: found DAC, node id 0014.
HDA: parsing node id 0015.
HDA: parsing node id 0016.
HDA: parsing node id 0017.
HDA: the number of connections for node id 0017 is 7.
HDA: index 0 has node id 000C.
HDA: index 1 has node id 000E.
HDA: selected connection for node id 0017 is index 1.
HDA: parsing node id 0018.
HDA: the number of connections for node id 0018 is 7.
HDA: index 0 has node id 000C.
HDA: index 1 has node id 000E.
HDA: selected connection for node id 0018 is index 1.
HDA: parsing node id 0019.
HDA: the number of connections for node id 0019 is 3.
HDA: index 0 has node id 0013.
HDA: selected connection for node id 0019 is index 0.
HDA: parsing node id 001A.
HDA: the number of connections for node id 001A is 1.
HDA: index 0 has node id 0019.
HDA: selected connection for node id 001A is index 0.
HDA: parsing node id 001B.
HDA: the number of connections for node id 001B is 6.
HDA: index 0 has node id 000C.
HDA: index 1 has node id 000E.
HDA: selected connection for node id 001B is index 1.
HDA: parsing node id 001C.
HDA: the number of connections for node id 001C is 1.
HDA: index 0 has node id 001B.
HDA: selected connection for node id 001C is index 0.
HDA: parsing node id 001D.
HDA: parsing node id 001E.
HDA: parsing node id 001F.
HDA: parsing node id 0020.
HDA: parsing node id 0021.
HDA: parsing node id 0022.
AO_WSS: detected 5 Series/3400 Series Chipset HD Audio.
AO: [wss] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...


P.S. I get the same problem with Mpxplay. Does that program work for everyone else with HDA cards?

Khusraw

E-mail

Bucharest, Romania,
27.01.2012, 14:41
(edited by Khusraw, 27.01.2012, 15:34)

@ Deniska

New DJGPP Mplayer build from SVN

> Thanks for this port! This is great news for everyone! However, whilst
> everyone is reporting on their success in getting sound, I have been less
> lucky... I get silence on my Intel HD Audio with 92HD81. The videos are
> played well and MP3 files seem to progress, but the volume is muted. Here
> is the output from mplayer during initialisation:[...]

What output do you use, the internal speaker? Did you also try other outputs?

EDIT: Do you have a physical LINE OUT jack on your system? It seems that the LINE OUT is selected and enabled. In fact how many outputs does your system have? I saw that some codecs give wrong answers in this regard. Can you try this test program which disables all the outputs excepting the internal speaker(s)?

---
Glory to God for all things

Laaca

Homepage

Czech republic,
27.01.2012, 15:21

@ Khusraw

New DJGPP Mplayer build from SVN

Thanks! Fantastic job!

It works without problems on both my DOS computers.
The only small issue I have is with -vo SVGA output.
I use CVidix, I also could use VESA but I have problems with SVGA. If I am in MPlayer directory (aka .\MPLAYER -vo VESA D:\FILMS\killbill.avi) - it works.
But if I am in another directory (aka C:\MPLAYER\MPLAYER -vo VESA .\killbill.avi) it does not work but complains about "libvga.cfg not found". I tried to set variables MPLAYER_HOME, HOME and SVGALIB_CONFIG_HOME but nothing helped.
Other config file (config.) loads without problems and font TTF file too.

---
DOS-u-akbar!

Khusraw

E-mail

Bucharest, Romania,
27.01.2012, 15:25

@ Laaca

New DJGPP Mplayer build from SVN

> It works without problems on both my DOS computers.
> The only small issue I have is with -vo SVGA output.
> I use CVidix, I also could use VESA but I have problems with SVGA. If I am
> in MPlayer directory (aka .\MPLAYER -vo VESA D:\FILMS\killbill.avi) - it
> works.

Svgalib video driver support was removed.

---
Glory to God for all things

Zyzzle

28.01.2012, 01:54

@ Khusraw

New DJGPP Mplayer build from SVN

> Can you provide your ICH10 HDA vendor and device id?

I was mistaken, the system in which I get no Audio has ICH7 sound. These are the specifics:

IDH DeviceID = 27D8h = Intel 82801GB ICH7 Audio (Azalia?)

Intel G41 Chipset

The symptoms are the same as others had. The sound is initialized OK, HDA audio detected, and it seems to play OK, but no sound is output.

Mplayer reports: HD_WSS: detected N10 (ICH7), and a bunch of ports (4 ports dectected, etc).

The same system works well, with volume in MPXPLAY.

Tried various options like -ao wss:dev=28:vol=32 and -ao wss:dev=29 and -ao wss:dev=-1.

The volume output is definitely a LINE-OUT (ie, standard green 1/8 stereo mini-dsub plug)

I tried both 'fixed' binaries without success...

Also, for my I7 2600k system, I got it working WONDERFULLY by using your *first* fix binary (it wouldn't work with the 2nd fix) and the option -ao wss:dev=28:vol=32.

Zyzzle

28.01.2012, 02:09

@ Khusraw

New DJGPP Mplayer build from SVN

> Can you provide your ICH10 HDA vendor and device id?

One other observation / query directed mostly toward RayeR

Why is it impossible to set WC for LFB on the I7 2600 Sandybridge Internal graphics?

Using his MTRRLFB utility. the system freezes when attempting to set WC in LFB mode...

Using VESATEST for mode 111 (640x480x16) I get 5955 MB/sec for Bankswitching, but only 204 MB/sec for LFB.

Looking at RayerR's other posts on other places, it seems this problem is an Intel limitation (WC disabled in DOS???) Have you found a fix for this very severe limitation. RayeR? Obviously in my instance a speedup of 30x would be most significant!!

@ Khusraw:

I presume -vo:VESA in your build uses LFB exclusively. Is it possible to get it to use Bankswitching instead, in light of my above problem?

Deniska

Homepage E-mail

28.01.2012, 06:04

@ Khusraw

New DJGPP Mplayer build from SVN

> What output do you use, the internal speaker? Did you also try other
> outputs?

I have tried all available outputs. This is a notebook, by the way. There's an internal speaker, 1 line-out and 1 microphone input. I have tried plugging in headphones into all of them, but still get silence. I have also tried running mplayer in absolutely clean DOS without ANY drivers loaded - same results. Also, in the output mplayer correctly reports whether the line-out jack is connected or disconnected.

> EDIT: Do you have a physical LINE OUT jack on your system? It seems that
> the LINE OUT is selected and enabled.

Could there be an extra line-out in the card that is not used/connected? If I understand it correctly, the log shows that there are 2 DACs (nodeid=13 and 14) and only the first one is being used by the player. Am I right?

> Can you try this test
> program which disables all the outputs excepting the internal
> speaker(s)?

Still no sound. Here's the output.

HDA: 5 Series/3400 Series Chipset HD Audio found.
HDA: i/o base found at 96930000.
HDA: i/o base mapped to 96930000, selector 00C7.
HDA: reset was succesful, codec mask: 0009, osd base 0100.
HDA: codec found, address 0000, vendor id 111D, device id 7605.
HDA: starting node id 0001, total number of nodes 1.
HDA: node id 0001 supports audio functions.
HDA: starting function/widget id 000A, total number of functions/widgets 25.
HDA: parsing node id 000A.
HDA: parsing node id 000B.
HDA: parsing node id 000C.
HDA: parsing node id 000D.
HDA: found pin type SPEAKER, node id 000D.
HDA: this pin doesn't support presence detection.
HDA: the number of connections for node id 000D is 3.
HDA: index 0 has node id 0013.
HDA: parsing node id 0013.
HDA: found DAC, node id 0013.
HDA: selected connection for node id 000D is index 0.
HDA: parsing node id 000E.
HDA: parsing node id 000F.
HDA: parsing node id 0010.
HDA: parsing node id 0011.
HDA: parsing node id 0012.
HDA: parsing node id 0014.
HDA: found DAC, node id 0014.
HDA: parsing node id 0015.
HDA: parsing node id 0016.
HDA: parsing node id 0017.
HDA: the number of connections for node id 0017 is 7.
HDA: index 0 has node id 000C.
HDA: index 1 has node id 000E.
HDA: index 2 has node id 000F.
HDA: index 3 has node id 001B.
HDA: parsing node id 001B.
HDA: the number of connections for node id 001B is 6.
HDA: index 0 has node id 000C.
HDA: index 1 has node id 000E.
HDA: index 2 has node id 000F.
HDA: index 3 has node id 0013.
HDA: selected connection for node id 001B is index 3.
HDA: selected connection for node id 0017 is index 3.
HDA: parsing node id 0018.
HDA: the number of connections for node id 0018 is 7.
HDA: index 0 has node id 000C.
HDA: index 1 has node id 000E.
HDA: index 2 has node id 000F.
HDA: index 3 has node id 001B.
HDA: selected connection for node id 0018 is index 3.
HDA: parsing node id 0019.
HDA: the number of connections for node id 0019 is 3.
HDA: index 0 has node id 0013.
HDA: selected connection for node id 0019 is index 0.
HDA: parsing node id 001A.
HDA: the number of connections for node id 001A is 1.
HDA: index 0 has node id 0019.
HDA: selected connection for node id 001A is index 0.
HDA: parsing node id 001C.
HDA: the number of connections for node id 001C is 1.
HDA: index 0 has node id 001B.
HDA: selected connection for node id 001C is index 0.
HDA: parsing node id 001D.
HDA: parsing node id 001E.
HDA: parsing node id 001F.
HDA: parsing node id 0020.
HDA: parsing node id 0021.
HDA: parsing node id 0022.
5 Series/3400 Series Chipset HD Audio
nominal rate : 48000 Hz
.......
.......

Khusraw

E-mail

Bucharest, Romania,
28.01.2012, 09:03

@ Zyzzle

New DJGPP Mplayer build from SVN

> I presume -vo:VESA in your build uses LFB exclusively. Is it possible to
> get it to use Bankswitching instead, in light of my above problem?

To disable LFB, use it with vesa:nodga.

---
Glory to God for all things

Khusraw

E-mail

Bucharest, Romania,
28.01.2012, 09:23

@ Zyzzle

New DJGPP Mplayer build from SVN

> The symptoms are the same as others had. The sound is initialized OK, HDA
> audio detected, and it seems to play OK, but no sound is output.
>
> Mplayer reports: HD_WSS: detected N10 (ICH7), and a bunch of ports (4 ports
> dectected, etc).

> The same system works well, with volume in MPXPLAY.
>
> Tried various options like -ao wss:dev=28:vol=32 and -ao wss:dev=29 and -ao
> wss:dev=-1.
>
> The volume output is definitely a LINE-OUT (ie, standard green 1/8 stereo
> mini-dsub plug)

The max volume is 31 (any value greater will be reduced to 31). Also, HDA doesn't use ports, but memory mapped registers. Can you post the full ao wss message, like Deniska did?

> I tried both 'fixed' binaries without success...

> Also, for my I7 2600k system, I got it working WONDERFULLY by using your
> *first* fix binary (it wouldn't work with the 2nd fix) and the option -ao
> wss:dev=28:vol=32.

The second fix concerns only the ICH AC97 volume, I can't understand how it works with the first fix but not with the second, as long as there is no change in the HDA code.

---
Glory to God for all things

Back to the board
Thread view  Mix view  Order  «  
 
22632 Postings in 2109 Threads, 402 registered users, 377 users online (0 registered, 377 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum