Go Back    Forum > Digital Video > Video Project Help > Capture, Record, Transfer

Reply
 
LinkBack Thread Tools
  #1  
06-13-2020, 03:23 AM
retractOffer retractOffer is offline
Free Member
 
Join Date: Feb 2020
Posts: 64
Thanked 0 Times in 0 Posts
Hello,

I have captured my NTSC 8mm tapes as well as my VHS-C PAL tapes using virtualdub (Lagarith) and now I am trying to encode them to mp4 using avidemux.
I have analyzed the captured file and determined it to be interlaced because I can see the combing effect. In avidemux's x264 settings, there is the "Interlaced" checkbox that I am assuming I have to check because the source is interlaced. When I check the box and select TFF, the output seems sped up (not really sped up but it just looks that way) in VLC when its "Deinterlace" option is set to auto or on. However, when Deinterlace is set to off in VLC, it looks like the master copy (looks normal).
1) Why is this the case?

Also when the output MP4 file is displayed on TV (Sony A9G) it looks sped up just like on PC with VLC's Deinterlace option set to auto or on and there's no setting for toggling deinterlacing on the TV.
I was under the impression that I should not deinterlace just for the heck of it because modern TVs do deinterlace interlaced videos on the fly.
When I do not check the "Interlaced" option in avidemux, the output mp4 looks fine on PC with VLC's deinterlace option set to auto or off and looks jerky when set to on.

2) Doesn't not checking the "Interlaced" option in avidemux mean avidemux is going to deinterlace the video? It seems to do so because mediainfo reports "progressive" on the output but I can still see the combing effect on the end result. The output in terms of combing effect is the same as the one with "Interlaced" checked. What am I missing here?

3) Am I correct to say that for viewing on TV I shouldn't deinterlace?

4) If I wanna view on a PC, should I deinterlace or use on the fly deinterlace like the one in VLC?

5) If I need to deinterlace for the scenarios I explained, what is the best software (+instructions) to do so? I've read that QTGMC is very good, but I had trouble setting up avisynth on Windows 10.

6) Select TFF or BFF?

Attached are 10s samples of the master, interlaced checked, and interlaced not checked videos for reference.

Thanks


