View unanswered posts | View active topics It is currently Tue Oct 15, 2019 6:42 pm



This topic is locked, you cannot edit posts or make further replies.  [ 504 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 21  Next
(old) ZMV to AVI video conversion [[archive me]] 
Author Message
ZSNES Developer
ZSNES Developer
User avatar

Joined: Tue Jul 27, 2004 10:54 pm
Posts: 3901
Location: Solar powered park bench
Post 
Welcome to page 4.

To record a video you need one of the latest work in progress builds of ZSNES. Get them here: http://zsnes.ipherswipsite.com/

You will need a copy of mencoder. For Windows users, I recommend getting mencoder here: http://oss.netfarm.it/mplayer-win32.php
Place mencoder.exe in the same location as zsnesw.exe, you do not need any codecs or other movie programs installed.
Linux users, having mencoder in your path is fine.

If you want to compress the outputted audio, or compress it before it goes into the video as opposed to during, you will need a copy of LAME.
If you use Windows, you must get LAME from here: http://geocities.com/joecool22us/lame.zip
Any other copy of LAME for Windows will not work due to a bug in LAME.

Before you are able to dump an AVI, you must have recorded a movie first, it converts movies, it does not just dump video on the fly.

To play back movies, you'll either need the proper codecs or a video player with built in decoding of the video mode you selected.
I recommend getting mplayer which decodes anything created with mencoder. For Windows, you can get mplayer here: http://oss.netfarm.it/mplayer-win32.php You can download the GUI version.

Advanced users can edit zmovie.cfg and tweak the settings if they want, and even use something other than mencoder and LAME as long as it supports encoding via stdin and you set it up properly.

________
I am pleased to announce that thanks to some help from Bisqwit and DeHackEd, I have added audio dumping to ZSNES!

Currently only works at Stereo 32KHz (if you want to make it work for other stuff, then please submit code).

The audio is also in a wav file as uncompressed PCM, so anything should be able to play it.

I also fixed up raw dumping in a couple of situations.

_________________
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding


Last edited by Nach on Sat Mar 29, 2008 7:48 pm, edited 2 times in total.



Wed Nov 23, 2005 12:26 am
Profile WWW
16-bit Corpse | Nyoron~
User avatar

Joined: Sun Aug 01, 2004 7:14 pm
Posts: 3534
Location: Nokia Land
Post 
Ooh, this is something. Excellent work you three.

_________________
whicker: franpa is grammatically correct, and he still gets ripped on?
sweener2001: Grammatically correct this one time? sure. every other time? no. does that give him a right? not really.
Image


Wed Nov 23, 2005 12:36 am
Profile
Hero of Time
User avatar

Joined: Fri Jul 30, 2004 2:49 am
Posts: 2646
Location: In front of the monitor
Post 
Wow, truly amazing. A big congrats to you three.

_________________
Try out CCleaner and other free software at Piriform
Image


Wed Nov 23, 2005 2:34 am
Profile WWW
Lurker
User avatar

Joined: Sat Aug 07, 2004 12:07 am
Posts: 102
Post 
OK, this rules!
I'm thinking custom ringtones for my Moto RAZR !!! :)


Wed Nov 23, 2005 5:22 am
Profile
Winter Knight
User avatar

Joined: Mon Aug 16, 2004 10:16 pm
Posts: 467
Post 
Please to be shutting up with the suckup posts already.

They sicken me.

Go find something more constructive to do with your time, like playing games and/or actually using the features our local representative of God gave you.


Wed Nov 23, 2005 6:39 am
Profile WWW
16-bit Corpse | Nyoron~
User avatar

Joined: Sun Aug 01, 2004 7:14 pm
Posts: 3534
Location: Nokia Land
Post 
Shut the hell up Aerdan. Since when was it wrong to congratulate someone for a work well done?

_________________
whicker: franpa is grammatically correct, and he still gets ripped on?
sweener2001: Grammatically correct this one time? sure. every other time? no. does that give him a right? not really.
Image


Wed Nov 23, 2005 10:56 am
Profile
Seen it all
User avatar

Joined: Mon Jan 03, 2005 5:04 pm
Posts: 2302
Location: Germany
Post 
Yay! :P Great news.

_________________
vSNES | Delphi 10 BPLs
bsnes launcher with recent files list


Wed Nov 23, 2005 2:03 pm
Profile WWW
ZSNES Developer
ZSNES Developer
User avatar

Joined: Tue Jul 27, 2004 10:54 pm
Posts: 3901
Location: Solar powered park bench
Post 
Behold:

Code:
./zsnes -mc -md -zm 0 /mnt/E/new/Euro/SFA2.smc & mencoder -demuxer rawvideo -rawvideo format=0x42475220:w=256:h=223:size=228352:fps=50 -mc 0 -oac copy -ovc x264 -x264encopts qp_constant=35 -o temp.avi ~/.zsnes/rawvideo.bin && mencoder -mc 0 -oac mp3lame -lameopts cbr:br=48 -ovc copy -o sfa2e.avi -audiofile ~/.zsnes/pcmaudio.wav temp.avi


http://nsrt.edgeemu.com/sfa2evid.rar

Requires x264 video codec.
Windows users can get x264 codec here http://x264.nl/
Although I recommend mplayer: http://www2.mplayerhq.hu/MPlayer/releases/win32/ or ftp://ftp5.mplayerhq.hu/mplayer/release ... 050928.zip

_________________
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding


Wed Nov 23, 2005 6:06 pm
Profile WWW
ZSNES Developer
ZSNES Developer
User avatar

Joined: Tue Aug 17, 2004 5:24 am
Posts: 812
Location: In your garden
Post 
Nice work guys. Now get working on my taxes.


Wed Nov 23, 2005 6:13 pm
Profile
ZSNES Developer
ZSNES Developer
User avatar

Joined: Tue Jul 27, 2004 10:54 pm
Posts: 3901
Location: Solar powered park bench
Post 
Okay got an NTSC video together. 62.5 FPS... We'll see if we can bring that closer to 60.

http://nsrt.edgeemu.com/ssf2uvid.rar

Code:
./zsnes -mc -md -zm 1 /mnt/D/roms/nintendo/snes/ssf2.fig & mencoder -demuxer rawvideo -rawvideo format=0x42475220:w=256:h=223:size=228352:fps=62.5 -mc 0 -oac copy -ovc x264 -x264encopts qp_constant=35 -o temp.avi ~/.zsnes/rawvideo.bin && mencoder -mc 0 -oac mp3lame -lameopts cbr:br=48 -ovc copy -o ssf2u.avi -audiofile ~/.zsnes/pcmaudio.wav temp.avi

_________________
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding


Wed Nov 23, 2005 6:24 pm
Profile WWW
Winter Knight
User avatar

Joined: Mon Aug 16, 2004 10:16 pm
Posts: 467
Post 
Agozer wrote:
Shut the hell up Aerdan. Since when was it wrong to congratulate someone for a work well done?


You missed the irony in the post, apparently.

Go reread the last line.


Wed Nov 23, 2005 6:29 pm
Profile WWW
16-bit Corpse | Nyoron~
User avatar

Joined: Sun Aug 01, 2004 7:14 pm
Posts: 3534
Location: Nokia Land
Post 
Aerdan wrote:
Agozer wrote:
Shut the hell up Aerdan. Since when was it wrong to congratulate someone for a work well done?


You missed the irony in the post, apparently.

Go reread the last line.

Ah, right. :D I can see the irony now.

_________________
whicker: franpa is grammatically correct, and he still gets ripped on?
sweener2001: Grammatically correct this one time? sure. every other time? no. does that give him a right? not really.
Image


Wed Nov 23, 2005 6:40 pm
Profile
Rookie
User avatar

Joined: Wed Jan 19, 2005 7:13 pm
Posts: 31
Location: 127.0.0.1
Post 
you can also view these videos with Video Lan Connect.

anyway nice video's guys keep up the good work. :D

_________________
Image


Wed Nov 23, 2005 7:07 pm
Profile
ZSNES Developer
ZSNES Developer
User avatar

Joined: Tue Jul 27, 2004 10:54 pm
Posts: 3901
Location: Solar powered park bench
Post 
Okay I redid the last video.

Code:
./zsnes -mc -md -zm 1 /mnt/D/roms/nintendo/snes/ssf2.fig & mencoder -demuxer rawvideo -rawvideo format=0x42475220:w=256:h=223:size=228352:fps=59.925093633 -mc 0 -oac copy -ovc x264 -x264encopts qp_constant=25 -o temp.avi ~/.zsnes/rawvideo.bin && mencoder -mc 0 -oac mp3lame -lameopts cbr:br=48 -ovc copy -o ssf2u.avi -audiofile ~/.zsnes/pcmaudio.wav temp.avi

So 59.925093633 FPS recording. Anyone have an issue with this?

http://nsrt.edgeemu.com/ssf2vid2.rar

I also upped the quality on this vid so it looks quite good, what do you think?

Edit:
After reversing the exact ZSNES NTSC frame rate which is is 59.9487437186 and Bisqwit helping to create an algorithm to get sample generation perfect, we should have perfect NTSC videos now :)
I also upped the ratio to 256x224.

