It is currently Thu Mar 28, 2024 4:38 am




 Page 2 of 3 [ 33 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject:
PostPosted: Mon Mar 09, 2009 6:22 am 
User avatar

Joined: Sun Nov 02, 2003 8:15 am
Posts: 1549
Location: netherlands
Hi all,

Audio is a pain in the neck......

When dynamics are high, you need to adapt this.
Otherwise you only hear the loud parts and the silent parts are 'distortions'.
atari is only 4 bit and when you simply convert 16 bit (or 32 bit) to 4 bit this does not work.
First you need to remove dynamics to get all waves within 10% of the audio spectrum, then convert to 4 bit.
I use goldwave (a free program for windows, perhaps also linux).

Cheers,
Sijmen.


Last edited by mr-atari on Mon Mar 16, 2009 4:12 am, edited 1 time in total.

Offline
 Profile  
 
 Post subject:
PostPosted: Mon Mar 09, 2009 4:40 pm 

Joined: Sat Oct 29, 2005 9:54 pm
Posts: 65
Thanks Hias and Sijmen. I am slowly learning.

ATM, I have a couple of RGB videos that I can't seem to get to work on my real 800XL. They seem to work fine with Sijmen's player for Atari800/Atari800Win plus but on the real machine sound is just static and the picture does a vertical roll, but upward. I can see that the image is RGB format but with an overlayed band of video noise, which may be rolling in the reverse direction (downward).

I think I have configured Hias' color.src correctly for my IDE flashdrive (978 cyl, 8 heads, 32 sector/cyl). I chose $A8 (heads + $A0) and 33 (sectors + 1) for the parameters.

I couldn't decipher how to configure Sijmen's movlba.lst

Hias, I was unable to build your myaudio and myvideo tools. I email you the error messages when I get a chance.

I'm still using my own crude methods but at least I'm producing videos.

The last tool (BASIC again) I created converts the Y'UV file (may be YCbCr), produced by Mencoder, to 2-bit RGB. When I completed the tool I realized the algorithmns used are simply overkill when the output is just 2-bit color planes.

Anyway, if anyone is interested, here is a link to the information I used.

http://en.wikipedia.org/wiki/YUV

Enclosed is a sample video. I hope I took a clip correctly.

Sorry but I have no means to provide a screenshot of my problem.

-Steve Sheppard


There are images and/or files attached to this posting. You must be logged-in to view or download this content.


Offline
 Profile  
 
 Post subject:
PostPosted: Tue Mar 10, 2009 1:36 am 
User avatar

Joined: Sun Nov 02, 2003 8:15 am
Posts: 1549
Location: netherlands
wohow, nice sample :-)

Somehow the movie seems slow, sampled at half the speed?

For the real atari, the answer is easy.

The default value for uploading movies is B/W format and RGB is different....
(B/W = 3 sectors sound + 27 sectors video)

For RGB, you need to add 2 extra switches
-ma 4 -mv 24
(=4 sectors for audio + 24 sectors for video)
The atari has more IRQ/NMI delay showing RGB, so I reduced the
data stream from 30 sectors/frame to 28 sectors/frame.
Also I increased the audio to 8333 Hz (better audio) to sync 6 RGB frames
into one atari 50Hz frame.

BTW with these switches you can upload any raw data to MyIDE setting -ma 0 and -mv [anyvalue].

Later,
Sijmen.


Offline
 Profile  
 
 Post subject:
PostPosted: Tue Mar 10, 2009 9:03 am 

Joined: Sat Oct 29, 2005 9:54 pm
Posts: 65
mr-atari wrote:
wohow, nice sample :-)

Somehow the movie seems slow, sampled at half the speed?

For the real atari, the answer is easy.

The default value for uploading movies is B/W format and RGB is different....
(B/W = 3 sectors sound + 27 sectors video)

For RGB, you need to add 2 extra switches
-ma 4 -mv 24
(=4 sectors for audio + 24 sectors for video)
The atari has more IRQ/NMI delay showing RGB, so I reduced the
data stream from 30 sectors/frame to 28 sectors/frame.
Also I increased the audio to 8333 Hz (better audio) to sync 6 RGB frames
into one atari 50Hz frame.

