LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   DVD Shrink - Been asked, but never answered (https://www.linuxquestions.org/questions/linux-software-2/dvd-shrink-been-asked-but-never-answered-204612/)

knappster 08-03-2004 03:06 PM

I checked it out over lunch. I had an older version of wine, so I upgraded to 20040716, still no dice.

So I upgraded to the new version of DVD Shrink(3.2.0.15), still no dice.

I have 2 dvd-roms. I have one mounted as a cdrom in the config file, the other as a hard drive. If I try to open the dvd-rom mounted as a cdrom, I get the ASPI error. If I mount the other dvd-rom, start playing it in mplayer, then pause it, then open it in DVD Shrink, it previews and analyzes it, but it won't compress it at all.

Looks like I'm still stuck ripping to the hard drive first. What procedure do you go through to rip yours dlanor78? Did you used to get the ASPI error also?

BTW, I'm using Redhat 9, whatever the newest kernel available for it is. I would definitely like to get this working smoothly, so any input would be appreciated.

-Knappster

dlanor78 08-04-2004 01:35 AM

Unfortunately I didn't take notes when I did this, but to the best of my recollection the steps I posted earlier are all I did. I should say that I got the newest release from winehq and built it from source. This is pretty easy to do if you use the wine installer (something like ./tools/wine-installer [read the installation notes to make sure]). One other thing I think...I'm using Mandrake and it auto mounts the dvd when I insert it. If your distro doesn't do this just mount it the same way you would to watch the dvd (to something like /mnt/cdrom). I'll keep thinking about it and post back if I think of anything else. I'm thinking of formatting my hard drive to try out another distro (vidalinux) and if I do I'll pay closer attention to the steps I take to get dvdshritk working. Good luck and post back with results.

dlanor78 08-04-2004 01:51 AM

Quote:

Originally posted by knappster
I checked it out over lunch. I had an older version of wine, so I upgraded to 20040716, still no dice.

So I upgraded to the new version of DVD Shrink(3.2.0.15), still no dice.

I have 2 dvd-roms. I have one mounted as a cdrom in the config file, the other as a hard drive. If I try to open the dvd-rom mounted as a cdrom, I get the ASPI error. If I mount the other dvd-rom, start playing it in mplayer, then pause it, then open it in DVD Shrink, it previews and analyzes it, but it won't compress it at all.

Looks like I'm still stuck ripping to the hard drive first. What procedure do you go through to rip yours dlanor78? Did you used to get the ASPI error also?

BTW, I'm using Redhat 9, whatever the newest kernel available for it is. I would definitely like to get this working smoothly, so any input would be appreciated.

-Knappster


With the version of wine I'm using you shouldn't have to touch the config file at all. Here's what my config file looks like:

WINE REGISTRY Version 2
;; All keys relative to \\Machine\\Software\\Wine\\Wine\\Config

;; If you think it is necessary to show others your complete config for a
;; bug report, filter out empty lines and comments with
;; grep -v "^;" ~/.wine/config | grep '.'

[wine]
"Windows" = "c:\\windows"
"System" = "c:\\windows\\system"
"Temp" = "e:\\"
"Path" = "c:\\windows;c:\\windows\\system;e:\\;e:\\test;f:\\"
"Profile" = "c:\\windows\\Profiles\\Administrator"
"GraphicsDriver" = "x11drv"
;"ShowDirSymlinks" = "1"
;"ShowDotFiles" = "1"

# [wineconf]

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

; Be careful here, wrong DllOverrides settings have the potential
; to pretty much kill your setup.
[DllOverrides]
; some dlls you may want to change
"oleaut32" = "builtin, native"
"ole32" = "builtin, native"
"comdlg32" = "builtin, native"
"shell32" = "builtin, native"
"shfolder" = "builtin, native"
"shlwapi" = "builtin, native"
"shdocvw" = "builtin, native"
"advapi32" = "builtin, native"
"msvcrt" = "native, builtin"
"mciavi.drv" = "native, builtin"
"mcianim.drv" = "native, builtin"
"msi" = "native, builtin"
"d3drm" = "native, builtin"
"d3dxof" = "native, builtin"
"dpnhpast" = "native, builtin"
; you can specify applications too
; this one will apply for all notepad.exe
;"*notepad.exe" = "native, builtin"
; this one will apply only for a particular file
;"C:\\windows\\regedit.exe" = "native, builtin"
; default for all other dlls
"*" = "builtin, native"

[x11drv]
; Number of colors to allocate from the system palette
"AllocSystemColors" = "100"
; Use a private color map
"PrivateColorMap" = "N"
; Favor correctness over speed in some graphics operations
"PerfectGraphics" = "N"
; Color depth to use on multi-depth screens
;;"ScreenDepth" = "16"
; Allow the window manager to manage created windows
"Managed" = "Y"
; Use a desktop window of 640x480 for Wine
;"Desktop" = "640x480"
; Use XFree86 DGA extension if present
; (make sure /dev/mem is accessible by you !)
"UseDGA" = "Y"
; Use XVidMode extension if present
"UseXVidMode" = "Y"
; Use XRandR extension if present
"UseXRandR" = "Y"
; Use the take focus protocol
"UseTakeFocus" = "Y"
; Enable DirectX mouse grab
"DXGrab" = "N"
; Create the desktop window with a double-buffered visual
; (useful to play OpenGL games)
"DesktopDoubleBuffered" = "N"
; Run in synchronous mode (useful for debugging X11 problems)
;;"Synchronous" = "Y"
;
; Use the Render extension to render client side fonts (default "Y")
;;"ClientSideWithRender" = "Y"
; Fallback on X core requests to render client side fonts (default "Y")
;;"ClientSideWithCore" = "Y"
; Set both of the previous two to "N" in order to force X11 server side fonts
;
; Anti-alias fonts if using the Render extension (default "Y")
;;"ClientSideAntiAliasWithRender" = "Y"
; Anti-alias fonts if using core requests fallback (default "Y")
;;"ClientSideAntiAliasWithCore" = "Y"
;

[fonts]
;Read the Fonts topic in the Wine User Guide before adding aliases
;See a couple of examples for russian users below
"Resolution" = "96"
"Default" = "-adobe-helvetica-"
"DefaultFixed" = "fixed"
"DefaultSerif" = "-adobe-times-"
"DefaultSansSerif" = "-adobe-helvetica-"

;; default TrueType fonts with russian koi8-r encoding
;"Default" = "-monotype-arial-*-*-*--*-*-*-*-*-*-koi8-r"
;"DefaultFixed" = "-monotype-courier new-*-*-*--*-*-*-*-*-*-koi8-r"
;"DefaultSerif" = "-monotype-times new roman-*-*-*--*-*-*-*-*-*-koi8-r"
;"DefaultSansSerif" = "-monotype-arial-*-*-*--*-*-*-*-*-*-koi8-r"
;; default cyrillic bitmap X fonts
;"Default" = "-cronyx-helvetica-"
;"DefaultFixed" = "fixed"
;"DefaultSerif" = "-cronyx-times-"
;"DefaultSansSerif" = "-cronyx-helvetica-"

; the TrueType font dirs you want to make accessible to wine
[FontDirs]
;"dir1" = "/usr/X11R6/lib/X11/fonts/TrueType"
;"dir2" = "/usr/share/fonts/truetype"
;"dir3" = "/usr/X11R6/lib/X11/fonts/TT"
;"dir4" = "/usr/share/fonts/TT"

[ppdev]
;; key: io-base of the emulated port
;; value : parport-device{,timeout}
;; timeout for auto closing an open device ( not yet implemented)
;"378" = "/dev/parport0"
;"278" = "/dev/parport1"
;"3bc" = "/dev/parport2"

[spooler]
"FILE:" = "tmp.ps"
"LPT1:" = "|lpr"
"LPT2:" = "|gs -sDEVICE=bj200 -sOutputFile=/tmp/fred -q -"
"LPT3:" = "/dev/lp3"

[ports]
;"read" = "0x779,0x379,0x280-0x2a0"
;"write" = "0x779,0x379,0x280-0x2a0"

[Debug]
;"RelayExclude" = "RtlEnterCriticalSection;RtlLeaveCriticalSection"
;"RelayInclude" = "user32.CreateWindowA"
;"RelayFromExclude" = "user32;x11drv"
;"RelayFromInclude" = "sol.exe"
;"SnoopExclude" = "RtlEnterCriticalSection;RtlLeaveCriticalSection"
;"SpyExclude" = "WM_SIZE;WM_TIMER;"

[registry]
;These are all booleans. Y/y/T/t/1 are true, N/n/F/f/0 are false.
;Defaults are read all, write to Home
; Where to find the global registries
;"GlobalRegistryDir" = "/etc";
; Global registries (stored in /etc)
"LoadGlobalRegistryFiles" = "Y"
; Load Windows registries from the Windows directory
"LoadWindowsRegistryFiles" = "Y"
; Registry periodic save timeout in seconds
; "PeriodicSave" = "600"
; Save only modified keys
"SaveOnlyUpdatedKeys" = "Y"

[Clipboard]
"ClearAllSelections" = "0"
"PersistentSelection" = "1"
"UsePrimary" = "0"

; List of all directories directly contain .AFM files
[afmdirs]
"1" = "/usr/share/ghostscript/fonts"
"2" = "/usr/share/a2ps/afm"
"3" = "/usr/share/enscript"
"4" = "/usr/X11R6/lib/X11/fonts/Type1"

[WinMM]
; Uncomment the "Drivers" line matching your sound setting.

"Drivers" = "wineoss.drv" ; default for most common configurations
;"Drivers" = "winearts.drv" ; for KDE
;"Drivers" = "winealsa.drv" ; for ALSA users
;"Drivers" = "winejack.drv" ; for Jack sound server
;"Drivers" = "winenas.drv" ; for NAS sound system
;"Drivers" = "wineaudioio.drv" ; for Solaris machines
;"Drivers" = "" ; to disable sound
"WaveMapper" = "msacm.drv"
"MidiMapper" = "midimap.drv"

[dsound]
;; HEL only: Number of waveOut fragments ahead to mix in new buffers.
;"HELmargin" = "5"
;; HEL only: Number of waveOut fragments ahead to queue to driver.
;"HELqueue" = "5"
;; Max number of fragments to prebuffer
;"SndQueueMax" = "28"
;; Min number of fragments to prebuffer
;"SndQueueMin" = "12"
;; Forces emulation mode (using wave api)
;"HardwareAcceleration" = "Emulation"
;; Sets default playback device (0 - number of devices - 1)
;"DefaultPlayback" = "0" ; use first device (/dev/dsp)
;"DefaultPlayback" = "1" ; use second device (/dev/dsp1)
;"DefaultPlayback" = "2" ; use third device (/dev/dsp2)
;; Sets default capture device (0 - number of devices - 1)
;"DefaultCapture" = "0" ; use first device (/dev/dsp)
;"DefaultCapture" = "1" ; use second device (/dev/dsp1)
;"DefaultCapture" = "2" ; use third device (/dev/dsp2)

[Network]
;; Use the DNS (Unix) host name always as NetBIOS "ComputerName" (boolean, default "Y").
;; Set to N if you need a persistent NetBIOS ComputerName that possibly differs
;; from the Unix host name. You'll need to set ComputerName in
;; HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ComputerName\ComputerName, too.
;"UseDnsComputerName" = "N"

;; sample AppDefaults entries

; 3 InstallShield versions who like to put their full screen window in front,
; without any chance to switch to another X11 application.
; So just catch them in a desktop window.

[AppDefaults\\_INS0432._MP\\x11drv]
"Desktop" = "640x480"

[AppDefaults\\_INS0466._MP\\x11drv]
"Desktop" = "640x480"

[AppDefaults\\_INS0576._MP\\x11drv]
"Desktop" = "640x480"

[AppDefaults\\_INS5176._MP\\x11drv]
"Desktop" = "640x480"

[AppDefaults\\_INS5576._MP\\x11drv]
"Desktop" = "800x600"

;[AppDefaults\\iexplore.exe\\DllOverrides]
;"shlwapi" = "native"
;"rpcrt4" = "native"
;"ole32" = "native"
;"shdocvw" = "native"
;"wininet" = "native"
;"shfolder" = "native"
;"shell32" = "native"
;"shell" = "native"
;"comctl32" = "native"
;
;[AppDefaults\\setup.exe\\x11drv]
;"Desktop" = "800x600"
;
;[AppDefaults\\sol.exe\\Version]
;"Windows" = "nt40"
;
;; Some games (Quake 2, UT) refuse to accept emulated dsound devices.
;; You can add an AppDefault entry like this for such cases.
;[AppDefaults\\pickygame.exe\\dsound]
;"EmulDriver" = "N"

# [/wineconf]


This version of wine doesn't use the config file for it's devices. It uses the sym links in your /home/usr/.wine/dosdevices directory. So, try this. If you installed wine from an rpm or something like that, uninstall it (rpm -e wine I think it is). They even say in the docs that you should uninstall any previous versions first. Then get the source code from winehq and build it from source. Then refer to my original post. At first I did get the aspi error too, until I did this method I described in my first post. Sorry for any typos you find. I've been switching between qwerty and dvorak layouts and it's really screwing with my accuracy.

knappster 08-04-2004 10:08 AM

I was working on building the source before work this morning. The configuration went flawlessly, so did the make(even though it probably took longer than 20 mins). When I got to the make install, bad things happened. Actually, just one bad thing.

It gave me some error about libraries, and said to put /usr/local/lib into some /etc/*.*.conf file something or other and then run /sbin/ldconfig (i'm not sure on the filename). So I did that, tried make install again, at the same spot(I think) it says that libwine.so.1 is not a symbolic link.

Next I go into /usr/local/lib and sure enough, libwine.so.1 is not a symbolic link, so I renamed it libwine.so.1.backup and did the "ln -s libwine.so.1.backup libwine.so.1"

I ran make install again and it gave me the same error! So I went back into /usr/local/lib and it was transformed back into a normal file, so I tried again to make sure I wasn't crazy, and the same thing.

Any idea what is going on? Could it need an updated version or something? I'm still pretty much a linux n00b giving the caveman treatment. I didn't have time to fool around with it any more before work, and I won't until tonight, but any advice would be appreciated. Thanks.

-Knappster

dlanor78 08-04-2004 11:30 PM

I'm not really sure what that error is all about. I'm also kinda a n00b at all this myself. Here's something you can try though. I recommend using the command "./tools/wineinstall" (as a normal user...it will ask for your root password when it needs it) over the ./configure, make, make install method. You very well may get the same error this way, and if so I'm not sure what to tell you. All I can say for sure is that it worked for me on Mandrake 10. What I'm hoping for is that the install script will take care of the libwine.so.1 problem for you. I'll keep my fingers crossed for you.

mhearn 08-05-2004 06:18 AM

What is this ASPI error you guys are talking about?

knappster 08-06-2004 10:01 AM

I ended up using the install script and the installation of wine worked. When I tried DVD shrink the ASPI error was still there.

mhearn, the ASPI error is "Failed to initialize ASPI device" which happens for a lot of people who try to load a disk on DVDshrink(as well as other programs).

In any case, out of the blue, my redhat installation started to hang when loading the xwindows, so I removed it and installed debian with the 2.6 kernel, dual booting with windows. Windows wouldn't boot, so I spent a long ass time trying to figure out what I did wrong.

Turns out I did nothing wrong, but instead kernel 2.6 uses an incorrect geometry to partition the hard drive. Some crazy sfdisk command fixed that. Before that I tried an older version of wine in debian and it got the same aspi error. I'm on a fresh installation right now, so I am going to try to get the source and run the install script. There won't be any previous installations of wine to conflict, so if this doesn't work, then ASPI is just the bane of my existence. I will report back after I have given it a try.

-Knappster

dlanor78 08-07-2004 09:49 AM

Important update!!!
 
Okay I'm an idiot....I totally forgot a crucial step in getting this to work. In another post I stated that you shouldn't have to touch your wine config file, but you do. In the part where it says

[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"

you need to remove the ; from the "Windows" = line and change win98 to winxp (others above win98 may work, but haven't tried them). After that, and after my other instructions, you should all be in business. I reinstalled mandrake from scratch and built wine from newest source. Also got newest version of dvdshrink. All working now that I made that wine config change. Also, while you're at it you could also add your new dosdevices to the config file. Not mandatory if using the command line, but if you wanna use the open disc button in dvd shrink you'll need to do this...

Where is says:

"Path" = "c:\\windows;c:\\windows\\system;e:\\;e:\\test;f:\\;

just add whatever you called your new dosdevice using the same format they're already using. Make sure to seperate all new devices with a ; and don't forget the ://

knappster 08-08-2004 03:18 AM

I made the change to the Windows version that you suggested and it worked! Amazing. I noticed that it seemed a lot more buggy if I tried to check many options after the disk had been analyzed. Oh well, it saves a ton of time from ripping to the hard drive first.

The next thing I have been trying to accomplish is opengl in linux so I can run games(in wine or ported). I was trying out Jedi Outcast and no opengl is installed. I have spent two or three days straight trying different methods of installing fglrx, but everything has resulted in complete, utter failure. So my only two remaining options are to keep at it or give up and use Windows for games. I think I'm going to go with the latter for now.

Thanks for the help dlanor, hopefully other people with this problem stumble across this solution a lot faster than I did.

-Knappster

leckie 08-09-2004 07:27 AM

Hi, well here is the technique i use to copy dvd's.



First i rip the vob files to disk using vobcopy, i found it a freshmeat.(use "vobcopy -m" to copy hole dvd)
Then i remove all other lang and sound with a program called vobstripper, also found at freshmeat.
This quite often reduces the size of the image bellow the 4.5gig mark, sufficient to copy and with no data loss.


But there are the other movies which do not fit. So some data has to be shrunk to reduce it's size.

So i use the tool "vamps" to finally shrink the size of the project using the -E param for shrinking factor.eg
"vamps -E 1.25 -a 1 < input.vob > output.vob" will shrink the project to 80%, and keep first audio track(-a).

At this point the the image should be <4.5gig so we can create an image.

I simply then use the unix command mkisofs to convert the data to an iso, and finally cdrecord to burn the image.

Easy Ehh

I used bash to glue most of this together(except for cdrecord) so all i do is insert a dvd and it created a dvd iso
allowing me to burn to dvd at a latter date. Time is very quick, and usually high quality, though vamps does reduce quality rather bad after 60%.
<edit>ow and vamps is hard to find so here it is ftp://ftp.heise.de/pub/ct/listings/0401-094.tgz<edit>

iainvt 08-10-2004 11:24 AM

Dvd back up help needed
 
xxxx@linux:~> dvdbackup -M -i /media/dvdrecorder/ -o /home/xxxx/the_cube
libdvdread: Using libdvdcss version 1.2.8 for DVD access
libdvdread: Attempting to use device /dev/hdg mounted on /media/dvdrecorder for CSS authentication
Can't read title from DVD device /media/dvdrecorder/
You must provide a title name when you read your DVD-Video structure direct from the HD


the top line is command, all seems fine then it says it cannot read the title, it happens on all dvds I try, anyone got any ideas?

cadj 08-30-2004 07:50 AM

Good thread
 
finally i found something that half works!

i have managed to get dvdshrink up and reading the dvd (using wine dvdshrink.exe e: while mplayer is running)
the dvd analyzes fine, however i am unable to compress any video. on the right screen is says "video cannot be compressed" or something like that.

any ideas about this?

mhearn 08-30-2004 08:08 AM

try using native quartz.dll

cadj 08-30-2004 10:27 PM

like this?
 
well im using the vobcopy - vobstripper - mkisofs method now and its working well, tho i need to get a hold of vamps to resize those images > 4.5gb


cadj 08-31-2004 04:23 AM

leckie, ive used your method as best i can, but i was wondering.

after i have vobcopy'd the dvd contents, how can i vobstripper all the *.vob files at once, and the same with vamps.

atm im doing them one at a time and it takes ages,

do you think you could give us some more detail. im SOOO close :)

thanks


All times are GMT -5. The time now is 09:39 AM.