Basic AviSynth script:What I am struggling to find is a stepo by step guide on editing DV and then exporting for general viewing
encode the avs file with ffmpeg in a command line:Code:AviSource("file_name.avi") # or whatever source reader is appropriate crop(crop_left, crop_top, -crop_right, -crop_bottom) AssumeBFF() QTGMC(preset="slow") addborders(crop_left+crop_right)/2,(crop_top+crop_bottom)/2,(crop_left+crop_right)/2,(crop_top+crop_bottom)/2)
Once you get familiar with the basic, you can introduce more complex processing.Code:ffmpeg.exe -i <file_name>.avs -c:v libx264 -crf 17 -preset slow -aspect 4:3 -c:a aac -b:a 128k output.mp4
+ Reply to Thread
Results 61 to 90 of 125
-
-
Originally Posted by Jonny
This confused me as I only just found that cropping is accessible from within the filters list
Lollo, you're contradicting yourself:
Originally Posted by LolloOriginally Posted by Lollo -
-
I don't see contradiction in his statement.***
- Crop before deinterlace.
- Not cropping before deinterlace introduces problems.
*** I didn't read the whole thread. But it needs to be mentioned that SOMETIMES you only crop after, and SOMETIMES you only crop before. It really depends on factors. It's one of those blanket statements that, read wrong, read out of context (like not reading every post in a thread), leads to massive quality loss. And let's face it, everybody skims, few read every word. (I'm not sure if lollo is correct or not here, but I generally trust his Avisynth scripting, so benefit of the doubt here, not having read it myself.)Want my help? Ask here! (not via PM!)
FAQs: Best Blank Discs • Best TBCs • Best VCRs for capture • Restore VHS -
But it needs to be mentioned that SOMETIMES you only crop after, and SOMETIMES you only crop before. It really depends on factors.
-
The crop before deinterlacing helps to avoid flickering which may happen sometimes on top and bottom scanlines (especially if you work with material with head swithing noise, introducing bad motion vectors at the border for deinterlacer processing routines). It also reduces computation time, but that's marginal.
When cropping before deinterlacing YV12 material (which is generally not a standard for an Analog Capture), be careful to crop using mod4 on the vertical axis to avoid blurring of chroma.
It was just that, I had no wish to be pedantic
edit: for YUY2 crop mod2 vertically, for the same reasonLast edited by lollo; 11th Dec 2023 at 04:39.
-
-
What I meant above was that I search the menus for cropping but could not find it, then re read your guide and realised cropping appeared in the filter list when you click on a filter
-
The problem is that VirtualDub2 cropping filters can have nasty side effects. I reported it several times, with details and samples, and nothing was ever done about it. It's not to be trusted.
Want my help? Ask here! (not via PM!)
FAQs: Best Blank Discs • Best TBCs • Best VCRs for capture • Restore VHS -
So feeling brave, I added the filters, (Deinterlace, Denoise, Resize to 768x576), save video options Huffyuv v21.1. Everything else left as standard - Pixel Format RGB24, No Compression. Video set to Full Processing Mode.
I saved the first 7 as a job que. When I hit Job Control / Start, everything apart from the last one immediately went to status Error. The only one that ran was the last one.
Any ideas?
[Attachment 75494 - Click to enlarge]
UPDATED
Sorry, before I ran the job, I moved the capture files to a different folder DOH!!Last edited by JonnyAlpha; 13th Dec 2023 at 08:32.
-
So feeling brave
Bummer on the errors.
Hit F8 (Go>Log). I've never read it but there may be something in there. -
Don't use RGB24, use YUV2 instead.
-
Getting rid of DV codec is not just a benefit, it is a necessity. If you want to de-interlace, denoise, color correct, upscale and more, you would have to do it outside the DV codec. When you use NLE software to edit a DV footage "supposedly in the DV domain", the software decodes the DV into an uncompressed video, does the processing and encode back to DV, it just doesn't tell you that. But we all know script software are better and more transparent than NLE software, this is what the OP is doing.
-
-
-
-
Maybe some NLEs can do some operations on compressed footage, but normally they uncompress it first. Some NLEs can do it on the fly like Vegas, other convert it to an intermediate format first (old FCP and iMovie, not sure whether they still do it). IDK whether they can apply effects to the intermediate format directly, or do they still need to uncompress fully.
In Vegas, you can switch from 8-bit integer to 32-bit floating point. As the Help file explains, "The 32-bit floating point settings allow greater precision for processing video, but require significantly more processing power than working with 8-bit video". I suppose when there are tons of effects, the consecutive rounding errors when dealing with integers can become noticeable compared to processing as float and then converting back to integer. Hmm, I probably should switch to float, especially for 10-bit Cineform files. -
Originally Posted by Jonny
[Attachment 75509 - Click to enlarge]
To clarify my post-filter workflow: I export to lossless eg HUFF, LAGS, Magic only so that I can import into my "proper" video editor in the best quality for further editing (titles, sectioning, transitions). I then export out as MP4 for distribution/consumption.
If I have no need for further external editing, I export out from Virtual Dub as MP4, as per my guide. -
YUV2 is compatible with most script software, Outputing HuffYUV is just to reduce the overall size of the lossless files, It can also be uploaded directly to youtube without issues.
-
-
-
Originally Posted by Dellsam
[Attachment 75517 - Click to enlarge] -
Last edited by JonnyAlpha; 14th Dec 2023 at 05:54.
-
Originally Posted by Jonny
-
Ive also been using the default RGB24 pixel format to encode all of my captures so far. Is this going to be a problem?
Similar Threads
-
Tevion USB capture card not recognized (shows USB 2861 Video)
By retractOffer in forum Capturing and VCRReplies: 3Last Post: 4th Mar 2023, 11:38 -
VHS capture (ati 600 usb , vdub, svideo, huffyuv) - needs cleaning
By TheCage in forum RestorationReplies: 27Last Post: 18th Apr 2022, 10:03 -
NTSC VHS newbie summary #3: Pinnacle 710 USB Capture Device
By brockway in forum Capturing and VCRReplies: 0Last Post: 25th Jan 2022, 08:36 -
Capture: VHS-C camera, live, via USB device OR Sony PD150
By tigerdate in forum Capturing and VCRReplies: 2Last Post: 18th Mar 2021, 18:38 -
VHS multi-pass digitizing with Natron/OBS/USB capture
By VHSCritter in forum RestorationReplies: 20Last Post: 2nd Mar 2021, 05:23