Moderators: simonsunnyboy, thothy, Moderator Team

Gunstick wrote:Hi
running linux here.
I try to create videos but hatari only has single frame save which creates a gigantic amount of files (I had to patch the source to allow for more then 1000 pictures)
And it does not guarantee that each and every frame is saved.
What I'm looking for is a mode where the emulator primaly saves a video with synchronized sound and every frame equals a picture in the video.
So that should render 50 or 60 or even 72 fps
There is no need to do fancy compression, a simple mjpeg with wav would be nice.
I could not sort out in the source where to hook into to get the right amount of sound bytes going with the current picture and also to put the emulator into a mode where it may run slow but accurately calculates every frame.
Georges

I could not sort out in the source where to hook into to get the right amount of sound bytes going with the current picture and also to put the emulator into a mode where it may run slow but accurately calculates every frame.



npomarede wrote:Hello,
well finally avi support is included in Hatari !
Get the latest devel version from http://hg.berlios.de/repos/hatari/summary and you will get realtime encoding, with no frame skip and full frame rate at 50 or 60 Hz (don't forget to turn off "zoom low res" to avoid recording unneeded zoomed pixels)
Frames are saved as motion PNG and sound as 16 bits stereo PCM, but you can process the file later with mencoder or ffmpeg to use h264 or mp3 for a smaller file size.
Seems you will be able to complete the png/javascript version of Dark Side Of The Spoon on your page with a complete avi
Nicolas

Desty wrote:That's great news! Does it slow down the emulation noticeably when this is happening, or are modern machines fast enough to handle it?


Gunstick wrote:Hi
now that I can create videos (thanks!) I want to compress them without loosing too much quality.
As candidate I use my parallax distorter fullscreen.
The 12 minute video uses 1.3GB
A good quality mp4 still is 900MB big.
Compressing to reasonable 200MB results in the background pattern really being messed up.
Too much movement on the screen.
Very frustrating.
Anyone has a good parameter set for compressing demo-videos?


Gunstick wrote:well, it's 1.3GB
-rw-r--r-- 2 georges georges 1319555846 2009-10-11 15:11 paradist.avi
Which is maybe reasonable as a normal ST screen has 32K but this is a fullscreen which has 64K so that's the double of pixels giving you the double of size.
Here are the first 60 seconds of the video for your pleasure and encoding trials. Look especially at the moving background. As soon as the scroller goes over it, the slight color errors are enhanced into an ultimate pixel smudge.
http://www.storage.to/get/BLJ19luG/paradist_1min_c.avi
http://www.storage.to/get/oj9jmCr6/para ... n_orig.avi
I put it in original and encoded versions. The encoded version is mp4 with 300kbit and quality 20. If your player does not play it, well I may have messed up the fourcc as it states xvid instead of mpg4. But we are talking linix here, do we.
Here's my encoding command line
mencoder "$1" -oac mp3lame -lameopts preset=64 -ovc lavc -lavcopts vcodec=mpeg4:vqscale=20:vbitrate=300 -ffourcc XVID -o "$1.mp4"
Have fun
Georges


Gunstick wrote:On a coll C64 demo on youtube I did read that I should go see the better quality video on capped.tv
Oh and it was really batter.
So I uploaded my test file
And it compressed to a nice 22MB which is streamable.
Then I dug through that guy's blog until I came across a link which he used to write the encoder.
http://blog.massanti.com/2008/01/01/enc ... for-flash/
Which in short says to encode with a variation of these parameters:
mencoder "$filename" -o "${filename%.*}_temp-crf=${crf}.264" -passlogfile "${filename%.*}"_temp.log $rsize -ovc x264 -x264encopts bitrate=$bitrate:frameref=8:bframes=3:b_adapt:b_pyramid:weight_b:partitions=all:8x8dct:me=umh:subq=6:trellis=2:brdo:threads=auto:pass=1:analyse=all -of rawvideo -nosound
I'm now working with that to get a nice demovideo compressor parameter set.

npomarede wrote:
By the way, I forgot to add that mencoder/ffmpeg will by default first transform RGB images to YUV with a possible compression of V. This will immediatly result in shorter files, but the color will be altered (slightly darker), so you may try to use the "format" parameter in mencoder to use YUV or to keep the data as RGB (as captured under Hatari).
h264 compression is certainly a complicated things to get the most of it.
Nicolas

Gunstick wrote:If you can come up with a command line using RGB I would be please to have that. Currently mencoder just says:
"The selected video_out device is incompatible with this codec."
if I attempt to use -vf format=rgb24
Georges


Gunstick wrote:before I try other encodings, I have put up the first video into the DSOTS online demo.
Have fun!
yes it's the parallax distorter.
http://www.ulm.lu/ulm/DSOTS.html
Georges

npomarede wrote:I like the way you recoded the main menu in a html page, very funny to use (a little hard to click on a door sometimes)
npomarede wrote:
By the way, regarding the parallax distorter, will you ever publish the revolutionary technique you used with the keyboard processor if I recall correctly ?
Nicolas

Gunstick wrote:Thanks. You never seen that page before? It's online since 10 years. You need to get the lion in front of the door, and clicking the lion then should click through to the door (mostly). Advantage compared to the real demo: you have a scrollbar for fast moving through the menu. I will put more flash in there, as not many people do the hassle of installing ym and mod player plugins. So all this will be done with hidden flash players.
I digitized now the playfield screen. So that's the next one going on the site.
npomarede wrote:
By the way, regarding the parallax distorter, will you ever publish the revolutionary technique you used with the keyboard processor if I recall correctly ?
Nicolas
This is off topic in this thread so I won't discuss it here (you can ask the question on the coding forum, maybe we can get a fun discussion going)
Georges

Users browsing this forum: CommonCrawl [Bot] and 0 guests