Happy Otter Script help for DVD to H.264

Comments

Former user wrote on 2/18/2019, 11:02 PM

Hi @MikeLV

I tested one of your Dvd mpg files 720x480 29,970i and did the conversion to 1280x720p 59,940fps using HOS Render Plus with Avisynth. It worked well here. I also did the conversion to frame rate 29,970 fps and did not notice significant difference, but rendering is much faster. I particularly liked the frame rate 29,970fps, but that's relative from person to person. Try these video settings. Maybe that's what you're after. I hope this helps you achieve your goal.

Dvd to 1280x720p 59,960fps in Hos Render Plus

Dvd to 1280x720p 29,970fps in Hos Render Plus

I am also sending the rendered files in Render Plus so you can see the actual result.

https://drive.google.com/file/d/1EcNmsP27VmGheKeJMb7GSYBX-OKksPRQ/view?usp=sharing

MikeLV wrote on 2/19/2019, 10:31 AM

@Musicvid, Sorry, don't mean to sound like I'm complaining about anything. Just frustrated. I encoded 19 DVDs to streaming video format in the last several days using the script and command line @wwaagΒ provided. Everything was going great, looking good. And then I started this one and I hit a brick wall. The only reason I can come up with is the fact that on this video, the video part was resized to add the extra content along the side and bottom and somehow that is causing this ripple effect which doesn't look good compared to the other videos I've encoded thus far.

In @wwaag's previous reply, he posted some video encodes that get rid of the ripple, and the chord diagrams look clear. When I tried his instruction, my video got stretched/skewed. I'm not good with this stuff, but I'm usually good at following instructions, even if I don't know what they mean (which is most of the time)

The original project file is lost for years when a hard drive fell off the top of a tower. So all I have to work with is the DVD. I'm just trying to make it the best I can so it's presentable. And I appreciate the help everyone here is providing.

MikeLV wrote on 2/19/2019, 10:42 AM

Hi @MikeLV

I tested one of your Dvd mpg files 720x480 29,970i and did the conversion to 1280x720p 59,940fps using HOS Render Plus with Avisynth. It worked well here. I also did the conversion to frame rate 29,970 fps and did not notice significant difference, but rendering is much faster. I particularly liked the frame rate 29,970fps, but that's relative from person to person. Try these video settings. Maybe that's what you're after. I hope this helps you achieve your goal.

Dvd to 1280x720p 59,960fps in Hos Render Plus

Dvd to 1280x720p 29,970fps in Hos Render Plus

I am also sending the rendered files in Render Plus so you can see the actual result.

https://drive.google.com/file/d/1EcNmsP27VmGheKeJMb7GSYBX-OKksPRQ/view?usp=sharing

Hi @Former user, many thanks for your help. I've already encoded those videos that I mention in my original posts in this thread. I'm having trouble with this other kind of video starting with this post:

https://www.vegascreativesoftware.info/us/forum/happy-otter-script-help-for-dvd-to-h-264--114655/?page=2#ca711168

See the water ripple effect? I didn't experience this with the other videos like the one you worked on. I think it has something to do with the fact that the original video was resized in Vegas so that I could add the text on the left and the music stuff on the bottom.

wwaag wrote on 2/19/2019, 10:46 AM

@MikeLV

There is a new version of HOS that is out today. Included is the new crop-resize dialog which will allow you to easily add pillarboxes and render to 1280 x 720.

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

Former user wrote on 2/19/2019, 11:08 AM

Here I simply set the project to progressive mode and this problem of your interlaced video disappears.

Musicvid wrote on 2/19/2019, 11:38 AM

And sorry for not catching that you are now resizing, which I wouldn't do.

There is an order of doing things that works. Deinterlacer must occur before scaling. It's a-b-c not all at once. Then ripples will go away.

That said, you are in good hands with Wayne, I've just done this a lot. Wayne has left me with a folder of goodies to test. Which I need to start.

A philosophical note-- when it begins to all look the same, you are there. It won't get better. Not seeing problems means there probably aren't any. Trust your eyes more and advice less. When you're finished with your project, put it down for six months, and then take a peek. You will see instantly what I mean. It's already better than you think!

With Respect.

MikeLV wrote on 2/19/2019, 12:14 PM

@MikeLV

There is a new version of HOS that is out today. Included is the new crop-resize dialog which will allow you to easily add pillarboxes and render to 1280 x 720.

@wwaag When I opened Vegas, I got the notification that there's a new version, and I clicked to download it, but it doesn't seem to have installed as when I go to the crop resize settings dialog, it doesn't look like yours. Do you have any detail/instruction on how to install the update? I checked my downloads folder and didn't see anything new.

@Musicvid, I have to upscale from DVD to 720P. It's been working fine for the other full screen videos using the avisynth script that adds the borders.

