LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-01-2005, 02:29 PM   #76
windowized
LQ Newbie
 
Registered: Sep 2004
Location: oklahoma
Posts: 6

Rep: Reputation: 0

Thank you Knappster got it working and learned alot in the process.
 
Old 03-02-2005, 08:13 AM   #77
Stormproof
LQ Newbie
 
Registered: Aug 2002
Location: Slackware, KS
Distribution: Slackware
Posts: 12

Rep: Reputation: 0
Re: TUTORIAL!!!!

Quote:
Originally posted by knappster
Here is a tutorial to the best of my knowledge of how to get DVDShrink to work without the ASPI error in Linux using Wine. I am using version 20040716(Which means that it was created July 16, 2004). It should work on all versions at least this recent, and probably some older ones. But here if you follow these steps it should work.

If you have a version that is 20040716 or higher, or you would like to try it with your version without updating, skip to step 3. If you don't have any version of Wine currently installed, skip to step 2. You can find your version by opening an xterminal window and typing
Code:
wine --version
You can download wine source files or particular distribution installation files at http://www.winehq.com/
(I would recommend the source files just because).

Step 1: Uninstall your current version of Wine.

If you used an RPM, you have to find the rpm name of it somehow, probably something like wine-200xxxxx, I honestly don't remember how it was named. Then type
Code:
rpm -e wine-200xxxxx
or whatever the rpm name is.

If you used a debian package, you should just be able to type
Code:
dpkg -r wine
(I think).

Other distros have to figure it out for themselves because I'm a linux n00b myself and have only used those 2(and my experience with them is quite limited as well)

If you installed from source, it will be trickier. If you still have all the compiled stuff, you should be able to enter that directory and type
Code:
make uninstall
If you do not, you will probably need to download the source of the same version you had, and I don't know a whole lot about this stuff, but I assume you'll have to compile it again, make the install file, then run make uninstall, so something like this.
Code:
./compile
make
make uninstall
Don't take my word for it, cause I'm just guessing, but even though it takes forever to compile, it should uninstall your version of Wine.

Step 2: Download and install the newest version of wine.

You can get the newest version of wine at http://www.winehq.com . I will only walkthrough how to install the source tarball, because it should be the same for all distros. Also, I am going to give an example with the newest version available at this time, but all you have to do is change the numbers to what you have and it should work as well. Once you have downloaded the file, type
Code:
gunzip Wine-20040813.tar.gz
tar -xf Wine-20040813.tar
and it should create a directory named wine-20040813 (with a lowercase 'w' I think), and this directory is full of goodies. But don't touch any of them lol. Type
Code:
cd wine-20040813/tools
./wineinstall
And it should compile, make, and make install everything for you. I'm pretty sure you can run it as a regular user and when it gets to a certain point it asks for your superuser password, so just follow the directions. Congratulations, now you have wine installed.

Step 3: Configure wine.

