DV Info Net

DV Info Net (https://www.dvinfo.net/forum/)
-   Canon VIXIA Series AVCHD and HDV Camcorders (https://www.dvinfo.net/forum/canon-vixia-series-avchd-hdv-camcorders/)
-   -   An automated Vegas 24p workflow.. (https://www.dvinfo.net/forum/canon-vixia-series-avchd-hdv-camcorders/94235-automated-vegas-24p-workflow.html)

Victor Horz May 23rd, 2007 08:01 PM

Used NewTek's SpeedHQ codec with:

VirtualDub.video.SetCompression(0x32716873,0,10000,0);

yielded a very impressive clip. I'll need to do some more in-dept comparison in the future.

Victor Woo May 23rd, 2007 10:54 PM

Could you give me a AVI Synth template file?
 
Quote:

Originally Posted by Steve Szudzik (Post 680800)
I put together a Vegas script DLL that further automates the process so you really don't have to do a whole lot of anything to remove the pulldown. The script will ask for a working directory (should be a clean directory that you don't mind the script to delete or copy things to) and the paths to the DGIndex and VirtualDubMod applications as well as the AVI Synth template.

--Steve

I've downloaded all programs listed in "http://www.szudzik.net/vegas/scripts/HV20Pulldown.html" except the "Template.avs.". It was a bad link. So I can't start processing now without this template file.
Could you post this file in this forum so I can download it?

Steve Szudzik May 23rd, 2007 11:20 PM

Below is the template that I have been using.


v=MPEG2Source("__vid__")
a=MPASource("__aud__")
audiodub(v,a)
TFM(d2v="__vid__")
tdecimate()

--Steve

Duane Steiner May 24th, 2007 08:39 AM

I downloaded all the files needed but I getting an error when VirturalDub launches: AVisysth open failure/Script error: syntax error. I have checked all the files to make sure they are where they should be. Any idea of what I am doing wrong? Thanks.

Ajit Bikram May 24th, 2007 08:45 AM

Are you trying to use VirtualDub instead of VirtualDubMod? That does give a syntax error.

Duane Steiner May 24th, 2007 08:49 AM

Quote:

Originally Posted by Ajit Bikram (Post 685451)
Are you trying to use VirtualDub instead of VirtualDubMod? That does give a syntax error.

Using VirturalDubMod and have it selected in the HV20Pulldown program. But I also have VirturalDub on my system from before. Possible conflict?

Ajit Bikram May 24th, 2007 08:54 AM

Quote:

Originally Posted by Duane Steiner (Post 685452)
Using VirturalDubMod and have it selected in the HV20Pulldown program. But I also have VirturalDub on my system from before. Possible conflict?

No. I do also have both of them in my computer. I never had any conflict. There was a syntax error popping up when I tried to use VirtualDub instead of VirtualDubMod.
Anyway are the avs files getting created? If DGIndex runs properly you should have 3 files created, one avs, one mpa and one d2v. Just open the avs file with notepad and look for any obvious problem.
It should look like the same one Steve posted with _vid_ and _aud_ replaced by the clip name with d2v and mpa extensions.

Edit: and also one more command "delayAudio" at the end.

Duane Steiner May 24th, 2007 09:54 AM

Quote:

Originally Posted by Ajit Bikram (Post 685456)
No. I do also have both of them in my computer. I never had any conflict. There was a syntax error popping up when I tried to use VirtualDub instead of VirtualDubMod.
Anyway are the avs files getting created? If DGIndex runs properly you should have 3 files created, one avs, one mpa and one d2v. Just open the avs file with notepad and look for any obvious problem.
It should look like the same one Steve posted with _vid_ and _aud_ replaced by the clip name with d2v and mpa extensions.

Edit: and also one more command "delayAudio" at the end.

Reinstalled everything and still get the error. No files are being created.

Steve Szudzik May 24th, 2007 10:13 AM

If you have no files being created, it sounds like DGIndex is failing long before you get to VirtualDub.

Can you try manually running through the DGIndex and see what error that application is raising to you? My app will get the process exit code from DGIndex and if it is non zero (error code), then it should not proceed to VirtualDub. So odds are it may always return zero on exit. Manually running through it should help identify the problem though.

--Steve

Duane Steiner May 24th, 2007 10:19 AM

Quote:

Originally Posted by Steve Szudzik (Post 685532)
If you have no files being created, it sounds like DGIndex is failing long before you get to VirtualDub.

Can you try manually running through the DGIndex and see what error that application is raising to you? My app will get the process exit code from DGIndex and if it is non zero (error code), then it should not proceed to VirtualDub. So odds are it may always return zero on exit. Manually running through it should help identify the problem though.

--Steve

I do not know how to run DGIndex. I did try your script with Vegas and files were created but still get the VirturalDud Error (Script error: syntax error).

Ajit Bikram May 24th, 2007 10:20 AM

Quote:

Originally Posted by Duane Steiner (Post 685512)
Reinstalled everything and still get the error. No files are being created.

Hmm.. when you say no files are being created I think its safe to conclude that the DGInex is not running properly. And if no files are created by DGIndex then obviously VirtualDubMod cannot run as there is no script created. You can try the following
1)run the DGIndex just manually (not through Steve's exe) and see if it runs or not.
2) Look into the first post from Farnsworth in the other forum. And try running it manually (not using Steve's exe)
3) I hope you did install DGDecode.dll and mpasource.dll in avisynth plugin folder.
4) You would also need xvid/divx.
Xvid is available from http://www.koepi.org/xvid.shtml