@Former user, I don't understand what's going on. I don't have the wavy fingers problem in the original .vob DVD video I'm working from, only the encoded H.264. I don't even know how you made it happen in the MPEG2, but that MPG file was the one that I re-encoded using the default settings so it must have changed something to cause it. I have to set deinterlace method to none, otherwise the chord diagrams below get blurry. But the other media settings match the VOB.

To avoid anymore confusion, and because I can't figure out how to provide you all with just the small snip at the beginning without altering the original file, I have uploaded the orginal .VOB media file that I am working from on the timeline. It's 187MB here is the link to download:

https://www.dropbox.com/s/8g3q9jtj8lztdmd/VTS_01_VOBID_003_CELLID_001_1.VOB?dl=0

The section I isolated where I first saw the wavy fingers problem is just in the first 3 seconds or so.

Β 

Β 

wwaag wrote on 2/19/2019, 12:32 PM

@MikeLV

"Do you have any detail/instruction on how to install the update?"

Once you click "OK" to get the new version, your browser opens and goes to the download page that currently looks like this.

Once you click the button, the download will start and will depend on the browser you are using. For Firefox, there is a dialog box that appears where you select Save.

To install, you must exit Vegas, go to your download folder, and run setup.

Β 

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

MikeLV wrote on 2/19/2019, 3:30 PM

I got the new version installed. I click the R+ button, and the window comes up, then when I click the gear for avisynth settings, Vegas crashes. Tried twice and crashed both times. I will try to reboot and run again and see what happens. Update: Rebooting made no difference, it's still crashing when I click the gear icon for avisynth.

wwaag wrote on 2/19/2019, 4:03 PM

@MikeLV

Sorry. Right-click on the R+ icon and select Reset Script Settings. Same problem surfaced on other thread.

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

rraud wrote on 2/19/2019, 5:13 PM

Other thread

Former user wrote on 2/19/2019, 5:14 PM

@MikeLV

I tested your original (.vob) file on HOS Render Plus and rendered it to 29,970fps and 59,940fps progressive and the file was rendered correctly with no problem. I did not resize from 720x480 to 1280x720, I just only deinterlaced. I used the latest version of HOS (Version 1.0.2.52) that released today. Try using this version. Wayne made many corrections in her. I believe it will work this time.

I'm sending you the rendered files in HOS Render Plus so you can see how good the render is.

https://drive.google.com/file/d/1scApEE3VDw6ZWvjC9GdSKYKsRQhjoKTp/view?usp=sharing

MikeLV wrote on 2/19/2019, 5:53 PM

@wwaag, thanks that fixed the crashing issue!

@Former user, So I have to deinterlace in Vegas using blend fields AND deinterlace using RenderPlus's setting? Seems odd? I wish that the chord diagrams weren't so blurry though. I guess maybe this is as good as it's going to get at this point.

Can the encoder command line have anything to do with it? It's the same one I've been using:

avs2pipemod -y4mp <inAVS> Β | ffmpeg -y -f yuv4mpegpipe -i - Β -itsoffset 0.0444 -i <inTempWav> -map 0:0 -map 1:0 Β -c:v libx264 Β -pix_fmt yuv420p -crf 20 -preset veryfast -x264opts tff=0 Β -movflags +faststart Β -c:a aac -b:a 192k Β <outFile>.mp4|||ffmpeg -y -i <inTempVideo> Β -itsoffset 0.0444 -i <inTempWav> -map 0:0 -map 1:0 -vcodec copy Β -c:a aac -b:a 192k Β <outfile>
Former user wrote on 2/19/2019, 6:15 PM

No @MikeLV

If you are going to use HOS Render Plus just put the file in the timeline with the original settings and set the type of deinterlacing in Avisynth.

As far as I know the Render Plus can be used in two ways:

1) using the project properties set in Vegas;
2) Using native properties defined in the itself Render Plus;

When you change the Vegas Project properties, Render Plus will use these changes if you do not specify what you want in the native Render Plus settings.

wwaag wrote on 2/19/2019, 6:32 PM

@MikeLV

One thing that would be very helpful would be a screengrab of your timeliine. Presumably, you have a video track with one or more graphic tracks that sit above??

Here's what I'd do. I'd first pre-render just your video track (muting the graphic tracks) using a high bit-rate x264 template which would include uprezzing to 720P (probably 960 x 720). You could use R+ and select the option to add the result back to the timeline. Then change your project properties to 1280 x 720, unmute your graphics tracks for a final render. The loss of video quality would be minimal if you use a high bit rate intermediate and your graphics would not suffer from deinterlacing.

Just a suggestion.

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

MikeLV wrote on 2/19/2019, 6:39 PM

@Former user But at 3:38 into your video in your previous post, you have Deinterlace method set to Blend Fields in the project properties. And then you also set Deinterlace to Medium in RenderPlus. That's why I was wondering about deinterlacing twice. Changing the deinterlace method in the Vegas project properties has a huge effect on the video. Anything other than "none" makes the chord diagrams get blurry.

