Emuforums.com

Go Back   Emuforums.com > PS2 Emulation > Misc PS2 Discussion
About Us Register FAQ Members List Calendar Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old August 25th, 2004   #1 (permalink)
B( o Y o )BS!
 
GiGaHeRz's Avatar
 
Join Date: Feb 2002
Location: Spain
Posts: 883
GiGaHeRz's FMV Search & Extract Tool - Beta 0

Hi ppl,

I just finished the first beta of my PS2 FMV Extractor. I tested it with my Xenosaga disk, and it worked.

The program uses any PCSX2 CDVD plugin to read the disc. I used Pete's one to test it

How to use (updated instructions for B05):

1. Get the zip and unzip it.
2. Get some CDVD plugins for ps2 emus.
3. Execute the program, select a plugin and configure it.
4. Select the option "Get sector count from disk info."
5. Press "Start Searching" and go do something while it works.
6. If it found something, Export the list to a file (so you can Import it later if the tool crashes).
7. Select the Streams you want to extract from the list.
8. Edit the extraction path\prefix if you want something else.
9. Press "Extract Checked" and wait some time more.
10. Check if the FMVs are working and if true, thank me


NOTE: The program needs the VisualBasic 6 runtime and 2 OCX. If you need any of them, I will upload them.


EDIT: A "Big Bug" fixed. Beta 02 released.

EDIT 2: Beta 03 released. Changes:
- Added "experimental" size detection (uses the number at Sector 16, offset 80)
- Added "Extract Sector Range" command. Could be used to make an "iso", but it will not write files bigger than 2gb (VB6 has "signed" longs).
- When a path doesn't exist, the program will ask to create it. Also, the last part of the path (after the last "\" is used as the prefix, instead of the default "stream" or "range")

EDIT 3: Beta 04 released. Changes:
- Added a less restricted search option, so it can find more streams, but also can find more false streams.
- Changed all the file code to use Windows File API functions, so it should be able to make ISOs from DVDs bigger than 2gb (if you are using NTFS)
- Changed all the fonts from "MS Sans Serif" (bitmap font) to "Microsoft Sans Serif" (TrueType/OpenType font), so font smoothing options will take effect on it.
- Added the manifest file as a resource. Now the -manifest file isn't needed, and the exe works fine if the visual styles are disabled (in previous versions the exe didn't load if the manifest file existed and visual styels were disabled).

I think this is all. I left the beta 03 here in case anyone can't run the beta 04.

EDIT4: Fixed a problem with visual styles and SP2, get the fixed version from here

EDIT5: Beta 05 Released. Changes:
- Reorganized the window and made it a bit bigger.
- Fixed some bugs.
- Added Plugin Selecion support. Needs improvements.
- Added option to extract 2352 bytes sectors


If you find a bug, just tell me.
If you want new features, ask for them.
If you want it to detect other file types, give me info.
Attached Files
File Type: zip FMVToolB05.zip (89.8 KB, 5670 views)
__________________
"There's only one absolute truth in our world: shït happens." - Gigaherz (whoever decided "s-h-i-t" is a obscene word needs to grow up a few years)

The Book and other stories:
Tears of Fantasy - An Online Book... by ME!
MetaLife, Inc. (intro)
SubGaea (intro)
Crow Blade (intro for now)
Memories - Prayer from the fallen hearts.

My weblog... not like if there was too much to read on it tho.
For anyone interested, there's a mirc script which converts "/me 's" into " * nickname's whatever" and adds a nice "/my" command.

Last edited by GiGaHeRz; December 25th, 2004 at 21:00. Reason: Updated instructions for Beta 05
GiGaHeRz is offline   Reply With Quote
Old August 26th, 2004   #2 (permalink)
"Insert witty title here"
 
bcrew1375's Avatar
 
Join Date: Jun 2003
Location: In a house
Posts: 1,046
Darn you, you took my idea ! Anyway, I have yet to see if it works with other games. I do know it doesn't work with FFX. If it does work on others, I congratulate you.
__________________
Can I go home now?
bcrew1375 is offline   Reply With Quote
Old August 26th, 2004   #3 (permalink)
B( o Y o )BS!
 
GiGaHeRz's Avatar
 
Join Date: Feb 2002
Location: Spain
Posts: 883
The only two PS2 games I have are Xenosaga and FFX, so I can't try any more
__________________
"There's only one absolute truth in our world: shït happens." - Gigaherz (whoever decided "s-h-i-t" is a obscene word needs to grow up a few years)

The Book and other stories:
Tears of Fantasy - An Online Book... by ME!
MetaLife, Inc. (intro)
SubGaea (intro)
Crow Blade (intro for now)
Memories - Prayer from the fallen hearts.

My weblog... not like if there was too much to read on it tho.
For anyone interested, there's a mirc script which converts "/me 's" into " * nickname's whatever" and adds a nice "/my" command.
GiGaHeRz is offline   Reply With Quote
Old August 26th, 2004   #4 (permalink)
"Insert witty title here"
 
bcrew1375's Avatar
 
Join Date: Jun 2003
Location: In a house
Posts: 1,046
I just tested it with Xenosaga. It only finds 8 of the movies! I know that there are definitely well over 50 FMVs in the game, so something is up. You wouldn't be willing to post the source, would you? I'm kinda interested in how you're doing it. Also, it seems only one of the extracted movies actually works. Okay, I'm off to try more games.
__________________
Can I go home now?
bcrew1375 is offline   Reply With Quote
Old August 26th, 2004   #5 (permalink)
B( o Y o )BS!
 
GiGaHeRz's Avatar
 
Join Date: Feb 2002
Location: Spain
Posts: 883
uh... that means i extracted the FMV that works..... I only have 1gb free in my HD so I only extracted one of the streams it found.... yes I know I need to clean it.

About the number of files: The game I have is a dvd5 backup so I thought it had some videos removed. but if you say there should be about 50 of them, then something in my code is wrong. Also I noticed that the program doesn't write the "program end code" so maybe that makes some fmvs not working.

About the sources... I don't like to "give" the sources until I get some kind of stable code. And it's just a "first beta" code

BIG EDIT:

I found the problem. It was "just a bug".

The program searched the codes "byte by byte", so if it thought that some bytes at the end of a sector were a code, and then, at the begining of the next sector it found that it was wrong, the code didn't restore the sector number, so it skipped all the sector and continued at the end of the next sector. That was why it didn't find all the FMVs and why most weren't working.

I will upload the Beta 02 right now.

Quote:
From My Xenosaga Disk:


Press 'Start' to begin...

[06:33:30] Opening Disc...
[06:33:30] Disc Open Successful.
[06:33:30] Disc Type: 20
[06:33:30] Disc Track List:
[06:33:30] *** First: 1
[06:33:30] *** Last: 1
[06:33:30] * 1: 0 - 1 - 78:35:0045
[06:33:30] *** End Of List
[06:33:30] Searching MPEG2 Streams...

...

[06:43:17] Done searching. Streams Found: 108
[06:43:17] Closing disc...
[06:43:17] Done.
EDIT: BETA 02 Uploaded. Look at the first post.
__________________
"There's only one absolute truth in our world: shït happens." - Gigaherz (whoever decided "s-h-i-t" is a obscene word needs to grow up a few years)

The Book and other stories:
Tears of Fantasy - An Online Book... by ME!
MetaLife, Inc. (intro)
SubGaea (intro)
Crow Blade (intro for now)
Memories - Prayer from the fallen hearts.

My weblog... not like if there was too much to read on it tho.
For anyone interested, there's a mirc script which converts "/me 's" into " * nickname's whatever" and adds a nice "/my" command.

Last edited by GiGaHeRz; August 26th, 2004 at 04:54.
GiGaHeRz is offline   Reply With Quote
Old August 26th, 2004   #6 (permalink)
Penguin lover
 
parotaku's Avatar
 
Join Date: Apr 2002
Location: France
Posts: 812
Nice tool!

For some reason, I'm unable to extract the selected mpg files found... it crashes with a run-time error 76 'path not found'???
That's using xeven cdvd plugin...

Any advice??
__________________
________
My config:
Intel Core2 Duo E8500/2GB DDR2/GeForce 8800GTS 320/Gigabyte GA-EX38-DS4 motherboard
...some of my PS2 games videos...
\/\.o0||0o./\/
_________________
|PCSX2 Beta Tester|
-------------------
parotaku is offline   Reply With Quote
Old August 26th, 2004   #7 (permalink)
"Insert witty title here"
 
bcrew1375's Avatar
 
Join Date: Jun 2003
Location: In a house
Posts: 1,046
That's because it doesn't auto-create the directory that it saves the FMVs to. If that directory doesn't exist, you'll get that error.

Edit: GiGaHeRz, I noticed that it doesn't detect all of the sectors on the disc. At least not for me. I'm using it with Peops ver. 1.1 It only detects 2077352 sectors. This is the amount Windows sees and not the actual amount of data on the disc. Other than that, it seems to be working well now.
__________________
Can I go home now?

Last edited by bcrew1375; August 26th, 2004 at 08:53.
bcrew1375 is offline   Reply With Quote
Old August 26th, 2004   #8 (permalink)
B( o Y o )BS!
 
GiGaHeRz's Avatar
 
Join Date: Feb 2002
Location: Spain
Posts: 883
That's just because the CDVD plugin doesn't has any funcion to get the disk size. And I don't know if it can be read from the disk data, so i had to use a windows function to get it (to get the total number of bytes and divide by 2048).

to parotaku: the path must exist. I forgot to put a check on that. I will make it ask if you want to create the directories if needed. I will also put an option to change the prefix of the videos (the program names them "stream_sector_offset.mpg" now).
__________________
"There's only one absolute truth in our world: shït happens." - Gigaherz (whoever decided "s-h-i-t" is a obscene word needs to grow up a few years)

The Book and other stories:
Tears of Fantasy - An Online Book... by ME!
MetaLife, Inc. (intro)
SubGaea (intro)
Crow Blade (intro for now)
Memories - Prayer from the fallen hearts.

My weblog... not like if there was too much to read on it tho.
For anyone interested, there's a mirc script which converts "/me 's" into " * nickname's whatever" and adds a nice "/my" command.
GiGaHeRz is offline   Reply With Quote
Old August 26th, 2004   #9 (permalink)
Penguin lover
 
parotaku's Avatar
 
Join Date: Apr 2002
Location: France
Posts: 812
Thanks for your help, guys...

Working great & nice scanning speed too!!

Here's some video-screenshots from ICO (video demo), Silent Hill 2 (mpeg2 compression is so much better than pc version's bink video...) & Siren...
__________________
________
My config:
Intel Core2 Duo E8500/2GB DDR2/GeForce 8800GTS 320/Gigabyte GA-EX38-DS4 motherboard
...some of my PS2 games videos...
\/\.o0||0o./\/
_________________
|PCSX2 Beta Tester|
-------------------

Last edited by parotaku; February 11th, 2007 at 14:06.
parotaku is offline   Reply With Quote
Old August 26th, 2004   #10 (permalink)
Beta Administrator
 
Raziel's Avatar
 
Join Date: Apr 2001
Location: Nantes, France
Posts: 6,150
No sound extracted ? Will it ever ?
__________________
System Specs:
OS: Windows Vista Ultimate x64 Edition CPU: Intel Core 2 Duo E8500 @4GHz
Video Card: MSI GeForce 8800 GTX Motherboard: ASUS Maximus Formula SE
RAM: 4GB OCZ XMS2 PC6400 Sound Card: Creative Sound Blaster Audigy 2 ZS

Raziel is offline   Reply With Quote
Old August 26th, 2004   #11 (permalink)
B( o Y o )BS!
 
GiGaHeRz's Avatar
 
Join Date: Feb 2002
Location: Spain
Posts: 883
it extracts the stream as it is in the disk. remember that PSS streams have PCM or ADPCM sound. (you need pssplex, pss_demux or ps2play to demux/play them)
__________________
"There's only one absolute truth in our world: shït happens." - Gigaherz (whoever decided "s-h-i-t" is a obscene word needs to grow up a few years)

The Book and other stories:
Tears of Fantasy - An Online Book... by ME!
MetaLife, Inc. (intro)
SubGaea (intro)
Crow Blade (intro for now)
Memories - Prayer from the fallen hearts.

My weblog... not like if there was too much to read on it tho.
For anyone interested, there's a mirc script which converts "/me 's" into " * nickname's whatever" and adds a nice "/my" command.
GiGaHeRz is offline   Reply With Quote
Old August 26th, 2004   #12 (permalink)
Beta Administrator
 
Raziel's Avatar
 
Join Date: Apr 2001
Location: Nantes, France
Posts: 6,150
BTW, it doesn't seem to detect the intro movie in Xenosaga (and maybe other movies too).

It only detects 50 streams, and it's the original DVD.
__________________
System Specs:
OS: Windows Vista Ultimate x64 Edition CPU: Intel Core 2 Duo E8500 @4GHz
Video Card: MSI GeForce 8800 GTX Motherboard: ASUS Maximus Formula SE
RAM: 4GB OCZ XMS2 PC6400 Sound Card: Creative Sound Blaster Audigy 2 ZS


Last edited by Raziel; August 26th, 2004 at 17:41.
Raziel is offline   Reply With Quote
Old August 26th, 2004   #13 (permalink)
"Insert witty title here"
 
bcrew1375's Avatar
 
Join Date: Jun 2003
Location: In a house
Posts: 1,046
I have the same problem Raziel. It's because of the method it's using to get the disc size.
__________________
Can I go home now?
bcrew1375 is offline   Reply With Quote
Old August 26th, 2004   #14 (permalink)
B( o Y o )BS!
 
GiGaHeRz's Avatar
 
Join Date: Feb 2002
Location: Spain
Posts: 883
I don't have the original DVD, so I can't try with it. If you want, you could try to find it with a Hex editor, and say the first and last 8 bytes.

All I know is that all the videos (DVD VOBs and PSS streams) I've seen start with "00 00 01 ba 44 00 04 00". I found that "000001ba" is the start code of the stream, but i don't know the meaning of the other 4 bytes. And also, all of them have many "FF" bytes and the programa end code "000001b9" at the end.

BTW: I will upload a new beta soon.

EDIT: I said "and send me it's location" but I don't have the disc to that will be useless to me :P

EDIT: Beta 03 uploaded. Try the new features.
__________________
"There's only one absolute truth in our world: shït happens." - Gigaherz (whoever decided "s-h-i-t" is a obscene word needs to grow up a few years)

The Book and other stories:
Tears of Fantasy - An Online Book... by ME!
MetaLife, Inc. (intro)
SubGaea (intro)
Crow Blade (intro for now)
Memories - Prayer from the fallen hearts.

My weblog... not like if there was too much to read on it tho.
For anyone interested, there's a mirc script which converts "/me 's" into " * nickname's whatever" and adds a nice "/my" command.

Last edited by GiGaHeRz; August 26th, 2004 at 18:31.
GiGaHeRz is offline   Reply With Quote
Old August 26th, 2004   #15 (permalink)
Back to regular business
 
F-3582's Avatar
 
Join Date: Mar 2002
Location: in Sachsen
Posts: 3,242
Xenosaga's sound is created seperately. Many of the video sequences are captured in-game sequences, while the sound is played through the sound engine.

The problem with the sectors is that Windows only detects half of the PS2 DVD9s (due to its special filesystem). FMVTool can't tell the right value, use a DVD copier (DVD decrypter works fine) instead to find out. Xenosaga, for example, has 4.134.912 sectors. You could maybe make the user specify the disk type (DVD5 with 2077327 and DVD9 4154654 sectors maximum) and set these as the last sector to be searched. I tested it, the program won't crash, if it goes beyond this limit.

P.S.: An option to diectly process an image would be very nice. It shouldn't be so much of a problem, since the data chunks can even be read and extracted in a Hex-Editor.

P.P.S.: The author of Pete's CDVD plugins is Pete Bernert, not Pete Bernett.

P.P.P.S.: If you are interested, you can download my FMV list for Xenosaga.
Attached Files
File Type: zip xenosaga.zip (1.4 KB, 489 views)
__________________
In a world without walls and fences - who needs Windows and Gates?


Last edited by F-3582; August 26th, 2004 at 20:21.
F-3582 is offline   Reply With Quote
Old August 26th, 2004   #16 (permalink)
B( o Y o )BS!
 
GiGaHeRz's Avatar
 
Join Date: Feb 2002
Location: Spain
Posts: 883
My xenosaga FMVs have the sound included, I can play and hear them using ps2play.

In the beta03 it reads the number of sectors directly from the disk, but I don't know how to detect if the disk has 2 layers. and also, my xenosaga disk has 2135520 sectors, but the disk number says 2135360, and my ffx disk has 2246432 sectors and the number is the same. So both numbers are bigger than 2077327.

I will correct his name. I'm sorry Pete

EDIT: I forgot to say that I decided to use PCSX2 plugins for 2 reasons. The first was that I'm too lazy to write all the reading code & detection of the image format (I need to use windows API functions because VB6 can't open files bigger than 2/4 gb, not sure), and the second was that I don't have too much free space in my HD, and I wanted to read the data directly from the DVD.

I can't make a plugin selection system because VB6 doesn't support function pointers, so i had to use fixed declarations (here, too, I'm too lazy to write a DLL in C to make that).
__________________
"There's only one absolute truth in our world: shït happens." - Gigaherz (whoever decided "s-h-i-t" is a obscene word needs to grow up a few years)

The Book and other stories:
Tears of Fantasy - An Online Book... by ME!
MetaLife, Inc. (intro)
SubGaea (intro)
Crow Blade (intro for now)
Memories - Prayer from the fallen hearts.

My weblog... not like if there was too much to read on it tho.
For anyone interested, there's a mirc script which converts "/me 's" into " * nickname's whatever" and adds a nice "/my" command.

Last edited by GiGaHeRz; August 26th, 2004 at 20:58.
GiGaHeRz is offline   Reply With Quote
Old August 27th, 2004   #17 (permalink)
:3
 
Yeloazndevil's Avatar
 
Join Date: Jul 2002
Posts: 10,147
nice! GiGaHeRz you are the man
Yeloazndevil is offline   Reply With Quote
Old August 27th, 2004   #18 (permalink)
Locked and Loaded
 
Razor Blade's Avatar
 
Join Date: Aug 2002
Location: I AM CANADIAN!
Posts: 12,030
Damn I'll have to try this out tonight! Congrats!
__________________
--------------------------------------------------------------------------------
Core 2 Duo T7300 2.0 GHz NVIDIA GeForce 8400GS 2GB DDR2 RAM
Hitachi 120GB HD Dual Layer DVD+/-RW Drive Windows Vista Home
Premium
Dell 2007WFP LCD Dell XPS M1330 Laptop 1TB Western
Digital MyBook External HD
Logitech Z10 Speakers PLAYSTATION 3
--------------------------------------------------------------------------------
Razor Blade is offline   Reply With Quote
Old August 27th, 2004   #19 (permalink)
Back to regular business
 
F-3582's Avatar
 
Join Date: Mar 2002
Location: in Sachsen
Posts: 3,242
Quote:
Originally Posted by GiGaHeRz
In the beta03 it reads the number of sectors directly from the disk, but I don't know how to detect if the disk has 2 layers.
Hmmm... you could maybe ask the guys who made DVD Decrypter, how to do this.

...and sorry for that wrong information.
__________________
In a world without walls and fences - who needs Windows and Gates?

F-3582 is offline   Reply With Quote
Old August 28th, 2004   #20 (permalink)
Clumsy And Stupid
 
AmienZero's Avatar
 
Join Date: Jul 2004
Location: Somewhere Between Heaven and Womens
Posts: 90
nice work GiGaHeRz,

i used the beta02 to extract ffx-2 fmvs and it works great. i get all 11 movies but the since the sound is encoded with .ss2 type so a little converting won't hurt. anyway, this method works better than ffx-2 universal extractor. but i can't seem to get it work with onimusha 3.