DV Info Net

DV Info Net (https://www.dvinfo.net/forum/)
-   Alternative Imaging Methods (https://www.dvinfo.net/forum/alternative-imaging-methods/)
-   -   4:4:4 10bit single CMOS HD project (https://www.dvinfo.net/forum/alternative-imaging-methods/25808-4-4-4-10bit-single-cmos-hd-project.html)

Joshua Starnes July 15th, 2004 12:05 PM

- wait - SHOT? or you mean filmout @ 1080p

It was shot at 1080p using a Sony F950 and recorded to HDCAM.

I'm not sure what the filmout was but I have heard they did all the color correction at 2K, it's possible they filmed out at 2K. Star Wars filmed out at 2K, so do the Pixar movies (in fact, Pixar claims to have the ability to film out at 4K, but says they don't bother because there is absolutely nothing to be gained by doing it).

Ben Syverson July 15th, 2004 12:08 PM

By the time you get to a theatrical release print, which is many generations removed from the negative, no one in the world will be able to sit in a cineplex and tell the difference between 2k and 4k...

Richard Mellor July 15th, 2004 12:42 PM

1080p
 
the movie was shot with a viper 3 chip 1080p filmstream @12bit
2.37 aspect ratio
It was outputted to 35mm film . I can't wait to see this on the big screen.

Steve Nordhauser July 15th, 2004 12:57 PM

Ben:
I don't like to talk about competitor's products so I will talk about a very similar product that we sell. This would be an IBIS-5 based USB 2.0 camera - the SI-1280F-RGB-USB. First, research the IBIS-5 info on this site. Also, be sure you know what bit depth you are working with - 8, 10 or 12. I think the internal A/D might be 10 but it isn't very good - we use an external 12 bit for less smearing. We consider the IBIS-5 (even the new A sensor) to be unacceptable for anything other than high speed and machine vision. Also, although we run our USB cameras at 40-48MHz under certain conditions, it is fairly CPU loading sensitive so if you do much on the PC you can drop frames. Some OEMs go this fast but don't worry about some corrupted frames. Also, the IBIS-5 is not very sensitive - OK, it is an insensitive lout. That is because so much of the pixel is used for the global shutter transistors. There is also a fair amount of global shutter leakage (1.5%) when the electronic shutter is off - this can lead to smearing of bright objects.

The sensor also has quite a bit of single pixel and column offset. You can correct this by doing a dark field correction (also called offset correction) and some other post processing but this eats up your dynamic range. I you start with 256 levels and have to subtract a value of 60 to reach black, you have less than levels to the pixel.

Maybe Sumix has done something magical here, but I would suggest an evaluation period.

Obin Olson July 15th, 2004 12:59 PM

Ben I want to try you filter ASAP in after effects on our footage
can you write it for PC AfterEffects?

Ben Syverson July 15th, 2004 01:13 PM

Steve,

It's my best shot right now, unless you have something that can operate over USB2 or Firewire at 24fps with 1280x720 res. As far as I can tell, the Sumix is pretty much the only thing on the market that can meet those requirements. And it costs around $1000, software included. One thing -- why is the SI-1280F-U (heh) limited to 20fps at 1280x1024? That's only 25 megabytes/sec, while USB2 should be able to handle a good deal more than that... Can you do 24fps 1280x720 on it, at 21megs/sec?

I know exactly what you're talking about in terms of black levels and pixel offsets. And I know that this thing outputs 8bit -- that's fine by me. I basically just need to play with it to understand what's going on. If it's not good enough for production use, I'll still have an interesting camera for experimental shots, and high-speed capture.

CPU loading is no problem -- while capturing, I won't be touching the machine. My feeling is that while the processor will be getting a bit of a workout, it's really the harddrive that will be feeling the heat. Have you guys ever tested your USB2 cams at high speeds/datarates on laptops? Seems like something field scientists and sports guys would want as well as filmmakers...

Obin -- cool, sounds good. I'll whip up a PC version later today.

- ben

Steve Nordhauser July 15th, 2004 01:30 PM

Ben, OK, it sounds like you know what you are stepping in. One last thought - will you be using it in global shutter or rolling shutter mode? In global shutter mode, you integrate, then you read out. This means a very short integration time (low light sensitivity) if you want to keep the frame rate up. I've run ours at 24fps at the full 1280x1024 and had pretty stable images (rolling shutter or very short integration). We found that you need an ICH4,5,6 Intel host controller to get the data rates up. These are scarce on laptops. If you are using rolling shutter, you might want to consider a Micron-based camera.

Our single frame transfer rates are over 40MHz. This does not allow enough interframe communications time to control the sensor over USB, so we extend the vertical blanking time a bit since it is the overlap of communications and data that causes instability.

As long as you are not depending on this for production work - more as an experiment, go for it.

And for the sports people, we suggest gigabit ethernet for speed and the SI-640HF VGA 250fps camera. This has a much better global shutter - integrates while reading and has big pixels.

Eric Gorski July 15th, 2004 01:30 PM

<<<-- If you had 1GB of RAM free, shooting at 21MB/second, you could record to RAM for about 48 seconds. -->>>

could you really just record to ram?... if you could, it would be awesome ...

dell has a laptop for $999 that can hold 2gb or ram... that would be close to 2 minute takes... or what about a rack-mount server? they're really small and can hold up to 32gb! of ram.... that would be like a full 16mm mag?

check out these little rack mounts, they could go on someone's back no problem:

http://www1.us.dell.com/content/products/compare.aspx/rack_optimized?c=us&cs=04&l=en&s=bsd

Ben Syverson July 15th, 2004 01:57 PM

Steve,

I'm going to have to experiment with global vs rolling. I'd obviously rather go with global, but I'll have to see how much it impacts sensitivity.

Do you know if most of these software capturing apps allow direct capture to RAM? If so that may be the way to go -- even if it's not built-in, I could always create a RAM disk and record to that...

Thank you for the comment about I/O controllers. I checked it out, and it seems like at least two Sony lines, the v505 and the Z1 include the ICH4 (82801DB). Also, there seems to be a mobile variant ICH4-M, although I'm not sure how similar they are.

This info about the controller chips is making me lean towards the v505. You can get these pretty souped up.

- ben

Ben Syverson July 15th, 2004 02:26 PM

Okay, after a little research, it turns out that the ICH4-M is standard issue on most Centrino laptops. According to this page, "The desktop and mobile versions of the ICH4 are identical in terms of features, but the ICH4M supports deeper power saving states."

They're so common that even the tiny Sony U50 and U70 have ICH4-M's! Hmm... there are probably other bottlenecks (such as the 1ghz processor), but imagine strapping an HD camera to a U70 -- it would be smaller than my GL1! :)

Edit: The Dell Inspiron 600m also sports an ICH4 (but possibly not of the M variety).

Steve, one more thing: would a laptop based on the ADM Athlon 64 help at all with capturing? You can actually get a pretty good Athlon laptop for around $1000 -- although it's a massive 7.8 pounds. :)

- ben

Steve Nordhauser July 15th, 2004 03:06 PM

Ben,
That might be pretty camera dependent. I would talk to that *other* camera vendor you have been cavorting with. For us, it is the chipset, first, then processor speed.

Ben Syverson July 15th, 2004 05:29 PM

:) Fair enough, Steve. Thank you again for your input and thoughts. I'm looking forward to your Altasens-based camera. Any chance you'll throw an IEEE-1394b port on there? I hear it's a relatively easy interface to develop for, and it's got all the throughput you could use...

Juan M. M. Fiebelkorn July 15th, 2004 05:36 PM

Obin,
Here is all you need to get the best quality from your Bayer Camera.


http://www.insflug.org/raw/software/tools/dcraw.php3

Les Dit July 15th, 2004 05:38 PM

Ben, There is at least one laptop company that has dual drive raid built in.
I forget the name, but I'm sure you can find it !
It's a smaller company... like alienware... but not them

-Les

Ben Syverson July 15th, 2004 05:43 PM

Thanks Les! I'll google it. Although I don't think the hard drive will be a limiting factor, since I've seen real-world 3rd party benchmarks for the Hitachi coming in at 31MB/sec sustained. Hopefully it will be able to reliably handle 21 or 22 MB/sec...

Obin Olson July 15th, 2004 07:14 PM

Ben if your going to shell out money like I did for a total shot in the dark..look around I found an IBIs5 camera for around $600 - I think your $1,000 is a little high for that chip/camera

anyway I REAALLLLYY want to try your after effects filter! email it my way when you get a chance


Juan:
is that a good bayer utility? I have heard it's not that good of a quality..input?

Juan M. M. Fiebelkorn July 15th, 2004 07:31 PM

Really good!!! Have you looked at the image comparison against digital photo cameras internal demosaicking algos??
I don't know why people think it is of low quality.Maybe they use its preview option which uses a simple bilinear method.

I think the imput would need to be modified in order to accept a stream from your camera.

http://www.insflug.org/raw/analysis/...fvu/crops.php3

Ben Syverson July 16th, 2004 01:42 AM

linBayer released!
 
Hey everyone,

I've released the first beta version of linBayer, my bayer filter de-mosaicing plug-in. It's available for PC and Mac, and should work in just about any AE host, such as FCP or Premiere (though I haven't tried). Of course, in After Effects, it works in 16bit.

You can use it to de-mosaic B&W images straight from the camera, or to further clean up RGB images that have been de-mosaiced poorly.

Just visit http://www.bensyverson.com/software/plugins/linbayer/!

- ben

Juan M. M. Fiebelkorn July 16th, 2004 02:51 AM

Ben,
I'm not trying to destroy you work or anything, but DCRAW gives far better results.Don't know about its speed.
An idea.Couldn't you port it to AE, Premiere,etc,etc??

Ben Syverson July 16th, 2004 03:19 AM

Juan -- I can't seem to get dcraw to work. It doesn't like Obin's files, and it doesn't like the Sumix sample files. It keeps saying "unsupported file format." If you have it working, post a 200% crop from my software and from dcraw. Until I see the same image interpreted by linBayer and their software, I can't evaluate what we could do differently.

I don't think there's any point to altering dcraw for our uses -- it's specifically designed for digital still cameras, so it supports a lot of bayer modes we'll never ever need, and deals with EXIF metadata, etc.

Juan M. M. Fiebelkorn July 16th, 2004 04:11 AM

Ok, as you like.I'm not trying to start a war or say your filter doesn't work :).
If you think it is not suitable for this material, it's O.K. for me.
I have a couple of problems now that won't let me do anything with the machine I'm using.
Could you give me .Tiff frame from a Bayer camera to work with?


Edit:
Oh well, lastly I'm not sure wich image format it opens, so I guess it should open tiff, as some cameras output this format.
Anyway don't worry about what I say, cause I have no interest at this moment about modifying it to accept anything.

Jason Rodriguez July 16th, 2004 05:35 AM

DCRAW only works with RAW camera files. Those Canon "TIFF" files, are in fact raw files, not true TIFF files, the extension is quite misleading there.

My main gripe with DCRAW is the zippering effect on the edges (look at the watch-you have to mouse over the image to see the DCRAW output), and the color moiré that also occurs on highlights, etc. If you don't believe me about the results of DCRAW, just go over to www.dpreview.com, and do a search on their forums about DCRAW, and you'll see the same complaints (mainly color moiré is the biggie).

If you'll notice on the Canon output, there are no zippered edges, and yes, while the DCRAW dynamic range is better, the actual interpolation I don't believe is better than what Canon provides in their SDK.

BTW, here's an idea. Can you guys reverse engineer from the DCRAW software a canon .CRW file, so that with Rob's program, you can then use the Canon tools to interpolate the files (because it thinks it's from a Canon camera)?

Obin Olson July 16th, 2004 07:02 AM

I will be testing that plugin today and have a report later on ;)

I hope that it's good enough to use for the filmout we are going to do with this footage soon ;)

Anhar Miah July 16th, 2004 08:27 AM

COOL!! JUST THOUGHT OF SOMETHING
 
First of all, i'm sorry if anyone else has raised this already, so please forgive me if this has been covered already,

BUT......

On the problem of storage, i was thinking why not use solid state?

Whatya guys thinks?

here is a quick google brought up:

E- Disk(R) SAN 48 FLASH SSD

Up to 2.5 million IOPS
Up to 16GB/sec Sustained Read Rate
Up to 9GB/sec Sustained Write Rate
48U cabinet: 295GB - 16.5TB
96 x 2Gbit (200MB/s) host ports
Remote/Local Software Management

And other such products


http://www.bitmicro.com/products_enterprise_net_ssd.php

please reply soon, i would like your take on this

Rob Scott July 16th, 2004 08:33 AM

Re: COOL!! JUST THOUGHT OF SOMETHING
 
Quote:

Anhar Miah wrote:
On the problem of storage, i was thinking why not use solid state?
It certainly looks good, the main issue would be cost.

Anhar Miah July 16th, 2004 09:34 AM

i'm hoping more searching may bring up cheaper/ budget options.

Like i said earlier that was a quick search, i'll look later, if anyone else knows of any cheap options please tell us about it!!


Questions:

(a)What compression schemes are you guys considering?
(b)Would the CPU be fast enough to do compression in real-time before writing to disk, if so generally how fast a CPU would be appropiate (3.0 GHz?)

thanks,

(again sorry if these have been asked before)

David Newman July 16th, 2004 09:52 AM

Yes a 3GHz P4 is fast enough. We have been experimented with direct 10/12bit bayer compression and achieved compression frame rate of around 60fps using 1280x720 sources using a single P4 with a fast memory bus (standard these days.) For 1920x1080 we expect the encoding rate to be around 30fps. These figures were gathered from a variant of the CineForm HD (CFHD) codec used within Aspect HD and Prospect HD. We are investigating the marketability of this type product.

Obin Olson July 16th, 2004 10:42 AM

Ben did a good job. Check the images out:

http://www.dv3productions.com/test_i...en_test_on.jpg
http://www.dv3productions.com/test_i...n_test_off.jpg

Ben Syverson July 16th, 2004 01:11 PM

Juan -- no worries, I was just trying to understand what you were saying.

Jason: I looked at the dcraw source, and it looks like they've documented the bayer patterns and file formats of each camera's RAW file pretty clearly. It should be a trivial effort to generate CRW's from any image -- bayer mosaic or not. I guess my question is: why? Is the Canon interpolation amazing enough to go through the effort?

Obin: thanks man! If you guys want to source to integrate into your app, let me know (it's pretty basic).

- ben

Juan M. M. Fiebelkorn July 16th, 2004 01:24 PM

Guys, I need a quick answer :D

What output format does the capture software output?
Can I get an AVI with the RAW video inside???
I'm trying to make a proof of concept codec with some guy, and we need to know what we are working with.

What do you think about using MXF as container?

Obin Olson July 16th, 2004 02:21 PM

our capture software will support output of avi tiff jpeg maybe cineon - we will use any of the compressors for avi it would be nice to have 10bit native if someone has any ideas?

Ben Syverson July 16th, 2004 02:32 PM

I don't know about AVI, but in Quicktime, there are a few options:
Blackmagic 10-bit
Microcosm from Digital Anarchy
None16 from Digital Anarchy

Juan, why do you need the files in AVI format if you're designing a new codec?

Juan M. M. Fiebelkorn July 16th, 2004 03:22 PM

Obin,

Well that's the idea ;)

Ben,
Because it is a VFW codec.Just that :D
AVI is still the easiest container to work with under Windows environment , although it has a little overhead.
Codecs and containers are different things.
After some more testings, we get realtime 4.5:1 lossless compression for Green channel for a 1920x1080 Bayer.
Nice, isn't it?

The idea is: the same codec would support RAW Bayer Lossles and Near-Lossles (A.K.A. not so lossy), RGB and YUV 4:4:4 formats.
This way everybody could go NLE with the same codec the camera uses.
Ah, it is only meant for 1920x1080.

David Newman July 16th, 2004 03:25 PM

The problem with VfW codec is they can only export 8bit data in RGB, no YUV support and no deeper color supported. You should consider doing a DirectShow codec as it allows you to define custom pixel formats. I used the FOURCC codes BYR1 and BYR2. BYR1 supports 8bit packed raw bayer data from DirectShow and BYR2 is 16bit packed (with 12bit precision). If you use these FOURCC codes our codecs would be interchangable.

Obin Olson July 16th, 2004 03:47 PM

David, we want to support your codec for capture..can you provide anything?

Juan I see NO solution for editing 10bit unless David and CineForm jump in soon...I think if we could capture in 10bit compressed and then transcode over at 8bit when the NLE does it's renders etc that would be fine. This way we can open the 10bit compressed files in after effects and combustion for color work save 8bit and edit.

The biggest problem at the moment is if we want 10bit we must save 16bit tiff files and they are HUGE..no need for this at all..we need a codec/format that is a 10bit lossless compressed MASTER. Later in the editing pipeline it can be 8bit...

Ben Syverson July 16th, 2004 03:54 PM

Juan -- when you say 4.5:1 lossless in the green channel, do you mean 4.5:1 in terms of the original pixel values, or the final image channel?

I ask because it's relatively easy to create a codec that stores only the G where it appears on the sensor. That could be considered 2:1 compression. Then apply standard lossless compression to that (which ranges from 2:1 to 2.5:1) and you have 4-4.5:1. That must be what you're doing, because I don't believe true 4.5:1 lossless image compression is possible at this time (at least not at realtime).

It's worth pointing out that bayer images have a "compression" ratio of 3:1 -- they represent the entire RGB in one B&W image. Add standard RLE or Huffman lossless compression, and you should be able to get it to around 5:1 or 6:1.

That would be an incredibly easy codec to write.

Joshua Starnes July 16th, 2004 04:00 PM

By the time you get to a theatrical release print, which is many generations removed from the negative, no one in the world will be able to sit in a cineplex and tell the difference between 2k and 4k...

Exactly.

the movie was shot with a viper 3 chip 1080p filmstream @12bit

Really? I had heard CineAlta.

I've seen the trailer on the big screen, and it looks great. Can't wait to see the final print. Wonder why Mann chose to shot HD?

Ben Syverson July 16th, 2004 04:12 PM

Obin, I've come around on Cineon. The most commonly-used Cineon format is 10-bit, and you can use it to store linear values. I don't know of any NLE's that support Cineon, but it certainly works with AE, Shake, etc.

For working in an NLE, the workflow would ideally be something like this:

1. Capture to TIFFs/RAWs/Cineons/whatever.
2. Convert files to AVI or Quicktime movies that use a lossless 10bit codec.
3. Also convert the files to DV or some more easily editable format.
4. Edit the movie in DV.
5. When you're done, replace the DV footage with the lossless 10bit HD movies. Most NLEs will let you do this automatically (without manually replacing each clip).

However, if you're using a good enough lossless 10 bit codec, maybe this wouldn't be necessary. If we store the images in the codec in their B&W bayer state, and do lossless compression on them, we should be able to get at least 5:1. And that may be small + fast enough to edit in 10bit uncompressed HD in realtime, without requiring RAID drives.

For example, 720p at 10bit RGB and 24fps takes up 79.1MB/sec. Cut that down by 3:1 if we just store the bayer: 26.36MB/sec. Cut that down by 1.5:1 (lets be conservative -- we could get as much as 2:1), and you get 17.57MB/sec. Now, 17.5MB/sec is not that much of a strain on anyone's computer for read/write. If you have a fast (7200 or 10000rpm) drive, you could probably get two uncompressed 10bit HD streams going at once!

Man, maybe I should look at the Quicktime SDK. I wonder how difficult it is to write a codec...

Jason Rodriguez July 16th, 2004 04:27 PM

I'd second Ben's reply here.

Cineon/DPX is a SMPTE standard file format, and it can store linear values, you don't have to have a 10-bit log file, but if you're trying to get 12-bit vaules into a 10-bit file, then you want to use logarithmic encoding to preserve the entire dynamic range of the image, and not clip off values in the least significant bits.

Ben Syverson July 16th, 2004 04:37 PM

I'm looking at building at QuickTime codec component right now... It looks fairly complex, but I'll see if I can hack my way through it.

- ben


All times are GMT -6. The time now is 01:07 AM.

DV Info Net -- Real Names, Real People, Real Info!
1998-2024 The Digital Video Information Network