#185 opening avisythskripts with directshowsource in megui

v2.5x
closed
Filters (75)
5
2008-06-27
2007-10-26
Anonymous
No

Date: 2007-10-26 11:46
Sender: sharx1976
Logged In: YES
user_id=1414323
Originator: NO

well, it's definatly NOT a megui problem then. "those many threads" do not
"belong" to megui but to avisynth.

Date: 2007-10-26 11:42
Sender: nobody
Logged In: NO

i was able to narrow it down to the preprocessing part of the audio
encoding.
i think it was because i used two avisynth-skripts:
the first was for joining two files (video_raw.avs):

###############################
a = directshowsource("video1.avi")
b = directshowsource("video2.avi")

return a + b
###############################

the second skript was made with the skripteditor of megui:

###############################
DirectShowSource("D:\Temp\Video\reencode\video_raw.avs",fps=29.97000002997,audio=true)
#deinterlace
#crop
LanczosResize(640,272) # Lanczos (Sharp)
#denoise
###############################

now, when loading this skript megui starts those many threads and
allocates the memory.

there is another interesting thing i was able to see:
i click ok in the script editor
the scripts gets loaded into the main form
megui shows me a preview
in this moment the threads are created and the memory is allocated (the
same amount as during audio preprocessing)
now i close the previewwindow
and immediately the threads are killed and the memoryallocation goes down.
both to levels they had before.

i am using megui 0.2.6.1033, avisynth 2.5.7 and ffdshow-tryouts beta 3

additional info: it's even worse with avisynth 2.5.8 alpha 2. the whole pc gets locked for a couple of minutes until i am able to load taskman and kill megui (or media player classic when i loaded the first script with it)

Discussion

  • Ian Brabham

    Ian Brabham - 2007-10-26

    Logged In: YES
    user_id=673887
    Originator: NO

    I am sure there is a report in here somewhere, but this reads as if it is part of a longer discussion, there is not enough context.

    Any chance of a link to the original full discussion.

    Also some form of contact details generally makes communication easier. Opening a new thread in http://forum.doom9.org/forumdisplay.php?f=69 is the most direct means of contacting the development team.

    Also when reporting DirectShowSource() problems, please use the Logmask=-1 and LogFile="SomeFile.log" options. Zip up the logfile(s) and attach them. Please do not log encodes of 2 hour movies, they tend to get very hugh very quickly. Usually opening the source, playing 10 or so frames and exiting is sufficient.

    Also loading .AVS scripts under DirectShowSource() is definitly not recomended, if you really must do it this way, use AviSource("plugh.avs").

    It is best to use Import to textually include sub-scripts into a primary script.

    Also current 2.5.x Avisynths do not create any threads. Tony Petersen (TSP42) has been making modified versions that do multi-threading.

    Yes the DirectShow API libraries used in DirectShowSource are quite thread slap happy.

    To create the graph we use the RenderFile() API call. Graphedit is the tool of choice for examining DirectShow graphs without the added complication of Avisynth in the mix.

     
  • Ian Brabham

    Ian Brabham - 2007-10-26
    • assigned_to: nobody --> ianb1957
     
  • Ian Brabham

    Ian Brabham - 2007-11-03

    Logged In: YES
    user_id=673887
    Originator: NO

    Sharx1976, Francesco Corriga <tbcebola {at} hotmail . com> was able to point out the original meGUI tracker item
    http://sourceforge.net/tracker/index.php?func=detail&aid=1816325&group_id=156112&atid=798476

    I will leave this open a while, hopefully somebody will respond
    ------------------------------------------------
    Gleened info :-

    threadcount memmory
    start 8 21
    1st file n/a 80
    2nd 85 181
    3rd 122 255
    4th 158 320
    5th 194 404

    Input: Channels=2, BitsPerSample=16, SampleRate=44100Hz
    Command line used: D:\Programme\Audio\AAC\neroAacEnc.exe -ignorelength
    -hev2 -br 32000 -if - -of "D:\Temp\Video\reencode\audio1.mp4"
    *************************************************************
    * *
    * Nero Digital Audio Reference MPEG-4 & 3GPP Audio Encoder *
    * Copyright 2007 Nero AG *
    * All Rights Reserved Worldwide *
    * *
    * Package build date: Aug 6 2007 *
    * Package version: 1.1.34.2 *
    * *
    * See -help for a complete list of available parameters. *
    * *
    *************************************************************

     
  • Ian Brabham

    Ian Brabham - 2008-06-12

    Logged In: YES
    user_id=673887
    Originator: NO

    Test with 2.5.8-RC2

     
  • Ian Brabham

    Ian Brabham - 2008-06-12
    • labels: --> Filters
    • milestone: --> v2.5x
    • status: open --> pending
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks