VideoHelp Forum




+ Reply to Thread
Results 1 to 5 of 5
  1. Member
    Join Date
    Nov 2020
    Location
    Italy
    Search Comp PM
    Hi everyone

    For some weeks I've been experiencing some annoying issues while exporting almost any long-file-AviSynth script via FFmpeg (via cli, VirtualDub2 or Avidemux):
    while exporting to x264 or x265, the encoding stalls and never resumes, like this:
    Click image for larger version

Name:	vdub_stuck.jpg
Views:	119
Size:	19.2 KB
ID:	66121
    I attempted some tweaking, like moving the source file to an NVMe drive, but with no results. Same after fresh-reinstalling the operating system, but this time Windows 11.

    Here are some details:
    The script is the one shown below. It takes a 37-minute sample YUY2 clip captured from a VHS, which gets some denoising, sharpening, QTGMC deinterlacing and 1080p upscaling.
    Click image for larger version

Name:	AviSynth_script0722.png
Views:	127
Size:	55.5 KB
ID:	66123

    I've then dragged the script into VirtualDub2 to encode it to x265 with the following settings:
    Click image for larger version

Name:	vdub_265_settings.png
Views:	109
Size:	86.5 KB
ID:	66124

    The encode goes on for some minutes, but then it stops and remains still on the progress bar... It completes the job for small videos, but it can't hold full vhs captures. I even tried changing the source codec from YUY2 to Lagarith... I couldn't event find any info about this online, and the same thing occurs while exporting in x264 with my other 720p script.

    Hope you can help me, otherwise I won't be able to go on with my digitising work.
    Quote Quote  
  2. If you have avstp.dll in the plugins folder, try moving it or delete it . Some people report this as the multithreading hanging culprit for avs+

    Not related to the "hanging", but you should use ConvertToYV12(interlaced=true), otherwise the YUY to YV12 downsample can have chroma artifacts
    Quote Quote  
  3. Member
    Join Date
    Nov 2020
    Location
    Italy
    Search Comp PM
    Originally Posted by poisondeathray View Post
    If you have avstp.dll in the plugins folder, try moving it or delete it . Some people report this as the multithreading hanging culprit for avs+
    Thank you! Now it doesn't stall anymore, but now it gets to 20-30% cpu usage
    Click image for larger version

Name:	cpu30%.jpg
Views:	102
Size:	24.0 KB
ID:	66129

    By the way it completed the 720p script, but now it does run single-threaded as I understand, and that's a pity considering I have a 4C/8T i7.
    I'm reading how to enable multithreading on the AviSynth wiki. It's pretty chaotic, so if I'll find a solution I'll write back!

    Originally Posted by poisondeathray View Post
    Not related to the "hanging", but you should use ConvertToYV12(interlaced=true), otherwise the YUY to YV12 downsample can have chroma artifacts
    Thanks, now I've corrected it!
    Quote Quote  
  4. pinterf was looking into the manalyze bug with mt and avstp.dll, but I don't think there was a final solution yet.

    The options for systems that are affected (it seems not everyone is affected either...not sure why...) are to either remove avstp.dll, or set all manalyze instances to mt=false - this means editing each individual .avsi script dependency)

    https://github.com/pinterf/mvtools/issues/46
    http://forum.doom9.net/showthread.php?p=1914018#post1914018

    It's important to look at the FPS along with the CPU% . You can have high CPU% usage , but "thrashing" and wasted cycles resulting in low FPS . If you had to look at one measure, the FPS is more important than CPU%


    Other options are to use simultaneous single threaded encodes if you have enough resources, or to use vapoursynth which has automatic and more stable threading than avisynth
    Last edited by poisondeathray; 27th Jul 2022 at 08:43.
    Quote Quote  
  5. Member
    Join Date
    Nov 2020
    Location
    Italy
    Search Comp PM
    Originally Posted by poisondeathray View Post
    pinterf was looking into the manalyze bug with mt and avstp.dll, but I don't think there was a final solution yet.

    The options for systems that are affected (it seems not everyone is affected either...not sure why...) are to either remove avstp.dll, or set all manalyze instances to mt=false - this means editing each individual .avsi script dependency)

    https://github.com/pinterf/mvtools/issues/46
    http://forum.doom9.net/showthread.php?p=1914018#post1914018

    It's important to look at the FPS along with the CPU% . You can have high CPU% usage , but "thrashing" and wasted cycles resulting in low FPS . If you had to look at one measure, the FPS is more important than CPU%


    Other options are to use simultaneous single threaded encodes if you have enough resources, or to use vapoursynth which has automatic and more stable threading than avisynth
    That's a bit too advanced for me!
    I just meant to do some restoration via AviSynth, I don't have the time to dig so further, but thanks anyway for the info!
    Quote Quote  



Similar Threads

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