CPCWiki forum

General Category => Emulators => Topic started by: Cholo on 19:47, 07 December 10

Title: Recording video in WinApe
Post by: Cholo on 19:47, 07 December 10
I think the was a thread a while back about how to videos in sync in WinApe, but i cant find it so here goes again  :)

Been trying to record some videos but the audio keeps running ahead out of sync. And audio isnt just a 1-2 sec ahead, its like accelerating? Maybe its my dualcore/vista pc that does something bad? I donno.

Anyone remember how to record good videos? All hints appreciated!
Title: Re: Recording video in WinApe
Post by: TFM on 21:03, 07 December 10
And maybe somebody know, how to record without having Mode 2 screwed up...
Title: Re: Recording video in WinApe
Post by: Xyphoe on 02:39, 03 January 11
Richard kindly sent me a beta version of 2.0 Alpha 18 which seems to be a lot better with recording video. If you're reading this sir, what exactly did you tweak as its made an improvement for me?

I seem to have best luck with Window Video 1 codec, don't know why but anyway trying to do Full Frames often ends in disaster.

Some tips -

Close off any unnecessary programs that may hog memory or decide to 'do something' that will sudden require a large chunk of memory. A good example is I had a Firefox window open that reloads graphs of load averages, mail queues, service problems for about 100+ servers that I have to watch and because there's a large amount of data and images to process it made the PC chug just for a microsecond that often put recording out of sync.

Loading from snapshots, resetting WinApe, etc will horrendously mess the video up.


Otherwise you can of course resync the audio in other software which is a pain in the arse to do.
Title: Re: Recording video in WinApe
Post by: Cholo on 21:46, 05 January 11
Thanks for the tips  ;)

I ended up doing the following "hard" way (did this with Turrican):
0. Already had Xvid codec installed.
1. Installed Camstudio (camstudio.org) and its video codec.
2. Use jack-2-jack audio cable to send the audio from audio-out to audio-in
3. Starts the game like normal in Winape and then pause it.
4. Use Camstudio to capture video (mark winape area and press record).
5. unpause and play until done.
6. Once recording is done press stop and Camstudio will process the video (save it somewhere).
7. Opened the video in VirtualDub (32bit version as the other version isnt as good with "odd" codecs. From virtualdub.org).
8. Select compression (xvid)
9. select the from-to markers so i got rid of some useless "pause" minutes in boths ends.
10. Choose "save as" and conversion begins.
11. uploaded to youtube  :)

It may seem like quite a lot but it works quite fast and painless. Most Pc's are quite powerfull today .. and even my fairly average pc did recompress a 10 min video in like 5 mins tops and even tho video actually gets (re)compressed 3 times in all it still has quite ok quality in the end (and no audio troubles).
Title: Re: Recording video in WinApe
Post by: Xyphoe on 01:15, 06 January 11
Wow that does seem a lot of effort!

Quote from: Cholo on 21:46, 05 January 11
2. Use jack-2-jack audio cable to send the audio from audio-out to audio-in

Really? Why necessary to do this? Camstudio doesn't capture the audio correctly? So you plug a lead from the headphone out to the mic in socket?
Title: Re: Recording video in WinApe
Post by: Cholo on 22:54, 06 January 11
Indeed Camstudio didnt capture any audio untill i send the audio back in (using the cable). Donno the technical reasons why Camstudio didnt "intercept" the signal (it would have been logic if it did capture it). Wasnt that big a deal for me tho as i pretty much always have a jack-2-jack cable connected up (to a tape recorder for tape preservation purpose) so its was just a quick replugging for me.
Title: Re: Recording video in WinApe
Post by: Gryzor on 18:15, 11 January 11
I think it depends on your OS - up till XP it was easy-peasy, with Vista and Win7 it's much harder to record audio...
Title: Re: Recording video in WinApe
Post by: TFM on 19:34, 12 January 11
Especially Vista is a pain in the behind for (nearly) all CPC Emulators and sound recording especially.
Title: Re: Recording video in WinApe
Post by: Executioner on 01:17, 13 February 11
Sorry I haven't been around for quite a while. Busy doing stuff around the house. There is a problem with audio sync which has been fixed for the next release. I want to fix full-screen under Windows 7 on my new laptop and check a problem with disc image erasing, which I think may be caused by running more than one instance of WinAPE at the same time, and fix the RTC for TFM so it works in FutureOS, then I'll do a new release. There was a lot of other stuff I wanted in the next release but it's gonna have to wait a bit.
Title: Re: Recording video in WinApe
Post by: redbox on 18:29, 13 February 11
Quote from: Executioner on 01:17, 13 February 11
check a problem with disc image erasing, which I think may be caused by running more than one instance of WinAPE at the same time