Here's what you need to encode now:
Code:
./zsnes -mc -md -zm 1 /mnt/D/roms/nintendo/snes/ssf2.fig & mencoder -aspect 4/3 -demuxer rawvideo -rawvideo format=0x42475220:w=256:h=224:size=229376:fps=59.9487437186 -mc 0 -oac copy -ovc x264 -x264encopts qp_constant=25 -o temp.avi ~/.zsnes/rawvideo.bin && mencoder -mc 0 -oac mp3lame -lameopts cbr:preset=48 -ovc copy -o ssf2.avi -audiofile ~/.zsnes/pcmaudio.wav temp.avi

Maybe one of these days I'll figure out how to generate an AVI header so you don't need to specify the exact details yourself.

http://nsrt.edgeemu.com/ssf2good.rar

_________________
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding


Wed Nov 23, 2005 8:53 pm
Profile WWW
Hero of Time
User avatar

Joined: Fri Jul 30, 2004 2:49 am
Posts: 2646
Location: In front of the monitor
Post 
The video in the second link seems fine. No problems so far.

_________________
Try out CCleaner and other free software at Piriform
Image


Thu Nov 24, 2005 2:24 am
Profile WWW
Veteran

Joined: Fri Jan 21, 2005 11:15 am
Posts: 970
Location: Montana, United States
Post 
Nach wrote:
Here's what you need to encode now:
Code:
./zsnes -mc -md -zm 1 /mnt/D/roms/nintendo/snes/ssf2.fig & mencoder -aspect 4/3 -demuxer rawvideo -rawvideo format=0x42475220:w=256:h=224:size=229376:fps=59.9487437186 -mc 0 -oac copy -ovc x264 -x264encopts qp_constant=25 -o temp.avi ~/.zsnes/rawvideo.bin && mencoder -mc 0 -oac mp3lame -lameopts cbr:preset=48 -ovc copy -o ssf2.avi -audiofile ~/.zsnes/pcmaudio.wav temp.avi

