I have a tv capture that needs some magic. It's a stretched, cropped, sped up and upscaled to 1080i video of Avatar: The Last Airbender. The DVDs I bought way back are full of halos and blending, something this capture doesn't have for what I've seen. It looks like it has about the same interlacing issues I had with another capture, except for the fact I now have an untouched TV capture and this show was made in NTSC land.
I have this avisynth code:
Changing AssumeFPS to 25 and removing one SelectEven results in 25fps video that looks more like 12.5fps.Code:ffVideoSource("Clip1.mkv") AssumeFPS(50) Crop(66,0,-66,-0) TFM() QTGMC().SelectEven().SelectEven() Spline36Resize(1620,1080) ColorMatrix(mode="rec.709->rec.601")
Compared to the DVD, the right aspect ratio is about 3:2 after cropping the black side bars.
The panning movement doesn't seem smooth, it does produce some blocking/flickering, and the lines are blocky
Does anyone know how I can rid of this?
Also, is it possible to slow it down (25->24/23.976 fps) inside avisynth? I now use tsmuxer for that.
+ Reply to Thread
Results 1 to 24 of 24
-
-
Get rid of what? The fact that most of what you showed isn't supposed to be 25fps but 50fps? You could reinterlace it, if for DVD. And, oddly enough, some of it still has interlacing.
What's the end format going to be? A DVD?
Changing AssumeFPS to 25 and removing one SelectEven results in 25fps video that looks more like 12.5fps.
Also, is it possible to slow it down (25->24/23.976 fps) inside avisynth? -
It's not some sort of 24fps to 25fps pulldown is it?
This seems to work on the samples I tried, but I'm not sure it's right. I'll bow to manono's expertise.
tfm().tdecimate(cycle=25, cycleR=1)
I don't quite understand the logic behind speeding 25fps up to 50fps, de-interlacing with QTGMC (which would give you 100fps progressive) and then removing every second frame, then removing every second frame again.....
AssumeFPS(50)
Crop(66,0,-66,-0)
TFM()
QTGMC().SelectEven().SelectEven()
Crop(66,0,-66,-0)
TFM()
QTGMC().SelectEven()Last edited by hello_hello; 15th Apr 2015 at 18:48.
-
I don't think so. However, what you wrote had me go back and look at it again. When just playing it in MPC-HC, it's 50fps and every frame is different in the opening parts. However, when opening it using FFVideoSource in an AviSynth script it shows every other frame to be a duplicate. Does Europe even broadcast 1080p at 50fps? Anyway, if every other frame is a repeat then a simple SelectEven will fix that. But I don't think it was converted from film by frame duplication but by speeding it up. Meaning TDecimate won't work and you'd have to slow it to film speed with an AssumeFPS along with also slowing the audio.
If what I just wrote is correct, then part of my original answer to pub was wrong and I apologize. -
-
Clip 1 has combing in places but all that's needed to fix it is TFM(). Is the whole thing actually progressive? Now I'm confused.......
-
I've only looked at the first three clips but Clip 3 still has me a little puzzled. When I play it in MPC-HC I see wobbly lines, but there's a distinct clean/dirty pattern (seems mostly like 2:2). Same when looking via Avisynth, only there's a clean/dirty combing pattern. What's causing that? I'm indexing with L-Smash because the version of ffmsindex I have keeps dummy spitting with this one.
Last edited by hello_hello; 15th Apr 2015 at 21:18.
-
-
With this line, it works fine without AssumeFPS and extra SelectEven
I think Nickelodeon did 480p24/23.976 -> 576i25 -> 1080i25 or 480i24/23.976 -> 576i25 -> 1080i25 (not sure if I'm saying that right)
Code:ffVideoSource("Clip2.mkv", fpsnum=25000, fpsden=1000) Crop(66,0,-66,-0) tfm().tdecimate(cycle=25, cycleR=1) QTGMC().SelectEven() Spline36Resize(1620,1080) ColorMatrix(mode="rec.709->rec.601")
Is this a ffVideoSource error, is my source that bad or is it something else? -
Why the resize since, after the cropping, it's 1788x1080. And why the colormatrix line since it's Hi-Def all the way and should remain rec.709? And you shouldn't use TDecimate, I don't think, to make it 24fps as the 'real' framerate of the capture is 25fps. They didn't add extra frames that should be removed.
-
Yeah, when I first posted I didn't realise ffmsindex was outputting it as 50fps and so I thought you were speeding it up to 50fps for some reason. Sorry about that. It makes sense now.
I'd go with whatever manono says is best.
TFM() on it's own gets rid of the combing so maybe that's all that's required.
I'd also wonder why you're converting the colours and resizing the way you are.
And I'd still like to understand the reason for the pattern of clean/dirty frames I mentioned earlier, but it looks as though it is just plain old PAL.
Probably an ffms2 decoding error. The version I have won't even open your samples (it just produces an error) so I used L-Smash for indexing instead and it's been fine LWLibavVideoSource(). It also gets the frame rate correct without the need for the frame rate conversion stuff in the script. -
I see lots of weird stuff going on. For example, clip3 (after bob doubling) shows about 31 unique frames per second.
Last edited by jagabo; 16th Apr 2015 at 21:44.
-
It was clip 3 that made me think maybe some sort of decimation was required originally, but maybe it was just messed up during the transfer process, because I'm not sure if I can see a pattern of unique and repeated frames that makes sense. There's kind of a pattern of two unique frames followed by a repeat, two unique followed by a repeat, then a single frame repeated, but even that whole pattern doesn't seem to repeat consistently.
If you just use TFM() motion isn't smooth, but I think maybe it's simply because something got messed up. -
The resize is because my TV doesn't support the 3:2 flags I would need to add to play it at the proper aspect ratio
Argh, I forgot to remove the ColorMatrix. I had it downsized 720x480 first becuase encoding it at 1080p is very slow (0.3fps)
Isn't there a filter I can use instead of SelectEven after QTGMC to get rid of all the duplicate frames, so I'll end up with a variable framerate? Ofcourse after slowing it down, because it is sped up somehow if I compare running times and the audio. Or am I thinking wrong? -
What you get after cropping is the proper aspect ratio. It's 1:1 and the television should play it that way. It shouldn't need any aspect ratio flags.
Isn't there a filter I can use instead of SelectEven after QTGMC to get rid of all the duplicate frames, so I'll end up with a variable framerate?
QTGMC(FPSDivisor=2)
... because it is sped up somehow if I compare running times and the audio. -
English isn't my first language so I might say some wrong things or explain things the wrong way
What you get after cropping is the proper aspect ratio. It's 1:1 and the television should play it that way. It shouldn't need any aspect ratio flags.
Why are you using QTGMC? And what's this about a variable framerate? If you're referring to jagabo's comment, then bob it to 50fps, if necessary. Anyway, another way to get it back to the original framerate is QTGMC(FPSDivisor=2)
I'm not sure if the variable framerate is an issue here, but I read online where that was stated in some threads as an issue with the DVDs.
Nothing in the script speeds anything up. -
That I can believe since both the aspect ratio after the cropping and the aspect ratio after your resize are very peculiar. If it's supposed to be 1.33:1, maybe resize to 1440x1080. Unless some of the video has also been cropped. Then you have to do it based on what looks 'normal' to you, or compare it to the DVDs.
The script doesn't, but the source is sped up about 4% (24->25) compared to the DVDs -
I think pub's resizing is about right. The video probably started life as ITU 4:3 NTSC and was upscaled without compensating for the 10:11 PAR (1788 * 10 / 11 ~= 1625). If you look at the sun near the end of clip1.mkv it looks pretty round with his resizing. Of course, we can't be sure the sun is supposed to be round so pub should check other shots for objects of known aspect ratio.
Similar Threads
-
VirtualDub overlay interlaced during capture
By mimikrius in forum Capturing and VCRReplies: 0Last Post: 23rd Apr 2013, 12:48 -
microSDXC card behaving weirdly
By bakonfreek in forum MediaReplies: 9Last Post: 20th Mar 2013, 02:01 -
Capture non-interlaced video (Mac, AJA IoHD)
By luckyo in forum MacReplies: 1Last Post: 20th Jun 2012, 09:32 -
Media Recorder that can capture non interlaced (progressive, 720p) videos
By Daniel_BMS in forum Capturing and VCRReplies: 6Last Post: 24th Jul 2010, 10:19