I have this problem when I run WinApe on two different PCs (I have the application in a Dropbox (http://www.dropbox.com/) folder) - at best it just says "can't find DSK image" (but only when trying to load a new one) and at worst it erases the DSK/makes all the filesizes huge and knackers it that way.

I think the problem here might be that WinApe uses direct addressing for directories such as C:\Users\User\My Documents\WinApe\disc.dsk rather than something like %My Documents%\WinApe\disc.dsk which would stop a lot of this when using it across multiple machines (XP, Vista, Win7 etc all store these folders in different places).
Title: Re: Recording video in WinApe
Post by: Executioner on 22:32, 13 February 11
Quote from: redbox on 18:29, 13 February 11
I think the problem here might be that WinApe uses direct addressing for directories such as C:\Users\User\My Documents\WinApe\disc.dsk rather than something like %My Documents%\WinApe\disc.dsk which would stop a lot of this when using it across multiple machines (XP, Vista, Win7 etc all store these folders in different places).

That may be a slight problem, but the main problem is that WinAPE opens the DSK image exclusively which excludes another copy of WinAPE opening the same file. If WinAPE fails to open the file, it assumes (incorrectly) that it doesn't exist and will try to create it when it closes or it's changed for another disc image. For now, I'm going to get it to show a message and stop it from re-creating (truncating) the file.
Title: Re: Recording video in WinApe
Post by: Xyphoe on 04:28, 14 February 11
Hi Richard!

Good to hear from you and see you back again!

I don't think the video recording problems have been fully sorted in the beta version you gave me of a18 sadly, although it's a *lot* better.


I posted a reply to Metr about his problems in the "Infiltrator" topic in the News sub forum, but I think it's useful here too -


=====================

QuoteMETR
Do you have any problem recording long videos? I just tried to record a 1h video and I'm having problems.
I   recorded it like 3-4 times, first time I got like 20 minutes showing   zillions of screens of the full game and after that the video continued   as it should. Second time I got the same problem until the minute 40 and   then continued with the game.
I don't know if it's a problem of   temporal memory or if the size it's too heavy (I get a 4Gb video for the   complete hour of gameplay).

QuoteXYPHOE
Sometimes yes, other times no - I can't work it out. It's russian   roulette whether it works or not - I try not to have anything running in   the background in Windows when recording that may cause a 'jump' in the   video stream.

I just did a complete longplay of Double Dragon in one go and found the vid file was f***ed! GRRRR
I'm   on a different PC and don't have access to the corrupt video, but I   often have to chuck it into VirtualDub and see if I can fix it there and   re-encode. Often the audio ends up horrendously messed up even if I do   fix the video file.

I hope Executioner can fix one day for WinApe.

QuoteXYPHOE
I've just done the Double Dragon longplay again, it was 30minutes in   length and created a 2.15GB file - and this was using a codec to   compress!

And yep, the file is borked.

But I used VirtualDub to fix.

Here's what you do -

When   you go to "Open Video File" make sure "Ask for extended options after   this dialog" is selected before choosing the file to open, then on the   next pop-up make sure just "Re-derive keyframe flags" is selected ...   and on import it will rebuild the video file properly. It appears the   AVI looses it's indexing - ie the data is all there but the program   being used to open the file does not know where the data starts or ends   in simple terms. Bit like when your hard disk goes tits up ... your   files are stored in various sectors all over the disk, but it needs a   table and indexing to reference where each file is - when that table   goes bye-bye you need special tools to extract the data.

Lastly,   check the Video / Video Colour Depth settings, as when you export the   video it often uses a strange pallete and wrong colours - select 32bit   RGB or something high. Will result in a MASSIVE video file - it turned   the 2.15GB file into a 35.5GB MONSTER!!!! But it's enough to import into   Windows Movie Maker and then just save using that.
Title: Re: Recording video in WinApe
Post by: Executioner on 11:59, 14 February 11
Quote from: Xyphoe on 04:28, 14 February 11
Hi Richard!

Good to hear from you and see you back again!

I don't think the video recording problems have been fully sorted in the beta version you gave me of a18 sadly, although it's a *lot* better.

Was the play-through smooth or skipping some frames (eg. when a HDD buffer gets flushed)? The AVIWrite Windows API functions are not all that well documented, and (before a18) the audio was wrong because it assumed 50FPS yet the CPC with normal CRTC registers is 1000000/19968 (50.08012820512821FPS). I think I've re-worked it so the timing should be correct regardless of CRTC settings.

There may be a need for some regular key-frames in the AVI stream, although I have no idea how often they should be or exactly how it should be done. It's also interesting that it's coming out with bigger files depending on the screen mode. I thought I originally fixed the AVI writing at 384x270 with 8 bits per pixel. This was done because I didn't want huge files or huge processor or IO overhead in creating the AVI. Computers have got a bit faster since (though not much, just more threads/cores really).
Title: Re: Recording video in WinApe
Post by: TFM on 21:00, 14 February 11
I'm really looking forward to the next release :-)))
Title: Re: Recording video in WinApe
Post by: Metr on 00:10, 15 February 11
Quote from: Executioner on 11:59, 14 February 11
the audio was wrong because it assumed 50FPS yet the CPC with normal CRTC registers is 1000000/19968 (50.08012820512821FPS). I think I've re-worked it so the timing should be correct regardless of CRTC settings.


I'm more than happy if the audio is corrected, I started playing and recording with WinAPE but had to change when someone pointed me out that the audio was different as it sounds in the CPC, and after testing it, it was true.


Looking forward to get that new release soon !


Cheers !
Title: Re: Recording video in WinApe
Post by: mr_lou on 19:19, 05 June 15
Quote from: TFM on 21:03, 07 December 10
And maybe somebody know, how to record without having Mode 2 screwed up...

Any news on this?

I'm in need of recording video of MODE 2 stuff.
Title: Re: Recording video in WinApe
Post by: mr_lou on 07:10, 07 July 15
Quote from: TFM on 21:03, 07 December 10
And maybe somebody know, how to record without having Mode 2 screwed up...

....this just in!

Executioner just gave me the solution to my problem....

Seems that the latest version does in fact offer proper MODE 2 recording.
But only if:
You don't have the display set to "Half size". I.e. you have to double the pixels.
You set video recording to "Full Size Video" in the dialog.

Now MODE 2 recordings aren't "smudged" anymore.
I can't believe I've been waiting since 2010 for something that was already possible....  ???
Title: Re: Recording video in WinApe
Post by: seanb on 10:29, 07 July 15
I've always found recording in winape to be problematic.

It records fine and plays back the first time no problem but playing the clip back after that I'll rarely get picture or sound.

I made a video using recordings and I had to convert the video using various software before after effects could display it properly
Title: Re: Recording video in WinApe
Post by: ZbyniuR on 14:28, 07 July 15
I recommend to choose one from Microsoft codec in window "Video Compression", because it makes less problems, and you can choose quality by slide. :)
Title: Re: Recording video in WinApe
Post by: seanb on 15:17, 07 July 15
 I'll try that
Title: Re: Recording video in WinApe
Post by: Prodatron on 15:43, 07 July 15
Btw, does someone know if it's possible to remove the repeating "click" sound, which is added as background sound when recording videos?
Title: Re: Recording video in WinApe
Post by: arnoldemu on 17:48, 07 July 15
Quote from: Prodatron on 15:43, 07 July 15
Btw, does someone know if it's possible to remove the repeating "click" sound, which is added as background sound when recording videos?

This is a guess.

There is a parameter which makes the internal sound buffer larger/smaller or at least introduces a bit of latency.

Make that longer.

I am guessing the recording is slowing down the fps enough that the emulator is not filling the sound buffer fully leaving a click.
Give more of a latency and it has more time to do it.

However, the audio *may* then lag the visual a little; so you may need to adjust it after recording.
Title: Re: Recording video in WinApe
Post by: Prodatron on 18:06, 07 July 15
Quote from: arnoldemu on 17:48, 07 July 15This is a guess.
That was a very good idea, but unfortunately it didn't help. I tried 0 and 50 for the "sound buffer synchronisation" and set all other options to "low" but I still have these clicks in the video.
Title: Re: Recording video in WinApe
Post by: arnoldemu on 19:25, 07 July 15
Quote from: Prodatron on 18:06, 07 July 15
That was a very good idea, but unfortunately it didn't help. I tried 0 and 50 for the "sound buffer synchronisation" and set all other options to "low" but I still have these clicks in the video.
:(

Does it change if you choose a different output format? perhaps 16-bit or mono or?
Title: Re: Recording video in WinApe
Post by: Prodatron on 19:53, 07 July 15
Yes, I switched all other settings to the lower ones (mono, 8bit, 22KHz) but it didn't help. Strange thing is: This issue started in 2012 (before that everything was fine) and I have no idea what was changing (as I still have the same PC setup).
Anyway not a big thing, I can live with that :)
Title: Re: Recording video in WinApe
Post by: arnoldemu on 20:06, 07 July 15
Quote from: Prodatron on 19:53, 07 July 15
Yes, I switched all other settings to the lower ones (mono, 8bit, 22KHz) but it didn't help. Strange thing is: This issue started in 2012 (before that everything was fine) and I have no idea what was changing (as I still have the same PC setup).
Anyway not a big thing, I can live with that :)
I had problems with an old pc. I had to change the settings of the hdd.
I think from PIO mode to DMA mode.
Title: Re: Recording video in WinApe
Post by: Apollo on 14:38, 08 July 15
I have the same problem as Prodatron and it appeared with the latest alpha version as well. Don't know any solution yet...
Title: Re: Recording video in WinApe
Post by: Executioner on 23:50, 08 July 15
Quote from: Apollo on 14:38, 08 July 15
I have the same problem as Prodatron and it appeared with the latest alpha version as well. Don't know any solution yet...

