Log in

View Full Version : AvsPmod 2.5.1


Pages : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 [18] 19 20 21 22 23 24 25 26

fvisagie
23rd November 2012, 09:29
This is one that surely must have been reported already but let me err on the side of caution ;).

When a manual preview refresh is done, sliders' initial values are set to their current values. This happens whether Refresh preview automatically is enabled or not.

vdcrim
23rd November 2012, 19:36
That's on purpose. I just took a look for adding a 'revert all slider changes' contextual menu option but it's not that easy without a good revision/rewrite so it will stay like this for now.

vdcrim
27th November 2012, 21:46
Time for a new release:

Windows build (http://www.amvhell.com/avspmod/AvsPmod_v2.4.0.zip)
Source code (https://github.com/AvsPmod/AvsPmod/archive/v2.4.0.zip)

Changelog
Version 2.4.0 [2012-11-27]

- Add AvxSynth support. AvsPmod runs now natively on *nix
- Add script playback (video only)
- Add 'keep variables on refreshing' menu option, useful for dealing with heavy scripts
- Detect correctly AviSynth 2.6.0 new color spaces
- Add temporary support for VapourSynth AVIFile scripts (.vpy)
- Add option to specify directly the location of avisynth.dll/libavxsynth.so
- Add option to change the autoload plugins directory
- Add option to choose an alternative working directory
- Accept some variables on 'program settings' paths: %programdir%, %avisynthdir%, %pluginsdir%.
Useful for portable use.
- Add 'undo close tab':
- file menu -> undo close tab
- middle click on empty tab bar space
- Ctrl+Shift+N default hotkey
- New find and replace dialogs with added features
- Add auto-crop option to the crop editor
- The crop editor can be used now with the video preview zoomed or flipped
- Add a new variable to the video status bar - bookmark title (%BM)
- Improve avs and avsi files association option:
- on Windows, prompt to associate files for all users or only the current one and ask for permissions
for the former
- on *nix, this choice is made by starting AvsPmod as root to associate for all users. The application
is also registered on the desktop environment's menu.
- make the option toggleable
- Improve default filename on prompts:
- add two new settings to the options dialog, 'save/load' tab
- better basename choice on save image dialog and fix last saved image's name still being used when
changing tabs
- add 'default' parameter to several macro functions
- The mouse wheel can be used now to scroll through tabs
- Ctrl + mouse wheel can be used to zoom the video preview
- If 'enable scroll wheel through similar tabs' is off the mouse wheel can be used to scroll vertically
the video preview, or horizontally with Shift pressed.
- The CLI script encoder now checks PATH and the tools subdirectory before asking for the path to the
executable
- Fix opening and saving Unicode scripts
- Fix decoding of command line arguments
- Fix ScriptFile, ScriptName and ScriptDir functions not returning the right value [AviSynth 2.6.0]
- Fix 'share timeline' option being always in effect
- Fix 'last scrolled frame' menu option for 'update video while dragging' on
- Fix tabs without filename still being closed when canceling a save dialog
- Fix stop button of the avs2avi GUI tool
- Add new macro function Pipe, for sending video frame data to external applications
- Add 'propose' and 'only' parameters to the GetScriptFilename macro function
- Add 'clean' parameter to the GetText macro function
- Improvements on the 'Import bookmarks from file' macro:
- add timecode format v1 parsing
- add support for list of frames on TFM log u/b section and optimize its parsing
- Merge 'Save bookmarks to images' macro into 'Save Image Sequence'
- Fix Python 2.6 compatibility
- Other minor changes and fixes


Some new features need an explanation:


Path settings additions

The paths on the settings dialog can be set now using some variables: %programdir%, %avisynthdir%, %pluginsdir%. Also the location of the AviSynth library used by AvsP can be specified. For example you can place avisynth.dll on an AvsP subdirectory and it will be always picked even if the AvsP directory changes location. This can also be useful to alternate between AviSynth 2.5 and 2.6.

The autoload plugins directory can also be changed. However this is a system-wide change as AviSynth doesn't provide a way for applications to specify its own directory (AvxSynth does). A similar effect can be achieved by setting the working directory to the alternative plugin directory and check the for all scripts option.

Of course a script written taken advantage of this setting won't work on external applications if the working directory is not the alternative avisynth.dll/plugins location set on AvsP.


AvsP help directory location

The option to set a custom help directory has been removed from the settings dialog. If someone was using a translated version of these (a bit outdated) files now needs to rename the directory to help_xxx and place it on the main AvsP directory, where xxx is the code of the language used for the program's interface.


Keep variables on refreshing option

What this new option placed on the Video menu actually does is reuse the AviSynth environment when refreshing the preview. It's intended for trying new filters/tweaking parameters. Don't leave it on when not needed.

Additionally, changing a slider now reuses the environment if the script is unchanged, regardless of the preference state.

Advantages of using the same environment:
- Avoids scanning the autoload directory again after a change in the script. Noticeable speed-up for large directories.
- Variables are shared between all clips in the same environment. This may be used to avoid processing heavy filters again, e.g:

LoadPlugin("heavy_filter.dll")
source("video")
clip = heavy_filter()
clip.Tweak(cont=1.0)

With the new option checked, observing the effect of changing a Tweak parameter can be speed-up by commenting the first lines or creating a tagged section on them and turning it off:

#LoadPlugin("heavy_filter.dll")
#source("video")
#clip = heavy_filter()
clip.Tweak(cont=1.05)
or

LoadPlugin("heavy_filter.dll")
source("video")
clip = heavy_filter()

clip.Tweak(cont=1.05)

The clip variable is still in memory when the preview clip is recreated. Note that the result would be incorrect if the same variable is assigned again in the uncommented lines. For that reason last can't be used as the saved variable.

Disadvantages:
- More memory usage
- Unexpected results if used without care


Pipe macro function

This function can be used to pipe raw video data to external applications. It's described in macros_readme.txt, here are some examples:

avsp.Pipe(ur'x264 - --demuxer y4m -o output.mkv', y4m=True) # x264
avsp.Pipe(ur'x264 - --demuxer y4m -o output.mkv', y4m={'depth':16, 'width':'/2'})
# 420p16 sent as fake YV12, recent x264 revisions
avsp.Pipe(ur'convert -depth 8 -size 1280x720 rgb:- output.png', reorder_rgb=True) # ImageMagick
avsp.Pipe(ur'convert -depth 8 -size 1280x720 -interlace plane -sampling-factor 4:2:0 '
'-colorspace rgb yuv:- output.png')

Remember that a macro can run in a separate thread by adding a # run in new thread line. Example of callback function for Pipe, where progress is an avsp.ProgressBox instance:

def pipe_callback(i, frame, total):
message = 'Processing...' if i == total else 'Piping frame ' + str(frame)
return avsp.SafeCall(progress.Update, i, message)[0]


AvxSynth/*nix


AvsP can run now natively on *nix with AvxSynth (https://github.com/avxsynth/avxsynth/wiki) backend, though certain UI bugs still remain. No build is provided, so grab the source code package, extract it to a directory with write permissions for the user and run run.py. You can also get the Windows build, delete all executable files and move the content of the src subdirectory to its parent. The avs file association menu option also registers AvsP on the desktop environment's menu.

Requirements: Python 2.6-2.7, wxPython 2.8-2.9


VapourSynth

While AvsP still doesn't support VapourSynth a small tweak has been added to allow writing and previewing scripts. VapourSynth scripts using the AVIFile interface (Windows) will now be opened as regular avs files but previewed by evaluating AviSource("scriptname.vpy"). The syntax highlighting and filter database is still AviSynth's.


Issues

- Refreshing the preview while the video is playing can lead to crashes
- Invalid vpy scripts tend to crash (UPDATE: not anymore in VapourSynth R19+).
- Video preview horizontall scrolling: wheel tilt is not supported by the current wxPython 2.8 series but it will be in the next stable series
- A minor visual glitch when using the crop editor and changing zoom is also fixed on the next wxPython.


Next

I'll be leaving AvsPmod development now for an undetermined time. New contributors are always welcome. This is the current to-do list:

- Add real VapourSynth support
- Fix remaining wxPython 3 / *nix compatibility issues
- Syntax highlighting / sliders revision

xekon
28th November 2012, 12:30
First my question: Is there a way to get AvsP to check for file modification, I know when you open an .avs file if its different from the last time you opened it in AvsP it will ask if you want to reload it. (The old AvsP 2.0.2 did this but not AvsPmod it seems)

What I am looking for is a hotkey to force it to do that check. The reason I need this is because I wrote an autoit program that modifies the .avs file that I have open in AvsP based on episode information I have on a TV series

If it doesnt exist, maybe a new option on the File Menu under save script, could be reload script

more info for those interested:

I am dealing with a large TV series, where I am performing AlignedSplice() and DelayAudio() on all episodes.

I get all my frame numbers visually and enter them into excel per episode, the audio delay is generated to log file by pgcDemux

So my next step is to check each episode by listening to it and adjusting the Frame number values

here is my autoit code for those that are curious:

#include <Excel.au3>
HotKeySet("{F9}","NextEp")
HotKeySet("{F10}","AskEp")

Global $episode
;================Spreadsheet================
Local $sFilePath1 = @ScriptDir & "\zdbz.xls" ;This file should already exist
Local $oExcel = _ExcelBookOpen($sFilePath1)
If @error = 1 Then
MsgBox(0, "Error!", "Unable to Create the Excel Object")
Exit
ElseIf @error = 2 Then
MsgBox(0, "Error!", "File does not exist - Shame on you!")
Exit
EndIf

While 1
sleep(100);random delay
WEnd

Func Update()
;================AVS================
FileDelete("set_listen.avs")
Local $file = FileOpen("set_listen.avs", 1)
FileWriteLine($file, "LoadPlugin(""F:\AviSynth\plugins\ffms2.dll"")" & @CRLF)
$sCellValue = _ExcelReadCell($oExcel, $episode, 3)
FileWriteLine($file, "A = FFAudioSource(""F:\AviSynth\!frames\"&$sCellValue&".mkv"")" & @CRLF)
FileWriteLine($file, "V = FFVideoSource(""F:\AviSynth\!frames\"&$sCellValue&".mkv"")" & @CRLF)
FileWriteLine($file, "AudioDub(V, A)" & @CRLF)
$sCellValue = _ExcelReadCell($oExcel, $episode, 4)
FileWriteLine($file, "DelayAudio("&$sCellValue&")" & @CRLF)
$s1 = _ExcelReadCell($oExcel, $episode, 5)
$s2 = _ExcelReadCell($oExcel, $episode, 6)
$s3 = _ExcelReadCell($oExcel, $episode, 7)
$s4 = _ExcelReadCell($oExcel, $episode, 8)
FileWriteLine($file, "AlignedSplice(Trim("&$s1&", "&$s2&"), Trim("&$s3&", "&$s4&"))" & @CRLF)
FileWriteLine($file, "ConvertToRGB()")
FileClose($file)
EndFunc

Func NextEp()
$episode = $episode + 1
Update()
EndFunc

Func AskEp()
$episode = InputBox("Episode", "What episode are you working on?")
$episode = $episode + 2
Update()
EndFunc

and what my data looks like in my spreadsheet:
Bat File Ep Delay F1 F2 F3 F4
CALL encode.bat F:\eng\000 000 -0.217 0 13166 13467 27144
CALL encode.bat F:\eng\001 001 -0.198 0 11497 11798 27216
CALL encode.bat F:\eng\002 002 -0.197 0 13217 13518 27735
CALL encode.bat F:\eng\003 003 -0.194 0 12415 12716 27325

LigH
28th November 2012, 12:44
Please update the thread title... ;)

xekon
28th November 2012, 13:48
I was about to see about adding this feature myself, but as I was looking at the list of requirements for building, I got an idea for a quick and easy workaround.

with my cursor in the script editing part, I press the hotkey for my script, after my script modifies the .avs I am working on it copies the contents of the new file and then pastes the contents into the text window of AvsPmod and then saves and refreshes the preview.

here is my new autoitscript for anyone curious:

#include <Excel.au3>
HotKeySet("{F9}","NextEp")
HotKeySet("{F10}","AskEp")

Global $episode
;================Spreadsheet================
Local $sFilePath1 = @ScriptDir & "\zdbz.xls" ;This file should already exist
Local $oExcel = _ExcelBookOpen($sFilePath1)
If @error = 1 Then
MsgBox(0, "Error!", "Unable to Create the Excel Object")
Exit
ElseIf @error = 2 Then
MsgBox(0, "Error!", "File does not exist - Shame on you!")
Exit
EndIf

While 1
sleep(100);main loop
WEnd

Func Update()
;================AVS================
FileDelete("set_listen.avs")
Local $file = FileOpen("set_listen.avs", 1)
FileWriteLine($file, "LoadPlugin(""F:\AviSynth\plugins\ffms2.dll"")" & @CRLF)
$sCellValue = _ExcelReadCell($oExcel, $episode, 3)
FileWriteLine($file, "A = FFAudioSource(""F:\AviSynth\!frames\"&$sCellValue&".mkv"")" & @CRLF)
FileWriteLine($file, "V = FFVideoSource(""F:\AviSynth\!frames\"&$sCellValue&".mkv"")" & @CRLF)
FileWriteLine($file, "AudioDub(V, A)" & @CRLF)
$sCellValue = _ExcelReadCell($oExcel, $episode, 4)
FileWriteLine($file, "DelayAudio("&$sCellValue&")" & @CRLF)
$s1 = _ExcelReadCell($oExcel, $episode, 5)
$s2 = _ExcelReadCell($oExcel, $episode, 6)
$s3 = _ExcelReadCell($oExcel, $episode, 7)
$s4 = _ExcelReadCell($oExcel, $episode, 8)
FileWriteLine($file, "AlignedSplice(Trim("&$s1&", "&$s2&"), Trim("&$s3&", "&$s4&"))" & @CRLF)
FileWriteLine($file, "ConvertToRGB()")
FileClose($file)
sleep(100)
Local $file = FileOpen("set_listen.avs")
$FileContent = FileRead($file)
ClipPut($FileContent);new file saved to clipboard
FileClose($file)
Send("^a");select all
Send("^v");paste
Send("^s");save
Send("{F5}");refresh preview
EndFunc

Func NextEp()
$episode = $episode + 1
Update()
EndFunc

Func AskEp()
$episode = InputBox("Episode", "What episode are you working on?")
$episode = $episode + 2
Update()
EndFunc

vdcrim
28th November 2012, 14:20
Is there a way to get AvsP to check for file modification, I know when you open an .avs file if its different from the last time you opened it in AvsP it will ask if you want to reload it. (The old AvsP 2.0.2 did this but not AvsPmod it seems)

AvsPmod still checks on start if the files in the saved session have been modified. It also does now for the new 'undo close tab' option.

Actually there's a bug that I didn't bother to fix because I really didn't expect it to affect anyone, but maybe this is what you noticed: when saving a session, e.g. closing AvsP with save session for next launch checked, the CRC for checking the scripts on the next start is taken from the file as it is on the filesystem, not in AvsP.

What I am looking for is a hotkey to force it to do that check. If it doesn't exist, maybe a new option on the File Menu under save script, could be reload script

I'll add that option.

naoan
28th November 2012, 19:00
I was always able to scroll through tab with mouse wheel when video preview is up but now the scroll order got reversed (i.e. scrolling up with mouse wheel will make me go to the left/previous tab instead of right/next tab), can I change this back to old behavior?

vdcrim
28th November 2012, 19:41
Do you mean the opposite? It goes to the right when I scroll up. It's true that I inverted it for this release, as it seemed more natural to me. Not sure if there's a standard direction.

naoan
28th November 2012, 19:43
Do you mean the opposite? It goes to the right when I scroll up. It's true that I inverted it for this release, as it seemed more natural to me. Not sure if there's a standard direction.

Whoops yeah, I mean that. Any way to change this back? I'm used to left/right = up/down.

vdcrim
28th November 2012, 19:48
I'll add a check in the settings I guess. I'm going to wait a few days for possible bugs and then release a v2.4.1 with that change and the one asked for by xekon.

naoan
28th November 2012, 20:19
I'll add a check in the settings I guess. I'm going to wait a few days for possible bugs and then release a v2.4.1 with that change and the one asked for by xekon.

Thank you, much appreciated. :thanks:

Mounir
28th November 2012, 20:20
God knows i love avsp but the urgent fixes for me are:
-bigger buttons (i have a large screen!) :button play, next frame etc..
-file sources natively supported: .dgi (DgDecNV) .dga (dgavdec), when i import one of these files i always get the directshowsource and have to manually write everything

Also there is a bug with videos decoded with DGDecNv (not sure if that's avsp fault) if open a frame, make a new color tweak and go back to that same frame avsp crash, this doesn't happen with .dga

Zarxrax
29th November 2012, 00:21
-file sources natively supported: .dgi (DgDecNV) .dga (dgavdec), when i import one of these files i always get the directshowsource and have to manually write everything

Options > Extension templates

xekon
29th November 2012, 08:25
I'll add a check in the settings I guess. I'm going to wait a few days for possible bugs and then release a v2.4.1 with that change and the one asked for by xekon.

RIGHT ON! Thanks! then I could just have my script press the hotkey for that new feature after it modifies the .avs file with my excel data. I will find this very useful because then I wont even have to click my mouse into the text editing section of AvsPmod.

I really appreciate it :)

:thanks:

Keiyakusha
29th November 2012, 09:07
In recent version I can't fully see reported colorspace. YV12 for example completely not seen in normal window, and this how it looks in maximized window.
http://dl.dropbox.com/u/110558786/DesktopScreens/C058E8DB.PNG
Edit: tabs and settings window don't use default system font. will be good if you can change that as it uses something hardcoded and its ugly in some languages.
Edit2: when we do zoom with mouse wheel, will be nice if image will be also centered on the mouse pointer (like in Photoshop, yeah =). There is no much point in using it if I'll need to scroll afterwards.

Motenai Yoda
29th November 2012, 23:29
with 2.4.0 I've a bug, on separate preview's window, the slider can't be "slid" with mouse...

fvisagie
30th November 2012, 07:22
Time for a new release:
...


Thanks, your trouble is sincerely appreciated!

vdcrim
1st December 2012, 00:18
bigger buttons
Added, only the video controls for now.
there is a bug with videos decoded with DGDecNv
Sorry I don't own a Nvidia GPU.
can't fully see reported colorspace
Try changing \T\T to \t\t on the customize video status bar dialog. The later was the default but I changed it on this release as it's not supported on *nix.
tabs and settings window don't use default system font. will be good if you can change that as it uses something hardcoded and its ugly in some languages.
They changed that in the current development releases of wxPython, but unfortunately as of v2.9.4 there's also two bugs at least that affect AvsP.
when we do zoom with mouse wheel, will be nice if image will be also centered on the mouse pointer
Now it does, provided that the preview is zoomed enough to have scrollbars. It also zooms now in factors of 1.25 instead of using the values that appear on the menu. The zoom in/out menu options are left as they were.
on separate preview's window the slider can't be "slid" with mouse
Fixed, along with two old bugs I found while at it.

martin53
4th December 2012, 18:32
Hi,
please have a look at this issue with ScriptName and ScriptFile (http://forum.doom9.org/showthread.php?p=1603865#post1603865). :thanks:

IanB
4th December 2012, 22:38
They think you should be setting these 3 global vars before you env->Eval the script buffer. env->SetGlobalVar("$ScriptName$", ScriptName);
env->SetGlobalVar("$ScriptFile$", ScriptFile);
env->SetGlobalVar("$ScriptDir$", ScriptDir);

vdcrim
4th December 2012, 22:56
It's already done on v2.4.0 but ScriptName and ScriptFile are swapped by mistake. Will be fixed on v2.4.1, maybe tomorrow.

Keiyakusha
4th December 2012, 23:52
Try changing \T\T to \t\t on the customize video status bar dialog. The later was the default but I changed it on this release as it's not supported on *nix.
Yeah this fixed it for me.

Now it does, provided that the preview is zoomed enough to have scrollbars. It also zooms now in factors of 1.25 instead of using the values that appear on the menu. The zoom in/out menu options are left as they were.
I'm not sure If I understand you correctly or if I was able to explain it correctly to begin with. Here is an example:
1080p screen, 1-line script ColorbarsHD(), zoom 100% (normal), AvsPmod window maximized, I can see the whole image
I hover mouse over blue color around position 1081,105
Then without moving mouse I press ctrl+mousewheel to zoom closer up to 400%
As a result I will see upper-left corner of the image with grays and yellow bar. Instead I expect to see upper-right corner with blue bar (1081,105) appearing near the center of the video area.
Basically pixel (1081,105) should stick to mouse cursor as much as possible.

Currently, after zooming to 400% i need to scroll to the right to be able see blue bar, regardless of mouse pointer position during zoom process.

vdcrim
5th December 2012, 00:13
Yes that's how it works now, but only if the video fills the frame/window. It could be done also for zooming out but it would require some deep changes that I'm not willing to do right now, and anyway is less useful.

Zarxrax
5th December 2012, 06:02
Looks like vdcrim has that new version ready:

Version 2.4.1
Windows build (https://github.com/downloads/AvsPmod/AvsPmod/AvsPmod_v2.4.1.zip)
Source code (https://github.com/AvsPmod/AvsPmod/archive/v2.4.1.zip)

Changelog:

- Add 'reload script' menu option
- Add 'use large size video controls' setting
- Add 'invert scroll wheel direction' setting
- Improve video zooming on Ctrl + mouse wheel
- Fix the 'navigate' menu options needing to be pressed two times when using a separate window for the video preview
- Fix the dragging of the handle of the separate window preview's slider
- Fix ScriptFile and ScriptName being swapped
- Accept several clip properties on the Pipe macro function's command line
- Other minor fixes

xekon
6th December 2012, 02:35
YAY! I see you added the reload script option, and it works perfect!

One more tiny request, could that "reload script" menu item have a hotkey combo added to it? maybe ctrl+r , I am fine with any combo though :)

StainlessS
6th December 2012, 02:45
I'll be leaving AvsPmod development now for an undetermined time.

vdcrim, get off on your vacation (or whatever), dont let this bunch drag you kicking and screaming back into the fold.

Enjoy your time away and come back refreshed and willing to do everybody else's bidding. :)

vdcrim
6th December 2012, 21:13
could that "reload script" menu item have a hotkey combo added to it?
F5 was already used so I left it without a default hotkey, but you can assign the one you prefer in Options -> Keyboard shortcuts.

vdcrim, get off on your vacation (or whatever), dont let this bunch drag you kicking and screaming back into the fold.

Enjoy your time away and come back refreshed and willing to do everybody else's bidding. :)
Thank you. I don't know if in some months from now I'll have the spare time to keep digging into AvsPmod, but I hope so.

xekon
7th December 2012, 00:55
F5 was already used so I left it without a default hotkey, but you can assign the one you prefer in Options -> Keyboard shortcuts.

ah I should have looked to see if there was a way to set shortcuts, excellent, thank you!

AlanHK
8th December 2012, 07:26
It looks like there won't be any updates for a while, but having just done the latest install, a comment: maybe I'm doing it wrong, but it's a bit of a hassle to update the program.

As it doesn't have an installer, you have to just unzip the whole thing to a folder and set a shortcut; which is fine, the first time, but when you have customised function settings and key bindings, you'd just lose all that.

I discovered the "export customizations" button, so I try to periodically back that up and import it when I upgrade.

This should me mentioned prominently in the readme file.

But key bindings and other program settings are still lost.
It appears these are all in "options.dat", but while just keeping my old options.dat file seems to work, it's possible this might also mess up any fixes or new features.

So, ideally there would be an installer that could upgrade while preserving all old settings that are appropriate for the new version.
Which I realise probably won't get done.

Otherwise, at least with new version, please note what if any changes to the two dat files have been made, and if previous versions of these can be retained safely.


And separately, does the video preview have sound? Plays video fine, but silent.

fvisagie
8th December 2012, 07:42
I've been postponing the upgrade precisely because of uncertainty about this. I do realise that vdcrim must have had a hard time juggling requested features against time available and I commend him for a great job. Your post has also served to confirm and explain a lot, :thanks:.

vdcrim
8th December 2012, 17:43
Overwriting the previous files is the recommended way to update. Not info is lost, unless you happened to edit a macro script or the encoder preset files. I figure that this is the reason why adding an installer never has got a high priority.

Occasionally some files may be renamed/not used anymore. For example the Save bookmarks to images and Save Image Sequence macros were merged in v2.4.0 and the former can be deleted now.

The settings files (every .dat file except filterdb.dat) can be safely used with a past or future version. When going back to an old version newer preferences are just ignored and when upgrading default values are added for new settings.

That may not be always the case for session files. There were some changes in v2.4.0 in this respect. Old session files will still work in the current releases but not the other way around.

does the video preview have sound? Plays video fine, but silent.
Not it doesn't. I don't have plans to support it but AvsPmod is basically a community project, anyone is welcome to get involved or even take the lead.

fvisagie
8th December 2012, 22:09
When the source file contains the line

# Each <splicen> is of the form [<framen>[:[<overlapn>]]]

AvsPmod saves the file/that line as

# Each <splicen> is of the form ]]

### AvsP marked script ###
# # Each <splicen> is of the form [<framen>[:[<overlapn>]]]
#
### AvsP marked script ###


If this is expected behaviour, what am I missing here, please? If this is unexpected behaviour, could someone please confirm whether this happens with 2.4.1 still - I'm getting this with 2.3.1.

@vdcrim, thanks for the confirmation about upgrading.

Many thanks,
Francois

vdcrim
9th December 2012, 18:45
[<framen>[:[<overlapn>] is being incorrectly detected as an user slider separator (see help -> user sliders for more info). Change the library.zip in your AvsPmod/lib directory with this one.

fvisagie
10th December 2012, 06:31
That's so obvious but I never even considered it! Thanks for the confirmation and especially the update.

Yellow_
12th December 2012, 17:32
Dumb question, how do I run this natively on Linux? Download source and build? Don't see any build instructions other than for Windows in the source git package. :-(

**EDIT**

Ah! is it just python ./run.py ? Then asks for avxsynth path, so if I want to use Vapoursynth native Linux build instead can I just set that as the path?

vdcrim
12th December 2012, 22:58
From the release notes (yes it's not mentioned on the readme):
AvsP can run now natively on *nix with AvxSynth (https://github.com/avxsynth/avxsynth/wiki) backend, though certain UI bugs still remain. No build is provided, so grab the source code package, extract it to a directory with write permissions for the user and run run.py. You can also get the Windows build, delete all executable files and move the content of the src subdirectory to its parent. The avs file association menu option also registers AvsP on the desktop environment's menu.

Requirements: Python 2.6-2.7, wxPython 2.8-2.9


Ah! is it just python ./run.py ? Then asks for avxsynth path, so if I want to use Vapoursynth native Linux build instead can I just set that as the path?
VapourSynth is not supported and probably won't be for a while (https://github.com/AvsPmod/AvsPmod/issues/13), even counting on someone willing to work on it. On Windows its VfW module can be used to make the video preview work but you're out of luck on linux.

Yellow_
12th December 2012, 23:10
ok, many thanks again.

kartola
18th December 2012, 07:00
Hi all,
I encoded the same video with x264 (different parameters), but when I try to compare the results with AvsPmod it make me see 2 differents frame in the video.
I use simply the string DirectShowSource(...mkv)
What's wrong?

Thanks
P.S. I hope you understood what i mean with my bad english...

naoan
18th December 2012, 07:31
Hi all,
I encoded the same video with x264 (different parameters), but when I try to compare the results with AvsPmod it make me see 2 differents frame in the video.
I use simply the string DirectShowSource(...mkv)
What's wrong?

Thanks
P.S. I hope you understood what i mean with my bad english...

Use FFMS2 (http://code.google.com/p/ffmpegsource/) instead of directshow.

kartola
18th December 2012, 07:45
Use FFMS2 (http://code.google.com/p/ffmpegsource/) instead of directshow.

Thank you naoan,
can you explain to me how to use ffmpegsource in a simply way?
I have to download the plugin, then use FFVideoSource(...) command?

naoan
18th December 2012, 08:07
Thank you naoan,
can you explain to me how to use ffmpegsource in a simply way?
I have to download the plugin, then use FFVideoSource(...) command?

Yeah basically, don't forget to put the plugin in your avisynth plugin folder.

kartola
18th December 2012, 08:29
It works great!

Thank you

Seedmanc
20th December 2012, 17:59
Is there any way to measure speed at which currently written script renders? In VirtualDub it was done by hitting F5 which started rendering and had fps counter, here, however, I only see "run analysis pass" option w/o fps.
Comparing scripts visually is nice, but speed matters as well.

Reino
20th December 2012, 20:11
AVSMeter v1.44 (http://forum.doom9.org/showthread.php?t=165528)

active1
23rd December 2012, 21:01
Hi
is there any way to use vapoursynth with avspmod on ubuntu?

lansing
29th December 2012, 09:31
hi, i got an error while trying to save an image from the preview, what is the problem?


Traceback (most recent call last):
File "avsp.pyo", line 7839, in OnMenuVideoSaveImage
File "avsp.pyo", line 11071, in SaveCurrentImage
File "re.pyo", line 151, in sub
File "re.pyo", line 242, in _compile
sre_constants.error: bad character range

StainlessS
29th December 2012, 10:02
As vdcrim not around lately, wild guess --- it does not like some characters in your chosen file name, try pick another.

lansing
29th December 2012, 20:01
ok, after a few trial and errors, i think the problem is that when saving the image, the program mistaken my file name as some kind of regular expression.

i changed the filename to "[me&u.avi" and got an error like this:

Traceback (most recent call last):
File "avsp.pyo", line 7839, in OnMenuVideoSaveImage
File "avsp.pyo", line 11071, in SaveCurrentImage
File "re.pyo", line 151, in sub
File "re.pyo", line 242, in _compile
sre_constants.error: unexpected end of regular expression

StainlessS
29th December 2012, 20:24
I can sort of understand using a regular expression to load a file from an r.e. wildcard to display a matching selection,
but dont see it being of use once a single file has been selected from that list (unless group selection of files).
Using r.e. for saving a single file seems to me to be a mistake, even if group saving I dont see much reason for it.