Hope this helps.

Ajit B.

Ajit Bikram May 24th, 2007 10:23 AM

Quote:

Originally Posted by Duane Steiner (Post 685537)
I do not know how to run DGIndex. I did try your script with Vegas and files were created but still get the VirturalDud Error (Script error: syntax error).

You can double click on DGIndex.exe to launch it.

I somehow think its due to absence of Xvid/divx. Do you have them installed?

Duane Steiner May 24th, 2007 10:34 AM

Quote:

Originally Posted by Ajit Bikram (Post 685541)
You can double click on DGIndex.exe to launch it.

I somehow think its due to absence of Xvid/divx. Do you have them installed?

Installed Xvid and already had DivX installed. Tried to import the footage again using HDVSpilt, but still getting the error.

Duane Steiner May 24th, 2007 10:45 AM

Quote:

Originally Posted by Steve Szudzik (Post 685532)
If you have no files being created, it sounds like DGIndex is failing long before you get to VirtualDub.

Can you try manually running through the DGIndex and see what error that application is raising to you? My app will get the process exit code from DGIndex and if it is non zero (error code), then it should not proceed to VirtualDub. So odds are it may always return zero on exit. Manually running through it should help identify the problem though.

--Steve

Opened a few clips with DGIndex. 1st gives error, File contains all nulls! 2nd, No video sequence header found! Got one to open and the aspect was wrong.

Ajit Bikram May 24th, 2007 10:51 AM

I cannot think of what else could be wrong! Did you try launching DGIndex manually?

I didnt get the HDVSplit issue! I thought you already captured your footage from the camcorder, right?

Anyway I am listing my setup below. Try finding anything that could be different than yours.

1) My Machine is Win XP sp2.
2) In C:\Program Files I made a directory called "HDV Utilities" in which I have HDVSplit.exe, DGIndex.exe, hv20pulldown.exe and template.avs
3) I also installed avisynth- which got installed in C:\Program Files\Avisynth
4) Copied the DGDecode.dll and mpasource.dll in C:\Avisynth\plugin also the TIVTC plugin.
5) Installed VirtualDubMod in C:\Program Files\VirtualDubMod.


And this is the way I run:

1) Capture m2t files first using HDVSplit to D:\video\capture
2) Launch hv20pulldown -- specify all the paths and working directory as
D:\video\pulldown
3) load the clips and run.

I hope this would be of help.

Ajit B.

Ajit Bikram May 24th, 2007 10:56 AM

Quote:

Originally Posted by Duane Steiner (Post 685566)
Opened a few clips with DGIndex. 1st gives error, File contains all nulls! 2nd, No video sequence header found! Got one to open and the aspect was wrong.

Can you play your clips correctly with some other player ?

Duane Steiner May 24th, 2007 11:11 AM

Quote:

Originally Posted by Ajit Bikram (Post 685570)
I cannot think of what else could be wrong! Did you try launching DGIndex manually?

I didnt get the HDVSplit issue! I thought you already captured your footage from the camcorder, right?

Anyway I am listing my setup below. Try finding anything that could be different than yours.

1) My Machine is Win XP sp2.
2) In C:\Program Files I made a directory called "HDV Utilities" in which I have HDVSplit.exe, DGIndex.exe, hv20pulldown.exe and template.avs
3) I also installed avisynth- which got installed in C:\Program Files\Avisynth
4) Copied the DGDecode.dll and mpasource.dll in C:\Avisynth\plugin also the TIVTC plugin.
5) Installed VirtualDubMod in C:\Program Files\VirtualDubMod.


