20 November 2016, 07:18 | #1 |
Registered User
Join Date: Nov 2016
Location: USA
Posts: 134
|
Amiga 4000/60: HAM8 video playing @ 25 FPS on HD flat screen
Hello - this is my first posting in this forum. I hope it meets the interests here.
Some time ago I discussed with a friend the capabilities of the Amiga. The question was how could one present the Amiga in a way such that it is easy to relate the Amiga's graphics capabilities to a today's PC. So I came up with the idea having the Amiga show a video of about 3-4 mins on an HD flat screen in exactly the same way as a PC does in full screen mode, meaning you can put them side-by-side and it looks almost the same (from some distance). After several dead ends, flickering screens, and Gurus .. I came up with the following result: With a 68060 and HAM8 I can get 25 FPS at LowRes resolution now. The HAM8 converter png2ilbm, which I found mentioned here in this forum some time ago, worked best for me. I converted a video to an Anim7L with 320x251 @ 25 FPS in HAM8 with a separate color palette in each frame and 3 minutes play length; stretched on the flat screen it appears as 16:9 video. Total ANIM7L file size is 290 MB. It takes 5 min to load the anim7L file into memory (from disk I get only about 12 FPS). It all plays on OS 3.9 (my Amiga has 400MB memory). As player I used viewtek. Finally, I took a video of the Amiga playing the Anim7L video and added the music (of the original video). My goal was to produce a youtube video that I can show to people who know little about the Amiga and that allows to demonstrate to them how good the Amiga actually was and is today. Here is the video, in case you want to have a look - I just put it on youtube: [ Show youtube player ] If you know better solutions I'd be interested to know more about them. cheers, Markus |
20 November 2016, 07:57 | #2 |
Unregistered User
Join Date: Nov 2005
Location: Tasmania
Age: 42
Posts: 893
|
Interesting, I have a couple of questions.
How much slower would this play on an 020 AGA Amiga? I was of the understanding that displaying a sequence of HAM8 images would be more Copper/Blitter intensive than CPU intensive, so I wouldn't imagine a faster CPU makes much difference (some fastram however would). Is Viewtek the only player you tried? Finally, you are in the land of NTSC and yet it seems you used a PAL screenmode, is there any reason why? And can you also get 30fps in NTSC mode with 51 less vertical lines? |
20 November 2016, 08:11 | #3 |
Registered User
Join Date: Jan 2015
Location: Melbourne, Australia
Posts: 548
|
Not bad, not bad at all.
Welcome to the forum, may I suggest you make a post in the Member Introductions section, tell us a bit about yourself, your Amiga, and so forth? If I may make a suggestion or two, while this looks great, it also looks like it could have been done in a video editing program, overlaying the video over the top of a still frame. While it may not look as "professional", it would make it look much more authentic if we saw the workbench screen before and after, and if we could see proof that it's on that screen, so perhaps moving the camera so it's not at a perfect 90 degree viewing angle for the whole thing? I've read about other ways of doing this, instead of using an anim 7 file format, using a more raw data format that takes up much more disk space, but streaming it directly, provided you have a fast enough storage device (which the A4000s IDE may not be fast enough, not sure), but I've seen this done on A500s - obviously not in HAM8. Last edited by TroyWilkins; 20 November 2016 at 09:04. |
20 November 2016, 08:46 | #4 | |
Registered User
Join Date: Nov 2016
Location: USA
Posts: 134
|
Quote:
Why would it be blitter intensive? Most work is done by the CPU decoding the delta compression of the anim7 into chip mem and then switch between the buffers. The copper lists of the buffer should be the same, only the CPU copies the colors into them for each frame. That's how I assume it works, but I never looked at the code. I also tried cyberanim. Cyberanim appears to be 2-3 frames faster, but it cannot handle different color paletts (it runs but creates flicker). With HAM8 and a fixed color palette Cyberanim works OK. I am in the land of NTSC but I am using a PAL Amiga (using a power converter). |
|
20 November 2016, 10:13 | #5 | ||
Registered User
Join Date: Nov 2016
Location: USA
Posts: 134
|
Quote:
Quote:
Streaming would certainly be great, as the size wouldn't be an issue anymore. I am using an Elbox FastATA 4000. I have some 4GB partitions on the hard disk, hence streaming it would be the way to go if it works fast enough. |
||
20 November 2016, 10:28 | #6 |
Registered User
Join Date: Jan 2015
Location: Melbourne, Australia
Posts: 548
|
I'm trying to find the link I found ages ago again, but this seems to be relevant. Doesn't appear to be running at 25FPS, but also appears to be a stock 7MHz CPU
[ Show youtube player ] |
20 November 2016, 11:09 | #7 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
some time ago, there was introduced a HAM6/HAM8 player, avi4hv - just in case you missed that. (linux based converter: hvconvert)
this one features vid and sound, compared to iff-anims. starting with this posting, you get some examples on how to prepare your video files - using ffmpeg ( framerate parameter "-r" ) HAM6 / HAM8 conversion finaly done with AVI4HV.EXE / AVI4AGA.EXE (win32 tools) eg: AVI4HV.EXE video.avi --> on the following "?" you have to enter the audio file: video.wav - next enter the output file: video.hv the *.RUN files are the amiga player executables (on the command line, ensure you have no additional space after or infront of the video.hv name). examples by skullscandle, abbalah & pandy71 @TroyWilkins: i think you were looking for AVI4HV Last edited by emufan; 20 November 2016 at 12:21. |
21 November 2016, 01:07 | #8 |
Registered User
Join Date: Jun 2010
Location: PL?
Posts: 2,766
|
ffmpeg can produce directly RGB444, additionally some CLUT can be created to improve HAM conversion.
Perhaps someone is able to add encoder for ANIM/CDXL to ffmpeg (currently ffmpeg support only decoding for CDXL and ANIM). RAW video play out in Amiga is limited by RAM bandwidth and storage bandwidth. Vampire and similar architecture accelerators can be capable to deliver 352x576 25fps performance. |
24 November 2016, 12:30 | #10 | |
Registered User
Join Date: Nov 2016
Location: USA
Posts: 134
|
Quote:
To play the video (generated for 25 FPS) takes 4:00 minutes (instead of 3). This means it can read&display about 19 frames/s (320x200) from disk. In my video I used 320x251 - which would reduce the max frame rate further. However, it also handles sound - I am not clear how much time playing/reading the sound requires in addition to the graphics. Even when considering that it is HAM6 (and not HAM8) it has many artifacts - I guess this converter is using only one color palette for the entire video. I will see if I get this working on Windows as well or do you know a linux version for the HAM8 version as well? |
|
24 November 2016, 12:33 | #11 | |
Registered User
Join Date: Nov 2016
Location: USA
Posts: 134
|
Quote:
|
|
24 November 2016, 16:35 | #12 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
this is really cool, but came a bit too late i guess.
the only program i know of producing such anims is Wavetracer. you have to load some anim then you can add sound to it. not really that userfriendly but it works somehow the quality of the resulting .hv anim depends on the avi done with ffmpeg. i'm not an expert on this, but some results on youtube are really good. |
02 March 2017, 09:46 | #13 | |
Registered User
Join Date: Nov 2016
Location: USA
Posts: 134
|
Quote:
|
|
03 March 2017, 01:53 | #14 | |
Registered User
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
|
Quote:
If you are using the (very slow) FFS then switching to PFS3 will really help. |
|
03 March 2017, 02:58 | #15 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
i had some problems with anims larger than ram size. i wrote down some wavetracer guide.
using BigAnimFX you can play those big anims from harddrive. there is also a link to a java based peecee application, which is the successor of wavetracer. you can test play my Still Alive iffsfx anim. it does play correct here. #1) Moloch here on EAB wrote his own tool to build such iff sound anims. fantasia v1.0a. i'm not sure if he will release it into the public. i wrote a pm, asking to make it public Last edited by emufan; 03 March 2017 at 20:58. |
03 March 2017, 07:45 | #16 |
J.M.D - Bedroom Musician
Join Date: Apr 2014
Location: los angeles,ca
Posts: 3,529
|
Want to be honest, for me best performance that can be obtained by an OCS/ECS A500 is around 12 to 15 FPS (depending if PAL or NTSC) and would focus on that; it was the speed i did my animations.
|
03 March 2017, 20:49 | #17 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
in the zone: fantasia_v1.0a_by.Moloch.EAB.lzx
usage: fantasia anim sound dest i cannot find the original description. IIRC soundfile has to be 22050 Hz 8 bit 8svx to play the anim use AnimFX / BigAnimFX . thanks moloch |
04 March 2017, 03:18 | #18 |
Banned
Join Date: Jan 2010
Location: Kansas
Posts: 1,284
|
The new version of RiVA can play most 320x240 25fps mpeg videos at full speed on my 68060@75MHz.
http://eab.abime.net/showthread.php?t=85895 http://eab.abime.net/showpost.php?p=...8&postcount=22 MPEG videos are much smaller than HAM8 videos. |
05 March 2017, 14:41 | #19 | |
Registered User
Join Date: Jun 2010
Location: PL?
Posts: 2,766
|
Quote:
http://www50.zippyshare.com/v/kSrphpSw/file.html http://www50.zippyshare.com/v/8etHWfLa/file.html http://www50.zippyshare.com/v/KbJjo6WK/file.html btw MPEG1 encoding was 8 times slower than encoding h264 and it is lower quality... All above files are encoded to be playable from floppy with hardware interface so overall bitrate not exceed 250kbps (so you can create megafloppy mountlist and use some floppy emulator) but quality is very high especially in case of h.264. File INNA-SayItWithYourBody-ExclusiveOnlineVideo_ycgco_h264_.mkv is converted to 12.5fps (with motion compensation). All files have applied antialiasing to improve quality. |
|
05 March 2017, 16:24 | #20 | |
Banned
Join Date: Jan 2010
Location: Kansas
Posts: 1,284
|
Quote:
Amiga users don't have as many options for video. MPEG-1 videos are small enough to reduce disk loading bandwidth requirements while being light enough for older CPUs. There are older codecs like Cinepak and Sorenson (can be in AVI or QT files and played with the fast MooVID/Action) for even slower CPUs (but needing higher disk bandwidth and more storage space). The following link shows an AVI being played in HAM8 mode. [ Show youtube player ] HAM8 offers some compression itself with a kind of hardware decompression on AGA machines but long videos made of HAM8 frames are going to be excessively large and impractical. |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is Indivision AGA MkIIcr compatible with Video Toaster 4000 in a 4000? | pgovotsos | support.Hardware | 0 | 07 January 2016 05:26 |
4000% CPU, 1.1 FPS, Macerated Audio | MoarPye | support.WinUAE | 10 | 13 September 2013 14:04 |
Flat screen | lost_loven | support.Hardware | 4 | 27 February 2012 00:15 |
CRT vs Flat Screen? | fatboy | Retrogaming General Discussion | 22 | 30 April 2011 09:34 |
HAM8 screen question. | Thorham | Coders. General | 28 | 04 April 2011 19:26 |
|
|