PDA

View Full Version : A better Wine vintage (20030508)


madluther
11th June 2003, 22:52
This is an update to a previous post on some the apps I use under the Wine environment. The original post is here (http://forum.doom9.org/showthread.php?s=&threadid=39927).

This post refers to wine release 20030508.


The apps I'm running with this setup are:-


Avisynth/mpeg2dec3 2.51
CCE 2.50
Subrip 1.17
DVD2AVI 1.76-frm
Vstrip(gui) 0.8f
Scenchap 1.22
pulldown
Scenarist 2.51

Firstly a brief description of how wine was installed.

login as a normal user (not root!) unpack the the source tarball, cd to the wine source directory and run tools/wineinstall

After the configure stage has completed the script asks if it should run the install phase as root, to this I answered yes. The script will then start the compile phase. This takes a while, take a break and grab a coffeee..or beer.. or ..etc etc..

When the compile has finished the script prompts for the root password to complete the install stage.

The script will then ask if this is a wine only install (ie no windows partition present), to this I answered yes, I also accepted the default directory for the fake C: drive.

test your installation by running wine winmine.

All the applications listed above apart from DVD2AVI and Scenarist ran without any modifications to the wine environment, see my original post for details on installation, basically run wine name_of_installer_program.exe. Note, the dll overides mentioned in my original post are no longer required.

EDIT msvcrt.dll is required (Win98 Version) /EDIT

DVD2AVI still requires that DVD2AVI.vfp be manually registered, this needs some clarification, the regfile needs be modified to reflect the user name of the user that will be running wine as shown in bold

reg entry from original post (suitable for the root user) not recommended !

[HKEY_USERS\root\Software\VFPlugin]
"DVD2AVI"="C:\\Program Files\\dvd2avi\\DVD2AVI.vfp"

reg entry for johndoe

[HKEY_USERS\johndoe\Software\VFPlugin]
"DVD2AVI"="C:\\Program Files\\dvd2avi\\DVD2AVI.vfp"


Installing Scenarist

Firstly your X display needs be set to a color depth of 24 or better. Secondly, edit the .wine/config file to temporarily change the default windows version to nt40. Note for day to day use I always leave this commented out.

eg.
[Version]
; Windows version to imitate (win95,win98,winme,nt351,nt40,win2k,winxp,win20,win30,win31)
"Windows" = "nt40"


run the installer wine setup.exe. This installer always seems to crash on exit, but by then its done its job, kill any stray wine / wineserver processes that may be running. comment out the windows version setting and add the following to your wine config file.

[AppDefaults\\scenarist.exe\\Version]
"Windows" = "nt40"
[AppDefaults\\scenarist.exe\\DllOverrides]
"riched32" = "native"
"riched20" = "native"

You will need to copy riched32.dll and riched20.dll to the wine windows\system directory. I used versions from a WIN2kPRO (sp3) system.

Issues / problems

The are some issues with the Scenarit property browser window and the layout editor window, both dont redraw correctly when the vertical scroll bars are used. the workaround is simple, for the property browser window drag the main horizontal bar up the screen till the scroll bars are greyed out, change the properties that need changing and then drag the main bar back down. For the Layout editor screen just close the info, data, and property browser windows (buttons on the main tool bar) make the desired settings , click start, then reopen the data, info and property windows if so desired.

Importing data. Since there is no windows explorer in this environment we can no longer use drag n drop to load our assets. When the main data editor window is active, the main toolbar has buttons you can use to browse to your a/v files. use those intead.

Ive tested this setup on two machines now with no major problems so far.

Hope this proves useful to those wine users out there.

Regards Mad.

mwillberg
14th June 2003, 11:38
well, I admit I don't have anything to contribute right now to this topic, but I just wanted to thank you for writing these detailed descriptions.

I am currently in the process of trying to switch from Windows XP to Gentoo Linux, and ripping and encoding is naturally an important thing for me (why else would I be on this forum? :) ).

When I get the more basic things tuned I will try to get the entire video-encoding process working as well, and I know this text will help me.

Thanks!

madluther
28th June 2003, 02:43
@mwillberg, Thank you for your comments, they are appreciated.

Apps:


DoItFast4U! v.1.1.1.0
VobSub 2.23
IfoUpdate 0.72
Chapter-X-tractor v0.962
DVDDecrypter 3.1.6.0
ReAuthorist 1.0.0

To install just run the the installer, IfoUpdate and Chapter-X-tractor just need to be unzipped.

Wine config entries to get them working.