Attached Files
File Type: avi org.avi (84.79 MB, 26 downloads)
File Type: mp4 interlaced checked.mp4 (21.61 MB, 11 downloads)
File Type: mp4 interlaced not checked.mp4 (21.26 MB, 13 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  
06-13-2020, 11:22 PM
lordsmurf's Avatar
lordsmurf lordsmurf is online now
Site Staff | Video
 
Join Date: Dec 2002
Posts: 13,508
Thanked 2,449 Times in 2,081 Posts
Do not deinterlace in Avidemux.
Do not even encode in VLC. It's a player, the encoding is terrible.

VLC has all kinds of screwy issues, and I never use it for anything but casually watching videos. Never to check anything of important. The Yadif(x2) looks best for deinterlace, but on 2 of your clips it stutters. The other is buttery smooth 59.94fps.

H.264 handles interlace poorly on playback devices.
MPEG = interlaced
H264 = deinterlaced (QTGMC, use Hybrid to make it easy)

TFF vs. BFF is completely determined by the source. VHS via lossless will be TFF.

- Did my advice help you? Then become a Premium Member and support this site.
- For sale in the marketplace: TBCs, workflows, capture cards, VCRs
Reply With Quote
  #3  
06-14-2020, 12:27 AM
retractOffer retractOffer is offline
Free Member
 
Join Date: Feb 2020
Posts: 64
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by lordsmurf View Post
Do not deinterlace in Avidemux.
Do not even encode in VLC. It's a player, the encoding is terrible.

VLC has all kinds of screwy issues, and I never use it for anything but casually watching videos. Never to check anything of important. The Yadif(x2) looks best for deinterlace, but on 2 of your clips it stutters. The other is buttery smooth 59.94fps.

H.264 handles interlace poorly on playback devices.
MPEG = interlaced
H264 = deinterlaced (QTGMC, use Hybrid to make it easy)

TFF vs. BFF is completely determined by the source. VHS via lossless will be TFF.
Appreciate your response. Could you address all my questions? Also which 2 clips are you referring to? I think you should've tried only on the original sample. The other two were derived from the original.
Reply With Quote
  #4  
06-14-2020, 12:43 AM
lordsmurf's Avatar
lordsmurf lordsmurf is online now
Site Staff | Video
 
Join Date: Dec 2002
Posts: 13,508
Thanked 2,449 Times in 2,081 Posts
Some of the question don't make much sense, other made moot by earlier post.

1. Why? I don't see what you see.
2. That setting just flags (or doesn't) the file. Interlace flagged as progressive is possible (and wrong).
3. It's about source, not viewing device.
4. "PC" (computer) viewed how? Local vs. online/streaming. Again, about source, not viewer.
5. QTGMC using Hybrid as the encoder.
6. Already answered.

VHS is interlaced, should be left that way, aside from something like Youtube uploading.

- Did my advice help you? Then become a Premium Member and support this site.
- For sale in the marketplace: TBCs, workflows, capture cards, VCRs
Reply With Quote
  #5  
06-22-2020, 12:25 AM
retractOffer retractOffer is offline
Free Member
 
Join Date: Feb 2020
Posts: 64
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by lordsmurf View Post
VHS is interlaced, should be left that way, aside from something like Youtube uploading.
I need to compress to mp4 and upload to Google Photos (which is basically YouTube). So, you're saying I should deinterlace?

Also, is there a guide for setting up QTGMC on Windows 10?

-- merged --

I followed this tutorial to install QTGMC. Do you have a script available? I'm not sure how to proceed now.
Reply With Quote
  #6  
06-24-2020, 10:19 PM
lordsmurf's Avatar
lordsmurf lordsmurf is online now
Site Staff | Video
 
Join Date: Dec 2002
Posts: 13,508
Thanked 2,449 Times in 2,081 Posts
Quote:
Originally Posted by retractOffer View Post
I need to compress to mp4 and upload to Google Photos (which is basically YouTube). So, you're saying I should deinterlace?
Also, is there a guide for setting up QTGMC on Windows 10?
I followed this tutorial to install QTGMC. Do you have a script available? I'm not sure how to proceed now.
For merely deinterlacing and converting to H264 (MP4 wrapper), Avisynth scripting is a waste of time and energy.

Use Hybrid. http://www.selur.de/downloads

That's what I do. Easy.

Spend that time tweaking the encode settings for the H264 encoding. And use a good CRF mode, high teens or low 20s.

Deinterlace is a few switches (with Vapoursynth being better than Avisynth).

Save scripted QTGMC for more complex Avisynth needs.

- Did my advice help you? Then become a Premium Member and support this site.
- For sale in the marketplace: TBCs, workflows, capture cards, VCRs
Reply With Quote
The following users thank lordsmurf for this useful post: archivarious (09-22-2020)
  #7  
07-02-2020, 02:00 AM
retractOffer retractOffer is offline
Free Member
 
Join Date: Feb 2020
Posts: 64
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by lordsmurf View Post
For merely deinterlacing and converting to H264 (MP4 wrapper), Avisynth scripting is a waste of time and energy.

Use Hybrid. http://www.selur.de/downloads

That's what I do. Easy.

Spend that time tweaking the encode settings for the H264 encoding. And use a good CRF mode, high teens or low 20s.

Deinterlace is a few switches (with Vapoursynth being better than Avisynth).

Save scripted QTGMC for more complex Avisynth needs.
Thanks. So yes to deinterlacing?

-- merged --

bump!
bump!
bump!
Reply With Quote
  #8  
07-10-2020, 06:12 AM
lordsmurf's Avatar
lordsmurf lordsmurf is online now
Site Staff | Video
 
Join Date: Dec 2002
Posts: 13,508
Thanked 2,449 Times in 2,081 Posts
Quote:
I need to compress to mp4 and upload to Google Photos (which is basically YouTube). So, you're saying I should deinterlace?
Yes.
Yes.
Yes.

- Did my advice help you? Then become a Premium Member and support this site.
- For sale in the marketplace: TBCs, workflows, capture cards, VCRs
Reply With Quote
  #9  
07-12-2020, 07:11 PM
retractOffer retractOffer is offline
Free Member
 
Join Date: Feb 2020
Posts: 64
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by lordsmurf View Post
Yes.
Yes.
Yes.
Thanks. Regarding the Hybrid encoder:
1) which AVC Profile/Level should I select? High10, High4:2:2, High4:4:4 and the level 5:2, 5:1, 5:0, 4:2, ...
2) Deinterlacer Yadif custom or QTGMC(Vapoursynth) or something else?
3) Do I select even or odd?
4) Do I do anything to double the framerate? How? Does this affect the quality adversely?
4) I tried QTGMC(Vapoursynth) and I can still see the combing effect in the output file, albeit less. Is this expected? (played the output using virtualdub)



