DISCUSSION: DVD9 to DVD5 guide
This thread is to discuss the article titled: DVD9 to DVD5 guide
|
Its funny how things happen synchronically... I just managed to get a dvd writer, and got a bit frustrated to know there aren't dvd9's on the market yet. At least here in Rio, the vendors told me they are still expensive and not cost-effective.
So, your document fits like a glove. I can only thank you for putting this to public! My observations are: 1. In debian sarge, you can easily install the needed programs by adding this source to your sources.list, or ftping this link, as you wish: ftp://ftp.nerim.net/debian-marillat/...n/binary-i386/ This is a non-official debian repository, with lots of dvd and video related debs. Very good. 2. Its kind to warn people that this process takes a lot of disk space. Be prepared to allocate ~15-20GB, depending on the dvd. Some old filesystems (fat) won't support files bigger than 4GB, and can't be used to rip dvd's. 3. Its a good idea to have a spare partition to do this, as you are gonna be writing and erasing very big files. 4. mplex is a bit intolerant about inputs. Some of my trials failed due to misripped files. Also, apparently, I can't remove the first vob of the chain and encode the rest, mplex complains of missing things and won't finish. To be precise, it complained of files ripped using dvdbackup. That's it. Thanks again! |
Alright, i tried out the pre-Alpha script from the other thread, here is what i thought:
1) Colors, colors, colors. Wow, very neat. :) Keep em there. Only problem i see is that if someone has a different background color for the console, some colors might appear weird to them. My console background is black, and they look good to me. Maybe have it change the background of the console, dunno how one would do that since people use so many different consoles. 2) /dev/dvd didn't work for me and i had to change all the /dev/dvd's to /dev/hdc. 3) dvrequant is spelled wrong when script is launched (or is that one purpose??): DeeVRequant v0.1a 3) Last but not least, it appears the script didn't work for me. It starts up, then dies a few seconds later :( $ bash dvrequant.sh ==================== * DeeVRequant v0.1a * ==================== Requirement: mplayer / libdvdcss / transcode / mjpegtools / dvdauhtor We will create a work folder called dv_output in the path of your choice. Make sure you have at least 12 gigabytes of space available. Enter the path to create the directory (ex. /home/bobby/video) >/tmp libdvdread: Using libdvdcss version 1.2.8 for DVD access [tcprobe] DVD image/device libdvdread: Using libdvdcss version 1.2.8 for DVD access (dvd_reader.c) mpeg2 ntsc 4:3 U0 720x480 video (dvd_reader.c) ac3 en drc 48kHz 6Ch (dvd_reader.c) ac3 en drc 48kHz 6Ch (dvd_reader.c) ac3 en drc 48kHz 6Ch (dvd_reader.c) ac3 en drc 48kHz 6Ch (dvd_reader.c) ac3 en drc 48kHz 6Ch (dvd_reader.c) ac3 en drc 48kHz 6Ch (dvd_reader.c) ac3 en drc 48kHz 6Ch (dvd_reader.c) ac3 en drc 48kHz 6Ch (dvd_reader.c) -- Unspecified Subs -- (dvd_reader.c) -- Unspecified Subs -- (dvd_reader.c) -- Unspecified Subs -- (dvd_reader.c) -- Unspecified Subs -- (dvd_reader.c) -- Unspecified Subs -- (dvd_reader.c) -- Unspecified Subs -- (dvd_reader.c) -- Unspecified Subs -- (dvd_reader.c) -- Unspecified Subs -- (dvd_reader.c) -- Unspecified Subs -- (dvd_reader.c) -- Unspecified Subs -- (dvd_reader.c) -- Unspecified Subs -- (dvd_reader.c) -- Unspecified Subs -- (dvd_reader.c) -- Unspecified Subs -- (dvd_reader.c) -- Unspecified Subs -- (dvd_reader.c) -- Unspecified Subs -- (dvd_reader.c) -- Unspecified Subs -- (dvd_reader.c) -- Unspecified Subs -- (dvd_reader.c) -- Unspecified Subs -- (dvd_reader.c) -- Unspecified Subs -- (dvd_reader.c) -- Unspecified Subs -- (dvd_reader.c) -- Unspecified Subs -- (dvd_reader.c) -- Unspecified Subs -- (dvd_reader.c) -- Unspecified Subs -- (dvd_reader.c) -- Unspecified Subs -- (dvd_reader.c) -- Unspecified Subs -- (dvd_reader.c) -- Unspecified Subs -- (dvd_reader.c) -- Unspecified Subs -- (dvd_reader.c) -- Unspecified Subs -- (dvd_reader.c) -- Unspecified Subs -- (dvd_reader.c) -- Unspecified Subs -- (dvd_reader.c) -- Unspecified Subs -- (dvd_reader.c) -- Unspecified Subs -- (dvd_reader.c) DVD title 1/23: 1 chapter(s), 1 angle(s), title set 1 (dvd_reader.c) title playback time: 00:00:05.00 6 sec (dvd_reader.c) [Chapter 01] 00:00:00.000 , block from 0 to 97 [tcprobe] summary for /dev/hdc, (*) = not default, 0 = not detected import frame size: -g 720x480 [720x576] (*) aspect ratio: 4:3 (*) frame rate: -f 23.976 [25.000] frc=1 (*) audio track: -a 0 [0] -e 48000,16,2 [48000,16,2] -n 0x2000 [0x2000] audio track: -a 1 [0] -e 48000,16,2 [48000,16,2] -n 0x2000 [0x2000] audio track: -a 2 [0] -e 48000,16,2 [48000,16,2] -n 0x2000 [0x2000] audio track: -a 3 [0] -e 48000,16,2 [48000,16,2] -n 0x2000 [0x2000] audio track: -a 4 [0] -e 48000,16,2 [48000,16,2] -n 0x2000 [0x2000] audio track: -a 5 [0] -e 48000,16,2 [48000,16,2] -n 0x2000 [0x2000] audio track: -a 6 [0] -e 48000,16,2 [48000,16,2] -n 0x2000 [0x2000] audio track: -a 7 [0] -e 48000,16,2 [48000,16,2] -n 0x2000 [0x2000] [tcprobe] V: 144 frames, 6 sec @ 23.976 fps [tcprobe] A: 0.09 MB @ 128 kbps [tcprobe] CD: 650 MB | V: 649.9 MB @ 908634.8 kbps [tcprobe] CD: 700 MB | V: 699.9 MB @ 978539.9 kbps [tcprobe] CD: 1300 MB | V: 1299.9 MB @ 1817400.7 kbps [tcprobe] CD: 1400 MB | V: 1399.9 MB @ 1957210.8 kbps MPlayer 1.0pre5-3.3.5 (C) 2000-2004 MPlayer Team CPU: Advanced Micro Devices Athlon Thunderbird 998.6 MHz (Family: 6, Stepping: 2) Detected cache-line size is 64 bytes CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0 Compiled for Debian. Reading config file /etc/mplayer/mplayer.conf Reading config file /home/sk545/.mplayer/config Reading /home/sk545/.mplayer/codecs.conf: Can't open '/home/sk545/.mplayer/codecs.conf': No such file or directory Reading /etc/mplayer/codecs.conf: 73 audio & 180 video codecs Font /home/sk545/.mplayer/font/font.desc loaded successfully! (206 chars) Failed to open /dev/rtc: Permission denied (it should be readable by the user.) Using usleep() timing Can't open input config file /home/sk545/.mplayer/input.conf: No such file or directory Input config file /etc/mplayer/input.conf parsed: 53 binds Opening joystick device /dev/input/js0 Can't open joystick device /dev/input/js0 : Permission denied Can't init input joystick Setting up LIRC support... mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing dvd://1. libdvdread: Using libdvdcss version 1.2.8 for DVD access Reading disc structure, please wait... There are 23 titles on this DVD. There are 1 chapters in this DVD title. There are 1 angles in this DVD title. libdvdread: Attempting to retrieve all CSS keys libdvdread: This can take a _long_ time, please be patient libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x00000189 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x000001f2 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00008c95 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x00008d39 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x00008d72 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_03_0.VOB at 0x0029e67b libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x0029e6b4 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_04_0.VOB at 0x002b3186 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_04_1.VOB at 0x002b31bf libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_05_0.VOB at 0x002ccd8f libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_05_1.VOB at 0x002ccdc8 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_06_0.VOB at 0x002ee0e5 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_06_1.VOB at 0x002ee11e libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_07_0.VOB at 0x00304a0f libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_07_1.VOB at 0x00304a48 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_08_0.VOB at 0x00312246 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_08_1.VOB at 0x0031227f libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_09_0.VOB at 0x00328436 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_09_1.VOB at 0x0032846f libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_10_0.VOB at 0x0033e538 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_10_1.VOB at 0x0033e571 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_11_0.VOB at 0x00349329 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_11_1.VOB at 0x00349362 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_12_0.VOB at 0x0036d5ec libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_12_1.VOB at 0x0036d625 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_13_0.VOB at 0x00387e4b libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_13_1.VOB at 0x00387e84 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_14_0.VOB at 0x00391221 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_14_1.VOB at 0x0039125a libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_15_0.VOB at 0x00396ec7 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_15_1.VOB at 0x00396f00 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_16_0.VOB at 0x003a02c1 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_16_1.VOB at 0x003a02fa libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_17_0.VOB at 0x003a4619 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_17_1.VOB at 0x003a4652 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_18_0.VOB at 0x003a5ed1 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_18_1.VOB at 0x003a5f0a libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_19_0.VOB at 0x003afb2e libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_19_1.VOB at 0x003afb67 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_20_0.VOB at 0x003b9790 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_20_1.VOB at 0x003b97c9 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_21_0.VOB at 0x003bc056 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_21_1.VOB at 0x003bc08f libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_22_0.VOB at 0x003bde57 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_22_1.VOB at 0x003bde90 libdvdread: Elapsed time 0 libdvdread: Found 22 VTS's libdvdread: Elapsed time 0 DVD successfully opened. Core dumped ;) Exiting... (End of file) ====================================== You can eject the DVD now if you want. ====================================== tc_memcpy: using mmxext for memcpy [tcextract] (pid=4371) MPEG program stream (PS) [tcextract] (pid=4371) starting, doing mpeg2 [tcextract] (pid=4371) exit [tcextract] exit code (0) tc_memcpy: using mmxext for memcpy [tcextract] (pid=4372) MPEG program stream (PS) [tcextract] (pid=4372) starting, doing ac3 [tcextract] (pid=4372) exit [tcextract] exit code (0) =============================== Calculating best requant factor. =============================== dvrequant.sh: line 108: 4700000000-0 lang_en: syntax error in expression (error token is "lang_en") (standard_in) 1: parse error (standard_in) 1: parse error ====================================== Requant factor for this movie is: ====================================== ========================================= Requantizing (shrinking) the video stream. ========================================= tcrequant: option requires an argument -- f tcrequant (transcode v0.6.14pre1) (C) 2003 Antoine Missout Usage: tcrequant [options] -i name input file name [stdin] -o file output file name [stdout] -d mode verbosity mode -f factor requantize factor [1.5] -b N remove byte stuffing [1] -v print version ====================================== Multiplexing audio and video stream(s). ====================================== INFO: [mplex] mplex version 1.6.2 (2.2.3 $Date: 2004/01/13 20:45:26 $) **ERROR: [mplex] Unable to open file shrinked.m2v for reading. =============================================================================== Done! You can use any DVD authoring program to create a DVD out of -final.mpg- This is what i had in /tmp: /tmp/dv_output$ ls -l -h total 352K -rw-r--r-- 1 sk545 sk545 0 2004-12-08 15:52 lang_en.ac3 -rw-r--r-- 1 sk545 sk545 174K 2004-12-08 15:52 output.m2v -rw-r--r-- 1 sk545 sk545 176K 2004-12-08 15:52 output.mpg If i play output.mpg, i just get the FBI warning screen. |
Humm
It did not rip the DVD main title. What DVD is it? and from what country if you don't mind. Since it did not rip anything more than a few bytes that is why everything crashed afterwards. I don't know if it makes a big difference, but could you run the script as bash dvdrequant without the .sh extension? I will do more test with different movies, I am in using NTSC format where I live. Is it PAL where you live? I will look into getting a fixed background color and I also fixed the typo in the title of the script. Thanks for your feedback. Reading the output I can see |
That one is from a dvd called "Muhammad: Legacy of a Prophet", which is NTSC. So, it has other languages in it for sure. However, i tried another dvd that i found lying around "Clockwork Genes" (all english) which also did not work, it just shows the same behaviour as above one did. I am in the US, so all i have is NTSC. Removing the ".sh" extension doesn't help either. :(
I am also wondering how is it able to bypass dvd copy protections...is that something that depends on my dvd drive? Right now i am using NEC-2500A burner with the latest firmware (1.07). Or do dvd's not use copy protections like safedisc, etc, like the ones used on games? |
Aaaaaaaaaaaaahhhhh, now I get it. This is the source of the problem.
Yes DVD's are encrypted. You are missing a very crucial dependency. It is called Libdvdcss. libdvdcss is a library used to unlock the css encryption protocol on commercial DVD's. For the script to work you need the following packages: mplayer, libdvdcss , transcode , mjpegtools and dvdauhtor. That is why you can get past the FBI warning. My scipt does not check for dependencies yet. You can find libdvdcss by searching RPM Find website: http://rpm.pbone.net/ or by googling around. AT RPM find there will be a packaged file for your distro. |
Hrm, i got these installed already:
libdvdcss2 1.2.8-0.0 Simple foundation for reading DVDs - runtime libdvdread3 0.9.4-5 Simple foundation for reading DVDs libdvdcss2 gives me these files: # dpkg -L libdvdcss2 /. /usr /usr/share /usr/share/bug /usr/share/bug/libdvdcss2 /usr/share/bug/libdvdcss2/control /usr/share/doc /usr/share/doc/libdvdcss2 /usr/share/doc/libdvdcss2/README /usr/share/doc/libdvdcss2/copyright /usr/share/doc/libdvdcss2/changelog.gz /usr/share/doc/libdvdcss2/NEWS.gz /usr/share/doc/libdvdcss2/changelog.Debian.gz /usr/lib /usr/lib/libdvdcss.so.2.0.7 /usr/lib/libdvdcss.so.2 Is that the correct libdvdcss or are there other kinds too? Right now i am blaming my dvd-rw drive, but the funny thing is that i am able to make a iso of the same dvd with the 'readcd' command. Why would that work? /Edit: I do notice these comments in the debian README, not sure if they help: Code:
Running lidvdcss I looked through the script, and found the following: Code:
# Rip the DVD title 1 with audio0, usually en (english) Whats throwing me off there is that, how does it know which session to rip? Is it ripping the longest session on the dvd or just the first session? Not trying to be a smartass, but i was thinking maybe its just ripping the very first session and ignoring the rest.....hence i just get the FBI warning. |
Right you are.
I need to look at that mplayer command closely. It is suppose to look for tiltle 1, most of the time the longest one and that gives me no problem on my system but it may be a different thing on other distros or hardware. In the mplayer command Don't be to quick to blame your DVD-RW. It's probably a bug in my script. There are many other ways to rip a DVD title. I could use another method if I want but for now I think I will Any software must be made to work on as much platforms as it can. Scipt included. As for your version of libdvdcss it is perfect. 1.28 is the current version and it'S the one I have also. A revised version soon, just need to run a test. |
Here I modified a few things in my script:
1) Fixed typo in title 2) Added choice of DVD device name 3) Added choice of titleset to rip 4)Fixed some colors Here is the new code: Code:
#! /bin/bash |
Just did a test run with the movie Black Hawk Down and it ran flawlessly.
Here is the output: Quote:
|
Alright, the good news is that it works. The bad news is that it doesn't work as its supposed to (bug?). So i put in the "Muhammad" dvd and ran the script with the following output ( I have put in bold as to what i thought went wrong):
bash dvrequant ==================== * DVRequant v0.11a * ==================== Requirement: mplayer / libdvdcss / transcode / mjpegtools / dvdauhtor We will create a work folder called dv_output in the path of your choice. Make sure you have at least 12 gigabytes of space available. Enter the path to create the directory (ex. /home/bobby/video) >/tmp Enter name of your DVD device (ex. /dev/dvd or /dev/hdc) >/dev/hdc Selected /dev/hdc (ioaux.c) invalid filename or host "/dev/dvd" ^^ I don't see that error on your "BHD" output. Harmless?? From tcprobe output above, what title set do you want to rip? (ex. 1, 2 or 3) >2 Selected track 2 ^^ Shouldn't that come up later? MPlayer 1.0pre5-3.3.5 (C) 2000-2004 MPlayer Team CPU: Advanced Micro Devices Athlon Thunderbird 1115 MHz (Family: 6, Stepping: 2)Detected cache-line size is 64 bytes CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0 Compiled for Debian. Reading config file /etc/mplayer/mplayer.conf Reading config file /home/sk545/.mplayer/config Reading /home/sk545/.mplayer/codecs.conf: Can't open '/home/sk545/.mplayer/codecs.conf': No such file or directory Reading /etc/mplayer/codecs.conf: 73 audio & 180 video codecs Font /home/sk545/.mplayer/font/font.desc loaded successfully! (206 chars) Failed to open /dev/rtc: Permission denied (it should be readable by the user.) Using usleep() timing Can't open input config file /home/sk545/.mplayer/input.conf: No such file or directory Input config file /etc/mplayer/input.conf parsed: 53 binds Opening joystick device /dev/input/js0 Can't open joystick device /dev/input/js0 : Permission denied Can't init input joystick Setting up LIRC support... mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing dvd://2. libdvdread: Using libdvdcss version 1.2.8 for DVD access Reading disc structure, please wait... There are 23 titles on this DVD. There are 20 chapters in this DVD title. There are 1 angles in this DVD title. ^^ tcprobe should have asked for which session just before this libdvdread: Attempting to retrieve all CSS keys libdvdread: This can take a _long_ time, please be patient libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x00000189 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x000001f2 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00008c95 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x00008d39 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x00008d72 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_03_0.VOB at 0x0029e67b libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x0029e6b4 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_04_0.VOB at 0x002b3186 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_04_1.VOB at 0x002b31bf libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_05_0.VOB at 0x002ccd8f libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_05_1.VOB at 0x002ccdc8 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_06_0.VOB at 0x002ee0e5 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_06_1.VOB at 0x002ee11e libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_07_0.VOB at 0x00304a0f libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_07_1.VOB at 0x00304a48 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_08_0.VOB at 0x00312246 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_08_1.VOB at 0x0031227f libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_09_0.VOB at 0x00328436 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_09_1.VOB at 0x0032846f libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_10_0.VOB at 0x0033e538 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_10_1.VOB at 0x0033e571 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_11_0.VOB at 0x00349329 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_11_1.VOB at 0x00349362 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_12_0.VOB at 0x0036d5ec libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_12_1.VOB at 0x0036d625 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_13_0.VOB at 0x00387e4b libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_13_1.VOB at 0x00387e84 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_14_0.VOB at 0x00391221 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_14_1.VOB at 0x0039125a libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_15_0.VOB at 0x00396ec7 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_15_1.VOB at 0x00396f00 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_16_0.VOB at 0x003a02c1 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_16_1.VOB at 0x003a02fa libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_17_0.VOB at 0x003a4619 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_17_1.VOB at 0x003a4652 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_18_0.VOB at 0x003a5ed1 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_18_1.VOB at 0x003a5f0a libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_19_0.VOB at 0x003afb2e libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_19_1.VOB at 0x003afb67 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_20_0.VOB at 0x003b9790 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_20_1.VOB at 0x003b97c9 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_21_0.VOB at 0x003bc056 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_21_1.VOB at 0x003bc08f libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_22_0.VOB at 0x003bde57 libdvdread: Elapsed time 0 libdvdread: Get key for /VIDEO_TS/VTS_22_1.VOB at 0x003bde90 libdvdread: Elapsed time 0 libdvdread: Found 22 VTS's libdvdread: Elapsed time 0 DVD successfully opened. Core dumped ;) ^^ That again looks like is out of place if compared to "BHD" Exiting... (End of file) ====================================== You can eject the DVD now if you want. ====================================== tc_memcpy: using mmxext for memcpy [tcextract] (pid=3363) MPEG program stream (PS) [tcextract] (pid=3363) starting, doing mpeg2 [tcextract] (pid=3363) exit [tcextract] exit code (0) tc_memcpy: using mmxext for memcpy [tcextract] (pid=3441) MPEG program stream (PS) [tcextract] (pid=3441) starting, doing ac3 [tcextract] (pid=3441) exit [tcextract] exit code (0) =============================== Calculating best requant factor. =============================== ====================================== Requant factor for this movie is: 1.20 ====================================== ========================================= Requantizing (shrinking) the video stream. ========================================= [tcrequant] MPEG2 Requantiser by Makira. [tcrequant] Using 1.200000 as factor. ====================================== Multiplexing audio and video stream(s). ====================================== INFO: [mplex] mplex version 1.6.2 (2.2.3 $Date: 2004/01/13 20:45:26 $) INFO: [mplex] File shrinked.m2v looks like an MPEG Video stream. INFO: [mplex] File lang_en.ac3 looks like an AC3 Audio stream. INFO: [mplex] Video stream 0: profile 8 selected - ignoring non-standard options! INFO: [mplex] Found 1 audio streams and 1 video streams INFO: [mplex] Selecting dvdauthor DVD output profile INFO: [mplex] Multiplexing video program stream! INFO: [mplex] Scanning for header info: Video stream e0 (shrinked.m2v) INFO: [mplex] VIDEO STREAM: e0 INFO: [mplex] Frame width : 720 INFO: [mplex] Frame height : 480 INFO: [mplex] Aspect ratio : 16:9 display INFO: [mplex] Picture rate : 29.970 frames/sec INFO: [mplex] Bit rate : 6000000 bits/sec INFO: [mplex] Vbv buffer size : 229376 bytes INFO: [mplex] CSPF : 0 INFO: [mplex] Scanning for header info: AC3 Audio stream 00 (lang_en.ac3) INFO: [mplex] AC3 frame size = 768 INFO: [mplex] AC3 AUDIO STREAM: INFO: [mplex] Bit rate : 24576 bytes/sec (192 kbit/sec) INFO: [mplex] Frequency : 48000 Hz INFO: [mplex] SYSTEMS/PROGRAM stream: INFO: [mplex] rough-guess multiplexed stream data rate : 6324848 INFO: [mplex] target data-rate specified : 10080000 INFO: [mplex] Setting specified specified data rate: 10080000 INFO: [mplex] Run-in Sectors = 89 Video delay = 13019 Audio delay = 16022 INFO: [mplex] New sequence commences... INFO: [mplex] Video e0: buf= 237568 frame=000000 sector=00000000 INFO: [mplex] Audio bd: buf= 16384 frame=000000 sector=00000000 INFO: [mplex] STREAM bd completed @ frame 218994. INFO: [mplex] Scanned to end AU 210190 INFO: [mplex] STREAM e0 completed @ frame 210190. INFO: [mplex] Multiplex completion at SCR=631128356. INFO: [mplex] Video e0: buf= 19079 frame=210190 sector=02173835 INFO: [mplex] Audio bd: buf= 16384 frame=218994 sector=00083427 INFO: [mplex] VIDEO_STATISTICS: e0 INFO: [mplex] Video Stream length: 4380816965 bytes INFO: [mplex] Sequence headers: 21023 INFO: [mplex] Sequence ends : 1 INFO: [mplex] No. Pictures : 210190 INFO: [mplex] No. Groups : 21023 INFO: [mplex] No. I Frames : 21023 avg. size 88049 bytes INFO: [mplex] No. P Frames : 63060 avg. size 30139 bytes INFO: [mplex] No. B Frames : 126108 avg. size 4989 bytes INFO: [mplex] Average bit-rate : 4997200 bits/sec INFO: [mplex] Peak bit-rate : 8632800 bits/sec INFO: [mplex] BUFFERING min 15 Buf max 192087 INFO: [mplex] AUDIO_STATISTICS: bd INFO: [mplex] Audio stream length 168188160 bytes. INFO: [mplex] Frames : 4130106505 INFO: [mplex] BUFFERING min 67 Buf max 5347 INFO: [mplex] MUX STATUS: no under-runs detected. =============================================================================== Done! You can use any DVD authoring program to create a DVD out of -final.mpg- =============================================================================== The results by size in the directory: /tmp/dv_output$ ls -l -h total 19G -rw-r--r-- 1 sk545 sk545 4.4G 2004-12-10 12:52 final.mpg -rw-r--r-- 1 sk545 sk545 161M 2004-12-10 12:24 lang_en.ac3 -rw-r--r-- 1 sk545 sk545 4.9G 2004-12-10 12:21 output.m2v -rw-r--r-- 1 sk545 sk545 5.2G 2004-12-10 12:14 output.mpg -rw-r--r-- 1 sk545 sk545 4.1G 2004-12-10 12:40 shrinked.m2v So, did it work? Absolutely. I think tcprobe is doing something funky by not showing its prompt at the correct time/place. The only things that differed from me and you were: 1) The dvd's obviously 2) I used /dev/hdc instead of /dev/dvd 3) I selected track 2, instead of track 1. I will try to make a symlink from /dev/hdc to /dev/dvd and see if that fixes tcprobe. However, i am certainly impressed. Keep it up. :) Other things: 1) The colors [blue, green] are still blinding on a white background. lol. 2) Can't kill the console after its done. Ctrl-C didn't work, so i had to just use the 'X' button on the console's gui. I suppose if the script is invoked without 'bash' in the beginning, it would be killable. 3) tcprobe's output is confusing. Its kinda hard to know what to select (1, 2, 3, etc) from the info given. 4) It would be nice to have a time estimate, but that should be the last thing on the 'TODO' list. I would rather have this polished up first. I suppose the next thing would be to have it author the mpg into a dvd via dvdauthor. |
1)
Quote:
2) Quote:
3) Quote:
4) Quote:
As for the color problem, this will sound stupid but I am still looking for the command to do this properly. I would like the background to be set as black when the script runs. Here is the new code with the new bugfixes: Code:
#! /bin/bash |
Tried the above new script, works much cleaner. :)
However, its not perfect ofcourse, so here is what i noted: 1) What is the default choice if i hit 'Enter' at any of those prompts? It would be nice to say what hitting Enter would do. 2) The script still isn't exiting properly, and hangs after completed. Sometimes doing Ctrl-C serveral times gets me back to the command line, but sometimes that doesn't work either. 3) tcprobe...it looks like its still just seeing the first session of my dvd: Code:
libdvdread: Using libdvdcss version 1.2.8 for DVD access [tcprobe] V: 144 frames, 6 sec @ 23.976 fps [tcprobe] A: 0.09 MB @ 128 kbps Now thats a small dvd, lol. I am thinking it has something to do with the "(dvd_reader.c) -- Unspecified Subs --" message that i am getting. 4) The script's code looks cleaner aesthetically with the breaks put in there. It would be nice to show breaks after each major step when the script is run with a "============" or something. For example, when its dumping the video, it just displays "DVD successfully opened" for the whole process. It could just say something underneath it, like "copying in progress, be patient, this takes time...." 5) It would be easier if the scipt had version numbers in it somewhere, instead of just a date so we can refer to them easier. Other things worth mentioning: I went ahead and tried to use dvdauthor to author the resulting mpg. I followed the steps you outlined in your other thread: Code:
dvddirgen -o newdvd (create a dvd structure in a folder named newdvd) Then i used the following to make a iso: Code:
mkisofs -dvd-video -udf -o whateveryouwanttocalltheiso.iso newdvd/ http://img82.exs.cx/img82/2672/screenshot0cb.png See the written caption in full? Well, in the dvd player half of that gets cut off. Not only that, but the whole movie looks like is cutting off faces, and much of the backgrounds. It almost seems like i need a longer TV. But its not the scripts fault (i think), since final.mpg doesn't have these problems nor does the burnt dvd when played through a computer. Can't say whats causing it....maybe i didn't use the correct mkisofs or dvdauthor commands? Oh, and if using dvdauthor and mkisofs, my space requirements went through the roof. Almost up to 30GB needed: Code:
$ ls -l -h Another "weird" thing i noticed is that play times differ between each format. The real dvd's session of interest lasts 1:53hrs, final.mpg is 1:00hr, while the dvd i burnt the iso to is 1:43hrs. They all have the entire movie, but their play times are different?? This probably a newbish question, i think the shrinking does something to the times... And lastly, a sanity check for the required programs would be nice. :) |
1)
Code:
1) What is the default choice if i hit 'Enter' at any of those prompts? It would be nice to say what hitting Enter would do. 2) Code:
The script still isn't exiting properly, and hangs after completed. Sometimes doing Ctrl-C serveral times gets me back to the command line, but sometimes that doesn't work either. 3) Code:
tcprobe...it looks like its still just seeing the first session of my dvd: 4) Code:
The script's code looks cleaner aesthetically with the breaks put in there. It would be nice to show breaks after each major step when the script is run with a "============" or something. For example, when its dumping the video, it just displays "DVD successfully opened" for the whole process. It could just say something underneath it, like "copying in progress, be patient, this takes time...." 5) Code:
It would be easier if the scipt had version numbers in it somewhere, instead of just a date so we can refer to them easier. 6) Code:
I didn't find 'dvddirgen' anywhere. Is that deprecated? 7) Code:
See the written caption in full? Well, in the dvd player half of that gets cut off. Not only that, but the whole movie looks like is cutting off faces, and much of the backgrounds. It almost seems like i need a longer TV. 8) Code:
Not sure, but would it be a good idea to have the script delete output.mpg, *.m2v , and shrinked.m2v after its done? 9) Code:
And lastly, a sanity check for the required programs would be nice. :) Wow !! Thanks for such a thorought review. |
Quote:
Quote:
Quote:
Quote:
Recently i downloaded Knoppix 3.7 and booted with it. I noticed that it also uses almost the same colors as your script....wonder it keeps the background black since it would look messed up in a white background....but thats during bootup, so it might just be using a framebuffer which isn't possible after booting (i think). |
All times are GMT -5. The time now is 12:54 PM. |