Been on Videohelp for a while, mostly learning, although trying to help out when I can ... I guess it was only a matter of time before something stumped me and it was my turn to ask for help!
I've been trying to convert my NTSC DVD (Region 1) of the Mr. Bean animated TV show to XviD so that I can stream it off my PC to the kids' bedroom on their XBox 360. I'm guessing that the show was made in England, so was originally in PAL format, and then "modified" for NTSC (yay ...). Now I've had great success with "Agatha Christie's Marple" TV series (also British) using both srestore and repal in avisynth, but neither seem to work in this instance. I've tried just about every combination of de-interlacing filters available in both megui and the experimental version of XviD4PSP to no avail. I've also searched through the forum for other possible filter chains and have found several, but none of them seemed to do the trick (either left interlacing artifacts, sever jaggies or a lot of line and/or color ghosting).
Basically, all I'm looking for is an avisynth script that will let me input the VOB(s) via dgdecode (that much I can do), and give me a progressive output at either 23.976 or 29.97 f/s, so that I can feed this script to Virtualdub and encode to XviD. Been banging my head for a few days over this one, so thought that it might be time to check if any of the avisynth gurus here can help me out.
I have attached a small clip from one of the shows (taken from the very beginning of the VOB so as not to disrupt frame order) to show the kind of interlacing I'm talking about (used mpg2cut2 to cut from the original VOB). Playing the clip in VLC will easily show the interlacing issues that I'm dealing with. If a larger clip is required to work with, please let me know, and I will upload something a bit bigger to MegaUpload or a similar site.
Thanks in advance for your help ... always muchly appreciated![]()
bean.mpg
+ Reply to Thread
Results 1 to 27 of 27
-
-
Either:
Yadif(Mode=1,Order=1)#or your favorite bobber
SRestore()
or:
Yadif(Mode=1,Order=1)#or your favorite bobber
RePAL()
Forget about cleaning up all the lines-outside-the-lines and ghosting.
...and give me a progressive output at either 23.976 or 29.97 f/s, so that I can feed this script to Virtualdub and encode to XviD. -
I don't get how can they release crap like that (and charge money for it)?
-
@ poisondeathray - Tell me about it!
@ manono - Yep, been there, done that. I'm beginning to wonder if the NTSC release of these shows is completely unsalvageable with regards to getting a "relatively clean" progressive file (regardless of final frame rate, anyway).
Using manono's script suggestions, there is still, unfortunately, a lot of ghosting like in the first 2 images below, and some blurring and artifacts as in the 3rd image. I'm beginning to think there may be no way to fix this ... *sigh*
(@ manono ... finished this posting after your 2nd post ... was having trouble uploading the images ...)
EDIT: On further exploration, it appears that the issues in the screenshots below are being generated by the Yadif(Mode=1,Order=1) line in the script (I commented out the srestore() line), as they are easily visible in a frame-by-frame viewing in Virtualdub. Is it possible that the yadif parameters need to be tweaked, or is another bobber in order? I will try experimenting in the meantime ...
-
Originally Posted by rickydavao
-
Maybe you can just perform a simple Bob() and encode it at 59.94 fps. Will the Xbox 360 play that? It will still look like crap but shouldn't look much worse than watching the DVD directly.
-
The blends aren't caused by yadif, those are in the source
But the little dots and jaggie artifacts are remenants caused by deinterlacing with yadif, and you could use a better deinterlacer to get rid of those (e.g. yadifmod+nnedi2) , but it may make blends worse in some frames. eg. (look at mr.beans' face)
yadif(bobbed) + srestore
yadifmod+nnedi2 (bobbed) + srestore
-
Thanks everyone for all of your help so far. I've been having a little bit of success with a simpler script, as follows:
AssumeTFF()
Yadif(Mode=3,Order=1)#or your favorite bobber
blendbob()
... after which I put a denoiser and moderate sharpener for a bit of cleanup. Didn't use srestore() at all ... is it really necessary? Found that this script gave me a relatively clean 29.97 f/s output compared to what I was seeing before. However, poisondeathray, I would be interested in trying your "yadifmod+nnedi2 (bobbed) + srestore " script as well to see if I can improve my result at all ... as I'm not as familiar with those avisynth commands as I'd like to be, could you possibly post the script you used to obtain the results in your post? Thanks!
Here's the frame that you posted using the yadif and blendbob script from above:
-
Originally Posted by rickydavao
However, some people like the look of blended videos. I don't happen to be one of them. I spend my life unblending fieldblended garbage and wouldn't purposely ever create more blending. -
Have you considered a different method, like dvddecrypter ->ISO -> Fairusewizard->XVID?
-
With apologies to manono, after having done 2 encodes at the same bitrate - the first with my yadif-blendbob script, and the second with the yadif-srestore script - while the yadif-blendbob script does produce a higher framerate file (29.97 f/s), the fact that there appear to be fewer "interlace-type" artifacts in the final encode with this method (especially given how prominent the black outlining is in this cartoon) simply looks a bit better, to me anyway. I have attached a 40-second clip of the final result, encoded to XviD VAQ build (total average bitrate for the complete file was 1200kb/s) to give you an idea of how it turned out. There is still a bit of shaking, especially in some horizontal lines, but looking back to the original DVD files, this shaking was evident there as well. The script has gotten rid of some of the jaggies evident in the original vob, and the denoisers and sharpeners helped to clean the image up a bit. So I'm left with a file that, at least to my eye, is a bit sharper than what I started off with, and at least no worse for the jaggies that were in the original either (I hope this makes sense). I'm thinking that this is probably the best I can do.
Further ideas always welcome, of course, and thanks for everyone's help & suggestions!
mr.bean.avi -
I just suggested a better deinterlacer than yadif in bob mode, because yadif tends to leave those jaggy dot artifacts.
I've never heard of blendbob before, but if it's giving you better results , great
Code:LoadPlugin("PATH\yadifmod.dll") MPEG2Source("bean.d2v") interp=nnedi2(field=3) #double rate, keep top field yadifmod(order=1, field=-1, mode=1, edeint=interp) #TFF, field set to order, double rate Srestore()
-
Originally Posted by rickydavao
That shot from your clip after TDecimate(mode=2, rate=25):
25fps.avi -
Time out.... reality check time....
Originally Posted by rickydavao
I'm all for quality video, but this isn't the master copy (the DVD is), it's for an audience that is often happy watching crap on an iPod or Youtube, and is usually given 50% attention at best (also playing toys, doing homework, etc).
So again ..... worth it?
Any decent quick method would work. Personally, I'd run it through VirtualDub, use the Deinterlace Area-Based filter on it, and then frameserve it over to the encoder. I have MainConcept Reference, but I know few here can afford that option. Surely some consumer app will work, however.
Just saying...
I'm a big "keep it in perspective" person.Want my help? Ask here! (not via PM!)
FAQs: Best Blank Discs • Best TBCs • Best VCRs for capture • Restore VHS -
Happy "Day after Hallowe'en" everyone!
(too much candy ...)
@ lordsmurf ... yeah, I completely understand where you're coming from, but it's this darn OCD! Actually, I'm not kidding .... had it since I was a kid building plastic model kits and even model rockets (!), and it doesn't look like it's going away any time soon. Even though it's just for the kids, I'm just not happy with producing less than the best quality I can with any particular destination format. I guess I also look at it as a challenge, and its kind of fun that way, too. Also, once the puzzle is solved, that solution is there for me should I ever need it again, and also available through the forums should anyone visiting VideoHelp require the answer to a similar problem. Life would be dull if there wasn't anything new to learn :P
@ jagobo ... thanks for the tip with regards to tdecimate. I hadn't noticed those "small jerks" until you pointed them out to me, most likely because I was concentrating more on the quality of the individual frames. Good info and works a treat.
@ manono ... thanks for insisting that more blending is not necessarily a good thing (how did I not notice that "BLENDbob" would probably blend more? Duh!). Which pushed me to try ...
@ poisondeathray ... thanks so much for the avisynth script! I did a few quick runs this morning (short segments with CQ encoding) and the results look very similar to the encode I got using yadif-blendbob with the notable exception that the encoded video looked "cleaner". There were still small comb-type artifacts, but as I mentioned earlier, these are evident in the original VOBs (crappy source, I know). However, the yadif-blendbob encode just looked "smoother" (no doubt due to belndbob, as manono pointed out). Your script gives a better result overall, and no doubt closer to what it should look like. I will post a short clip from the encode I'm running now as soon as it's done so you can see the result.
Thanks again, all! -
As promised, here is the final result (or at least a short segment thereof). This was encoded with XviD VAQ using an average bitrate of 1200kb/s, using the script provided by poisondeathray (I added some moderate denoisers and sharpeners specific for cartoon/anime). The encode takes a while due to the nnedi2 and srestore, but the results are pretty good. Working on the next episode now and hopefully that will turn out at least as well.
Thanks again for everyone's help, and let me know what you think of the result if you can spare a minute
Cheers!
mr.bean.avi -
That's pretty clean considering the source you started with. It's not clear whether the frame rate should be 24 or 25 fps. You'll need to look at a few more smooth panning shots to see which works better.
-
Originally Posted by jagabo
It also means he didn't follow poisondeathray's script as he said he did since SRestore at default settings (as in pdr's script) gives 25fps. -
Originally Posted by manono
-
Originally Posted by jagabo
-
@ jagobo & manono ... thank-you for your insights.
@ manono ... you are correct that I slowed it down after unblending (yes, I did follow poisondeathray's script) to 23.976 fps using assumefps. We also have an old Philips DVP642 in another bedroom that we may want to play these on at some point (we're all big Mr. Bean fans), and I had assumed (probably mistakenly) that these files would play best if they were encoded to a standard NTSC frame rate. If the Philips will handle 25 fps OK, then there is obviously no need to do this, and I will remove the assumefps from my script accordingly.
I would guess that it is PAL2NTSC since the show was made in England. But I'm curious about jagobo's comment as to whether the frame rate was 24 or 25 fps. I have attached two identical clips to this post with what I hope is a good section of panning. The first was encoded with:
interp=nnedi2(field=3) #double rate, keep top field
yadifmod(order=1, field=-1, mode=1, edeint=interp)
Srestore()
as suggested by poisondeathray. The resulting frame rate is 25fps. The second clip was encoded using:
AssumeTFF()
Yadif(Mode=3,Order=1)
blendbob()
TDecimate(mode=2, rate=25)
as partially suggested by jagobo. The resulting frame rate is also 25fps. Does looking at these clips help determine whether the frame rate was 24 or 25fps? Also, which clip to your mind looks better? Needless to say, the second clip was a lot quicker to encode. As always, your thoughts are sincerely appreciated
bean1.avi
bean2.avi -
Originally Posted by manono
Rickydavao, bean1.avi won't download. My guess is it was too close to the 6 MB limit. Bean2.avi had duplicate frames at 3,4 and 145,146. But I think you can safely assume the frame rate should be 25 fps. -
Originally Posted by rickydavao
https://forum.videohelp.com/topic352457.html
Do you place no value on your spare time? I'd have just bought the kids a Western Digital media player and hooked it up to the TV rather than doing all this time consuming re-encoding just so you can stream it. I doubt you'd have to make any changes to your files with one of the Western Digital players. -
@ jagobo ... sorry about that! I have edited the post above, trimmed the original file and re-uploaded a new "bean1.avi". Should be OK now .... thanks for the heads-up!
@ jman98 ... thanks for the info regarding the DVP642, as I just wasn't sure. I have read that sticky before, so am aware of the other limitations, but appreciate the reminder. And while it can be time-consuming, as you say, it is also a hobby. I have managed to answer a lot of previous questions on my own using the information provided on the wonderful forums here, and a part of it is that I simply enjoy a good puzzle/challenge ... which is what this has been. To each their own, I guess -
Originally Posted by rickydavao
Regarding the DVP-642, I seem to recall it plays both 24 and 25 fps Divx AVI files by duplicating frames to make 29.97 fps. That makes playback of both of them a bit jerky. -
Originally Posted by jagabo
Originally Posted by jagabo -
Originally Posted by manono
Similar Threads
-
.mp4 Avisynth import issues
By Campony in forum Video ConversionReplies: 29Last Post: 20th May 2011, 08:11 -
Issues with European Philips DVDR359xH series
By W00fer in forum DVD & Blu-ray RecordersReplies: 0Last Post: 3rd Feb 2011, 17:38 -
Filtering the cult series "Invader ZIM" using Avisynth
By rm2kpro in forum Video ConversionReplies: 6Last Post: 24th Jul 2010, 21:10 -
Digitizing family VHS movies - interlacing/quality issues on iMac 27"
By genkiness in forum Newbie / General discussionsReplies: 2Last Post: 29th Apr 2010, 22:32 -
Good Video Explaining Interlacing and De-Interlacing
By Soopafresh in forum Newbie / General discussionsReplies: 3Last Post: 14th Aug 2008, 19:50