Hmm. I get that too. Will look into it.
Title: Re: Recording video in WinApe
Post by: Prodatron on 23:55, 08 July 15
Quote from: Executioner on 23:50, 08 July 15
Hmm. I get that too. Will look into it.
Thanks! I am glad, that you are back on WinApe again!
Title: Re: Recording video in WinApe
Post by: Executioner on 00:48, 09 July 15
Quote from: Prodatron on 23:55, 08 July 15
Thanks! I am glad, that you are back on WinApe again!

I wanted to get a release out back at Christmas, but much has been going on since then and I got busy with other stuff. btw, I've fixed the clicking which was caused by corruption of one of the channels (using EBX as a pointer when BH had sound channel data, in Z80 terms that's like using HL when H has the value you need to write!)
Title: Re: Recording video in WinApe
Post by: mr_lou on 06:18, 26 October 15
Quote from: Executioner on 00:48, 09 July 15
I wanted to get a release out back at Christmas, but much has been going on since then and I got busy with other stuff. btw, I've fixed the clicking which was caused by corruption of one of the channels (using EBX as a pointer when BH had sound channel data, in Z80 terms that's like using HL when H has the value you need to write!)

We noticed this clicking sound when recording the video for the CPC Retro Dev Compo, and I actually remembered something about you saying you'd fixed it.
But looking at the download page at WinAPE.net we already had the latest version.

