I'm trying to replace 18 bad frames in a HuffYUV AVI file which is captured VHS footage. I have clean frames in another HuffYUV AVI file, so I saved an image sequence as BMP files from that AVI. I've already stripped the audio out of the AVI file so I'm just working with video here.
I thought this would be easy using an AviSynth script, but I keep getting this error:
Avisynth open failure:
ImageReader: EBMP reader cannot handle compressed images.
(C:\temp\vdubscript.avs, line 2)
I'm guessing this is due to my BMP files being from a HuffYUV file. Surely AviSynth can read HuffYUV files?
For reference, here's my script:
A=AVISource("I:\Jars Box\temp.avi",False).ConvertToYUY2().AssumeFPS(29. 9700)
B1=ImageSource("C:\temp\frames0000.bmp",fps = 29.9700,End=0).ConvertToYUY2()
B2=ImageSource("C:\temp\frames0001.bmp",fps = 29.9700,End=0).ConvertToYUY2()
B3=ImageSource("C:\temp\frames0002.bmp",fps = 29.9700,End=0).ConvertToYUY2()
B4=ImageSource("C:\temp\frames0003.bmp",fps = 29.9700,End=0).ConvertToYUY2()
B5=ImageSource("C:\temp\frames0004.bmp",fps = 29.9700,End=0).ConvertToYUY2()
B6=ImageSource("C:\temp\frames0005.bmp",fps = 29.9700,End=0).ConvertToYUY2()
B7=ImageSource("C:\temp\frames0006.bmp",fps = 29.9700,End=0).ConvertToYUY2()
B8=ImageSource("C:\temp\frames0007.bmp",fps = 29.9700,End=0).ConvertToYUY2()
B9=ImageSource("C:\temp\frames0008.bmp",fps = 29.9700,End=0).ConvertToYUY2()
B10=ImageSource("C:\temp\frames0009.bmp",fps = 29.9700,End=0).ConvertToYUY2()
B11=ImageSource("C:\temp\frames0010.bmp",fps = 29.9700,End=0).ConvertToYUY2()
B12=ImageSource("C:\temp\frames0011.bmp",fps = 29.9700,End=0).ConvertToYUY2()
B13=ImageSource("C:\temp\frames0012.bmp",fps = 29.9700,End=0).ConvertToYUY2()
B14=ImageSource("C:\temp\frames0013.bmp",fps = 29.9700,End=0).ConvertToYUY2()
B15=ImageSource("C:\temp\frames0014.bmp",fps = 29.9700,End=0).ConvertToYUY2()
B16=ImageSource("C:\temp\frames0015.bmp",fps = 29.9700,End=0).ConvertToYUY2()
B17=ImageSource("C:\temp\frames0016.bmp",fps = 29.9700,End=0).ConvertToYUY2()
B18=ImageSource("C:\temp\frames0017.bmp",fps = 29.9700,End=0).ConvertToYUY2()
C=A.Trim(0,4037)
D=A.Trim(4055,0)
C+B1+B2+b3+b4+b5+b6+b7+b8+b9+b10+b11+b12+b13+b14+b 15+b16+b17+b18+D
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 3 of 3
Thread
-
-
My guess would be you didn't save the bmp's correctly. Can you open them in an image viewer ?
But there is no reason to use images in your case, you can use 2 huffyuv files in AVI
You can trim the frame range of the 2nd huffyuv file in the script if you needed to . If it was the same frames as "A" , then add .Trim(4038,4054) to the 2nd line
Code:A=AVISource("I:\Jars Box\temp.avi",False).ConvertToYUY2().AssumeFPS(29.9700) B=AVISource("otherhuffyfile.avi", false).ConvertToYUY2().AssumeFPS(29.9700) A.Trim(0,4037) ++ B ++ A.Trim(4055,0)
-
Thanks for the ideas pdr. I ended up recapturing the source footage and after playing through the tape a few times was able to get it without the glitches.
Similar Threads
-
Losslessly Extract Frames using Avisynth
By Jay123210599 in forum Newbie / General discussionsReplies: 1Last Post: 10th Nov 2023, 20:43 -
Detect missing frames in video with AviSynth
By MartinBB in forum RestorationReplies: 2Last Post: 10th Sep 2023, 11:06 -
How to decimate extra frames with Avisynth?
By elektro in forum Newbie / General discussionsReplies: 3Last Post: 2nd Oct 2022, 19:55 -
Avisynth+ and grabbing x frames every y frames? I'd like to sample a clip
By Msuix in forum EditingReplies: 2Last Post: 11th May 2021, 15:41 -
Adding solid black frames with avisynth?
By killerteengohan in forum RestorationReplies: 21Last Post: 28th Aug 2020, 08:33