Auto exposure puzzle

terrypin wrote on 9/2/2014, 5:31 AM

In familiar fashion, I selected a video clip's last frame, exported a BMP and reimported that alongside the video.

It looked a bit dull so I applied Effects > Brighness/Contrast > Auto exposure to both the video clip and the BMP. But although both started with identical appearance, the BMP became much brighter than the video.

Obviously, I then went back and did what I should have done in the first place, namely applied the Auto exposure to the video clip before exporting the BMP.

But I'm curious to learn the technical explanation for the difference please?

--
Terry, East Grinstead, UK

Last changed by terrypin on 9/2/2014, 5:31 AM, changed a total of 1 times.

Terry, East Grinstead, UK. PC: i7 6700K, 4.0 GHz, 32GB with Win 10 pro. Used many earlier versions of MEPP, currently mainly MEPP 2016 & 2017 (Using scores of macro scripts to add functionality, tailored to these versions.)

Comments

emmrecs wrote on 9/2/2014, 8:54 AM

Hi Terry.

Just a guess on my part but the AutoExposure process on the complete clip may have been exactly that; i.e. in effect "averaged" over the whole thing.  Whereas the single image has no "differences over time" as it were and hence the effect has become more pronounced.

As I say, purely a guess!

Jeff

Last changed by emmrecs on 9/2/2014, 8:54 AM, changed a total of 1 times.

Win 11 Pro 64 bit, Intel i7 14700, 32 GB RAM, NVidia RTX 4060 and Intel UHD770 Graphics, Audient EVO 16 audio interface, VPX, MEP, Music Maker, Vegas Pro, PhotoStory Deluxe, Xara 3D Maker 7, Samplitude Pro X7 Suite, Reaper, Adobe Audition CC, 2 x Canon HG10 cameras, 1 x Canon EOS 600D, Akaso EK7000 Pro Action Cam

browj2 wrote on 9/2/2014, 9:25 AM

Hi Terry,

I can't explain this. It probably has something to do with the resolution. John EB likely has the answer.

I noticed recently a feature that I hadn't used before and I don't know if you saw it. I was exporting a frame and then reimporting as are you. This feature is to right click on the video with the playback marker where you want the still, and select "Create still frame." This effectively inserts a still image at the playback marker location, replacing the remaining length of the clip with a still image. The still image created will be 1 frame long so you have to drag it out, moving everything else to the right.

This should take care of any differences in colour correcting and exposure, as the resolution would be the same.

If you want to insert it in the middle of a clip, cut the clip, go to single frame, go to the beginning of the last image and create the still frame. I think it cuts out the last image of the video clip to create the still. I tried with the playback marker at the end of the last image and the video disappeared but placed a new black video on track 2. Strange. So you have to be careful.

There seems to be a problem if I do this part way through the clip. The still image does not seem to be the image just after the playback marker. I'm still testing to find out how far along the video the image is taken from, but there is a very noticeable sudden movement from the now last video frame to the still image. If you try this, please let me know how you make out.

Regards,

 

 

Last changed by browj2 on 9/2/2014, 9:25 AM, changed a total of 1 times.

John C.B.

VideoPro X(16); Movie Studio 2025 Platinum; Music Maker 2025 Premium Edition; Samplitude Pro X8 Suite; see About me for more.

Desktop System - Windows 10 Pro 22H2; MB ROG STRIX B560-A Gaming WiFi; Graphics Card Zotac Gaming NVIDIA GeForce RTX-3060, PS; Power supply EVGA 750W; Intel Core i7-10700K @ 3.80GHz (UHD Graphics 630); RAM 32 GB; OS on Kingston SSD 1TB; secondary WD 2TB; others 1.5TB, 3TB, 500GB, 4TB, 5TB, 6TB, 8TB, 12TB, 14TB; three monitors - HP 25" main, LG 4K 27" second, HP 27" third; Casio WK-225 piano keyboard; M-Audio M-Track USB mixer.

Notebook - Microsoft Surface Pro 4, i5-6300U, 8 GB RAM, 256 SSD, W10 Pro 20H2.

YouTube Channel: @JCBrownVideos

johnebaker wrote on 9/2/2014, 1:54 PM

Hi

@ Terry

. . . . It looked a bit dull . . . .

I have tested exporting a single frame from different video clips - high, medium and low contrast -  and get no difference in the exported jpg's and the frame's from which they were captured - all at the same 1920 * 1080 resolution ! !

. . . . It probably has something to do with the resolution. John EB likely has the answer. . . . .

Maybe .

What I have noticed in image editing software, is that when I reduce an image, say a 3840 * 2160 px image down to 1920*1080, there is some loss of sharpness / brightness / contrast depending on the resample algorithm used - normally I would use a Bicubic setting.