BTW with these switches you can upload any raw data to MyIDE setting -ma 0 and -mv [anyvalue].

Later,
Sijmen.

um, what tool should I be using to upload? I have been using Hias' MyIDETool.

I'm confused. I thought RGB videos are 8.333 frames/sec and audio is 8533 hz.

- Steve


Offline
 Profile  
 
 Post subject:
PostPosted: Tue Mar 10, 2009 9:54 am 
User avatar

Joined: Sun Nov 02, 2003 8:15 am
Posts: 1549
Location: netherlands
Yes, upload with myidetool, but add these 2 switches.
-ma 4 -mv 24
this will use the correct packet ratio between video/audio per frame.
that's all.
(when you omit these switches the ratio is 3/27 for grey, resulting in scrolling up of the picture /w garbage sound)

You are right about the freq. its 8533 Hz. (made a typo).

Attached you find my avitorgb.obj for atari emulator.
Load with assembler, run at $2400
H1 must be set to your working directory
input file: atari.avi (uncompressed AVI with 128x64 RGB pictures)
output file: atari.rgb
You see the converted frames.
Hit "run as fast as possible" to speed up converting.

cheers,
Sijmen.


Last edited by mr-atari on Mon Mar 16, 2009 4:00 am, edited 1 time in total.

Offline
 Profile  
 
 Post subject:
PostPosted: Wed Mar 11, 2009 1:36 pm 

Joined: Sat Oct 29, 2005 9:54 pm
Posts: 65
I finally am finally able to run color movies on MyIDE.

Hias really simplified configuring your joint code, color.src and grey. Not sure what I was doing wrong before but now have 100% commandline switches makes it nearly fool proof (but I have to remember about case sensitivity. LOL).

Now I can answer your earlier question, Sijmen. My sample is at the correct speed. I knew I requested 8.333 frames/sec but until I was able play it on real hardware I couldn't be sure it was correct.

Colors need tweaking but my homebrew YUV to RGB converter wasn't bad. I'm finding purple a bit too prominent and red is lacking, but then again I never found red very convincing on Atari 8-bits.

Haven't tried your lastest sample. Using your latest player may be another challenge. I don't have a 100% working Windows box and that's Win9x.

I'll play around with mplayer/mencoder to see if I can produce the format your player requires.

For little while however I'm just going to have some fun converting movies and enjoying the results.

- Steve


Offline
 Profile  
 
 Post subject:
PostPosted: Mon Mar 16, 2009 4:08 am 
User avatar

Joined: Sun Nov 02, 2003 8:15 am
Posts: 1549
Location: netherlands
Updates DIY kit.

All programs run on the emulator (with assembler)!
set H: to your working directory.
type LOAD#H:name.ext [enter] to load the program
BUG [enter] to enter the debugger
G8000 [enter] or G2400 [enter] to run the program


2 min. demo included (GuitarHero episode from southpark)

Converting input files:
ATARI.AVI, 24 bit 8.333 fps uncompressed 128x64 pixel pc-avi-file
ATARI.SND, 8 bit 8.533 Hz unsigned pc-pcm-file (wave form)
Converted output files:
ATARI.RGB
ATARI.RAW

To view the video:
VIEWERE.OBJ, for emulator set at 200% (about 1 Ghz will do fine)
VIEWERE1.OBJ, for emulator set at 100% (needs faster pc)

Video conversion steps:
set output to 128x64 pixels
set fps at 50/3 (=8.333)
clip frame to 2:1 ratio
select source-range
increase gamma on dark movies
output as uncompressed 24bit ATARI.AVI

Audio converstion steps:
resamp to 8533 Hz
lowpass filter <4250 Hz
highpass filter >100 Hz
maximize
amplify (if needed more then 1 time to remove high dynamics)
baselinecorrection
save as 8bit unsigned ATARI.SND


Offline
 Profile  
 
 Post subject: Re: Atari 8 bit moviez less then 100% D.I.Y-kit :-)
PostPosted: Fri May 21, 2010 11:25 pm 

