having a problem joining interlaced dvd video after processing.
I have couple dvd videos with very short segments that I want to delogo. Rather than process the entire video, I cut out the segment with Videoredo. Dgindex the segment for Avisynth, deinterlace, delogo, re-encode with HC ENC (in Interlace mode), and insert segment back with Videoredo.
When viewed on MPC-HC, the edit points show a brief black screen. I have MPC player output set to Directshow Video-> System Default. It plays fine if I switch that to Enhanced Renderer. While it might be the renderer, there must be something triggering the problem. As it might it be the interlacing, I'm posting my script below.
MPEG2Source("C:\ord cut\VTS_01_1.d2v", cpu=0)
assumetff()
yadif(mode=1)
a=trim(0,221).XLogo("LogoFinal2.bmp", X=98, Y=42, alpha=2)
b=trim(222,0)
a+b
ChangeFPS(59.94)
SeparateFields()
SelectEvery(4,0,3)
Weave()
I also thought it might be a colorspace issue, so running the Before and After clips in Avisynth with Info showed the original was YV12, the processed clip in YU12. MediaInfo says they're both YUV.
My video edit occurs at scene change: edit test.m2v
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 18 of 18
Thread
-
-
I see no black frame viewing the M2V in MPC-BE or in VDubMod, or in VDub using an AviSynth script.
Also, movies, by definition, aren't interlaced. You should unblend it:
Yadif(Mode=1)#or QTGMC
Srestore(frate=23.976)
Rather than process the entire video, I cut out the segment with Videoredo...
Last edited by manono; 12th Jan 2014 at 22:54.
-
the video on both dvds (which are unrelated) looks to have originated as amateur or semi-pro film transfers to VHS - would that explain the interlacing?
Would ReplaceFramesSimple work while providing some kind of passthrough so the majority of video was not re-encoded? I'd rather not re-encode the entire dvds; I only need to fix 4 seconds of a VCR clock on one, and 4 minutes of a company logo on the other.
Never heard of MPC-BE. Not sure I like it compared to MPC-HC. With Video output set to System Default or some other settings, I see thick black lines at the scene change. In other settings, the video is choppy. Maybe I need to add some codecs...although again, I'd prefer the video not elicit any errors.
Here's the complete "Before" clip for the edited "After" video posted above.
VTS_01_1.demuxed.m2v -
No. AviSynth works only on uncompressed frames. So everything that is processed by it must be re-encoded (or saved as uncompressed). With MPEG 2 video you manually "smart" edit by using a lossless MPEG 2 editor like Mpg2Cut2, cutting the video into sections (on i-frames), reencoding the sections you need to process, then joining all the section back together again at the end.
-
No.
I'd rather not re-encode the entire dvds
With Video output set to System Default or some other settings, I see thick black lines at the scene change.
Here's the complete "Before" clip for the edited "After" video posted above.Last edited by manono; 13th Jan 2014 at 14:21.
-
that's what I thought, but since I originally stated I did not want to re-encode entire dvd, I thought I was missing something in manono's advice.
I did try mpg2cut2, but not in the order you suggested, so I should try it again, but chances are the error is from my mismatching video. I mistook the video as interlaced because it doesnt behave like typical telecine. If you check out the original "Before" video, the field pattern is 2.2.1, and when I IVTCed, the frames are choppy - the car turning the corner isnt smooth; seems to clear up afterwards. If it's deblended with yadif/srestore, the car moves smoothly...but if I want it to match the original video, should I omit any frame-splitting, and just delogo it?
Regarding the videos posted, the first was just to show the edit point issue. The script-processed video comes first, and at scene change is followed by original video.
The 2nd video is the segment before the scene change, but unprocessed. -
You posted a script. Using AviSynth means reencoding. Therefore what you wrote in that first post was contradictory. In addition, both sources are so bad they should be reencoded.
If you check out the original "Before" video, the field pattern is 2.2.1, and when I IVTCed, the frames are choppy
Interleave(TFM(field=1), TFM(field=0))
Srestore(frate=23.976)
TFM is doing the field matching and Srestore the decimation. Sometimes with tape sources things don't behave normally.
...should I omit any frame-splitting, and just delogo it? -
Yes, you would use yadif/srestore to return it to 25 fps progressive, not TFM()/TDecimate().
I guess you mean, should you keep the original MPEG 2 video for the parts that don't need delogoing. That's up to you. It depends on whether you think you can clean up the parts without logos enough to make it worth reecoding, or not.
I didn't see anything wrong with the transition. But the frame at the transition is interlaced with one field from the first clip (a blended field) and another from the second. Maybe your graphics card is trying to deinterlace and screwing up. It plays fine here. -
manono, I specified at the start I was only delogoing and re-encoding a small segment.
Suffice it to say I dont want to deal with fixing all the issues with the dvds. It takes me longer (than you and other members here) to figure out what to do, how to do it, hunt down the filters, make tests, get more advice, etc. I just wanted to fix these glaring issues because they are brief. The dvds can always be improved in the future, and hopefully the brief segments wont look too bad being re-encoded yet again.
When I wrote 'omit frame-splitting and just delogo,' I was referring to field separation in the script: should I omit any IVTC or deinterlacing steps in order to output the same crappy video blends so it matches the original?
Btw, is there an explanation for the 2.2.1 pattern?
If there are blended frames (and if I were going to process the entire dvd, which I'm not), why not use yadif/srestore? -
it should be 24 fps, I hope.
what I mean is delogoing the "Before" clip without separating the video into fields, thus outputting the same blends or whatever is going on:
MPEG2Source("C:\ord cut\VTS_01_1.d2v", cpu=0)
a=trim(0,221).XLogo("LogoFinal2.bmp", X=98, Y=42, alpha=2)
b=trim(222,0)
a+b
The only reason I used a 30 second clip when I only need to delogo 4 seconds was to place the edit at a scene change. -
No, 25 fps. It looks like the usual PAL to NTSC conversion. You can slow it down to 23.976 fps with AssumeFPS(24000,1001) but then you'll have to slow the audio too. But I didn't look too closely, maybe it should go directly to 23.976 with SRestore().
I would revert back to clear film frames.
<edit>
After taking a closer look, SRestore(frate=23.976, thresh=12) seems to generate smoother video than SRestore(frate=25, thresh=12). I'd check a few other shots though.Last edited by jagabo; 13th Jan 2014 at 21:25.
-
I cant quite tell from the actor's voices (which I'm familiar with) if they're slightly higher pitched. I'm just surprised some 16mm USA films would have been transferred in UK or wherever.
Since I'm ONLY trying to fix the VCR clock (and logo on other video), and want to insert the clip back into the source, I wont be converting to 24 or 25 fps. -
Sorry, but if I start a project I don't do only a little bit of what should be done. I'd unblend and make the whole thing progressive again, remove the logos, and other things as well.
I'm just surprised some 16mm USA films would have been transferred in UK or wherever. -
So after fixing the VCR clock (and logo on other video), I want to insert the clip back into the source. What's the best way to output video that will be compatible with original?
I tried my script in post #10, encoding progressive, but playing it with MPC-HC shows combing. Encoding interlaced, no combing in playback, and resembled the original video. I thought it would have been the reverse, so I'm confused. -
If your video has interlaced frames you must encode interlaced. Encoding progressive doesn't convert interlaced frames to progressive frames. It just controls how the encoder handles the frames internally and what it tells the player when the video is played.
-
what is the original video (in post #3)? Is it hard telecine? blended? interlaced?
-
Similar Threads
-
MPC-HC DVD Playback Issue
By Roscoe1891 in forum Software PlayingReplies: 2Last Post: 5th Jan 2013, 20:16 -
DXVA issue in MPC HC with x264 video
By Phat J in forum Software PlayingReplies: 9Last Post: 24th Jan 2012, 14:52 -
MPC-HC playback issue
By leghorn in forum Software PlayingReplies: 2Last Post: 13th Feb 2011, 10:52 -
Setting MPC-HC as the default player in MCE
By mx5 in forum Software PlayingReplies: 0Last Post: 24th Aug 2009, 22:36 -
PQ issue with MPC-HC VMR 9 renderless
By mx5 in forum Software PlayingReplies: 6Last Post: 5th Aug 2009, 06:08