With MEP automatically resizing still images to fit the project resolution, and video if the source resolution is higher then the project, eg HD --> DVD, we have no control over the algorithm / method used, however I would suspect resolution reduction may play a part of the issue when there is a significant reduction in size eg HD --> DVD.

. . . . The still image does not seem to be the image just after the playback marker. I'm still testing to find out how far along the video the image is taken from, . . . .

I think that depends on where the nearest I frame is so the exact location on the clip may not be exactly where the cursor is however it should be within - IIRC ~1/8 to 1/2 second depending on the GOP structure of the video.

HTH

John

 

Last changed by johnebaker on 9/2/2014, 1:55 PM, changed a total of 3 times.

VPX 16, Movie Studio 2025, and earlier versions 2015 and 2016, Music Maker Premium 2024.

PC - running Windows 11 23H2 Professional on Intel i7-8700K 3.2 GHz, 16GB RAM, RTX 2060 6GB 192-bit GDDR6, 1 x 1Tb Sabrent NVME SSD (OS and programs), 2 x 4TB (Data) internal HDD + 1TB internal SSD (Work disc), + 6 ext backup HDDs.

Laptop - Lenovo Legion 5i Phantom - running Windows 11 24H2 on Intel Core i7-10750H, 16GB DDR4-SDRAM, 512GB SSD, 43.9 cm screen Full HD 1920 x 1080, Intel UHD 630 iGPU and NVIDIA GeForce RTX 2060 (6GB GDDR6)

Sony FDR-AX53e Video camera, DJI Osmo Action 3 and Sony HDR-AS30V Sports cams.

terrypin wrote on 9/2/2014, 4:13 PM

Thanks all. Very odd. I'll study more carefully in the morning (just returned from a wine tasting!) but as the resolution of the BMP was the same as the video (1920x1080), Jeff's idea looks best guess so far. I suppose it might be tested with a 'still' video.

Terry, East Grinstead, UK 

Last changed by terrypin on 9/2/2014, 4:13 PM, changed a total of 1 times.

Terry, East Grinstead, UK. PC: i7 6700K, 4.0 GHz, 32GB with Win 10 pro. Used many earlier versions of MEPP, currently mainly MEPP 2016 & 2017 (Using scores of macro scripts to add functionality, tailored to these versions.)

Scenestealer wrote on 9/2/2014, 7:20 PM

Hi Terry

The answer to this is probably that the timeline marker was at a different place in the video when you hit Auto exposure than where you exported the still frame.

Auto Exposure adjusts for the best result where the playhead is, which may not be ideal at another point in the clip where the content or exposure has changed. It does not average unfortunately although this can be an advantage - if the change is too dramatic on an underexposed section shifting to another point that's better exposed can often give a lesser effect to the previous section.

John E.B.

I think that depends on where the nearest I frame is so the exact location on the clip may not be exactly where the cursor is however it should be within - IIRC ~1/8 to 1/2 second depending on the GOP structure of the video.

That sounds reasonable but what about some of the Long GOP formats used with Phones etc., which are sometimes have up to 130 frames between I frames?

Peter

Last changed by Scenestealer on 9/2/2014, 7:20 PM, changed a total of 1 times.

System Specs: Intel 6th Gen i7 6700K 4Ghz O.C.4.6GHz, Asus Z170 Pro Gaming MoBo, 16GB DDR4 2133Mhz RAM, Samsung 850 EVO 512GB SSD system disc WD Black 4TB HDD Video Storage, Nvidia GTX1060 OC 6GB, Win10 Pro 2004, MEP2016, 2022 (V21.0.1.92) Premium and prior, VPX7, VPX12 (V18.0.1.85). Microsoft Surface Pro3 i5 4300U 1.9GHz Max 2.6Ghz, HDGraphics 4400, 4GB Ram 128GB SSD + 64GB Strontium Micro SD card, Win 10Pro 2004, MEP2015 Premium.

terrypin wrote on 9/3/2014, 2:09 AM

Thanks Peter, that's it!

Quite a revelation. I'd never thought about it before and suppose I'd always tacitly assumed that, for a video object, Auto exposure did base its operation on some sort of 'average'. But now that you have made me think about it logically, that's plainly impractical if not impossible. What useful result could it deliver, for example, for a room shot during which the lights were switched on or off? Or indeed my specific case, which was of a Google Earth tilt, ranging from an overhead view of dark terrain to the light sky filling the top third?

I'll ensure in future that I place the timeline marker at the start of the last frame, where the still was captured, before clicking that button.

--
Terry, East Grinstead, UK

Last changed by terrypin on 9/3/2014, 2:09 AM, changed a total of 2 times.

Terry, East Grinstead, UK. PC: i7 6700K, 4.0 GHz, 32GB with Win 10 pro. Used many earlier versions of MEPP, currently mainly MEPP 2016 & 2017 (Using scores of macro scripts to add functionality, tailored to these versions.)