And this is the way I run:

1) Capture m2t files first using HDVSplit to D:\video\capture
2) Launch hv20pulldown -- specify all the paths and working directory as
D:\video\pulldown
3) load the clips and run.

I hope this would be of help.

Ajit B.

Thank you for your help. Tried to duplicate what you did and still get the error.

Ajit Bikram May 24th, 2007 11:28 AM

Quote:

Originally Posted by Duane Steiner (Post 685595)
Thank you for your help. Tried to duplicate what you did and still get the error.

I think there is something very trivial which is causing all the problems. If your clips open fine with other viewers/NLEs Than I would think it has to be DGIndex.

If the clips give some problem with other viewers/NLE's it has to be the capture process.

Hope you can fix it soon!
Good Luck!

Steve Szudzik May 24th, 2007 04:11 PM

It certainly sounds like there are some problems with the original clips themselves.

I did find a couple threads about some of your errors though, maybe one will help resolve the problem.

http://forum.doom9.org/showthread.php?t=113811

http://forum.videohelp.com/topic329046.html

http://www.videohelp.com/forum/archi...g-t325577.html

--Steve

Duane Steiner May 24th, 2007 04:57 PM

Steve, thanks for those links. Will read them over to see if anything can help. Tried to tape some more footage and it did not work either. I hope I can figure this out.

Mike Dulay May 24th, 2007 06:05 PM

Duane, do any of your directories or filenames contain any spaces? Try it with a straight file with a short name.

Tim Haas May 27th, 2007 04:00 PM

hey everyone, how do.
i recently got an hv20 and have been lurking trying to absorb all the knowledge i could. today i chanced across a 1394 cable and finally got around to capturing some video. the capture process over hdvsplit couldn't have been smoother, i can watch the .m2t files via videolan/vlc just fine, and i can manually demux them with dgindex with no error. however, when i try to run a clip through hv20pulldown.exe, it crashes in-between dgindex and virtualdub, throwing this error:

"Avisynth Open Failure:
TFM: d2v file is not a d2v file or is of unsupported format!
(C:\HV20\work\test_.avs, line 4)"

now, when i run the m2t file through dgindex manually, the resultant video file is around 50 megabytes. when i attempt to use this app, the file comes out to 1k. the audio file is around 775kb each time. clearly something is affecting the way dgindex is handling my video. what gives, a/v jedis? anyone have any suggestions? is this what happens because when i manually try dgindex, i choose "save project and demux video" and pulldown.exe just saves the project? can i try and convince pulldown.exe to do so?

many thanks in advance.
(i would sign my name, but it's right over there...)

Ajit Bikram May 27th, 2007 04:13 PM

Did you copy the DGdecode.dll to avisynth plugin folder?
I think thats the problem.

Tim Haas May 27th, 2007 04:18 PM

thanks for the überfast reply! actually, i just did a little searching and it says tivtc must be v.1.0.1 and not v.1.0b4... silly me. crisis averted, but your assistance is much appreciated :)

Ajit Bikram May 27th, 2007 04:22 PM

Bitte! (It seems you speak German!)
Oh Ya! That version problem is there too!! Great that its working for you now!
Enjoy!

Matthias Krause May 27th, 2007 10:08 PM

You can find the correct version of the TIVT plugin (TIVTCv101.zip) here: http://bengal.missouri.edu/~kes25c/old_stuff/

But I have a new problem. It says:
Avisynth open failure:
Script error: Invalid arguments to funtion "Delay Audio"
(E:\ViedeoPulldown\CFHDCap_.avs, line 7)

Has anybody any clue what that is and how to fix it?
Thanks,
Matthias

Steve Szudzik May 28th, 2007 12:55 AM

Make sure your using VirtualDubMod and not VirtualDub, though I don't think thats necessarily the problem. VDub regular errors out earlier than that on the stream items.

In your CFHDCap_.avs file, what is the line that contains DelayAudio? It should be a number..

Steve

Matthias Krause May 28th, 2007 10:40 AM

finally found it. It says: "DelayAudio(0,003)"

Steve Szudzik May 28th, 2007 10:58 AM

Ok, that certainly doesn't seem right. I noticed you have a .de email, are you running German version of Windows? I'm thinking that the globalization features of .Net are causing the issue with the delay audio setting for you. The value should be in total milliseconds, so no ',' mark. Now, if you could find a german version of DGIndex... ; )

I updated my executable to force a specific globalization. I don't have a "language" machine here to validate on, but it should force it to use the English notation.

