digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: MPEG2 & LegalClip Problems (http://www.digitalfaq.com/archives/avisynth/2727-avisynth-mpeg2-legalclip.html)

easymenu 02-21-2003 09:12 PM

MPEG2 & LegalClip Problems
 
:!: I've hit a couple of brick walls.

----------
:arrow: PROBLEM #1 - under Win2k
==========
* Capture broadcast to 352x480 MPEG2 file
* DeMux using TMPGEnc v.2.510 (free 30-day-MPEG2 version)
* Scan .m2v video file using DVD2AVI v.1.76
-- NOTE: .d2v file loads into TMPGEnc & displays .m2v file properly
* reference .d2v scan file using AviSynth v.2.07 script
-- NOTE: movie.avs test script:
----- LoadPlugin("mpeg2dec.dll")
----- mpeg2source("movie.d2v")
* TMPGEnc ERROR on loading movie.avs - "file 'movie.avs' cannot open or unsupported"
----------

----------
:arrow: PROBLEM #2 - under WinNT4
==========
When I use "LegalClip()" in an AviSynth (v.1.0b3) script, the result is the same as if I didn't use it. That is, black borders of "0" do NOT clip up to "16" - no errors, just doesn't work.
Here's my script:
* LoadPlugin("legalclip.dll")
* AVISource("movie_a.avi", "movie_b.avi")
* ConvertToYUY2()
* Crop(4,4,344,228)
* AddBorders(4,4,4,8 )
* LegalClip()
----------

:?: Any suggestions for fixes? Thanks.

kwag 02-21-2003 09:38 PM

Hi easymenu,

For problem #1, check your TMPEG settings so they are exactly like this: http://www.kvcd.net/forum/viewtopic.php?t=2223

For problem #2, you should be using avisynth 2.0x for LegalClip to work.

-kwag

easymenu 02-21-2003 11:48 PM

:D Thanks!

I'll try the link and conform my settings in TMPGEnc.

As for LegalClip(), unfortunately I've found that using AviSynth 2.x under WinNT4 (on my system, anyway) generates occasional "glitch" frames (partial picture with color blocks and other noise) -- while AviSynth 1.x doesn't -- with the exact same script. Strange.

Is there a "legalclip" for version 1.x?

kwag 02-22-2003 12:10 AM

Quote:

Originally Posted by easymenu

Is there a "legalclip" for version 1.x?

I think LegalClip.dll was compiled with AviSynth 2.0x headers and sources. Maybe that's why it doesn't work correctly wity AviSynth 1.x.
I'm not sure if it would work if it was recompile with AviSynth 1.x sources :idea:
I haven't taken a detailed look at the sources :roll:

-kwag

easymenu 02-22-2003 11:25 PM

:( Unfortunately, setting TMPGEnc to the link's suggested settings (which were mostly the default anyway) didn't make any difference. I still get the same error message.

8O Here's the really bad news. On the Win2k system, this error was for an MPEG2 file. I thought to test an AVI file. It, too(!), didn't work (with similar error messages).

:!: So, as a counter test, on the WinNT4 system (on which, to date, AVI files do work), I tried an MPEG2 file. And, lo, it worked perfect!

In another recent thread here, a couple of someones complained about the very same thing -- working on one system and not working on another. Of knowledgeable answering posts, there didn't seem to be a solution to this odd problem.

:idea: I'm thinking codec problem -- but the original files run with WindowsMediaPlayer ... so that can't be it, right? My next step is to try an exact duplication of file directories from the working system to the error-producing system.

:?: Anyone care to take a (or more) stab(s) at this?

easymenu 02-27-2003 03:26 AM

:idea: I'm going to approach this as a codec problem. For basic information, this is on a new Win2k installation with only the required software to capture and process the video / audio.

:arrow: I found a free program called GraphEdit http://www.digital-digest.com/dvd/do...graphedit.html. It is meant as a visual tool for building and testing filter graphs. The useful part, in this case, is it's ability to fully list all your codecs, filters, and what-have-you.

The problem I'm looking at now is that I can play both MPEG2 and AVI files with WindowsMediaPlayer. I can also load-up those same files in TMPGEnc. What fails is having a bare-bones AviSynth script (see my above-post) just "load" those files for play with either TMPGEnc or WindowsMediaPlayer. Could this be some kind of "transport" problem? And if it is, what does that mean? 8O

:!: I'll poke around and report back.

Anyone have suggestions, please suggest them. :)

easymenu 03-06-2003 01:30 AM

:D Okay! Found a working solution for the "cannot open" problem!

Go to this thread: http://www.kvcd.net/forum/viewtopic.php?t=3152

:ole:

kwag 03-06-2003 01:59 AM

Thanks for the tip easymenu :D

-kwag

easymenu 03-08-2003 12:33 AM

:) You're welcome! Pleased to share the knowledge!

:cry: Still having a problem with LegalClip(), though. As I mentioned, it doesn't seem to work with AVS 1.x. I've since tried it with AVS 2.0.x and it STILL doesn't seem to work. If I screen-capture the end result (in TMPGEnc or MPlayer) and check the colors in a graphics program, I'm still seeing 0,0,0 blacks and 255,255,255 whites. Can this be possible or am I expecting the wrong thing from LegalClip()? (I'm using it just as everyone shows in their scripts here.)

easymenu 03-14-2003 02:01 AM

:arrow: For my further adventures with LegalClip(), it is continued in it's proper location at the SansGrip's Filters section:
http://www.kvcd.net/forum/viewtopic.php?t=3237


All times are GMT -5. The time now is 06:13 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.