Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 5th June 2018, 11:25   #541  |  Link
heartagram
Registered User
 
Join Date: May 2018
Posts: 9
can you suggest me any free avi video cutter to give you the sample!?
heartagram is offline   Reply With Quote
Old 5th June 2018, 11:41   #542  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,779
VirtualDub2; select a range from one keyframe to another, to possibly avoid recompresion (using "Video - Direct Stream Copy" mode). BTW, which video format is contained? (File - Information)
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid

Last edited by LigH; 5th June 2018 at 11:44.
LigH is offline   Reply With Quote
Old 5th June 2018, 11:45   #543  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,744
Or MKVMerge or tsMuxer.
Music Fan is offline   Reply With Quote
Old 5th June 2018, 11:59   #544  |  Link
heartagram
Registered User
 
Join Date: May 2018
Posts: 9
avi format. the videos are not captured by me from VHS, and there is something wrong with them....i just want to encode them, to fix the picture if i can and make them with smaller size.

VirtualDubMod 1.5.10.2 says:
Code:
VirtualDub cannot decode 4:2:2 Motion JPEG frames with image widths or heights  that are not multiples by 16.
So we have also wrong resolution i guess..


EDIT:
video sample 3sec
https://we.tl/2Hr8YMgkDk

Last edited by heartagram; 5th June 2018 at 12:13.
heartagram is offline   Reply With Quote
Old 5th June 2018, 12:29   #545  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,779
VirtualDub2 is not VirtualDubMod...
_

Frequently asked question: smart deinterlacers with motion prediction (like QTGMC) need steady and continuous motion; cartoons have discrete motion (a.k.a. "Stop Motion"). QTGMC is not suitable for this kind of material because it will predict motion wrong.

Well, in this special case, one frame would have told us enough... it just had to be visible.

Unfortunately, I don't know a "cartoon-safe" deinterlacer right now...
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid

Last edited by LigH; 5th June 2018 at 12:31.
LigH is offline   Reply With Quote
Old 5th June 2018, 15:35   #546  |  Link
heartagram
Registered User
 
Join Date: May 2018
Posts: 9
i got it thanks...
heartagram is offline   Reply With Quote
Old 5th June 2018, 15:42   #547  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,779
I believe cartoons may get an advantage from a specific kind of decimation (forcing the TV-common frame rates down to cartoon-original low frame rates by combining and averaging the most similar fields). Such issues will have their own topics already.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 5th June 2018, 18:55   #548  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by LigH View Post
Unfortunately, I don't know a "cartoon-safe" deinterlacer right now...
sanimebob
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 5th June 2018, 19:47   #549  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,406
Quote:
Originally Posted by heartagram View Post
can you give me a simple script to deinterlace this video?
That's not a video.

And it's not field blended, only phase shifted. You could try this:

AssumeTFF()
tdeintted = QTGMC(FPSDivisor=2)#or a different deinterlacer, if you prefer
tfm(CThresh=5,clip2=tdeintted)
manono is offline   Reply With Quote
Old 6th June 2018, 10:22   #550  |  Link
heartagram
Registered User
 
Join Date: May 2018
Posts: 9
Quote:
Originally Posted by manono View Post
That's not a video.

And it's not field blended, only phase shifted. You could try this:

AssumeTFF()
tdeintted = QTGMC(FPSDivisor=2)#or a different deinterlacer, if you prefer
tfm(CThresh=5,clip2=tdeintted)
video sample
https://forum.doom9.org/showpost.php...&postcount=547

i did you scipt and here is the result -
- source
-with tfm, assumetff,tdeint
heartagram is offline   Reply With Quote
Old 6th June 2018, 10:39   #551  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,779
Looks like this video was scaled vertically before trying to deinterlace. That's deadly.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 6th June 2018, 19:43   #552  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,406
Quote:
Originally Posted by heartagram View Post
i did you scipt and here is the result -
Please post the complete script. I saw nothing like that when using this script:

AVISource("balu-clips-no-deinterlace.avi")
AssumeTFF()
tdeintted = QTGMC(FPSDivisor=2)
tfm(CThresh=5,clip2=tdeintted)
return last


https://www.sendspace.com/file/z802gg
manono is offline   Reply With Quote
Old 6th June 2018, 20:04   #553  |  Link
heartagram
Registered User
 
Join Date: May 2018
Posts: 9
your sample looks great!

This is the script i tried
Code:
LoadPlugin("C:\Program Files (x86)\AviSynth\plugins\TIVTC\x86\TIVTC.dll")
DirectShowSource("D:\anime\A Bad Reflection on You 2.avi") # 
Crop(20, 2, -22, -10).LanczosResize(720,576)

