Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
29th March 2007, 18:53 | #621 | Link |
Registered User
Join Date: Oct 2003
Location: Ascoli Piceno-Italy
Posts: 279
|
Sorry if this has already been asked but i'd like to backup the script i made to an avi encoded with xvid and ,possibly with ac3 or mp3 audio.
I know that i can call avs2avi but how can i specify xvid options and parameters? For the audio part how can i do? |
29th March 2007, 19:31 | #622 | Link |
Registered User
Join Date: Oct 2003
Location: Ascoli Piceno-Italy
Posts: 279
|
i'm almost done with this script:
mpeg2source("E:\Black2\prova.d2v") trim(0,172155) Crop(8,120,-8,-120) parity = GetParity() ? 1 : 0 LeakKernelDeint(threshold=4,twoway=true,order=1) LRemoveDust_YV12(1) dull = last sharp = dull.LimitedSharpenFaster() Soothe( sharp, dull, 20 ) ColorMatrix() a=last b=mpeg2source("E:\Black2\prova.d2v") b=b.trim(172156,177132) b=b.Crop(8,120,-8,-120) b=b.TomsMoComp(1,1,1) video=a+b audio=NicAC3Source("E:\Black2\prova T01 2_0ch 256Kbps DELAY -384ms.ac3") Audiodub(video,audio) DelayAudio(-0.384) but now the problem of how to tell avs2avi the xvid parameters(q value,trellis,vhq mode,ecc...) remains,any clue? |
29th March 2007, 21:37 | #623 | Link | |
Registered User
Join Date: Oct 2002
Posts: 298
|
Quote:
If you'd rather specify all your parameters without a gui, then you need to use a special build of xvid, xvid encraw. In this case instead of using AvsP's avs2avi dialog, you should using a macro. You can check out the "Encoding example" or "Encoding example 2" macro to get you started. |
|
30th March 2007, 09:10 | #624 | Link |
Registered User
Join Date: Dec 2006
Posts: 117
|
Maybe the avs2qxvid.bat could help...?
http://forum.doom9.org/showthread.php?t=119500 |
30th March 2007, 17:03 | #625 | Link | |
Registered User
Join Date: Oct 2003
Location: Ascoli Piceno-Italy
Posts: 279
|
Quote:
|
|
2nd April 2007, 20:23 | #626 | Link |
masktools2 (ab)user
Join Date: Oct 2006
Location: PAL-I :(
Posts: 235
|
I keep getting an error when I want to open just a simple AVS script, only with AviSource() in it;
Code:
Traceback (most recent call last): File "AvsP.py", line 4552, in OnMenuFileOpen File "AvsP.py", line 6200, in OpenFile File "wx\stc.pyo", line 2842, in SetText File "encodings\cp1252.pyo", line 22, in decode UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 49: character maps to <undefined> UPDATE: Looks like changing the input avi filename resolved this issue... :/ Last edited by martino; 2nd April 2007 at 20:26. |
6th April 2007, 22:08 | #627 | Link |
Registered User
Join Date: Jan 2006
Posts: 1,867
|
avsp 1.3.7 bug
Pixel color display in YUV mode, shows wrong values. Code:
colorbars(pixel_type="YV12") But thanks for adding this feature, I've been waiting a long time to have it ps you can't just convert from rgb, some YUV can't be displayed as well. There's several yuv that can map to one rgb. The main reason I wanted it is to measure yuv colors ;( Last edited by jmac698; 6th April 2007 at 22:12. |
7th April 2007, 00:44 | #628 | Link |
Angel of Night
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
|
Do this:
StackHorizontal(StackVertical( \ ConvertToRGB(matrix="bt.601"), \ ConvertToRGB(matrix="pc.601")), \ StackVertical( \ ConvertToRGB(matrix="bt.709"), \ ConvertToRGB(matrix="pc.709")), \ ) One of them is bound to match your expectations, unless you use a totally different colormatrix. (I don't think any of them will give you 159 or 161 - $99 or $A1 - unless you're converting back to yuv by hand.) Oh! And make sure you use avisynth 2.5.7. There was a lot of discussion between .6 and .7 about colorbars, and some changes were made to it. I can throw together a small plugin that just plops YUV values into RGB if you'd like that. Since it probably isn't particularly easy to get it to show in avsp otherwise. |
7th April 2007, 04:03 | #629 | Link | ||
Registered User
Join Date: Oct 2002
Posts: 298
|
Quote:
Quote:
|
||
7th April 2007, 04:31 | #630 | Link |
Registered User
Join Date: Jan 2006
Posts: 1,867
|
You mean like this?
Code:
Function mapYUVtoRGB(clip Y) { U=Y.UToY().pointresize(Y.width,Y.height)#yv12 is scaled 2x, 2y V=Y.VtoY().pointresize(Y.width,Y.height)#yuy2 is scaled 2x Return (MergeRGB(V,Y,U)) } |
7th April 2007, 06:36 | #631 | Link |
Angel of Night
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
|
Hey, that's a neat little method, and I was trying so hard to think of a way to do it without a custom function, too. ;p
It's listed as A2, 162, in the G/Y on mine. Do you have photoshop, or some other editor you can collect per-channel values from? It might be that it's actually coming through as 159 for some bizarre reason. |
15th April 2007, 19:03 | #633 | Link |
Registered User
Join Date: Oct 2002
Posts: 298
|
No, currently there's no way to do it. At the moment, I'm working on a way to automatically build user sliders for every single function in a script (check boxes for true/false arguments, list boxes for string arguments), but it probably won't be in the next release. Incidentally, the next release will be in about a week, if everything goes well. This release will focus on improved communication between AviSynth and AvsP, should be good stuff. Once that release is ironed out, the plan is to have the automated sliders in the following release.
|
17th April 2007, 14:28 | #635 | Link |
interlace this!
Join Date: Jun 2003
Location: i'm in ur transfers, addin noise
Posts: 4,555
|
not sure if this is worth pursuing or not (probably not), but i have a dream of writing a big RGBlut for lift, gain and gamma, and then using my wiimote + nunchuk to control the values in avsp.
is it possible to somehow tie a slider to an input device like a joystick?
__________________
sucking the life out of your videos since 2004 |
17th April 2007, 19:03 | #636 | Link | ||
Registered User
Join Date: Oct 2002
Posts: 298
|
Quote:
Code:
AVISource("C:\test.avi", audio=Select([<"audio", 0, 1, 0>], False, True)) Quote:
|
||
18th April 2007, 15:35 | #637 | Link |
Registered User
Join Date: Oct 2006
Location: Gotham City, USA
Posts: 389
|
I just started using all the power features in AvsP... VERY cool program, much thanks to the developer.
Ok, so I've got an odd issue... Is there any way to set the FPS the program uses to determine time stamps? My current script loads a D2V file with DGDecode. The DVD is NTSC material: 720x480 at 29.97 FPS. However, the program displays the video as being 640x480 at 23.976 FPS. This causes descrepancies between frame counts and various time stamps... its a pain in the ass to try and convert frame counts into times for the TextSub filter and other things. EDIT: DOH. I just realized that AvsP is displaying the information for the ouput file... my de-interlace routine causes the FPS to change, and I resize the video in the course of the script. Still doesn't solve my problem, tho... EDIT: Yes, it actually does solve my problem... as long as I use the 23.976 for my FPS, all of the frame math works out (for filters added after de-interlacing, anyway). Last edited by Dr.Khron; 18th April 2007 at 15:47. |
19th April 2007, 14:25 | #638 | Link |
Registered User
Join Date: Dec 2006
Location: UK
Posts: 12
|
Hello and thank you for this great tool.
I have a problem with the avs2avi side of life though. I have downloaded avs2avi-139.zip unzipped and specified the path within AvsP(and restarted). I have written a simple scipt: LoadPlugin("C:\Documents and Settings\Tony62\My Documents\Downloads\DGDecode.dll") MPEG2Source("C:\Documents and Settings\Tony62\My Documents\Working Folder\VTS_01_1.d2v", cpu=0) Crop(0, 74, -0, -66) and all runs well in MPC or VirtualDubMod. The problem comes when i 'save as avi', avs2avi.exe launchs within task manager then disappears Any help would be appreciated |
20th April 2007, 07:52 | #639 | Link |
Registered User
Join Date: Oct 2002
Posts: 298
|
Ah, it's been I while since I did work on the avs2avi gui. It looks like the problem is caused by spaces in the filename - try saving the avisynth script to a directory without spaces (C:\test.avs or something), it should work then. I'll try and have that fixed up by the next release.
|
20th April 2007, 18:30 | #640 | Link | |
Registered User
Join Date: Dec 2006
Location: UK
Posts: 12
|
Quote:
I'm looking forward to your resizing calculator. Will it be completed also in the next version? Again, good work and thanks!! |
|
|
|