VideoHelp Forum
+ Reply to Thread
Results 1 to 5 of 5
Thread
  1. Hello,

    I use virtualdub 64bit + x265 encoding + avisynth.
    When opening the file with virtualdub i have no issue.
    When opening the avs, if i play the video in virtual dub or seek somewhere, when i start the encoding process the last position few frame are
    added to the start of the video after encoding.
    You see it by virtualdub preview.
    Seeking to something black or just open encode without seeking help, but there is audio is always unsync.

    Can help?

    Here is the script:
    Video=Avisource("F:\test.avi")
    TextSub(Video, "F:\test.srt")

    Video is x265+ac3, just two stream.

    Ps: It's avisynth+
    Thanks in advance,
    Have a good day,
    Rgds,
    Last edited by anonyme-x22; 23rd Oct 2024 at 04:24.
    Quote Quote  
  2. Try something other than Avisource.

    http://avisynth.nl/index.php/LSMASHSource
    To open just the video
    LWLibavVideoSource("F:\test.avi")
    or to open video and audio
    V = LWLibavVideoSource("F:\test.avi")
    A = LWLibavAudioSource("F:\test.avi")
    AudioDub(V, A)

    http://avisynth.nl/index.php/FFmpegSource
    latest version
    https://github.com/FFMS/ffms2/
    To open just the video
    FFVideoSource("F:\test.avi")
    or to open video and audio
    FFmpegSource2("F:\test.avi", atrack=-1)

    The first time you open a file with one of the above source filters it'll be indexed so it might seem a bit slow. After that it'll be quite fast as long as you don't delete the index file. If either have a problem with your AVI, try remuxing it as an MKV with MKVToolNix first, then open the MKV instead.

    This one's apparently very reliable, but also very slow to index files.
    https://github.com/vapoursynth/bestsource
    Quote Quote  
  3. thanks i will try, ffmpegsource2 to see if better.
    i prefer avi to mkv, much more compatible and don't require system muxer/demuxer add-on.
    I think the issue is related to virtual audio/video buffer, which isn't reset when using avisynth script...
    I have set them to max (256Mo), perhaps will also try default settings...
    Also it is possible that the script use avisynth+ 32bit into vdub 64 causing this issue.
    by the way if some know a correct (like vobsub with gui for font format) vdub64 subtitle plugin that would definitively be better...
    Last edited by anonyme-x22; 23rd Oct 2024 at 05:09.
    Quote Quote  
  4. Your source video has some leading B-frames that cannot be decoded (the file was presumably trimmed from a longer open GOP source). Some source filters return the first I-frame in place of the bad B-frames. Some just start with the I frame. Some return whatever junk is in the frame buffer (so if you seek forward, then back to the start, you'll get that later frame).

    Try LSMASH in addition to ffmpeg source filters.

    Also, one shouldn't use AVI for inter-frame codecs like x265. Especially with open GOPs.
    Quote Quote  
  5. Well bad b-frames, when using just virtual that's works, so it's avisynth + which do bad frame.
    Anyway all back to source filter apparently.
    Last test i opened the script into virtual dub without doing any play/seek, and that's ok, buffer clear. (Another solution; anyway that means testing subtitle, closing and reopening virtual dub)

    Also, one shouldn't use AVI for inter-frame codecs like x265. Especially with open GOPs.
    Absolute bullshit, avi does VVC/Av1, a container don't impact the stream, avi file are smaller and don't require any demuxer. (few hundred Ko)
    There is absolutely no reason to use a mkv just because people thinks it's better and new players tend to not test avi with those stream just to get chapter whose no one is using!

    MP4, MKV, etc , trouble in perspective... (naver had to use mkvtoonix , avidemux, etc before those new container) again just to add chapter, and so because player never finished/normalized any avi chapter implementation)

    Why by the hell everyone want me to use mkv!!!
    digital video was much better without all those new container just for, in fact what for, just for changing multiplying containers uselessly because people where bored of .avi and .mov, and wanted to have there own container!

    Is it the same stupid idea like with coding language, os, etc ?????
    ASM, C, what else, they do all...
    windows 1-18 why there are all the same, linux , bsd, lubuntu, rch linux, toto linux, what for just making new bugs and issue
    changing everything every times lead no where!!!
    Last edited by anonyme-x22; 24th Oct 2024 at 15:33.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!