Thanks
Reply With Quote
  #10  
07-12-2020, 07:41 PM
lordsmurf's Avatar
lordsmurf lordsmurf is online now
Site Staff | Video
 
Join Date: Dec 2002
Posts: 13,508
Thanked 2,449 Times in 2,081 Posts
You need to attach images to the forum, not hotlink Imgur (which breaks).

4:2:2 retains all color data.
Depends on use. Something like Youtube compresses to 4:2:0

QTGMC, never Yadif, when the choice exists.
Neither even or odd, but bob to get 59.94fps (NTSC) / 50fps (PAL)

I'd need a sample clip to process. But if this is lossless AVI source, you need to force deinterlace. Not auto.

- Did my advice help you? Then become a Premium Member and support this site.
- For sale in the marketplace: TBCs, workflows, capture cards, VCRs
Reply With Quote
The following users thank lordsmurf for this useful post: archivarious (09-22-2020)
  #11  
07-12-2020, 09:20 PM
retractOffer retractOffer is offline
Free Member
 
Join Date: Feb 2020
Posts: 64
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by lordsmurf View Post
You need to attach images to the forum, not hotlink Imgur (which breaks).

4:2:2 retains all color data.
Depends on use. Something like Youtube compresses to 4:2:0

QTGMC, never Yadif, when the choice exists.
Neither even or odd, but bob to get 59.94fps (NTSC) / 50fps (PAL)

I'd need a sample clip to process. But if this is lossless AVI source, you need to force deinterlace. Not auto.
Thanks, Sample is attached to the first post with title 'org.avi'.

1) 4:2:2 with what level?
2) when bob is selected, the footage becomes slow mo and sound is lost for the ~second half.
3) how does doubling the frame rate improve the quality? I mean if the source is 30 fps how does it becomes 60 fps?
4) please refer to question 4 in the previous post.

Picture attached.


Attached Images
File Type: jpg Capture.jpg (50.1 KB, 20 downloads)
Reply With Quote
  #12  
07-15-2020, 09:34 PM
lordsmurf's Avatar
lordsmurf lordsmurf is online now
Site Staff | Video
 
Join Date: Dec 2002
Posts: 13,508
Thanked 2,449 Times in 2,081 Posts
See screen shots.

High422 + i422, select in BOTH places.

The interlace is just settings issue. Force, specify source, set method.
59.94 retains all possible motion data.
To get there, interpolation happens, so it can be argued that 29.97 is fine. But it's somewhat like 720x480 for VHS source. Overkill to nth degree, but CPU and space is less of an issue these days.

That help?

And yes, in case you noticed, I have my own templates saved. I do intend to share those eventually, but must have time to make guides. Not getting time I need lately.


Attached Images
File Type: jpg hybrid-settings-screenshot1.jpg (141.6 KB, 85 downloads)
File Type: jpg hybrid-settings-screenshot2.jpg (42.3 KB, 77 downloads)

- Did my advice help you? Then become a Premium Member and support this site.
- For sale in the marketplace: TBCs, workflows, capture cards, VCRs
Reply With Quote
The following users thank lordsmurf for this useful post: archivarious (09-22-2020)
  #13  
07-16-2020, 01:53 AM
retractOffer retractOffer is offline
Free Member
 
Join Date: Feb 2020
Posts: 64
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by lordsmurf View Post
See screen shots.

High422 + i422, select in BOTH places.

The interlace is just settings issue. Force, specify source, set method.
59.94 retains all possible motion data.
To get there, interpolation happens, so it can be argued that 29.97 is fine. But it's somewhat like 720x480 for VHS source. Overkill to nth degree, but CPU and space is less of an issue these days.

That help?

And yes, in case you noticed, I have my own templates saved. I do intend to share those eventually, but must have time to make guides. Not getting time I need lately.
Thanks for the explanation. Please see BOTH items below:
1) I was asking about the AVC level shown with an arrow in the attached screenshot. It has all sorts of numbers. What is the 4.1 selection based off of?
2) The footage is doubled in duration when bob is selected. That is why it becomes slow motion and the audio only plays for half the duration (original duration). I have attached the encoded sample here which is twice the length of the original file @ 20 seconds.


Attached Images
File Type: jpg Capture.jpg (44.4 KB, 26 downloads)
Attached Files
File Type: mp4 crf 20-8 bit-none preset-41-bob.mp4 (6.90 MB, 12 downloads)
Reply With Quote
  #14  
07-19-2020, 11:37 PM
lordsmurf's Avatar
lordsmurf lordsmurf is online now
Site Staff | Video
 
Join Date: Dec 2002
Posts: 13,508
Thanked 2,449 Times in 2,081 Posts
4.1 @ 4:2:2 was fine. Let it auto.
BTW, CRF of 10 is nuts. Too low number.

You need to show your deinterlace screen, you made a wrong settings choice somewhere.

- Did my advice help you? Then become a Premium Member and support this site.
- For sale in the marketplace: TBCs, workflows, capture cards, VCRs
Reply With Quote
  #15  
07-20-2020, 12:30 AM
retractOffer retractOffer is offline
Free Member
 
Join Date: Feb 2020
Posts: 64
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by lordsmurf View Post
4.1 @ 4:2:2 was fine. Let it auto.
BTW, CRF of 10 is nuts. Too low number.

You need to show your deinterlace screen, you made a wrong settings choice somewhere.
What is the 4.1 selection based off of?
Please see the deinterlace screenshot attached. I've also tried with "Faster" preset and it didn't make a difference in terms of the issue. (nothing else under the "Vapoursynth" tab is selected except the ones in the screenshot that were set by default)


Attached Images
File Type: jpg Capture.jpg (33.3 KB, 17 downloads)
File Type: jpg 2.jpg (45.3 KB, 14 downloads)
Reply With Quote
  #16  
07-20-2020, 12:33 AM
lordsmurf's Avatar
lordsmurf lordsmurf is online now
Site Staff | Video
 
Join Date: Dec 2002
Posts: 13,508
Thanked 2,449 Times in 2,081 Posts
It's just default. Hybrid has documentation that will explain what each is more in depth. In fact, it's not app specific, but general info on profiles. I think you're thinking too much into this.

Stop using Slower, use Faster.

I don't see any issue there. It must be a settings problem elsewhere.

- Did my advice help you? Then become a Premium Member and support this site.
- For sale in the marketplace: TBCs, workflows, capture cards, VCRs
Reply With Quote
  #17  
07-20-2020, 01:40 AM
retractOffer retractOffer is offline
Free Member
 
Join Date: Feb 2020
Posts: 64
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by lordsmurf View Post
It's just default. Hybrid has documentation that will explain what each is more in depth. In fact, it's not app specific, but general info on profiles. I think you're thinking too much into this.

Stop using Slower, use Faster.

I don't see any issue there. It must be a settings problem elsewhere.
Attached are my settings based on a combination of online research and mostly avidemux documentation. It's a bit overkill, but I prefer quality over size. Please tell me if you see anything wrong here that contributes to the slow-mo issue.


Attached Images
File Type: jpg base.jpg (62.6 KB, 10 downloads)
File Type: jpg frames.jpg (65.9 KB, 10 downloads)
File Type: jpg rc.jpg (61.8 KB, 11 downloads)
File Type: jpg me.jpg (59.8 KB, 9 downloads)
File Type: jpg quant.jpg (63.8 KB, 9 downloads)
Reply With Quote
  #18  
07-20-2020, 09:17 AM
Bogilein Bogilein is offline
Free Member
 
Join Date: May 2016
Location: Bavaria
Posts: 256
Thanked 93 Times in 67 Posts
Quote:
Originally Posted by retractOffer View Post
What is the 4.1 selection based off of?
https://en.wikipedia.org/wiki/Advanced_Video_Coding#Levels


I would use the presets under the x264 tab. I prefer the preset:slow and tune:grain. Don't forget to push the arrows on the right to set your preset and grain selection.

Two-pass is another bad choice. That was good for mpg encoding.

