Page 2 of 2
Posted: Tue Aug 29, 2006 12:17 am
by Paul
No audio here either, only video
Posted: Tue Aug 29, 2006 12:45 am
by mskuma
For those with audio problems, my suggestion for now is try playing a DVD that has only one audio track. Using this object, it is possible to select an audio track, so I suspect if people are trying a DVD containing multiple audio languages, it may be necessary to programmatically select it in advance. I'll have another look at the issue at home. I've yet to come across many detailed docs about this object, so I'm learning with you.
Posted: Tue Aug 29, 2006 4:36 am
by Paul
Sorry, that WAS using a DVD with only one audio track.

Posted: Tue Aug 29, 2006 4:47 am
by mskuma
I've just looked at the DVD I have and it contains only one audio track, so I think the problem is not due to single track DVDs as I thought. Stay tuned.. [edit: try finding a disc with other types of audio, e.g. PCM rather than Dolby Digital (or vice-verse) maybe the codec you have is not handling the audio properly?] Also try another MPEG2 decoder like PowerDVD, WinDVD or Interactual, and please report what decoder you're using). I'm assuming you're all using DX9c?]
Posted: Tue Aug 29, 2006 5:57 am
by Straker
Well, DSCALER is a codec and comes with its own player which uses the codec, when I use their player, i get both audio and video, but with your code only video.
Before I installed their codec - your code did not work, only after I installed DSCALER, so I think your code on my pc is not piggy-backing on any other players codecs.
This is so close, it has to be something simple.
Thanks again.
Posted: Tue Aug 29, 2006 6:06 am
by mskuma
OK.. I had a brief chance to investigate. On a virgin Win2kSP4 machine with DX9c), I installed DScaler v4.1.15. Win2k did not recognise that version as a valid DVD decoder. Ditch it. You have to use the latest DScaler, which I believe is 5008 (link was mentioned above by jrw - thanks). I uninstalled 4.1.15 & installed the latest decoder, inserted a DVD (single audio track) & ran my code - worked fine, no problems with video or audio. So I think there is no problem, at least with this test platform.
Posted: Tue Aug 29, 2006 8:18 am
by Baldrick
Mskuma,
I tried your code on my machine & it has run flawlessly.
Added a couple of small bits into the event loop such as pause, resume & added a maximise flag to the window. Still runs flawlessly, so I compiled to an exe which I then UPX'd & the size comes out at around 7K. Think that would have to be the smallest DVD player I have seen.
BTW, my macine has Nero Power DVD installed, so I am guessing thats where my Mpeg2 decoder comes from as I have not installed any 3rd party 1's at all. I am using 6 channel sound card & getting full surround sound. The only problem I have struck is if you jump chapters forward too quickly on 1st startup, I lose the sound & have to restart the program.
Great piece of code imo

Posted: Tue Aug 29, 2006 8:27 am
by netmaestro
I tried it a while ago without any success. I figured I was in good shape for decoders as I own Nero Ultra and I also have the k-lite decoder pack for media player classic. But no luck. So then I downloaded the DScaler 5008 program and ran it. After that, it worked without a problem. Very good little piece of code! Thanks for this.
Posted: Tue Aug 29, 2006 8:36 am
by inc.
DVDs do come with AC3, mp2 or PCMwave Audio, so u have to have installed the specific decoder on your system.
AC3 = AC3Filter
mp2 = (imho comes with windows)
PCM = COmes with windows.
Or .... do get "ffdshow", an all-in-one-decoder wich includes all needed video and audiocodecs (based on ffmpeg), so no other codec or even codecpack needed. Its also the first choice for homecinema playback purposes as you can set filters while playing(sharpness denoising etc etc etc).
Posted: Tue Aug 29, 2006 8:46 am
by netmaestro
Thanks for the pointer, I'm sure it will be of use for something, but it doesn't make this code work. I uninstalled DScaler and install ffdshow and nothing. I reinstalled DScaler and it works again. So far no other decoder will make this code work for me.
Posted: Tue Aug 29, 2006 9:19 am
by mskuma
I've tried this code on my XP machine at home - I've noticed a couple of things.. the first time I tried it, I had no audio, in fact during the program's operation, I seemed to have lost all audio (even a single click on taskbar volume control was inaudible). I'm not sure if this was caused by the program or something else.. Anyway I cleared this situation by playing an ogg file in Media Player classic. So then I played a DVD (with 2 audio tracks, "Lost in Translation") and on my XP system (with PowerDVD & WinDVD, so not sure what dominated), I noticed that the audio is actually very low in the main program. I tried the same disc on another fresh Win2K machine with a different codec (WinDVD4) and found the volume was normal (certainly much higher than on my XP machine. Maybe I've missed some 'global volume' setting in the code, but given I'm using the same code for testing across machines, and the code is rather minimal (most of it is interface), I'm guessing the interoperability of your DVD codec on your system could cause some performance variations. One thing seems clear - so far I've obtained the best result from 2 virgin Win2k systems each with only one codec installed (i.e. if you have a mixture of codecs, this might cause trouble - my guess only). Maybe this info helps someone.
[edit: BTW thanks to everyone who has tested & reported their result]
Posted: Tue Aug 29, 2006 10:18 am
by inc.
netmaestro wrote:Thanks for the pointer, I'm sure it will be of use for something, but it doesn't make this code work. I uninstalled DScaler and install ffdshow and nothing. I reinstalled DScaler and it works again. So far no other decoder will make this code work for me.
Thats cause you didnt configure ffdshow which codecs are enabled or not.
Enable mpeg2 and in the audio configurator AC3 and mp2
Posted: Tue Aug 29, 2006 10:28 am
by netmaestro