VideoHelp Forum

Try DVDFab and download streaming video, copy, convert or make Blu-rays,DVDs! Download free trial !
+ Reply to Thread
Results 1 to 10 of 10
Thread
  1. ----------------------------------------------------------------------------
    Current versions:
    AudioSpeed 2019-11-05.zip (link in help file for TimeStretch.dll for Avisynth 2.6)
    AudioMeter 2019-11-05.zip
    ----------------------------------------------------------------------------
    ----------------------------------------------------------------------------
    Previous versions:
    AudioSpeed 2019-08-16.zip (includes TimeStretch.dll for Avisynth 2.6)
    AudioMeter 2019-08-15.zip
    ----------------------------------------------------------------------------

    AudioSpeed() is intended as a way to more easily change the audio duration by non standard amounts to match the video, or to apply standard PAL speedup or slowdown etc. It has no effect on the video. To change the video duration in combination with AudioSpeed(), use AssumeFPS() or ConvertFPS() etc. If the source has no video, a blank clip is created to display the info when Info=true (the default).

    The 2019-08-16 version has a picture dimming option to make the text easier to read. Some dimming is enabled by default.
    When a delay is specified, if DelayFirst=true (the default) the delay is applied before the audio is resampled. DelayFirst=false does the resampling before the delay is applied.

    Usage is fairly straightforward, but there's a help file included.

    AudioSpeed(25.0, 24.0/1.001, Delay=-114)




    ----------------------------------------------------------------------------

    AudioMeter() displays the audio levels over the top of the video. It's exactly the same as using Histogram("audiolevels") in a script that contains video, but if the source is "audio only" it'll create a blank clip to display the audio levels.

    AudioMeterL(), AudioMeterR(), AudioMeterT() & AudioMeterB() display the audio levels to the left, right, above or below the video.
    The output resolution never changes, so the video width or height is halved, however the script can crop/resize and/or add borders to the video with the CropResize script as required (using CropResize is the default). If CropResize isn't loaded, the script reverts to "squishing" the picture with Spline36Resize and Borders=true has no effect, which isn't necessarily a bad thing, given the object of the exercise is mainly to view the audio levels.

    AudioMeter()




    AudioMeterL(Borders=true) (with the CropResize script loaded)




    AudioMeterR() (without the CropResize script loaded, or with CR=false)

    Last edited by hello_hello; 4th Nov 2019 at 19:01.
    Quote Quote  
  2. I've updated the link in the opening post with a new version (2017-09-14). The only change is if the source contains no video, instead of creating a blank 10 second clip when Info=true is specified, the blank clip created will have the same duration as the audio (give or take a few ms).
    Quote Quote  
  3. While I'm here, this is another little script that might come in handy for someone. All it does is display the audio levels over the top of the video. It's exactly the same as using Histogram("audiolevels") in a script that contains video, but if the source is "audio only" it'll create a blank clip to display the output meters.
    There's no options.

    AudioMeter() overlays the meters on the video (or creates a blank clip)
    AudioMeterL() displays the output meters to the left of the video
    AudioMeterT() displays the output meters above the video

    The latter two simply reduce the width or height of the video by half to display the meters at the left or top without changing the over-all resolution.

    Link & image removed. See the opening post instead.
    Last edited by hello_hello; 14th Aug 2019 at 11:50.
    Quote Quote  
  4. I've attached anewer version of the AudioSpeed script to the opening post, and also here: Link Removed

    It fixes a problem where Info=true would sometimes display the duration of the resampled audio as being an hour longer than the real duration (the resampling function was working as it should though).

    I also changed the duration of the blank clip created when the source is audio-only and Info=true to match the duration of the resampled audio rather then the original audio.
    Last edited by hello_hello; 14th Aug 2019 at 11:49.
    Quote Quote  
  5. I've updated the AudioMeter script in post #3 to this version: Link Removed
    When the source didn't contain video, it wasn't always creating a blank clip as expected.
    Last edited by hello_hello; 14th Aug 2019 at 11:48.
    Quote Quote  
  6. There's two new versions of the AudioSpeed script in the opening post and also attached here.

    Link Removed
    The same as the previous version (2017-10-02) but I fixed a stupid that caused the script to produce an error when Info=false and the source contains no video. Other than that it was working fine so the link remains in case the new version introduces gremlins.

    Link Removed
    Changed the way the input/output bitdepth is handled. The Output option can now be set to -1 (which is the default).
    See the description of the Output option in the opening post or in the included text file for details.
    Last edited by hello_hello; 14th Aug 2019 at 11:48.
    Quote Quote  
  7. For anyone who might be interested, I've given the AudioSpeed and AudioMeter scripts a bit of a refresh. There's download links and some new screenshots in the opening post. The new versions are dated 2019-08-15.
    Last edited by hello_hello; 15th Aug 2019 at 15:37.
    Quote Quote  
  8. I've updated the AudioSpeed script a little again. The new version is dated 2019-08-16. I'll leave the link for yesterday's version in the opening post for a while just in case I did something silly, but the new version should be fine.

    There's now a DelayFirst argument. When DelayFirst=true (the default) any audio delay specified is applied before the audio is resampled (before the speed/duration is changed), otherwise the delay is applied after the resampling. The order in which "Post Delay Duration" and "Resampled Duration" are displayed when Info=true changes accordingly.

    The picture dimming with Avisynth's Levels() is bypassed completely when PicDim=0 or when a blank clip is created when Info=true, possibly saving a few CPU cycles.
    Quote Quote  
  9. There's new versions of the AudioSpeed and AudioMeter scripts dated 2019-11-05. Links are in the opening post.

    For AudioSpeed, the Avisynth TimeStretch plugin version 2.5.8.0 is now only required for Avisynth 2.58 and Avisynth 2.6. The script will use the version of TimeStretch.dll that comes with Avisynth+ when Avisynth+ is being used.
    The PicDim argument should now scale properly for Avisynth+ when the video bitdepth is greater than 8 (PicDim darkens the picture a little to make the text easier to read when Info=true).

    For AudioMeter there's no changes to functionality. I just moved the usage instructions to a separate help file.
    Quote Quote  
  10. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    Thank you Thank You hello_hello. This is such a wonderful addition to avisynth. I added a couple lines to this already perfect script and it makes it so easy to check sound sync now, something that has eluded many of us. Below are 2 images of increased audio during speaking part (Mouth open) and decreased audio during non-speaking part (Mouth closed) . Your script even works frame by frame. Kudos! Again THANK YOU!

    Image
    [Attachment 50783 - Click to enlarge]


    Image
    [Attachment 50784 - Click to enlarge]
    Quote Quote  



Similar Threads