Maybe one of these days I'll figure out how to generate an AVI header so you don't need to specify the exact details yourself.

http://nsrt.edgeemu.com/ssf2good.rar


Damn you and your mencoder skillz.

I have yet to really figure the damned thing out, and here in 1 line, you are capturing the output from zsnes, compressing the video, and audio streams, and then muxing them together in a final file.


Thu Nov 24, 2005 9:35 am
Profile
ZSNES Developer
ZSNES Developer
User avatar

Joined: Tue Jul 27, 2004 10:54 pm
Posts: 3901
Location: Solar powered park bench
Post 
And now ZSNES can use mencoder internally to make life easier! :)
Make sure mencoder is in your path before using the new uncompressed AVI, ffv1, or x264.

Image

Windows WIP:
http://nsrt.edgeemu.com/zsnesw-mov.zip

Get precompiled mencoder binaries for Windows here:
http://oss.netfarm.it/mplayer-win32.php

Place mencoder in your path when using.

The more adventurous can edit zmovie.cfg.

If you have trouble playing outputted movies, get codecs here:
http://www.free-codecs.com/download/K_L ... c_Pack.htm


Please let me know how it goes.

_________________
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding


Sun Feb 26, 2006 3:33 am
Profile WWW
16-bit Corpse | Nyoron~
User avatar

