Quantcast ImageSource insists on starting at 0 in sequence? - digitalFAQ Forum
  #1  
12-29-2017, 04:48 AM
koberulz koberulz is offline
Premium Member
 
Join Date: Feb 2016
Location: Perth, Australia
Posts: 452
Thanked 3 Times in 2 Posts
Code:
SourceVid = AVISource("Capture2.avi")
Patch1 = ImageSource("RF_AEPatches\Capture1\Capture1_%05d.png,start=6946,end=6947")

return Patch1
Returns this error:
Code:
---------------------------
VirtualDub Error
---------------------------
Avisynth open failure:
ImageReader: error 'Could not open file' in DevIL library.
reading file "[path]\RF_AEPatches\Capture1\Capture1_00000.png,start=6946,end=6947"
DevIL version 166.
([file].avs, line 2)
---------------------------
OK   
---------------------------
What am I doing wrong? The way I understand the documentation, the 'start' parameter should have it skip the first 6945 numbers when looking for file names, so the absence of 00000.png should be irrelevant.

For context, I've tried to use FixRips to fix up some footage, with the crop-and-overlay technique. But it couldn't avoid all the areas I needed to avoid, so where it's too aggressive I've pulled small sequences of frames into After Effects, and then am exporting as PNG sequences either patched up in AE or for editing in Photoshop. I'm then hoping I can use RemapFrames or similar to re-insert the PNGs to the correct place in the AVI. So for this two-frame sequence manually pulling in each PNG probably isn't a bad workaround, but 10-15 frame sequences later on are going to be an absolute pain unless I can get this working.

As discovered in the VH equivalent of this thread, it turns out I'm too stupid to put my closing quotes in the right spot.

Here's the result.


Attached Files
File Type: mp4 1989_MEL.mp4 (64.52 MB, 4 downloads)
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Ads / Sponsors
 
Join Date: ∞
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
01-28-2018, 08:34 AM
lordsmurf's Avatar
lordsmurf lordsmurf is online now
Site Staff | Video
 
Join Date: Dec 2002
Posts: 11,082
Thanked 1,969 Times in 1,698 Posts
It doesn't happen often, but I have no idea what you're trying to do here. None.

- Did my advice help you? Then become a Premium Member and support this site.
- Find television shows, cartoons, DVDs and Blu-ray releases at the TVPast forums.
Reply With Quote
  #3  
01-28-2018, 10:26 AM
koberulz koberulz is offline
Premium Member
 
Join Date: Feb 2016
Location: Perth, Australia
Posts: 452
Thanked 3 Times in 2 Posts
I used your cleanup script to get rid of the various glitches and things. Of course, that also removes limbs and the ball quite regularly.

So I then used the code sanlyn gave me to crop it just to problem areas on problem frames, and overlay it (where it's working on the capture and "B" is the version that's been through your cleanup filter):
Code:
C = B.Crop(0,34,0,16)
O = Overlay(A,C,x=0,y=34)
A1 = ReplaceFramesSimple(A,O,mappings="[1211 1216]")
Etc, etc. Occasionally also using ReplaceFramesMC() instead of B, depending on the exact issue.

This still isn't perfect - for example sometimes the glitches occurred over the ball, so I had no choice but to wipe the ball out if I wanted to remove the error. In these cases I brought those frames into Photoshop, painted the ball back in, and saved as a PNG sequence.

Then used RemapFrames to put the Photoshopped frames back in their correct spot.

For the one at 33-34 seconds, it was just fading out the guy in white on the top left, then fading him in at his new spot. So I had to get into AE and create a morph from one position to another (after masking the player), Photoshop to create a clean background plate, and composite all of it and crop it to the problem area.

Plus the usual color correction, noise removal, etc.
Reply With Quote
  #4  
02-03-2018, 06:07 PM
lordsmurf's Avatar
lordsmurf lordsmurf is online now
Site Staff | Video
 