[AppDefaults\\DoItFast4U2.exe\\Version]
"Windows" = "nt40"
;
[AppDefaults\\DoItFast4U2.exe\\DllOverrides]
"commctrl" = "native" ;(use the version from http://www.dll-files.com)
"comctl32" = "native" ;(Win98SE Version)
;
[AppDefaults\\DoCCE4U.exe\\DllOverrides]
"commctrl" = "native" ;(same versions as above)
"comctl32" = "native"
;
[AppDefaults\\ChapterXtractor.exe\\DllOverrides]
"riched32" = "native, builtin" ;(Win2k sp3 Version or win98)
"riched20" = "native, builtin" ;(Win2k sp3 Version or win98)

[AppDefaults\\IFOUpdate.exe\\DllOverrides]
"ole32" = "native, builtin" ;(Win98 version)
"oleaut32" = "native, builtin" ;(Win98 version)

IfoUpdate requires MSVBVM60.DLL to be present in the windows\system dir. (from dll-files.com)

To run VobSub use the following cmdline:

wine rundll32 vobsub.dll,Configure

IfoEdit included with DoItFast4U! runs without additional configuration.

Notes/problems etc.

DVD Decryptor requires SCSI/ASPI support, for ATAPI devices to work the kernel needs scsi emulation compiled in, if your system is setup for DVD or CD burning with ATAPI devices then no changes are needed, if not see http://www.tldp.org/HOWTO/CD-Writing-HOWTO.html

I've been unable to get DVD Dec to 'see' a mounted iso image or folder with DVD structure on the hard disk (daemon tools isnt an option atm) so DoItFast4U! currently only works if the original dvd is in the DVD drive (HDD Demux mode excepted). DoCCE4U runs and launches CCE but the avs files dont seem to get parsed.

Apart from this limitation Doom9's guide 'Scenarist NT & the big 3' ran successfully with this setup. (Running CCE has to done manually)

EDIT wine version 20030618 is out and runs with the same configuration /EDIT

Regards Mad.

mwillberg
2nd July 2003, 20:47
I am using Wine 20030618, no native DLLs loaded. My goal is to do the same procedure for encoding XviD as I use under Windows:

DVD2AVI -> MPEG2DEC3 -> AviSynth 2.5 (with various filter depending on source) -> VirtualDubMod -> XviD

Big thanks to madluther for the registry entries needed to get DVD2AVI to work! The chain seems to be working up to VirtualDub. However, when I launch VirtualDubMod 1.5.1.1a I get the following output:
Xlib: extension "XFree86-DRI" missing on display ":0.0".

google tells me that that is not a fatal error, just a warning. however, wine exits after that, no gui is ever shown.

Fine, I thought, I can always use vanilla VirtualDub 1.5.4, and if necessary do the final muxing on my old machine which is running windows.

However, I seem to have a problem with encoding video coming from AviSynth. I can open a script that uses mpeg2dec3 fine, and jump around in the stream with no problems. However, when I start the actual encode VirtualDub crashes. Does not matter which codec I choose, or if I output pure RGB.

If I do a script with only "Version()" it still crashes.

However, if I open a normal AVI I am able to encode it to XviD with no problems.

So, the problem certainly seems to be AviSynth. I would appreciate any input anyone has.

madluther
3rd July 2003, 00:30
VirtualDubMod 1.5.1.1a needs RichEdit support to run. Wine's richedit support is only 20% complete, see http://winehq.org/?page=status and click 'Dlls status' to get an idea of what dlls to override for apps you're trying to run. I tested VirtualDubMod 1.5.1.1a with the following cmdline

wine --debugmsg +loaddll VirtualDubMod.exe

The debug messages listed the native riched dlls being loaded even though there aren't any specific overrides in my wine config ( native riched dlls exist in my current setup to support apps mentioned in earlier posts ).

To verify they are needed I ran this cmdline which forces wine to use builtin riched dlls and Vdub failed to launch

wine --debugmsg +loaddll --dll riched20,riched32=b VirtualDubMod.exe

I haven't used vdub since avisynth version 0.3 was current, so I'm not sure whats causing the encode crashes.

Hopefully this will get you a step closer.

Regards Mad.

mwillberg
3rd July 2003, 18:17
Thank you very much! Yes, those two DLL:s certainly got VirtualDubMod working.

I have to admit I am totally new to wine, simply because I have found great native replacements for all my other win32-software, except for the AviSynth/VirtualDubMod combination... I feel that in order to keep up with the latest developments in filters for example, full AviSynth support is quite important...

Now I just have to find a way to make VirtualDubMod let me save the output from the scripts... I am this ------> <------ close to getting back on track with my video encoding, my encoding queue is really getting long... :)

I am totally lost with all the different debug-categories. Do you perhaps know of a way to tell where the seg-fault happens, if it's in the .exe or a loaded DLL?

madluther
4th July 2003, 17:38
A command I find useful for debuging is as follows

wine --debugmsg +relay program.exe 2>&1 | less -i

+relay displays all the API calls made during execution

Once at the less prompt, you can search the output for patterns. /pattern for forward searches or ?pattern for reverse searches.

mwillberg
8th July 2003, 22:06
Thanks for the tip. I have not had any luck with VirtualDub. However, I realized that I don't actually need to use VirtualDub to encode, any program that can go from avisynth to XviD would work. Of course I would prefer one that can do it with as few color-conversions as possible.

Searching the forums I found avs2avi, with seems like a good solution. However, I am not able to get that to work either... Not that I have given up yet, I have not had enough time to test.

However, I just thought I would ask, does anybody here have a suggestion for any other suitable encoder? And, any experience with using them under wine?