Go to your home directory and type
Code:
cd .wine/dosdevices
Assuming your dvd drive is mounted as /mnt/dvd, and you want windows to read it as drive X: then type
Code:
ln -s /mnt/dvd X:
where /mnt/dvd is where your dvd read drive is mounted and X: is the drive you want windows to read it as. Next backup your config file, type
Code:
cd ..
cp config config.bak
This way if anything goes terribly terribly wrong(which it shouldn't) you can just replace config with the backup file. Next, use your favorite text editor(gvim in my case) to edit the config file, I will use vi, which comes pretty much standard on every linux distro. Type
Code:
vi config
and you'll see plenty of jumble. Use the down arrow, or 'j' key to scroll down the file. Until you see something like this:

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

With the cursor over the semicolon at the beginning of press x to delete the semicolon. Then press the right arrow key or 'l' to scroll right until your cursor is on the 'w' in "win98". Press 'd' then 'w' to delete win98. Then press 'i' to insert and type winxp. Press escape to get out of insert mode, then ':wq' followed by enter to save and exit the file. If you screw up somewhere along the way, you can quit without saving by typing ':q!' and pressing enter and then opening the file and starting over again. If you want to save without quitting, you can type ':w' followed by enter and look around or make other changes.

Step 4: Install and run DVDShrink.

You can download the newest version of DVDShrink from: http://www.dvdshrink.org . The newest version currently out, which is the same version that I have installed, is 3.2.0.15. Once you have downloaded it, I would move it to your emulated drive c, by typing:
Code:
mv dvdshrink32setup.exe ~/.wine/drive_c
Then run the installation file by typing,
Code:
wine dvdshrink32setup.exe
and it will bring you to a Windows installation thing. Follow the clicks and points as you would in Windows to do the installation. Once it is installed, you can run it by typing:
Code:
cd ~/.wine/drive_c/Program\ Files/DVD\ Shrink
wine DVD\ Shrink\ 3.2.exe
My first point of advice is to click edit, preferences, then uncheck the box that says "Run analysis and backup in low priority mode to improve multi-tasking" which will probably double or quadruple the speed of backing the DVD up. Then make sure your DVD drive is mounted in linux and click on the Open Disc button, and if you have a DVD in it should show the drive letter and the title of the DVD. Once you click ok, it will do like a 2 minute analysis of the DVD and then show you what it's keeping and what it's not, the compression rate, etc, etc. If everything is still blank, then it's prolly just a slight but you can fix by clicking view, toolbar, then view, toolbar again. It should show up after the first time you click view, toolbar, but you'll probably want the toolbar back, hence the second time. I often have a problem with my DVDShrink freezing after the first analysis. It takes me to the debug thing in the terminal window. Either type quit, or press ctrl+c to close it altogether. One seems to flood the window with debug screens while the other works, but I can't remember which is which. If your window gets flooded, close it and open your system manager to end or kill wine. Then simply open DVDShrink the same as before, Open Disc the same as before, it won't analyze it again, since it already has that information, and it should work smoothly from there. If you would like to add or remove any tracks, do so by checking the boxes. Click backup to actually do the compression, change any settings you want(I generally save it as an ISO rather than vob files) and click OK or whatever it has. That should be it. If you save it as C:\xxxxxxx.iso then it will be in your ~/.wine/drive_c directory.

CONGRATULATIONS! You can now Backup DVDs using DVDShrink in Linux. If you turn off low priority mode, I have found that it generally takes about 30 mins to backup. I tried to make this tutorial as clear as possible, but if you have any further questions, other people prolly have the same ones, so please post them on here. Maybe sometime I'll talk to the admins about posting it as a tutorial if I get time and get any kinks worked out. Good luck and hopefully it works as well for everyone else as it does for me.

-Knappster
 
Old 03-02-2005, 08:15 AM   #78
Stormproof
LQ Newbie
 
Registered: Aug 2002
Location: Slackware, KS
Distribution: Slackware
Posts: 12

Rep: Reputation: 0
wine config file

cd ..
cp config config.bak





Where is the config file. I can not find it. I am running slackware and I am following the instructions as presented.
 
Old 03-04-2005, 01:43 AM   #79
knappster
Member
 
Registered: Mar 2004
Posts: 175

Original Poster
Rep: Reputation: 30
the config file should be in your:
~/.wine directory. The tilde is a shortcut you can type in for:
/home/UserID/
Maybe they have done away with it in newer versions. I would suggest trying an older version.

If you ran the setup as super user then the config file might be in /root/.wine .

-Knappster
 
Old 08-24-2005, 03:14 PM   #80
Tyke
LQ Newbie
 
Registered: Jul 2004
Posts: 14

Rep: Reputation: 0
OK, followed this tutorial up to here:

Type

code:

vi config

and you'll see plenty of jumble. Use the down arrow, or 'j' key to scroll down the file. Until you see something like this:

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

---------

Where I hit a bit of a problem. New versions of Wine have no config file. Does anyone know how to change the windows version in the current version of Wine?
 
Old 08-26-2005, 05:43 PM   #81
knappster
Member
 
Registered: Mar 2004
Posts: 175

Original Poster
Rep: Reputation: 30
Tyke,

Sorry, I can't really help you there. I haven't updated since the current version I have on this debian installation, version 20040716. If you're not using wine for anything else, I would advise downloading the source for that version and installing it instead. Unfortunately I no longer have the source files for compilation. However, doing a search on google I found a download for it here:

http://ftp4.de.freesbie.org/pub/misc...040716.tar.bz2

(although I will not vouch for its integrity). I have said it before, I am far from a linux expert, I just noted all the steps I took to get it working on my linux installation. It seems to work for some, but not others. I just used synaptic to upgrade everything on my debian, then I had to upgrade my kernel to the newest version (2.6.12.5) and wine still runs. To be honest with you, I haven't been running linux very frequently because of gaming, so by now their might be some linux native alternatives, I read something about something called xdvdshrink. I still doubt that there is anything as simple, though.

Let me know if there's anything else I can do to help.

-Knappster
 
Old 08-29-2005, 09:21 AM   #82
Tyke
LQ Newbie
 
Registered: Jul 2004
Posts: 14

Rep: Reputation: 0
Woo Hoo! managed to get it to work by installing the older version.

Thanks for the help.
 
Old 08-29-2005, 12:31 PM   #83
knappster
Member
 
Registered: Mar 2004
Posts: 175

Original Poster
Rep: Reputation: 30
Great, another happy user. I think going through the steps one by one (and using a compatible version of wine) has worked for most people. I noticed that the dvdshrink site has been discontinued, so hopefully now someone will make a comparable linux native version since there probably won't be anything better for Windows for a while. I would imagine that this thread will be pretty much obsolete pretty soon, too. Anyway, I'm glad it's at least helped a few people, and even though it didn't make tutorial status on the forums, people were still able to search it oout and get something out of it. If anyone has gotten it to work with the newest versions of wine without the config file, I would still be interested in finding out how, though. Congratulations again, and enjoy.

-Knappster
 
Old 09-13-2005, 04:11 PM   #84
CrashedAgain
Member
 
Registered: Jan 2004
Posts: 307

Rep: Reputation: 33
Just followed through this thread & successfully made DVD9's into DVD5 disks but I couldn't get dvdshrink to directly read the disk, I had to vobcopy first. I also had to manually mount /dev/dvd to /dvd before vobcopy could find it, it wasn't happy with automount's mount point which is /mnt/cdrom.

I have a dual boot system, Debian (Kanotix) & winme so I did not set wine 'windows version' to xp. I assume you would only do this if you were using xp or were a straight linux system with dvdshrink installed to fake windows. I had dvdshrink already installed on the winme system. Incidentaly, the command to start wine then becomes
Code:
wine /mnt/hda1/Program\ Files/DVD\ Shrink/DVD\ Shrink\ 3.2.exe
As you say, **they** have gotten to the official dvdshrink site; try this one instead.

http://www.mrbass.org/dvdshrink/

Last edited by CrashedAgain; 09-13-2005 at 04:16 PM.
 
Old 09-13-2005, 11:56 PM   #85
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Use double quotes if you come across files with spaces in Linux, so you do not need to use back slashes.

You have to use "Windows" = win2k under version section in the WINE config file. If you do this, you do not have to waste space and time using vobcopy.

To do a DVD-9 to DVD-5 using Linux utilities (vobcopy, transcode, mjpegtools, dvdauthor, growisofs).

1st Step:
mount /mnt/cdrom or mount /mnt/dvd
vobcopy -n 1 -l -o - | tcextract -t vob -x ac3 -a 0 > dvd.ac3 &
vobcopy -n 1 -l -o - | tcextract -t vob -x mpeg2 > dvd.mv2 &

2nd Step:
requant_factor = (video_size / (4700000000 - audio_size)) * 1.04

tcrequant -i dvd.m2v -o dvd_shrinked.m2v -f requant_factor

3rd Step:
mplex -f 8 -o dvd_final.mpg dvd_shrinked.m2v dvd.ac3

4th Step:
dvdauthor -T -o final dvd_final.mpg

5th Step:
Use either growisofs or k3b to use the files and directory in the final directory.


BTW, I am writting a program that does the same as DVDShrink but it will be capable of taking already ripped VOB files from the hard drive and process those too. Also it will be a dvdauthor front end. The program is being written in Python and it uses wxPython for the GUI. It is my first Python program and my first GUI program, so it will take me a few months.
 
Old 09-14-2005, 10:43 AM   #86
CrashedAgain
Member
 
Registered: Jan 2004
Posts: 307

Rep: Reputation: 33
Quote:
Originally posted by Electro
Use double quotes if you come across files with spaces in Linux, so you do not need to use back slashes.
I just generated the path using the <tab> autocomplete feature in konsole (ls /mnt/hda1/Pr<tab> etc.) then just copy/pasted the path in front of the 'wine' command. The system generated the back slashes.
Quote:
You have to use "Windows" = win2k under version section in the WINE config file. If you do this, you do not have to waste space and time using vobcopy.
Wasn't sure if that would work OK since wine is reading an actual winme install but I tried it. It still doesn't work.
The 'open dvd drive' dialog box in dvdshrink comes up empty; I have tried to set up a symlink without success. Manually mounting the dvd on /dvd then attempting to 'open files' in dvdshrink results in an 'unable to open file' error.
It would be a little more convenient to not have to use vobcopy but it's not a big deal & it seems to be reliable.

Quote:
To do a DVD-9 to DVD-5 using Linux utilities (vobcopy, transcode, mjpegtools, dvdauthor, growisofs).......
It looks like this will rip only a single title instead of a full featured just-like-the-original-only-smaller dvd like dvdshrink makes.
I have tried dvd::rip, dvdrequant (see http://www.linuxquestions.org/questi...7&goto=newpost), DVDRipOMatic, lxdvdrip etc. which all use the same tools. All of these are only capable of ripping a single title at a time so you lose the menus & features.

Quote:
BTW, I am writting a program that does the same as DVDShrink....
Good luck with this. I wish I had the skills to write code. I have tried with QT developer, got past the 'hello world' stage but my basic understanding of C is to just too weak to be able to make anything useful.

Last edited by CrashedAgain; 09-14-2005 at 10:49 AM.
 
Old 09-14-2005, 06:28 PM   #87
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
QT takes too much resources and takes too long to load to just load a front end. I picked Python and wxPython because Python is a lot easier to program with out having to compile and it is a lot lighter on the resources. The wxPython module adds a sleek GUI feature to Python that uses wxWidgets. If I write the program correctly, it can run in Windows and Mac OS too.

I will try a few attempts to keep the DVD menu information in version 0.5.0 (I think), but the quality of the main movie will suffer during the process. I rather make a copy of only the main movie title instead of including the menu with the main movie. Version 0.1.0 will come out in Janruary of 2006 that will only do a copy of the main movie and the user can select audio tracks that he or she wants to include. Chapter information will be copied also but subtitles will not be included. By version 1.0.0 (I think) subtitles will be included with out having to process them, so a raw subtitle file can be multiplex in to the mpg file instead of the long way. By 0.4.0 (I think) and probably in much earlier versins, I will have the long way of processing subtitles for people that want subtitles for AVI, WMV, MOV files. Right now I am drawing the GUI on paper and learning Python.

Quote:
Wasn't sure if that would work OK since wine is reading an actual winme install but I tried it. It still doesn't work.
The 'open dvd drive' dialog box in dvdshrink comes up empty; I have tried to set up a symlink without success. Manually mounting the dvd on /dvd then attempting to 'open files' in dvdshrink results in an 'unable to open file' error.
It would be a little more convenient to not have to use vobcopy but it's not a big deal & it seems to be reliable.
I forgot, you have to include d:: in the ~/.wine/dosdevices that points to the raw DVD drive. If /dev/hdc is the raw device for the DVD drive, use /dev/hdc. The d: in ~/.wine/dosdevices should be pointing to the directory where the DVD drive will mount to. Try letting WINE or winetools to help you make a fake windows directory. Using Windows ME (POS OS) will make it worst and also corrupt your Windows setup.
 
Old 09-15-2005, 12:09 AM   #88
CrashedAgain
Member
 
Registered: Jan 2004
Posts: 307

Rep: Reputation: 33
In .wine/config I have:
Code:
[Drive E]
"Path" = "/cdrom"
"Type" = "cdrom"
"Label" = "/cdrom"
"Filesystem" = "win95"
"Device" = "/dev/scd0"

[Drive F]
"Path" = "/dvd"
"Type" = "cdrom"
"Label" = "/dvd"
"Filesystem" = "win95"
"Device" = "/dev/scd0"

[Drive G]
"Path" = "/cdaudio"
"Type" = "cdrom"
"Label" = "/cdaudio"
"Filesystem" = "win95"
"Device" = "/dev/scd0"

[Drive V]
"Path" = "/mnt/cdrom"
"Type" = "cdrom"
"Device" = "/dev/dvd"
"Filesystem" = "win95"
In dosdevices I have f:: g:: and h:: are links to block device /dev/scd0 with is the dvd drive. I also have added v:: which is a sublink to /mnt/cdrom which is where automount mounts the dvd drive but automount doesn't seem to work if using wine.
/mnt/cdrom exists only if automount detects a disk in the drive. But, manually mounting /dev/dvd (symlinked to /dev/scd0) on /dvd should (and does) mount the disk on /dvd (and it does, at least in linux, ie I can ls /dvd & it shows the files on the disk).
It would seem that wine/dvdshrink should therefore open drive F when asked to open disk but it doesn't. It will find the files by using open file & navigating to /dvd but then it says encrypted files & refuses to work with them.
It appears the open files method only works with unencrypted files, fortunately that it what vobcopy creates.
It has a fake windows directory; it contains folders but no files. I assumed perhaps wine populates it when in use.
When setting up wine it autodetected the windows drive and defaulted to it instead of fake windows since I have an existing windows system.
I haven't used wine much; there are a couple of programs I would like to be able to run in wine (notably Turbocad and PhotoRecord) but haven't been able to get wine to run them.
 
Old 09-15-2005, 03:09 PM   #89
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Code:
lrwxrwxrwx  1 XXXXX users 10 Jul 24 16:09 c: -> ../drive_c
lrwxrwxrwx  1 XXXXX users 10 Jul 24 16:09 d: -> /mnt/cdrom
lrwxrwxrwx  1 XXXXX users  8 Sep 14 14:06 d:: -> /dev/hdc
lrwxrwxrwx  1 XXXXX users  9 Sep 15 13:02 e: -> ../../tmp
lrwxrwxrwx  1 XXXXX users 11 Jul 24 16:09 h: -> ../..
lrwxrwxrwx  1 XXXXX users  9 Sep 15 13:02 t: -> ../../tmp
I do not use scsi emulation for my DVD/CD-ROM writabled drive which is /dev/hdc. The above is not a mis-copy or a mis-type. It is as is. I do not have to put the lines that you post in the wine config file. I did use winetools to create a fake Windows directory instead of using wine to create it. You have to mount it before DVD Shrink can access it. Also I am using kernel version 2.6.13. If you have kernel version 2.6.0 to 2.6.10, accessing crypted discs will not work.
 
Old 09-15-2005, 03:30 PM   #90
CrashedAgain
Member
 
Registered: Jan 2004
Posts: 307

Rep: Reputation: 33
Well that's at least some of the problem; I have kernel 2.6.8. Where is your code quote from? it doesn't look like a wine config file.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux aternative to Clone DVD, or DVD Shrink plosiv Linux - Software 53 04-07-2012 12:39 AM
DVD Decrypter (without SCSI emulation) + DVD Shrink mrbass Linux - Software 5 10-25-2005 01:20 PM
Daemon Processhas already been asked (and possibly answered). alaios Programming 1 09-19-2005 05:24 PM
this wine question was asked in '03 but never fully answered... breezewax Linux - Software 3 09-24-2004 08:33 AM
Very Frequently Asked/Answered Questions ppuru LQ Suggestions & Feedback 7 07-30-2004 01:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration