Mame Video Capturing: Unterschied zwischen den Versionen

Zeile 115: Zeile 115:
[[Image:VideoEdit_Command_Line.png]]
[[Image:VideoEdit_Command_Line.png]]


Navigate to your AdvanceCOMP folder (in my case its: E:\mame-guide\advancecomp-1.15-windows-pentium\). Here is a little help on old
Navigate to your advancecomp folder (in my case its: E:\mame-guide\advancecomp-1.15-windows-pentium\). Here is a little help on old
DOS navigation. You can navigate by typing cd.. for a parent folder or cd somefolder to navigate to a desired subfolder. To change to another drive type E:\ or another letter. In my case its drive E. This depends on how your drives are named. Notice that my ssf2xj.mng and ssf2xj.wav are already copied into this folder.
dos navigation. You can navigate by typing <code>cd..</code> to a parent folder or <code>cd somefolder</code> to navigate to a desired subfolder. To change to another drive type <code>E:\</code> or another letter. In my case its drive E. This depends on how your drives are named. Notice that my ssf2xj.mng and ssf2xj.wav are already copied into this folder.


[[Image:VideoEdit_AdvanceComp_Cmd.png]]
[[Image:VideoEdit_AdvanceComp_Cmd.png]]


Now the interesting part: To extract the png sequence type in: advmng.exe --extract yourfile.mng
To extract the png sequence type in: advmng.exe --extract yourfile.mng (in my case its advmng.exe --extract ssf2xj.mng)
(in my case its advmng.exe --extract ssf2xj.mng)


[[Image:VideoEdit_AdvanceComp_Extract.png]]
[[Image:VideoEdit_AdvanceComp_Extract.png]]


The result should look like this. The window output shows numbered png images scrolling down. The advmng tool is extracting the png
The result should look like this. The window output shows numbered png images scrolling down. The advmng tool is extracting the png
image sequence to your AdvanceCOMP folder. Just wait until the extraction stops and you are done. The number at the end of the extraction is the framerate of this mng stream. It may vary.
image sequence to your advancecomp folder. Just wait until the extraction stops and you are done. The number at the end of the extraction is the framerate of this mng stream. It may vary.


Remember the following:
'''Remember the following:'''


    * Nearly all games run with 60fps which means: If your mng file duration is 2min the resulting png sequence will be:
* Nearly all games run with 60fps which means: If your mng file duration is 2min the resulting png sequence will be: 60 frames per second * 120 seconds = 7200 png files
      60 frames per second * 120 seconds = 7200 png files
* If you are recording kaillera matchvideos or local ones make sure to have enough space on your hdd. Mng and the resulting png sequences tend to be very large. Their size is similar to uncompressed avi material.
    * If you are recording kaillera matchvideos or local ones make sure to have enough space on your hdd. Mng and the resulting png
      sequences tend to be very large. Their size is similar to uncompressed avi material.


Putting it all together
== Putting it all together ==


I am not going to do any detailed introduction on virtual dub. Just the things you need to know to complete this part. Open up virtual dub and
I am not going to do any detailed introduction on virtual dub. Just the things you need to know to complete this part. Open up virtual dub and choose the '''first!''' png file of the sequence:
choose the first!! png file of the sequence:


[[Image:VideoEdit_VirtualDub_Image_Import.png]]


*Virtualdub should import the sequence without problems.


Virtualdub should import the sequence without problems. Then: Click on Audio and then on WAV Audio. This brings up a file select dialog.
*Click on Audio and then on WAV Audio. This brings up a file select dialog. Select your recorded wav file and hit OK.  
Select your recorded wav file and hit OK. The next thing you need to do is to setup the correct framerate of the footage. To do so click on
 
Video then select Frame Rate. This step is important. The framerate depends on the frecuency of your game. I mentioned the framerate at the
*The next thing you need to do is to setup the correct framerate of the footage. To do so click on Video then select Frame Rate. This step is important. The framerate depends on the frecuency of your game. I mentioned the framerate at the
end of the mng extraction earlier.
end of the mng extraction earlier.


    * If the number shows 60 then select the second option change frame rate to (fps) and change it to 60.
:If the number shows 60 then select the second option change frame rate to (fps) and change it to 60.
    * For all other odd numbers (like 59 if you capture cps2) select the third option and chose: change so video and audio durations match
 
      like in the screenshot shown below. Note that my screenshot shows a 59.634 framerate. This is absolutley ok because if you visit the mame
:For all other odd numbers (like 59 if you capture cps2) select the third option and chose: change so video and audio durations match like in the screenshot shown below. Note that my screenshot shows a 59.634 framerate. This is absolutley ok because if you visit the mame database maws ( http://www.mameworld.net/maws/romset/ssf2xj ) and scroll down to frequency you will notice: The game runs at 59.633333Hz. This is not an error. The game really runs at that frequency. A lot older games have such strange frequencies.
      database maws ( http://www.mameworld.net/maws/romset/ssf2xj ) and scroll down to frequency you will notice: The game runs at
      59.633333Hz. This is not an error. The game really runs at that frequency. A lot older games have such strange frequencies.


You can do additional work like resize the video, add some filter and do other editing. Remember: Uncompressed AVI
You can do additional work like resize the video, add some filter and do other editing. Remember: Uncompressed AVI