Try the updated exe at: http://www.szudzik.net/vegas/scripts/HV20Pulldown.exe

If that doesn't work, then I'll just brute force it for you. Let me know..

--Steve

Matthias Krause May 28th, 2007 05:29 PM

Steve, downloaded the new .exe - and it works!!!!
While I'm German I don't use a German Windows version anymore, I bought my current XP here in NYC. But some of my language setting are for "Deutsch" like in Word. Maybe that was the problem? Who knows... Thank you so much, great work!

Steve Szudzik May 28th, 2007 05:46 PM

Glad that took care of it. I guess your my first "localized" customer! Who knew Windows would make it so easy ;)

Rick Barr May 31st, 2007 01:57 PM

Hello,

I was able to get 24P Pulldown to work fairly easily, but when I use Lagarith Lossless, the resulting file is distorted and the video is slow, almost choppy. The audio plays normal in the background, finishes, then the video is still playing. I tried opening the file in Vegas Movie Studio and rendering it as a WMV, which helped the slowness, but not the distortion. I am only using Movie Studio 4.0, and thinking maybe it's not recent enough to support my HD needs?

Does anyone have any suggestions? I've heard that using uncompressed AVI is generally fine as far as quality, but for right now, disk space is at a premium.

Mike Dulay May 31st, 2007 03:57 PM

Rick, try reencoding in XViD HiDef profile with 4000K bit rate. This encodes a lossy method but lets you see motion. Check if you can still see the distortion. Can you describe it?

Rick Barr June 1st, 2007 09:09 AM

When you say reencode, do you mean taking the raw .m2t file and running it through 24p Pulldown again? I don't have an option there for XVid HiDef, do you know where I could find that? Is it a settings profile or a codec?

The distorition is like something was filmed in widescreen and now you're watching on 4:3 but the aspect ratio is messed up, and everything was squeezed in from the sides, resulting in an elongated picture.

Ajit Bikram June 1st, 2007 10:32 AM

Rick,
I think I know what you are talking about. I have also seen the same thing (video moving slow; audio finishes but video continues and the frames look 4:3 i.e. squashed) while using Lagarith Lossless codec.
What you could do is to read the avi file in NLE (say vegas), drop it in the timeline, right-click property and fix the pixel aspect ratio. I did that and the footage is fine.

Rick Barr June 1st, 2007 12:22 PM

When you say 'fix the aspect ratio', I only see a checkbox for 'maintain aspect ratio'. I tried on and off, neither made a difference. Does the fact that I am only using v.4.0 make a difference? I keep seeing people using 7.0 and wonder if my version is not quite ready for HD. If that's the case, would the $100 version of 7.0 suffice?

As an aside, I went ahead and grabbed the Huffy codec and the output is exactly the same.

Ajit Bikram June 1st, 2007 12:26 PM

Just try to do the following..
1) Open the output file in VirtualDub (it should also look squashed)
2) Right-click and change the aspect ratio from "free" to "16:9" and then play it.
3) If it now looks OK. That would mean you had the same problem as mine. And this is how I fixed it.


Well what I meant by fixing aspect ratio is that..when you code it using those codecs, somehow the resulting file does not have the information that its 16:9 and the pixel aspect ratio is 1.333
So what you have to do is to tell your NLE that your clip is 16:9 and the pixel ratio is 1:333 instead of 1.0 or 0.912. And the way I do it is to right click on the clip, go to properties, it would tell what kind of clip it is (1440x1080, frame rate : 23.976, progressive, pixel aspect ratio..etc. etc.) there you change the pixel aspect ratio to 1,333 to fix the problem.


I am afraid I dont have any experience with Vegas 4.0 or the cheapest Vegas 7. Hopefully someone can help you with that! Sorry!

Steve Szudzik June 1st, 2007 01:38 PM

There could be a setting that I can provide to the VDub script file to force those settings. I'll check on that later tonight when I get home and see if that will help fix this..

--Steve

Ajit Bikram June 1st, 2007 01:53 PM

Quote:

Originally Posted by Steve Szudzik (Post 690395)
There could be a setting that I can provide to the VDub script file to force those settings. I'll check on that later tonight when I get home and see if that will help fix this..

--Steve

Oh that would be great Steve!

Rastus Washington June 3rd, 2007 02:03 AM

Just want to say thanks to Steve Szudzik, Farnsworth & Mike Dulay for the time and effort put into these scripts and workflows.

Rastus


All times are GMT -6. The time now is 08:05 PM.

DV Info Net -- Real Names, Real People, Real Info!
1998-2025 The Digital Video Information Network