AssumeTFF()
tdeintted = QTGMC(FPSDivisor=2)
tfm(CThresh=5,clip2=tdeintted)
return last
it seems that im doing something wrong with the crop&resize function. Should i leave the resolution to 720x540?

Last edited by heartagram; 6th June 2018 at 20:16.
heartagram is offline   Reply With Quote
Old 6th June 2018, 20:16   #554  |  Link
SaurusX
Registered User
 
Join Date: Feb 2017
Posts: 135
Quote:
Originally Posted by heartagram View Post
your sample looks great!

This is the script i tried
Code:
LoadPlugin("C:\Program Files (x86)\AviSynth\plugins\TIVTC\x86\TIVTC.dll")
DirectShowSource("D:\anime\A Bad Reflection on You 2.avi") # 
Crop(20, 2, -22, -10).LanczosResize(720,576)

AssumeTFF()
tdeintted = QTGMC(FPSDivisor=2)
tfm(CThresh=5,clip2=tdeintted)
return last
it seems that im doing something wrong with the crop&resize function.
Yes. Never resize before IVTC / deinterlacing. You'll get extremely bad results as you've now experienced.
SaurusX is offline   Reply With Quote
Old 6th June 2018, 20:21   #555  |  Link
heartagram
Registered User
 
Join Date: May 2018
Posts: 9
thanks

this seems to work fine now. what do you think? i had to add converttorgb32 because there was issue with the colors... in that case crop function seems to be the problem, adding converttorgb32 fix the problem. i dont know if this is ok.
Code:
LoadPlugin("C:\Program Files (x86)\AviSynth\plugins\TIVTC\x86\TIVTC.dll")
DirectShowSource("D:\anime\A Bad Reflection on You 2.avi") # 

AssumeTFF()
tdeintted = QTGMC(FPSDivisor=2)
tfm(CThresh=5,clip2=tdeintted)
Crop(20, 2, -22, -10).LanczosResize(720,576)
ConverttoRgb32
return last
neah...my mistake...removed converttorgb line...everything looks fine.

Last edited by heartagram; 6th June 2018 at 23:46.
heartagram is offline   Reply With Quote
Old 7th June 2018, 19:56   #556  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,406
Don't use DirectShowSource as your source filter if you can avoid it. In your case, the built-in AviSource is much better.

Why was the video 720x540 if the source was a VHS tape? Why wasn't it captured as 720x576 to begin with? I think you said earlier you didn't capture the tape? If you know the capper, you should advise him.

By cropping and resizing as you did (for DVD, I presume?), you've changed the aspect ratio. Maybe you don't consider that a problem, not sure.
manono is offline   Reply With Quote
Old 7th June 2018, 20:21   #557  |  Link
heartagram
Registered User
 
Join Date: May 2018
Posts: 9
AviSource gives an error. something like "Avisource couldnt locate a decompressor for fourcc mjpg". (using virtualdubmod 1.5.10 to load and preview)
I'll check google/doom9 and try to solve it.

Yeah i met the guy on the internet, we shared some anime videos at that time. I told him that this captures could be done much better. ALso i asked him if its possible to send me the tapes because I had VHS recorder with internal TBC plus i was looking to buy external tbc, but he refused my offer...

No i'm not planning to make dvd. Some of the series has 2gb filesize... as i said i'll just try to make them smaller and keep the quality or make it better! Thanks to you it will work out!


btw should i leave it 720x540? I was thinking it is good idea to fix the resolution, nothing more.... ALso i'm using Megui loaded with x264 profiles, there is anime toons profile which im planing to give a try! any ideas for the encoding option?

Last edited by heartagram; 7th June 2018 at 20:32.
heartagram is offline   Reply With Quote
Old 7th June 2018, 21:40   #558  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,779
Frequently asked question all over the internet: "couldn't locate a decompressor for FourCC 'MJPG'" => you have to install an MJPG VfW codec, e.g. Cedocida.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 7th June 2018, 22:00   #559  |  Link
jmartinr
Registered User
 
jmartinr's Avatar
 
Join Date: Dec 2007
Location: Enschede, NL
Posts: 301
Quote:
Originally Posted by LigH View Post
Frequently asked question all over the internet: "couldn't locate a decompressor for FourCC 'MJPG'" => you have to install an MJPG VfW codec, e.g. Cedocida.
Cedocida is a DV codec. Wrong example.
__________________
Roelofs Coaching
jmartinr is offline   Reply With Quote
Old 7th June 2018, 22:13   #560  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,779
Sorry, I had in mind that it is a combined codec... sieve mind.

Well, a quite good and free MJPG VfW codec would be part of ffvfw in ffdshow; but in general, ffdshow is obsolete as DirectShow filters. Maybe via custom installation.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:31.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.