Joined: Sat Oct 29, 2005 9:54 pm
Posts: 65
It's been quite a while since I converted a movie. Has anyone devised a simplified method to get decent sound in the interim?

-Steve Sheppard


Offline
 Profile  
 
 Post subject: Re: Atari 8 bit moviez less then 100% D.I.Y-kit :-)
PostPosted: Wed Sep 29, 2010 1:43 pm 

Joined: Sat Oct 29, 2005 9:54 pm
Posts: 65
I'm playing with movies again but I can't remember where on the drive the movies belong. Do they go between partitions and images or after images?

Thanks.

-Steve Sheppard


Offline
 Profile  
 
 Post subject: Re: Atari 8 bit moviez less then 100% D.I.Y-kit :-)
PostPosted: Wed Sep 29, 2010 2:05 pm 

Joined: Mon Jan 23, 2006 10:49 am
Posts: 187
Location: Salzburg, Austria
phsstpok wrote:
I'm playing with movies again but I can't remember where on the drive the movies belong. Do they go between partitions and images or after images?

Better store them between partitions and image space, as image space extends up to the end of the drive.

so long,

Hias


Offline
 Profile  
 
 Post subject: Re: Atari 8 bit moviez............. 100% D.I.Y-kit.........
PostPosted: Mon Nov 29, 2010 5:55 pm 

Joined: Sat Oct 29, 2005 9:54 pm
Posts: 65
It's been a while since I converted a color video. My colors seem to be subtly wrong.

In what order is the bit plane data supposed to be? I'm using red, then green, then blue.

-Steve Sheppard


Offline
 Profile  
 
 Post subject: Re: Atari 8 bit moviez............. 100% D.I.Y-kit.........
PostPosted: Mon Nov 29, 2010 6:53 pm 

Joined: Mon Jan 23, 2006 10:49 am
Posts: 187
Location: Salzburg, Austria
Hi Steve!

phsstpok wrote:
It's been a while since I converted a color video. My colors seem to be subtly wrong.

In what order is the bit plane data supposed to be? I'm using red, then green, then blue.

Good question, it's also been a while since I played with the color movies.

If I understood the source right, the order seems to be reversed - blue, green, red.

so long,

Hias


Offline
 Profile  
 
 Post subject: Re: Atari 8 bit moviez less then 100% D.I.Y-kit :-)
PostPosted: Tue Nov 30, 2010 2:48 am 
User avatar

Joined: Sun Nov 02, 2003 8:15 am
Posts: 1549
Location: netherlands
Yes, correct.
A uncompressed AVI has BMP-files in BGR-order.
Why? Don't know.
Perhaps the same reason BMP-pictures are upsidedown ;-)

Later,
Sijmen.


Offline
 Profile  
 
 Post subject: Re: Atari 8 bit moviez less then 100% D.I.Y-kit :-)
PostPosted: Tue Nov 30, 2010 8:51 pm 

Joined: Sat Oct 29, 2005 9:54 pm
Posts: 65
mr-atari wrote:
Yes, correct.
A uncompressed AVI has BMP-files in BGR-order.
Why? Don't know.
Perhaps the same reason BMP-pictures are upsidedown ;-)

Later,
Sijmen.


I must be doing something completely wrong.

Ordering the frames BGR yields scrambled colors for me, e.g. green sky, blue faces, etc.

If I choose RGB then colors look almost right except the color grey replaces anything that should be green.

-Steve Sheppard


Offline
 Profile  
 
 Post subject: Re: Atari 8 bit moviez less then 100% D.I.Y-kit :-)
PostPosted: Thu Dec 02, 2010 1:28 am 
User avatar

Joined: Sun Nov 02, 2003 8:15 am
Posts: 1549
Location: netherlands
Strange, the DIY kit does the conversion correct.
There is no need for you to adjust or re-order.
BTW, there isn't a way to make a AVI with the frames in RGB order.....
Perhaps you can enhance the missing color before converting the movie to AVI?

Later,
Sijmen.


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 2 of 3 [ 33 posts ]  Go to page Previous  1, 2, 3  Next


Who is online

Users browsing this forum: No registered users and 62 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

cron