Quantcast Avisynth: MPEG2 & Legalclip Problems - digitalFAQ.com Forums [Archives]
  #1  
02-21-2003, 09:12 PM
easymenu easymenu is offline
Free Member
 
Join Date: Feb 2003
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
I've hit a couple of brick walls.

----------
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"
----------

----------
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,22
* AddBorders(4,4,4,8 )
* LegalClip()
----------

Any suggestions for fixes? Thanks.
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
02-21-2003, 09:38 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #3  
02-21-2003, 11:48 PM
easymenu easymenu is offline
Free Member
 
Join Date: Feb 2003
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Reply With Quote
  #4  
02-22-2003, 12:10 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
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
I haven't taken a detailed look at the sources

-kwag
Reply With Quote
  #5  
02-22-2003, 11:25 PM
easymenu easymenu is offline
Free Member
 
Join Date: Feb 2003
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
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.

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.

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?
Reply With Quote
  #6  
02-27-2003, 03:26 AM
easymenu easymenu is offline
Free Member
 
Join Date: Feb 2003
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
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.

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?

I'll poke around and report back.

Anyone have suggestions, please suggest them.
Reply With Quote
  #7  
03-06-2003, 01:30 AM
easymenu easymenu is offline
Free Member
 
Join Date: Feb 2003
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Okay! Found a working solution for the "cannot open" problem!

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

Reply With Quote
  #8  
03-06-2003, 01:59 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks for the tip easymenu

-kwag
Reply With Quote
  #9  
03-08-2003, 12:33 AM
easymenu easymenu is offline
Free Member
 
Join Date: Feb 2003
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
You're welcome! Pleased to share the knowledge!

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.)
Reply With Quote
  #10  
03-14-2003, 02:01 AM
easymenu easymenu is offline
Free Member
 
Join Date: Feb 2003
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
LegalClip Filter for Avisynth [Readme] kvcd.net Archives Avisynth Scripting 0 11-25-2012 09:03 PM
TMPGEnc: Problems with mpeg2 to mpeg2 conversion rainer Video Encoding and Conversion 1 12-20-2006 05:20 PM
Avisynth: LegalClip() usage? Fluffbutt Avisynth Scripting 4 04-24-2004 04:14 AM
Avisynth: Legalclip in avs script? magio32 Avisynth Scripting 4 03-31-2004 12:10 PM
LegalClip.dll not an avisynth 2.5 plugin? pixeldotz Avisynth Scripting 2 06-23-2003 07:45 AM

Thread Tools



 
All times are GMT -5. The time now is 09:09 PM  —  vBulletin Jelsoft Enterprises Ltd