@wwaag - Not an option (I wish). The video on the timeline, the one I uploaded to dropbox and linked to in my previous post, is a VOB from a finished DVD that was done back in 2006. To get it onto the timeline, I used DVD decrypter to rip the individual chapters as VOB files. I do not have the original Vegas project that would have the AVI, along with the graphics on separate tracks.

wwaag wrote on 2/19/2019, 6:53 PM

@MikeLV

So the vob includes all of the chords and graphics? If so, then you're out of luck and will have to decide what's the best compromise.

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

MikeLV wrote on 2/19/2019, 6:58 PM

@wwaag, correct. This is one of the chapters:

https://www.dropbox.com/s/8g3q9jtj8lztdmd/VTS_01_VOBID_003_CELLID_001_1.VOB?dl=0

I had uploaded it to dropbox so you and others could see the exact video I'm having to work with. I'm attempting to add a sharpen filter in Vegas to see if maybe it can help.

Β 

wwaag wrote on 2/19/2019, 7:15 PM

@MikeLV

That's very helpful. Here's what you could do that I think would solve your problem. The idea is pretty simple. Perform two renders--one with deinterlacing that gives "good video" and a second without de-interlacing which gives "good graphics". Place one track on top of the other and then create a mask for the final render so that only the "good video" and "good graphics" are rendered. That should be pretty easy to do. But again, you need to do the initial renders using a high bit rate so that the final render will be of good quality. Let me know if you need help in setting up such a project.

Last changed by wwaag on 2/19/2019, 7:16 PM, changed a total of 1 times.

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

MikeLV wrote on 2/19/2019, 7:28 PM

@wwaag,

https://media.giphy.com/media/l1J9DlCFh2h90HrnW/giphy.gif

But it's time for me to go anyways, might come back after dinner and taking care of the dog and what not.

Musicvid wrote on 2/19/2019, 7:32 PM

@wwaag

+1

Of course that us the best solution possible. I know Mike will benefit from it, and I know it looks great!

On a parallel topic, are the files in my Dropbox incorporated in the new release. I feel remiss, as I am sometimes easily distracted. I am using UT alpha on a daily basis, and love the idea of crop and scale within your extensions. Best wishes, and I am absolutely a buyer.

Former user wrote on 2/19/2019, 7:42 PM

@Former user But at 3:38 into your video in your previous post, you have Deinterlace method set to Blend Fields in the project properties. And then you also set Deinterlace to Medium in RenderPlus. That's why I was wondering about deinterlacing twice. Changing the deinterlace method in the Vegas project properties has a huge effect on the video. Anything other than "none" makes the chord diagrams get blurry.

Hi @MikeLV

If you look again you will notice that I have not changed anything in the Vegas project properties. The project continues to be interlaced because in the Field order option is set to Upper Field First and not Progressive.

I showed the project properties in the video only for so you see that you do not need to modify anything.Β 

Deinterlacing occurs only on Avisynth in the Deinterlace option using the Medium preset.

wwaag wrote on 2/19/2019, 8:16 PM

@MikeLV

Since there might be a little confusion, here's a screen grab of a sample project showing the two tracks with the de-interlacing in Vegas on the top track.

You must then create a mask on the top track as seen here.

The result is that the video part comes from the Vegas de-interlaced track (fuzzier) while the chords and graphics come from the HOS de-interlaced track (sharper). For best results, you might consider using a lossless codec for the initial renders such as UtVideo or MagicYUV which are options in R+. If you use MagicYUV, you will have to download and install the MagicYUV codec since it cannot be distributed as part of the HOS package. There is a free version. Here is the link. https://www.magicyuv.com/ While HOS can render MagicYUV, it cannot be decoded inside of Vegas without the codec.

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

MikeLV wrote on 2/19/2019, 9:15 PM

@wwaag I tried to follow along with your images, but the mask thing is over my head, I've never used it before. For one thing, when I first bring up the pan/crop window, I don't know what all this black space is on the top,left and right of the video frame. It doesn't exist in the preview window, but it exists in the pan/crop window!?

Also, I see that you changed the project properties to 1280x720? So that means we don't use HOS for the resizing? Did you change anything else in the project properties? Did you set the deinterlace method to none or blend? Doesn't that affect the whole project? How does HOS know what to deinterlace and what not to deinterlace? The other problem I have with this masking thing is that I have like 19 of these chapters, or events, so I'd have to do this masking thing for each event I think..

As you can tell I'm utterly lost with this task. Can I just hire you to encode it for me? I can zip up the whole folder and send it to you. It's clear (to me anyways) I'm never going to get this on my own even with all your help πŸ˜“πŸ˜“πŸ˜“πŸ˜“πŸ˜“πŸ˜“πŸ˜“πŸ˜“πŸ˜“πŸ˜“πŸ˜“πŸ˜“πŸ˜“πŸ˜“πŸ˜“πŸ˜“πŸ˜“πŸ˜“πŸ˜“πŸ˜“