Join Date: Dec 2002
Posts: 11,082
Thanked 1,969 Times in 1,698 Posts
You're doing something I've never done.

And I'm still 100% sure what exactly you're doing. I'd have to see the step-by-step with samples as you go (not just before/after). From what I gather, filtering only parts of an image, merging things, and retouching in Photoshop and AE.

That seems like a lot of work for a personal project.

- Did my advice help you? Then become a Premium Member and support this site.
- Find television shows, cartoons, DVDs and Blu-ray releases at the TVPast forums.
Reply With Quote
  #5  
02-04-2018, 08:54 AM
koberulz koberulz is offline
Premium Member
 
Join Date: Feb 2016
Location: Perth, Australia
Posts: 452
Thanked 3 Times in 2 Posts
I'm an obsessive bastard. It's only a handful of frames over the whole game, so it's not too bad.

And, frankly, it's fun. That one at 33-34 seconds was incredibly satisfying when I beat it. I threw so many different things at it trying to make it work, in several different combinations, and having actually solved that problem was immensely satisfying.
Reply With Quote
  #6  
02-04-2018, 02:08 PM
koberulz koberulz is offline
Premium Member
 
Join Date: Feb 2016
Location: Perth, Australia
Posts: 452
Thanked 3 Times in 2 Posts
Here's what I started with after QTGMC. I'll sort some step-by-step stuff later, hopefully tomorrow.


Attached Files
File Type: avi Capture1.avi (7.46 MB, 3 downloads)
Reply With Quote
  #7  
02-17-2018, 12:08 PM
koberulz koberulz is offline
Premium Member
 
Join Date: Feb 2016
Location: Perth, Australia
Posts: 452
Thanked 3 Times in 2 Posts
Okay so I took a bit longer than expected.

I started with the above sample, and then did this:
Code:
C = ReplaceFramesMC(7421,14).Crop(0,80,0,56)#.Invert("Y")
O = Overlay(A,C,x=0,y=80)
A458 = ReplaceFramesSimple(A457,O,mappings="[7421 7434]")
Mostly works, except for the player on the top left:
ReplaceFrames8.avi

That needs patching up. So, I imported the whole thing into after effects.

In After Effects, I masked the player in question in his start and end positions:
Capture12 (322477).png
You must be logged in to view this content; either login or register for the forum. The attached screen shots, before/after images, photos and graphics are created/posted for the benefit of site members. And you are invited to join our digital media community.


And used the Timewarp effect to animate between them:
Capture12 (322492).png

Then in Photoshop, created a clean background plate:
You must be logged in to view this content; either login or register for the forum. The attached screen shots, before/after images, photos and graphics are created/posted for the benefit of site members. And you are invited to join our digital media community.


I then added that clean plate to the After Effects composition. I did a 3D camera track and made the plate a 3D layer, so it would move as the camera did. I then masked it to only the relevant area, and overlaid the warped player:
Untitled1.gif

Then just crop it to the original altered area vertically (56 pixels starting 80 pixels down), turn on the video behind it, add a black solid to keep the left border in place, and export. Some finishing touches in AviSynth and Premiere, and voila:
You must be logged in to view this content; either login or register for the forum. The attached screen shots, before/after images, photos and graphics are created/posted for the benefit of site members. And you are invited to join our digital media community.


Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting advice for capturing PAL VHS? glazuna Capture, Record, Transfer 11 03-20-2017 03:19 PM
DVD Decrypter, chapters out of sequence? creekminnow Copy DVDs, Duplicate, Replicate 1 02-01-2013 01:05 AM
Starting up a blog - need some guidance DeeSeven Web Hosting 1 01-31-2013 12:47 AM
Scheduled Tasks not starting in Windows? colintyvu Computers 1 08-29-2012 12:45 AM
Menu sequence maker manthing Author, Make Menus, Slideshows, Burn 8 06-11-2006 07:16 PM

Thread Tools



 
All times are GMT -5. The time now is 04:37 PM