digitalFAQ.com Forum

digitalFAQ.com Forum (https://www.digitalfaq.com/forum/)
-   Capture, Record, Transfer (https://www.digitalfaq.com/forum/video-capture/)
-   -   First video capture, advice welcomed! (https://www.digitalfaq.com/forum/video-capture/12805-first-video-capture.html)

DG1965 06-02-2022 11:52 AM

First video capture, advice welcomed!
 
3 Attachment(s)
Hi, I've just done my first video capture with virtualdub to my Dell M6800 laptop (windows 7) and I would be grateful for any advice. These are video8 camcorder tapes.

My set up is Sony TRV120E camcorder> tbc-1000> pinnacle 710 all s-video leads. I'm also using a cyberpower BR850 AVR

Thank you, Darren.

latreche34 06-02-2022 12:40 PM

1 Attachment(s)
Keep the master files and follow up with de-interlace, crop, resize to 1440x1080 and encode to h.264, Here is a sample:

DG1965 06-02-2022 01:03 PM

Thank you latreche34. Were the clips I posted ok? If i'm honest I don't really know what to look out for. I got your download I have audio but no video. I assume my media player isn't mp4 I will get the VLC player and watch it.

lordsmurf 06-02-2022 01:24 PM

Quote:

Originally Posted by DG1965 (Post 85062)
Hi, I've just done my first video capture with virtualdub to my Dell M6800 laptop (windows 7) and I would be grateful for any advice. These are video8 camcorder tapes.
My set up is Sony TRV120E camcorder> tbc-1000> pinnacle 710 all s-video leads. I'm also using a cyberpower BR850 AVR
Thank you, Darren.

I downloaded the 1st clip, looks good to me. :congrats:

I can look at others later, if needed.

Quote:

Originally Posted by latreche34 (Post 85064)
Keep the master files and follow up with de-interlace, crop, resize to 1440x1080 and encode to h.264, Here is a sample:

There's really no reason for this. I doubt he's posting these to Youtube for the world to see.

DG1965 06-02-2022 02:19 PM

Thank you Lordsmurf Yes I would be grateful if you could look at the other two clips if possible, just in case I'm doing something wrong.

latreche34 06-02-2022 03:00 PM

Quote:

Originally Posted by lordsmurf (Post 85067)
There's really no reason for this. I doubt he's posting these to Youtube for the world to see.

That's not for youtube, It's for sharing with other people without going youtube route, It's as ready as it can be to be displayed on modern flat panels especially the ones that lack good de-interlacing and upscaling qualities, Unless he can share $100GB files and can be played the way they are.

lordsmurf 06-02-2022 03:18 PM

I see no reason to upscale "watching copies to share" to 1440x1080.

H.264 is about more than just resolution. If you make 1080p files, and select the wrong settings (too long a GOP, etc), then the playback device will choke and stutter. At least with lower resolutions, hence lower data rates, chokes and sputters are far less common. It's also harder to easily share huge files in private, unless you want to mail thumb drives or hard drives.

HDTVs almost all scale decently, the issue has always been the deinterlacer. Even then, the deinterlacer can be fine, depends on the exact HDTV. Given how many people are "fine" with average Youtube quality, the deinterlacer in an HDTV is "fine" as well.

For local watching, high bitrate (15bps+) interlaced MPEG-2 is far preferable. Ideally, 4:2:2, but 4:2:0 is passably decent, not any different from DVDs.

lollo2 06-02-2022 03:54 PM

1 Attachment(s)
Quote:

... and I would be grateful for any advice
Quite nice captures. The black are a little bit crushed and the whites a little bit blown out. Try to play with Pinnacle procamp to reduce this problem.

Attachment 15269

With some basic restoration you can improve a little bit the overall look: https://imgsli.com/MTEwNzA3

Filtering used:
Code:

video_org=AviSource("family holiday 2004 3.avi")

# cropping
        crop_left=10
        crop_top=8
        crop_right=16
        crop_bottom=10
video_org_crop=video_org.crop(crop_left,crop_top,-crop_right,-crop_bottom)

# plugins directory
plugins_dir="<AviSynth plugin directory>"

        # QTGMC
Import(plugins_dir + "QTGMC.avsi")
        # Zs_RF_Shared
Import(plugins_dir + "Zs_RF_Shared.avsi")
        # Nnedi3
loadPlugin(plugins_dir + "NNEDI3_v0_9_4_55\x86\Release_W7\nnedi3.dll")

        # TemporalDegrain2
Import(plugins_dir + "TemporalDegrain-v2.2.1_modGMa.avsi")
        # RgTools
loadPlugin(plugins_dir + "RgTools-v1.0\x86\RgTools.dll")
        # MaskTools2
loadPlugin(plugins_dir + "masktools2-v2.2.23\x86\masktools2.dll")
        # MVTools
loadPlugin(plugins_dir + "mvtools-2.7.41-with-depans20200430\x86\mvtools2.dll")
        # FFT3DFilter
loadPlugin(plugins_dir + "FFT3dFilter-v2.6\x86\fft3dfilter.dll")
        # FFTW
loadPlugin(plugins_dir + "LoadDll\LoadDll.dll")
loadDll(plugins_dir + "fftw-3.3.5-dll32\libfftw3f-3.dll")

        # LSFmod
Import(plugins_dir + "LSFmod.v1.9.avsi")

### de-interlacing
deinterlaced=video_org_crop.AssumeTFF().QTGMC(preset="slow", matchpreset="slow", matchpreset2="slow", sourcematch=3, tr1=2, tr2=1, NoiseTR=2, sharpness=0.1)

### convert to YV16
deinterlaced_yv16=deinterlaced.convertToYV16()

### denoising
denoised_yv16=deinterlaced_yv16.TemporalDegrain2(degrainTR=3)

### convert to YUY2
denoised=denoised_yv16.convertToYUY2()

### convert to YV12
denoised_yv12=denoised.convertToYV12()

### sharpening
sharpened_yv12=denoised_yv12.LSFmod(defaults="slow")

### convert to YUY2 with chroma from YUY2 color space
sharpened=sharpened_yv12.convertToYUY2().MergeChroma(denoised)

### add borders
video_restored=sharpened.addborders(crop_left,crop_top,crop_right,crop_bottom)

return(video_restored)

/*
stackhorizontal(\
subtitle(video_org.SelectEvery(1,0,0),"video_org",size=20,align=2),\
subtitle(video_restored,"video_restored",size=20,align=2)\
)
*/


thestarswitcher 06-02-2022 04:36 PM

Quote:

Originally Posted by lordsmurf (Post 85071)
For local watching, high bitrate (15bps+) interlaced MPEG-2 is far preferable. Ideally, 4:2:2, but 4:2:0 is passably decent, not any different from DVDs.

LS I must ask, why do you prefer MPEG-2 over AVC based encoding? A Standard Definition Blu-Ray looks better than a DVD (if the source is the same) because you aren't dealing with the blocky compression MPEG-2 provides.

DG1965 06-02-2022 04:54 PM

Is this the expected quality of captures from video8 tapes? I can tell they are better than the poor quality dvds I made about 18 years ago. As a novice I don't have a benchmark. Just getting to this point has been daunting, those scripts strike the fear of god into me!

lollo2 06-02-2022 05:22 PM

Why daunting? Be happy, your captures are not bad!

AviSynth restoration is not that difficult. Install it, download the dlls that are in the script, load the script in VirtualDub and voilą! If any doubt, just ask ;)

latreche34 06-02-2022 09:00 PM

Quote:

Originally Posted by thestarswitcher (Post 85073)
LS I must ask, why do you prefer MPEG-2 over AVC based encoding? A Standard Definition Blu-Ray looks better than a DVD (if the source is the same) because you aren't dealing with the blocky compression MPEG-2 provides.

LS is still living the dream of DVD.

DG1965 06-03-2022 03:13 AM

What should I do with the pinnacle procamp settings to offset the crushed blacks and blown whites. Is there a histogram graph that I should use in the pinnacle settings? I'm guessing it's always better to do this before the capture with the pinnacle settings rather than post capture with avisynth. I will download avisynth today. Thank you Lollo2 for the restoration photo, I must have missed it yesterday it looks much improved.

lollo2 06-03-2022 05:35 AM

1 Attachment(s)
Quote:

What should I do with the pinnacle procamp settings to offset the crushed blacks and blown whites.
There are several guides and posts in the forum. Search for them, here one from Hushpower (I did not check it, but I trust him) http://www.digitalfaq.com/forum/vide...html#post84742

Quote:

I will download avisynth today.
All for 32-bit version

create this script with a text editor:
Code:

video_org=AviSource("family holiday 2004 3.avi")

# cropping
        crop_left=10
        crop_top=8
        crop_right=16
        crop_bottom=10
video_org_crop=video_org.crop(crop_left,crop_top,-crop_right,-crop_bottom)

# plugins directory
plugins_dir="AviSynth_plugin_dir\"

        # QTGMC
Import(plugins_dir + "QTGMC.avsi")
        # Zs_RF_Shared
Import(plugins_dir + "Zs_RF_Shared.avsi")
        # Nnedi3
loadPlugin(plugins_dir + "NNEDI3_v0_9_4_60\x86\Release_W7\nnedi3.dll")

        # TemporalDegrain2
Import(plugins_dir + "TemporalDegrain-v2.2.1_modGMa.avsi")
        # RgTools
loadPlugin(plugins_dir + "RgTools-v1.2\x86\RgTools.dll")
        # MaskTools2
loadPlugin(plugins_dir + "masktools2_v2.2.30\x86\masktools2.dll")
        # MVTools
loadPlugin(plugins_dir + "mvtools-2.7.45-with-depans20210608\x86\mvtools2.dll")
        # FFT3DFilter
loadPlugin(plugins_dir + "FFT3dFilter-v2.10\x86\fft3dfilter.dll")
        # FFTW
loadPlugin(plugins_dir + "LoadDLL10\LoadDLL\LoadDLL32.dll")
loadDll(plugins_dir + "fftw-3.3.5-dll32\libfftw3f-3.dll")

        # LSFmod
Import(plugins_dir + "LSFmod.v1.9.avsi")

### de-interlacing
deinterlaced=video_org_crop.AssumeTFF().QTGMC(preset="slow", matchpreset="slow", matchpreset2="slow", sourcematch=3, tr1=2, tr2=1, NoiseTR=2, sharpness=0.1)

### convert to YV16
deinterlaced_yv16=deinterlaced.convertToYV16()

### denoising
denoised_yv16=deinterlaced_yv16.TemporalDegrain2(degrainTR=3)

### convert to YUY2
denoised=denoised_yv16.convertToYUY2()

### convert to YV12
denoised_yv12=denoised.convertToYV12()

### sharpening
sharpened_yv12=denoised_yv12.LSFmod(defaults="slow")

### convert to YUY2 with chroma from YUY2 color space
sharpened=sharpened_yv12.convertToYUY2().MergeChroma(denoised)

### add borders
video_restored=sharpened.addborders(crop_left,crop_top,crop_right,crop_bottom)

return(video_restored)

/*
stackhorizontal(\
subtitle(video_org.SelectEvery(1,0,0),"video_org",size=20,align=2),\
subtitle(video_restored,"video_restored",size=20,align=2)\
)
*/

Open the script in VirtualDub and save it with "Fast compress" HufYUV, or feed ffmpeg with the avs script to create a h264/aac compressed file in a mp4 container:

Code:

ffmpeg.exe -i input.avs -c:v libx264 -crf 17 -preset slow -aspect 4:3 -c:a aac -b:a 128k output.mp4
The plugins will evolve during time, so if needed upgrade to last version of them once available

Of course this is just a basic/quick restoration, playing with the filters and their parameters the result can be improved a lot!

Enjoy!

Edit: if it helps, here you can find the complete AviSynth_plugin_dir, but is better if you download and get familiar with the plugins by downloading them yourself: https://drive.google.com/file/d/1vB2...ew?usp=sharing

DG1965 06-03-2022 06:16 AM

Thank you for the detailed downloads. I've just downloaded the Avisynth 2.60.exe. and will do the plugins now. Once this script is added in virtualdub will it be activated on all subsequent captures I do, or is this script specific to just this capture.

lollo2 06-03-2022 06:36 AM

It is just a generic and basic deinterlacing/denoising/sharpening script. Does not take into account the input/output levels, color correction, specific defects related to each segment, personal taste for the outcomes and so on. Theoretically every video and every shot needs its own filtering.

If you enter in AviSynth/VapourSynth world you'll find many many options.

DG1965 06-03-2022 07:33 AM

Ok thank you. I noticed the cropping part in the script. This script is post capture I'm guessing? Is there a avisynth filter that deals with the crushed blacks blown whites during the capture. I couldn't find a way to adjust the Pinnacle 710 procamp how would I access that? Sorry for all the questions I know I've got a lot more reading to do. Thanks.

lollo2 06-03-2022 08:29 AM

What software are you using for capturing? For VirtualDub look here: http://www.digitalfaq.com/forum/vide...-settings.html or here https://forum.videohelp.com/threads/...pture-from-VHS

Procamp "tab" is specific to your capture card

DG1965 06-03-2022 09:23 AM

Thank you. I'm using virtualdub. I've looked at video levels on sanlyn's guide so many times and didn't realise that it's for the proc amp settings even though it's so very clearly states "proc amp settings" I'm so sorry for asking you so many times. Thank you for your patience.
I've also been looking at sanlyn's cropping "set capture clipping" to temporarily remove black borders. I assume what figure is removed from the side has to removed on the top to maintain the aspect ratio but I need to read more about this.

lollo2 06-03-2022 12:08 PM

Quote:

I assume what figure is removed from the side has to removed on the top to maintain the aspect ratio but I need to read more about this.
While configuring the procamp all black borders must be removed to do not alter the Histogram, without taking care of the aspect ratio.

When you capture, you do not crop anything, and capture the whole 720x756 frame.

When you post-process, you remove all black borders and head switching noise for proper filtering operations.
Once done you add the black borders of the same quantity you removed, or, better, to fill the frame to a 704x576 frame rather than a 720x576 frame, to respect the aspect ratio with higher accuracy. Example:

Code:

# cropping
        crop_left=8
        crop_top=2        # | 720-(8+20)x576-(2+10)=692x564
        crop_right=20
        crop_bottom=10

crop(crop_left,crop_top,-crop_right,-crop_bottom)\
addborders((crop_left+crop_right)/2-8,(crop_top+crop_bottom)/2,(crop_left+crop_right)/2-8,(crop_top+crop_bottom)/2)

edit: the addborders() command above in addition also centers the active area

DG1965 06-03-2022 03:34 PM

Thank you. I'm going to have a trial run with the procamp settings tomorrow. I guessing that when I'm experimenting with the procamp I will better understand how to remove the black borders.

Hushpower 06-03-2022 10:21 PM

My histogram guide was written using my IOData GV-USB2. For the 710USB, the brightness still controls the left edge of the histogram, but the contrast expands and contracts both edges, not just the right edge. So you effectively are expanding the histogram to fit with the Contrast, then moving the whole thing left and right with the Brightness.

Re the cropping, my understanding is that it is only to get rid of the black edges while you are setting the levels (the black edges might affect the overall brightness). You don't need to set the crop to the correct aspect ratio. Once you've got your levels set, you should clear all the crops to do the actual capture.

DG1965 06-04-2022 02:21 AM

Thank you for explaining the concept, it makes sense. I'm going to try and adjust the contrast and brightness on the procamp today and see if I can get a feel for what I should be doing. The advice yourself and lollo2 have given me regarding the procamp has really helped.

DG1965 06-04-2022 10:32 AM

6 Attachment(s)
Thank you Hushpower and lollo2 for the great advice. I'm hoping I've got it right? I've attached a few screenshots and 2 new captures.

Most of the time after removing the black borders with the "set capture clipping" crop, the preview screen would then disappear when I activated the histogram. I only needed the procamp video levels and the histogram display and they consistently worked in tandem. The screenshots attached with the preview screen, histogram & video levels were rare.
I'm hoping if my procamp settings are correct the crushed blacks and blown whites will have improved.

Hushpower 06-04-2022 11:36 PM

Take the following with a grain of salt because I am not an expert!

Those captures look pretty dang good to me! Well done.

Yes, I regularly have to pull the plug on the 710, re-insert it and restart VDub to get things to work properly.

I think histogram 3 is better than 6: 6 looks a bit too edgy: note the thin red line at the left edge and the sharp drop off on the right edge. 5 could have the contrast upped a bit (and Brightness to move it a bit to the right) to expand the whole histogram a bit.

I think it's better to be a bit dark; you can always brighten things up with Colormill (VDub filter). If things are too bright, you won't get detail back.

DG1965 06-05-2022 03:29 AM

Thank you for the compliment Hushpower. I will take into account what you said about the histogram's I can see what you mean. Screenshot 3 looks smoother and wider. I just noticed 5&6 also have more cliff edges to the left.
I think this mean's I'm ready to capture more than just samples. What is the standard length of time you can capture?

Hushpower 06-05-2022 04:14 AM

Quote:

What is the standard length of time you can capture?
For my VHS tapes, I capture the whole shabang, 3 hours worth, in one hit! Then I chop it all up into the various subjects. I'd reckon that would be about 100gb for HUFFYUV (I use MagicYUV as it plays better with my video editor).

That's probably not the most sensible route though, because you will probably find you've got some quite dark "subjects" (night-time party, indoor birthday) and then bright outdoor subjects, which might need different brightness and contrast levels. In that case, it'd be best to capture each subject separately.

If, however, you've got a tape that is pretty much the same all the way through, you can capture it in one hit. You can use VDub to "direct Stream copy" sections of it into separate files for later editing/processing.

DG1965 06-05-2022 08:26 AM

Thank you for the advice. I will probably take your sensible route and try and capture 1 hour at a time. I will save them to the internal hd 750gb (not the one with the os) transfer them to an external Fantom hd and then, when I want to edit and restore them I can transfer them back onto the laptop?

Hushpower 06-05-2022 09:59 AM

That's a good plan. Make sure you back up any files that you can't replace by re-capturing the tapes.

DG1965 06-05-2022 10:24 AM

Good advice thank you. I plan to make multiple copies. I only want to capture maybe 2 video's initially and restore & filter those.

lollo2 06-05-2022 12:57 PM

2 Attachment(s)
Quote:

I'm hoping if my procamp settings are correct the crushed blacks and blown whites will have improved.
Capture "opening presents 1.avi" is ok
Attachment 15297

Capture "opening presents 2.avi" can be improved
Attachment 15298

Used code to check:
Code:

video_org=AviSource("opening presents 1.avi")
#video_org=AviSource("opening presents 2.avi")

# cropping
        crop_left=10
        crop_top=8
        crop_right=16
        crop_bottom=10
video_org_crop=video_org.crop(crop_left,crop_top,-crop_right,-crop_bottom)

video_org_crop_hist=video_org_crop.convertToYV16(interlaced=true).histogram("levels")

return(video_org_crop_hist)


DG1965 06-05-2022 02:26 PM

Thanks lollo2 for the information. Is that a script I would put into virtualdub before I capture?

lollo2 06-05-2022 02:42 PM

No, I used as a post-capture checking.

You can use AviSynth Histograms in real time for tuning procamp before/while capturing, but it is not easy: https://forum.videohelp.com/threads/...-for-Amarec-TV

Follow sanlyn and Hushpower methodology

DG1965 06-05-2022 04:09 PM

Thanks lollo2. I need to read more on Avisynth to understand it better. I intend to do this over next few days.


All times are GMT -5. The time now is 11:02 PM

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.