|
|
| ilguercio |
| Posted: Mar 23 2012, 01:45 PM |
 |
|
Member
 
Group: Members
Posts: 14
Member No.: 33735
Joined: 6-December 11

|
I've got a video shot at 30fps at with alternate frames:one exposed for highlights and one for the shadows. I obviously need to separate these two streams and blend them so i can have a 30fps file (interpolated) that retains detail both in the shadows and in the highlights. I know there are other programs that can do this but i'd like to do everything in Vdub as i think it's the most user friendly option for basic video processing. Any idea? |
 |
| IanB |
| Posted: Mar 23 2012, 11:26 PM |
 |
|

Avisynth Team Member
  
Group: Members
Posts: 121
Member No.: 22295
Joined: 23-October 07

|
One could certainly write a new VirtualDub filter to do this, but I am unaware of any current filters that would even come close to what you ask.
Avisynth is much more suited to selecting, shuffling and processing clips in unorthodox manners as you describe, ready for final processing in Virtualdub.
To separate a stream, there are verbs like SelectEven, SelectOdd, SelectEvery.
For HDR processing there are plugins available like HdrAGC as well as things like MaskTools which allow pixel level arithmetic between two clips.
To interpolate frames there are various blending options and there is the MVTools plugin which does motion analysis and can motion interpolate new frames into a clip.
Depending on how your input video is structured will determine the exact approach you will require.
If the highlight frames are at the same temporal instant to the shadow frames then you would need to select, hdr then interpolate.| CODE | AviSource("sourcefile.avi") Hilite=SelectEven() Shadow=SelectOdd() HdrAGC(Shadow, Hilight, [I]hdr options, ...[/I]) SomeMVToolsMagicWithMFlow()
|
If the highlight frames are at alternate temporal instants to the shadow frames then you would need to select, interpolate then hdr. This is so you are hdr merging frames that happen at the same temporal instant.| CODE | AviSource("sourcefile.avi") Hilite=SelectEven().SomeMVToolsMagicWithMFlow() Shadow=SelectOdd().SomeMVToolsMagicWithMFlow() HdrAGC(Shadow, Hilight, [I]hdr options, ...[/I])
|
Depending on the actual source material motion interpolation can work quite well but it can also be an absolute disaster. What humans see easily as natural motion, computers have an extremely difficult time evaluating. |
 |
| ilguercio |
| Posted: Mar 24 2012, 05:17 PM |
 |
|
Member
 
Group: Members
Posts: 14
Member No.: 33735
Joined: 6-December 11

|
I'm carefully trying to understand what you've written but it takes some concentration and study since i don't know vdub or Avisynth well. I can do the basics on Vdub and i'd love to have an automatic process that does most of the work for me. I already have a premade workflow but when i tried it yesterday the final footage had quite a lot of unprocessed frames so the video was "blinking" every now and then. It even took more than an hour to complete on my C2D processor laptop. I guess you're talking about scripts to be fed to avisynth. If that's the case i should better understand how it works as a plugin to suit my need. Have you ever done something like this? I can upload the HDR movie to dropbox so you could "kindly" try to process it and show me how to do it? I want to keep it simple, i don't need it to be super fast but i'd love to have a good result in the end. Thanks anyway. |
 |