Joined: Sun Aug 01, 2004 7:14 pm
Posts: 3534
Location: Nokia Land
Post 
Oooh, X264 Lossless option. Thanks a bunch Nach.

_________________
whicker: franpa is grammatically correct, and he still gets ripped on?
sweener2001: Grammatically correct this one time? sure. every other time? no. does that give him a right? not really.
Image


Sun Feb 26, 2006 1:32 pm
Profile
Gecko snack

Joined: Sun Aug 21, 2005 11:06 am
Posts: 2372
Location: Australia, QLD
Post 
does it matter wich version of mencoder is used?

_________________
Core i7 920 @ 2.66GHZ | ASUS P6T Motherboard | 8GB DDR3 1600 RAM | Gigabyte Geforce 760 4GB | Windows 10 Pro x64


Sun Feb 26, 2006 1:41 pm
Profile WWW
ZSNES Developer
ZSNES Developer

Joined: Tue Dec 28, 2004 6:47 am
Posts: 6747
Post 
Ideally, you probably want to use the latest version.

_________________
Continuing FF4 Research...


Sun Feb 26, 2006 1:45 pm
Profile
ZSNES Developer
ZSNES Developer
User avatar

Joined: Tue Jul 27, 2004 10:54 pm
Posts: 3901
Location: Solar powered park bench
Post 
franpa_9 wrote:
does it matter wich version of mencoder is used?

Use one from the site I gave you. Download the one for your CPU.


Anyone test this out yet?

_________________
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding


Sun Feb 26, 2006 1:48 pm
Profile WWW
Gecko snack

Joined: Sun Aug 21, 2005 11:06 am
Posts: 2372
Location: Australia, QLD
Post 
http://web.aanet.com.au/Student_WebZone ... /video.avi

i tried x264 and uncompressed avi and uncompressed avi recorded better but i needed a codec to play the file.

the link is to a movie of mario bros 1 level 1 in the x264 format avi. (it works but has a slow frame rate)

is it possible to make it so mencoder doesnt steal focus away from zsnes while recording?

_________________
Core i7 920 @ 2.66GHZ | ASUS P6T Motherboard | 8GB DDR3 1600 RAM | Gigabyte Geforce 760 4GB | Windows 10 Pro x64


Mon Feb 27, 2006 4:10 am
Profile WWW
ZSNES Developer
ZSNES Developer
User avatar

Joined: Tue Jul 27, 2004 10:54 pm
Posts: 3901
Location: Solar powered park bench
Post 
franpa_9 wrote:
http://web.aanet.com.au/Student_WebZone/Bugs/ZSNES/Movies/Special/video.avi

Too many dropped frames. Set max frame skip to 0 before recording.

_________________
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding


Mon Feb 27, 2006 5:04 am
Profile WWW
Gecko snack

Joined: Sun Aug 21, 2005 11:06 am
Posts: 2372
Location: Australia, QLD
Post 
http://web.aanet.com.au/Student_WebZone ... /video.avi

fixed the video... it now works properly and is 2.5mb approx. (thanks nach) now if only we could have sound at the same time. (without mergeing a sperate sound file into the movie manually)

_________________
Core i7 920 @ 2.66GHZ | ASUS P6T Motherboard | 8GB DDR3 1600 RAM | Gigabyte Geforce 760 4GB | Windows 10 Pro x64


Mon Feb 27, 2006 5:20 am
Profile WWW
Trooper
User avatar

Joined: Wed Jul 28, 2004 3:26 am
Posts: 535
Post 
This is driving me nuts. How can I get the stupid h264 whatever codec to work with wmp?


Mon Feb 27, 2006 5:26 am
Profile
Display posts from previous:  Sort by  
This topic is locked, you cannot edit posts or make further replies.   [ 504 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 21  Next

Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software.