Recording Video in VICE

You need an actual VIC.

Moderator: Moderators

Post Reply
User avatar
Jeff-20
Denial Founder
Posts: 5759
Joined: Wed Dec 31, 1969 6:00 pm

Recording Video in VICE

Post by Jeff-20 »

I want to capture a video of programs running in VICE. I have the "Precompiled FFMPEG video/audio codec", but I'm not sure why it's not working for me. Can anyone give me an "idiot's guide" to making this work?
High Scores, Links, and Jeff's Basic Games page.
rhurst
Omega Star Commander
Posts: 1371
Joined: Thu Jan 31, 2008 2:12 pm
Website: https://robert.hurst-ri.us
Location: Providence, RI
Occupation: Tech & Innovation

Post by rhurst »

Under Snapshot menu, select option Save Media File...
Then change image format to FFMPEG, enter a filename, and start recording. You should see something like this, if invoked from the command-line:

Code: Select all

Output #0, avi, to '/media/retro/Commodore/VIC20/quikman+8k/quikman+8k.mpg':
    Stream #0.0: Video: mpeg4, yuv420p, 416x256, q=2-31, 800 kb/s, 90k tbn, 60 tbc
    Stream #0.1: Audio: libmp3lame, 44100 Hz, 1 channels, s16, 64 kb/s
I do not know how to make that happen from the command-line, if it is even possible. Help on this topic from the command-line and its built-in help is terse to say the least.
Any technology distinguishable from magic is insufficiently advanced.
https://robert.hurst-ri.us/rob/retrocomputing
User avatar
Jeff-20
Denial Founder
Posts: 5759
Joined: Wed Dec 31, 1969 6:00 pm

Post by Jeff-20 »

I think I'm having trouble installing the FFMPEG files. I've unzipped and executed the files, but I haven't noticed any change in VICE. The FFMPEG options are still visible but inaccessible. Maybe the files are just not in the right place?
All the FAQs and documentation seems to assume that the user has installed it properly, so I'm too far away for that sort of help.
High Scores, Links, and Jeff's Basic Games page.
rhurst
Omega Star Commander
Posts: 1371
Joined: Thu Jan 31, 2008 2:12 pm
Website: https://robert.hurst-ri.us
Location: Providence, RI
Occupation: Tech & Innovation

Post by rhurst »

Yes, you probably are. You need the shared DLL files put in the same folder as WinVICE. A quick use of Cygwin's strings command on xvic.exe reveals:

Code: Select all

rhurst@Win7-vm /cygdrive/c/WinVICE-2.3-x64
$ strings xvic.exe | grep -i dll
opening dynamic library avcodec-52.dll failed!
avcodec-52.dll
closing dynamic library avcodec-52.dll failed!
opening dynamic library avformat-52.dll failed!
avformat-52.dll
closing dynamic library avformat-52.dll failed!
opening dynamic library avutil-49.dll failed!
avutil-49.dll
closing dynamic library avutil-49.dll failed!
opening dynamic library swscale-0.dll failed!
swscale-0.dll
closing dynamic library swscale-0.dll failed!
...
I suspect these are the version numbers required for this xvic.exe build to work. I could not find a (trustworthy) site with pre-built 64-bit Windows binaries of this version, only the latest-and-greatest, AFAIK, will not work.

Can anyone point to a resource to fetch the proper goodies?
Any technology distinguishable from magic is insufficiently advanced.
https://robert.hurst-ri.us/rob/retrocomputing
User avatar
Jeff-20
Denial Founder
Posts: 5759
Joined: Wed Dec 31, 1969 6:00 pm

Post by Jeff-20 »

I simply cannot find the right files to record video in VICE. Or maybe I'm just putting them in the wrong place. Could someone send me a copy of their VICE folder with video working properly? The whole file should be small enough to attach to an email. It would really help with a big project I'm working on.
High Scores, Links, and Jeff's Basic Games page.
Boray
Musical Smurf
Posts: 4064
Joined: Mon May 03, 2004 10:47 am

Post by Boray »

With VICE 2.3 you need these files:
http://iancoog.altervista.org/vice/ffmp ... vice22x.7z

(Click on "qui")
PRG Starter - a VICE helper / Vic Software (Boray Gammon, SD2IEC music player, Vic Disk Menu, Tribbles, Mega Omega, How Many 8K etc.)
User avatar
Jeff-20
Denial Founder
Posts: 5759
Joined: Wed Dec 31, 1969 6:00 pm

Post by Jeff-20 »

Hey! Thanks! This works very well. It doesn't keep my video aspect ratio settings. Do you use any specific software to adjust the screen ratio or crop the large borders for a final video?
High Scores, Links, and Jeff's Basic Games page.
rhurst
Omega Star Commander
Posts: 1371
Joined: Thu Jan 31, 2008 2:12 pm
Website: https://robert.hurst-ri.us
Location: Providence, RI
Occupation: Tech & Innovation

Re: Recording Video in VICE

Post by rhurst »

FYI, looks like VICE development is updating their builds to include ffmpeg source code, and allow for compiling it for either shared or static use. There's more configurable compile-time features, but resurrected support for native recording video is welcome! 8)
Any technology distinguishable from magic is insufficiently advanced.
https://robert.hurst-ri.us/rob/retrocomputing
rhurst
Omega Star Commander
Posts: 1371
Joined: Thu Jan 31, 2008 2:12 pm
Website: https://robert.hurst-ri.us
Location: Providence, RI
Occupation: Tech & Innovation

Re: Recording Video in VICE

Post by rhurst »

I can confirm ffmpeg integration now builds and functions proper in xvic 2.4.17 r29409M (GTK+ AMD64/x86_64 Linux glibc 2.20 GCC-4.9.2):

Code: Select all

FFMPEG Driver: avi
	AC: MP2(86016)
	AC: MP3(86017)
	AC: FLAC(86028)
	AC: PCM uncompressed(65536)
	VC: MPEG4 (DivX)(13)
	VC: MPEG1(1)
	VC: FFV1 (lossless)(34)
	VC: H264(28)
	VC: Theora(31)
FFMPEG Driver: mp4
	AC: MP3(86017)
	AC: AAC(86018)
	AC: AC3(86019)
	VC: H264(28)
	VC: H265(1211250229)
FFMPEG Driver: matroska
	AC: MP3(86017)
	AC: AAC(86018)
	AC: AC3(86019)
	VC: H264(28)
	VC: H265(1211250229)
FFMPEG Driver: ogg
	AC: FLAC(86028)
	VC: Theora(31)
FFMPEG Driver: wav
FFMPEG Driver: mp3
	VC: (0)
FFMPEG Driver: mp2
...
Output #0, mp4, to '/home/rhurst/Videos/quikman+8k.mpg':
    Stream #0:0: Video: h264, yuv420p, 416x256, q=-1--1, 800 kb/s, 60.28 tbn, 60.28 tbc
    Stream #0:1: Audio: mp3, 44100 Hz, mono, s32p, 64 kb/s
...
ffmpegdrv: Initialized file successfully
Sound: Opened recording device device `soundmovie'
Woot! 8)
Any technology distinguishable from magic is insufficiently advanced.
https://robert.hurst-ri.us/rob/retrocomputing
groepaz
Vic 20 Scientist
Posts: 1185
Joined: Wed Aug 25, 2010 5:30 pm

Re: Recording Video in VICE

Post by groepaz »

please test this stuff extensively and report problems ASAP - you never know when andreas loses interest and crawls back into his cave =) (you can find winvice builds here: http://vice.pokefinder.org )
I'm just a Software Guy who has no Idea how the Hardware works. Don't listen to me.
Post Reply