madluther
11th July 2003, 18:33
Wine 20030709 is out, all apps run as described above, with no further config changes.

Mad.

lemon
14th July 2003, 15:50
Anyone knows how to run TMPGenc in wine?
I have tried a lot of things, everything seems to be OK, but all the output I get is a complete black .mpg file.
I can see all my sources without problems in VirtualDub...

Fugdefino
24th August 2003, 05:09
Ok, I've installed DVD2SVCD, along with Cinema Craft Enocoder under wine. The Audio extraction, conversion goes fine. When CCE launches though, it gives me the following error?

Invalid Character(s) in path

A filename cannot contain any of the following characters: /:<>|


Any idea how I can fix this?

ryouga
7th September 2003, 16:20
Hmm. I'm using the latest (August) build of wine, and it works fine all the way up until it tries to load vorbis.dll, giving an error about how it can't bind it.

I've twisted it this way and that with it; I've told it to use .so files (which should be the same API calls) - I've told it to use an older vorbis.dll (which threw a 0xDEADBEEF exception) etc. but it won't load.

VDub loads fine; VdubMod hangs when it tries to load. Is there another DLL to override? Anything that depends on vorbis.dll seems to do this...

Zainal
21st September 2003, 16:29
@madluther
I've found a to mount and image and have DIFU recognize it as a drive. First off edit your config to inclue something like this,
[Drive G]
"Path" = "/mnt/C"
"Type" = "cdrom"
"Label" = "CD-Rom"
"Filesystem" = "win95"
then you mount the image like so, mount image.iso /mnt/C -o loop. Now when starting DIFU it will recognize G: as a dvd although the label is obviously gonna be wrong, that much can be remedied by changing the "Label" in the config.
edit Belay that, whilst DIFU will recognize it DVD Decrypter does not so its a moot point

patxitron
7th October 2003, 20:29
Hello

First, sorry about my English.

I've installed almost every software as described by madluther without trouble (including Avisynth-2.5).

But I'm having trouble when I try to get my hand made ssa subtitle file overlayed into picture. If I use textsub plugin for avisynth/virtuadub I get no subtitle at all. Also I have no succes if I try the Virtualdub + subtitler alternative.

Could you help me?. Is my error or a wine incompatability?

I'm using wine-20030911 (sources downloaded and configured/compiled asdescribed by madluther on a up to date gentoo-Linux.

EDITED: Versions that I'm using:

Wine-20030911
VirtualDub-1.5.4
Avisynth-2.52
VobSub-2.23
Linux kernel 2.4.20-gentoo-r5
glibc-2.3.2
KDE-3.1.3

Hardware:

AthlonXP-2000+
1GB DDR266
120GB IDE HD
ATI Radeon 8500 - 64MB



Best regards.

patxitron
7th October 2003, 21:12
@lemon:

I'm runnig TMPGEnc-2.521.58.169 free version without trouble. It doesn't need any change to wine configuration file. Simply unzip and run with wine.

What type of file are you trying to encode?. When encoding, is TMPGEnc showing images into the preview window?

It's needed to change the vfapi plugin priority in the "environmental settings" (Raising the AVI VFW Comaptibility plugin) in order to be accepted the avisynth scripts.

Best regards.

lemon
8th October 2003, 10:47
I get a black preview window, ant TMPGenc generates a completely black mpeg file.

I try to encode an mpeg4 (divx) avi.

If I install the divx codec (normal that before didn't work, without codec, but strange that it didn't give any error), the it gives me an error that doesn't understant the file.

patxitron
8th October 2003, 14:44
I'm encoding now a divx avi file without trouble. I'm using TMPGEnc-2.521.58.169 and Divx-5.0.2 free codec.

You should try following steps:

Open with Virtualdub the avi file that you are trying to encode. If it shows normally in Virtualdub try to tweak TMPGEnc options or reinstall TMPGEnc or install another version.
If Virtualdub doesnt show the file, try to reinstall DivX codec or install another version of it.


Greetings

madluther
11th October 2003, 07:07
@lemon

If you have VFW plugin priority at the default (-2) setting, check that you have the Divx codecs setup in the wine windows\system.ini file

Here's part of my system.ini as an example


[drivers32]
MSACM.imaadpcm=imaadp32.acm
MSACM.msadpcm=msadp32.acm
VIDC.MRLE=msrle32.dll
VIDC.YUY2=huffyuv.dll
VIDC.UYVY=huffyuv.dll
VIDC.YVYU=huffyuv.dll
VIDC.DIV3=Divxc32.dll
VIDC.DIV4=Divxc32f.dll
MSACM.divxa32=Divxa32.acm


Mad.

koolcracker
9th May 2007, 23:47
I cannot get either DVD2AVI or DGIndex to work no matter what. I tried to follow your registry edit instructions, but they made no difference. The program starts up, but when i load in a file, it freezes up completely. My value points to the file location at: Z:\home\graeme\.wine\drive_c\Program Files\DGIndex\DGVfapi.vfp . Any help would be appreciated.