You should use constant rate factor (1pass) and a quantization factor between 17-23.

h2.jpg

You can watch your vapoursynth script which is used when you hit the sign next to the eye.

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
  #19  
07-22-2020, 01:33 AM
retractOffer retractOffer is offline
Free Member
 
Join Date: Feb 2020
Posts: 64
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Bogilein View Post
https://en.wikipedia.org/wiki/Advanced_Video_Coding#Levels

I would use the presets under the x264 tab. I prefer the preset:slow and tune:grain. Don't forget to push the arrows on the right to set your preset and grain selection.

Two-pass is another bad choice. That was good for mpg encoding.

You should use constant rate factor (1pass) and a quantization factor between 17-23.

Attachment 12219

You can watch your vapoursynth script which is used when you hit the sign next to the eye.

Attachment 12220
Appreciate your response. I also tried CRF, but the slo-mo issue persists.

Below is the vapoursynth script being run:

Code:
# Imports
import os
import sys
import ctypes
# Loading Support Files
Dllref = ctypes.windll.LoadLibrary("C:/Program Files/Hybrid/64bit/vsfilters/Support/libfftw3f-3.dll")
import vapoursynth as vs
core = vs.get_core()
# Import scripts folder
scriptPath = 'C:/Program Files/Hybrid/64bit/vsscripts'
sys.path.append(os.path.abspath(scriptPath))
# Loading Plugins
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/GrainFilter/AddGrain/AddGrain.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/DenoiseFilter/NEO_FFT3DFilter/neo-fft3d.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/DenoiseFilter/DFTTest/DFTTest.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/EEDI3.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/ResizeFilter/nnedi3/vsznedi3.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/libmvtools.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/temporalsoften.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/scenechange.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/fmtconv.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/vslsmashsource.dll")
# Import scripts
import havsfunc
# input color space: YUV422P8, bit depth: 8, resolution: 720x480, fps: 29.97
# Loading C:\Users\jackie\Desktop\org.avi using LWLibavSource
clip = core.lsmas.LWLibavSource(source="C:/Users/jackie/Desktop/org.avi", format="YUV422P8", cache=0, prefer_hw=0)
# making sure input color matrix is set as 470bg
clip = core.resize.Point(clip, matrix_in_s="470bg",range_s="limited")
# making sure frame rate is set to 29.970
clip = core.std.AssumeFPS(clip, fpsnum=30000, fpsden=1001)
# Setting color range to TV (limited) range.
clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1)
# setting field order to what QTGMC should assume
clip = core.std.SetFrameProp(clip=clip, prop="_FieldBased", intval=2)
# Deinterlacing using QTGMC
clip = havsfunc.QTGMC(Input=clip, Preset="Fast", TFF=True) # new fps: 59.94
clip = havsfunc.QTGMC(Input=clip, Preset="Fast", TFF=True)
# make sure content is preceived as frame based
clip = core.std.SetFieldBased(clip, 0)
# adjusting output color from: YUV422P8 to YUV422P10 for x264Model (i422)
clip = core.resize.Bicubic(clip=clip, format=vs.YUV422P10, range_s="limited")
# Output
clip.set_output()
Reply With Quote
  #20  
07-22-2020, 04:13 AM
lordsmurf's Avatar
lordsmurf lordsmurf is online now
Site Staff | Video
 
Join Date: Dec 2002
Posts: 13,508
Thanked 2,449 Times in 2,081 Posts
The current version of Hybrid is messed up. It encodes to 200%, and the video is half speed. Roll back to a previous version. I'm not sure how far. I was using 3/19, upgraded to 7/20 tonight, and it's worse for sure.

- Did my advice help you? Then become a Premium Member and support this site.
- For sale in the marketplace: TBCs, workflows, capture cards, VCRs
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Deinterlacing already captured footage retractOffer Encode, Convert for streaming 1 06-09-2020 01:40 AM
Crackling audio in captured footage retractOffer Capture, Record, Transfer 27 04-13-2020 07:27 AM
Lines in captured VHS footage? skycaptain09 Restore, Filter, Improve Quality 7 03-28-2017 09:57 PM
Deinterlacing VHS or not that is the question... Mejnour Project Planning, Workflows 45 02-03-2012 03:11 AM

Thread Tools



 
All times are GMT -5. The time now is 03:58 AM