Is there no version of WinAPE available yet with this fix?
Title: Re: Recording video in WinApe
Post by: AMSDOS on 07:22, 27 October 15
Quote from: mr_lou on 06:18, 26 October 15
We noticed this clicking sound when recording the video for the CPC Retro Dev Compo, and I actually remembered something about you saying you'd fixed it.
But looking at the download page at WinAPE.net we already had the latest version.

Is there no version of WinAPE available yet with this fix?


Couldn't you just delete the sound track in some movie editing program?
Title: Re: Recording video in WinApe
Post by: mr_lou on 07:32, 27 October 15
Quote from: AMSDOS on 07:22, 27 October 15
Couldn't you just delete the sound track in some movie editing program?

Well sure.
But since I spent a long time making the music and sound effects I'd prefer including them.
Title: Re: Recording video in WinApe
Post by: AMSDOS on 07:40, 27 October 15
Quote from: mr_lou on 07:32, 27 October 15
Well sure.
But since I spent a long time making the music and sound effects I'd prefer including them.


I've had the same trouble if I've recorded something from Winape, but have noticed that videos are being produced without the clicking sound, so perhaps another Emulator might do the trick?
Title: Re: Recording video in WinApe
Post by: mr_lou on 07:52, 27 October 15
Quote from: AMSDOS on 07:40, 27 October 15
I've had the same trouble if I've recorded something from Winape, but have noticed that videos are being produced without the clicking sound, so perhaps another Emulator might do the trick?

I prefer an emulator that has video-recording built in, rather than using an external screen recorder, in order to not lose any frames.

I don't mind that the emulator itself slows down during this recording, as long as all frames are captured.

Do you know of any emulator that offers this?

EDIT: Otherwise I actually prefer using the real device(s), which is also why I'm looking into getting myself an external recorder of some kind. But I still feel I know too little about the topic.
Title: Re: Recording video in WinApe
Post by: AMSDOS on 08:33, 27 October 15
CPCE 1.94 allows you to save AVI Video. Going into that option, it'll ask what Codec to use, or Uncompressed if preferred.


You may have CPCE 1.94 without realising it, I ended up with it after I downloaded CPC BASIC 3. In my case I found it in the UTILS/CPCE folder. In CPCE I noticed you can record the Video with or without sound.
Title: Re: Recording video in WinApe
Post by: mr_lou on 10:22, 27 October 15
Quote from: AMSDOS on 08:33, 27 October 15
CPCE 1.94 allows you to save AVI Video.

Ok, I'll check it out. I have a lot of videos I need to record for my project "8bit Stories". But I'm very picky about the quality.
Title: Re: Recording video in WinApe
Post by: mahlemiut on 23:28, 27 October 15
MAME will also record AVI video, but only uncompressed (so you will need a large amount of free disk space).
The -snapsize switch will allow you to set the resolution you want, and the output will be stretched or shrunk to fit (by default it will be at 1:1, which is likely undesirable).
Powered by SMFPacks Menu Editor Mod