(old) ZMV to AVI video conversion [[archive me]]

General area for talk about ZSNES. The best place to ask for related questions as well as troubleshooting.

Moderator: ZSNES Mods

Locked
grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Post by grinvader »

Welcome to page 3.

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.

________
Sun_Fire wrote:
Nach wrote:The button is currently a dummy. If you want to dump a video right now, you'll have to tie the raw_video*() functions in zmovie.c into something.
Hi, i'm new here 8)

Well my problem is: I cannot find the "raw_video*()" functions in that file.

I have a zsnes wip 1.41 source code and my OS is win 2k3
It's in current CVS. 1.41WIP code is oooold.
皆黙って俺について来い!!

Code: Select all

<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)
Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54
Sun_Fire
New Member
Posts: 4
Joined: Wed Apr 27, 2005 8:43 am

Post by Sun_Fire »

hehe, well i cannot find the line code in the 1.42 source.....

and I'll try the 1.42 wip version for linux over fedora 2, and it's so slow

my pc is.... hehe, so old but in the winbug$ version runs good :?

bye
Richard C.
Lurker
Posts: 151
Joined: Wed Oct 06, 2004 9:09 pm
Location: Georgia, USA
Contact:

Post by Richard C. »

grinvader wrote:It's in current CVS. 1.41WIP code is oooold.
use cvs: http://sourceforge.net/cvs/?group_id=19677. 1.42 source is too old for this.
Latest ZSNES release: [url=http://zsnes.ipherswipsite.com]ZSNES 11/12/06 WIP[/url]
Latest NSRT release: [url=http://nsrt.edgeemu.com/]NSRT 3.3 Final[/url]
kieran_
Mugwump
Posts: 824
Joined: Fri Jul 30, 2004 9:05 pm

Post by kieran_ »

Those .avi's kick ass.
[^_^]

Post by [^_^] »

first, i'm really new to the whole raw video crap.... and second to make my life a whole lot easier, i'm just looking for a vid of the LoZ: ALttP intro of the Triforce Spinning. So if anyone else is up to the challenge of this, feel free to PM me and tell me where to get the vid, cuz i honestly have no idea what i'm doing.

But if you insist of me doing it myself, is a ZMV file a raw vid file, and if that is what program should i try using to convert it to a mpeg?
Richard C.
Lurker
Posts: 151
Joined: Wed Oct 06, 2004 9:09 pm
Location: Georgia, USA
Contact:

Post by Richard C. »

no, it is not a raw video file, only a list of timings, etc., that zsnes uses to replay the game exactly as it was recorded. in order to make your own video, see the first post of this thread.
Latest ZSNES release: [url=http://zsnes.ipherswipsite.com]ZSNES 11/12/06 WIP[/url]
Latest NSRT release: [url=http://nsrt.edgeemu.com/]NSRT 3.3 Final[/url]
Noxious Ninja
Dark Wind
Posts: 1271
Joined: Thu Jul 29, 2004 8:58 pm
Location: Texas
Contact:

Post by Noxious Ninja »

[^_^] wrote:first, i'm really new to the whole raw video crap.... and second to make my life a whole lot easier, i'm just looking for a vid of the LoZ: ALttP intro of the Triforce Spinning. So if anyone else is up to the challenge of this, feel free to PM me and tell me where to get the vid, cuz i honestly have no idea what i'm doing.

But if you insist of me doing it myself, is a ZMV file a raw vid file, and if that is what program should i try using to convert it to a mpeg?
Here. XviD 1.1.0-beta2, 2-pass VBR, average bitrate 368 kbps. Encoded with mencoder 1.0-pre7.

http://thecarpentersshop.com/ninja/lttpintro.avi

Encode params:

Code: Select all

mencoder -nosound -rawvideo on:format=0x42475220:w=256:h=223:size=228352:fps=60 -ovc xvid -xvidencopts pass=1:aspect=4/3:gmc:vhq=4:hq_ac:qpel -o ./trash ./rawvideo.bin && mencoder -nosound -rawvideo on:format=0x42475220:w=256:h=223:size=228352:fps=60 -ovc xvid -xvidencopts pass=2:aspect=4/3:gmc:vhq=4:hq_ac:qpel:bitrate=400 -o lttpintro.avi ./rawvideo.bin
[u][url=http://bash.org/?577451]#577451[/url][/u]
kieran_
Mugwump
Posts: 824
Joined: Fri Jul 30, 2004 9:05 pm

Post by kieran_ »

POST SOME MORE MOVIES!!!!!!
THEY FUCKING RULE.
xamenus
Veteran
Posts: 907
Joined: Fri Jul 30, 2004 12:26 am

Post by xamenus »

I should write a FAQ about this.

Mencoder is not available for win32 platforms, correct? What are some other recommended programs to view/convert raw videos?
snkcube
Hero of Time
Posts: 2646
Joined: Fri Jul 30, 2004 2:49 am
Location: In front of the monitor
Contact:

Post by snkcube »

Wow, nicely done Noxious.
Try out CCleaner and other free software at Piriform
Image
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

IceFox wrote: Mencoder is not available for win32 platforms, correct?
Incorrect.

mplayer/mencoder is simply the best in movie playback/recording. Unforunetly they are hard to use, as each one probably has >1000 parameters, most of which aren't even documented well if at all.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
Fortune
New Member
Posts: 3
Joined: Tue May 17, 2005 9:10 pm

Post by Fortune »

Man, I still don't get it. I got this version: http://nsrt.edgeemu.com/zsnesw-zmv-r11.zip. I tried to use Dump raw video, but the rawvideo.bin was always 0 bytes. Could someone explain it better to me?
--
Fortune
Noxious Ninja
Dark Wind
Posts: 1271
Joined: Thu Jul 29, 2004 8:58 pm
Location: Texas
Contact:

Post by Noxious Ninja »

Fortune wrote:Man, I still don't get it. I got this version: http://nsrt.edgeemu.com/zsnesw-zmv-r11.zip. I tried to use Dump raw video, but the rawvideo.bin was always 0 bytes. Could someone explain it better to me?
You have to record an in-game movie first, then you can dump it.
[u][url=http://bash.org/?577451]#577451[/url][/u]
Fortune
New Member
Posts: 3
Joined: Tue May 17, 2005 9:10 pm

Post by Fortune »

That's nice of you, but i'm not that stupid. I think I know that. I need more info. Here's what i wanna know:
1. A CVS directory where I could download something even newer.
2. Could someone explain me a little more how to encode directly to mencoder to make a nice avi.
3. Some tips.
After I learn how to do this, i will make an avi of saturn's terranigma run, the only problem is that it desyncs.
--
Fortune
washuu108
Rookie
Posts: 20
Joined: Thu Dec 30, 2004 9:05 am
Contact:

Post by washuu108 »

I always get an empty rawvideo.bin when I attempt to dump an old format movie, so I'm assuming that it only works for the new format at this point. CVS is on Sourceforge, and I haven't used mencoder so I can't help you there. For a tip, though, you'll need a decent amount of space in your save directory.
Fortune
New Member
Posts: 3
Joined: Tue May 17, 2005 9:10 pm

Post by Fortune »

I guess I'll use screen recording software then. Any tips for this type of recording?
--
Fortune
Sun_Fire
New Member
Posts: 4
Joined: Wed Apr 27, 2005 8:43 am

Post by Sun_Fire »

how can make a fifo structure in windows?

I have a GNUwin32 installed and the bin folder added in the phat enviromen variable, but always splash this error:

mkfifo: cannot create fifo `rawvideo.bin'

the folder and files have permissions of writing and reading.

and how can make a movie with audio?
Noxious Ninja
Dark Wind
Posts: 1271
Joined: Thu Jul 29, 2004 8:58 pm
Location: Texas
Contact:

Post by Noxious Ninja »

I have tried a few different mkfifo tools on Windows, and none of them worked. I just used temp files. A little more work, and it requires lots of hard drive space, but it gets the job done.
[u][url=http://bash.org/?577451]#577451[/url][/u]
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

When I get a chance and figure out how to get libavformat working, I'll probably have XviD, H.264, and FFV1 output. Although I really shouldn't be doing any of that since ZSNES is NOT a movie encoder. I'm just not sure what else to do to make it reasonable to dump videos in Windows.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
Noxious Ninja
Dark Wind
Posts: 1271
Joined: Thu Jul 29, 2004 8:58 pm
Location: Texas
Contact:

Post by Noxious Ninja »

You could make ZSNES into a AVISynth plugin. Now that would be sexy.
[u][url=http://bash.org/?577451]#577451[/url][/u]
Agozer
16-bit Corpse | Nyoron~
Posts: 3534
Joined: Sun Aug 01, 2004 7:14 pm
Location: Nokia Land

Post by Agozer »

I've always wondered what AVISynth does...
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
DOLLS (J) [!]
ZNES Developer
Posts: 215
Joined: Mon Aug 02, 2004 11:22 pm

Post by DOLLS (J) [!] »

It is a frameserver.
In this way ZSNES could be frameserving an AVI whilst having a dedicated program perform all the encoding, somewhat like Nach's doing with mkfifo, only on a higher-level and more compatible way.
Sun_Fire
New Member
Posts: 4
Joined: Wed Apr 27, 2005 8:43 am

Post by Sun_Fire »

Ok,

but, how can make the sound?
kevman
Redneck Gamer-Mod
Posts: 433
Joined: Wed Aug 04, 2004 2:15 am
Location: Pittsburgh

Post by kevman »

You can't with Zsnes (yet?).

You'd have to like... record it externally then somehow mix it into the video stream and synch it. Which, if its possible, will be very hard.
SHREIK!!!!!!! DDdddnnnnnnaaaa! GESTAHLLLLLLLLLL!!!!!!!!

Steelers now officially own your ass.
SquareHead
Veteran
Posts: 970
Joined: Fri Jan 21, 2005 11:15 am
Location: Montana, United States

Post by SquareHead »

kevman wrote:You can't with Zsnes (yet?).

You'd have to like... record it externally then somehow mix it into the video stream and synch it. Which, if its possible, will be very hard.
VirtualDUB can mux them together, but youd have to be exact with timing as you will have sync issues. As for recording the audio, thats another problem entirely. As kevman said, diffucult, but not impossible.
Locked