VideoHelp Forum




+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 30 of 38
  1. Is there a UI that accepts ffmpeg scripts with 32bit lagarith output save.
    Quote Quote  
  2. Last I checked, Lagarith encoding was only possible through the vfw interface and FFmpeg only supported decoding of Lagarith content.
    Unless this has changed, which I doubt, any GUI would need to create a (ideally lossless compressed) temporal file using ffmpeg and then reencode to Lagarith using the vfw-interface.
    Sorry, to say this, but if you are looking for GUI you are probably out of luck. (especially since nowadays more and more tools drop 32bit support)

    Cu Selur
    Last edited by Selur; 9th Nov 2022 at 09:45.
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  3. FFmpeg can't encode lagarith, only decode it.
    (Selur was faster...)
    Quote Quote  
  4. Originally Posted by Selur View Post
    Last I checked, Lagarith encoding was only possible through the vfw interface and FFmpeg only supported decoding of Lagarith content.
    Unless this has changed, which I doubt, any GUI would need to create a (ideally lossless compressed) temporal file using ffmpeg and then reencode to Lagarith using the vfw-interface.
    Sorry, to say this, but if you are looking for GUI you are probably out of luck. (especially since nowadays more and more tools drop 32bit support)

    Cu Selur
    I have been testing deinterlace listed under ffmpeg filters scripts.
    Thought it would be good if Lagarith true lossless avi could be saved.

    I guess there might be other options using software filters?

    There are many uses for such lossless resave.
    Right now I am looking for the best Deinterlace option with lossless save.
    I want to keep details, and not processing areas without interlace was something to look at.

    I found that bwdif worked good on one clip, yet made another worse, must need a few options, open to ideas.
    Quote Quote  
  5. You might want to read up on Avisynth and Vapoursynth.
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  6. Originally Posted by Selur View Post
    You might want to read up on Avisynth and Vapoursynth.
    I have Avisynth.
    No UI with Lagarith save.

    I also have VirtualDub, but limited with available filters.
    swings and roundabouts.
    Quote Quote  
  7. This guy put together a portable package that lets you use AviSynth's QTGMC and encode with ffmpeg (without installing AviSynth or ffmpeg).

    https://forum.videohelp.com/threads/405720-FFmpeg-QTGMC-Easy%21

    Some lossless encoders in ffmpeg:

    utvideo, ffvhuff, libx264 lossless, libx265 lossless

    Use "ffmpeg -codecs" to get a list of supported codecs.
    Last edited by jagabo; 9th Nov 2022 at 11:35.
    Quote Quote  
  8. You could write an Avisynth script (use deinterlacers like QTGMC), use VirtualDub to open it and save it with Lagarith.
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  9. QTGMC is the over cleaning I wish to avoid.

    Originally Posted by Selur View Post
    You could write an Avisynth script (use deinterlacers like QTGMC), use VirtualDub to open it and save it with Lagarith.
    That sounds like it solves the problem.
    Just need to get up to date with making the Scripts.

    So you paste the scripts into "VirtualDub Script Editor" ?

    Thanks
    Quote Quote  
  10. Originally Posted by Tom4 View Post
    QTGMC is the over cleaning I wish to avoid.
    There are a zillion settings that you can use to reduce that. And you can always use a mask to control what areas are QTGMC'd and what areas are not. And, of course, you usually don't want to deinterlace telecined film, but rather inverse telecine (field match and decimate).
    Quote Quote  
  11. I agree, regarding QTGMC reading https://forum.videohelp.com/threads/404164-Why-is-QTGMC-so-destructive-and-why-do-so-m...l-recommend-it might help.
    Something like:
    Code:
    QTGMC(preset="slow", matchpreset="slow", matchpreset2="slow", sourcematch=3, tr1=2, tr2=1, NoiseTR=2, sharpness=0.1)
    or
    Code:
    QTGMC(TR0=2, TR1=2, TR2=1, Rep0=1, Rep1=0, Rep2=4, DCT=5, ThSCD1=300, ThSCD2=110, SourceMatch=3, Lossless=2, Sharpness=0.1, Sbb=0, MatchPreset="slow", NoiseProcess=2, GrainRestore=0.0, NoiseRestore=0.4, NoisePreset="slow", StabilizeNoise=false, NoiseTR=0, NoiseDeint="bob")
    will probably get rid of the 'over cleaning' you wan to avoid.
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  12. I have downloaded QTGMC.avsi

    Had some problem finding links for QTGMC required Plugins!

    I am finding the links now, my bad
    Last edited by Tom4; 10th Nov 2022 at 00:26.
    Quote Quote  
  13. Installed AVIScript, placed QTGMC and required plugins in folder.
    Copied files to SysWOW64 as described.

    I keep source video in C:\1\vid.avi
    Always Save the video in C:\2\vid.avi

    Copied your script to text file and saved as vid.avs

    QTGMC(TR0=2, TR1=2, TR2=1, Rep0=1, Rep1=0, Rep2=4, DCT=5, ThSCD1=300, ThSCD2=110, SourceMatch=3, Lossless=2, Sharpness=0.1, Sbb=0, MatchPreset="slow", NoiseProcess=2, GrainRestore=0.0, NoiseRestore=0.4, NoisePreset="slow", StabilizeNoise=false, NoiseTR=0, NoiseDeint="bob")

    What do I need for video open and save paths in .avs script.
    Do I also need path to AVIScript .exe path.

    Guess you just make the .avs script and open with VDub.
    Not getting anything to work so far?
    Quote Quote  
  14. Originally Posted by Tom4 View Post
    What do I need for video open and save paths in .avs script.
    You need to use a source filter. Exactly which you want depends on the particular source. But LWlibavVideoSource() or LSMASHVideoSource() (both included in the LSMASH Source package) will probably work.

    http://avisynth.nl/index.php/LSMASHSource

    Your script will end up looking something like:

    Code:
    LWlibavVideoSource("filename.ext")
    AssumeTFF() # or AssumeBFF()
    QTGMC(...)
    Originally Posted by Tom4 View Post
    Guess you just make the .avs script and open with VDub.
    VirtualDub2 is recommend because it includes all the codecs and muxers you need.
    Quote Quote  
  15. Originally Posted by jagabo View Post
    LWlibavVideoSource() or LSMASHVideoSource() (both included in the LSMASH Source package) will probably work.

    http://avisynth.nl/index.php/LSMASHSource
    Do you have a working DL link or copy of files?
    Quote Quote  
  16. Link worked, many thanks but how did you find this?

    The other file links on github were revealed by Clicking on "Assets"!
    I know this might seem odd, but I can find no links on above releases page.

    Thanks for your reply, turns out it was the browser not showing links.
    probably a security setting went rouge or something.
    --
    Last edited by Tom4; 10th Nov 2022 at 18:18.
    Quote Quote  
  17. Originally Posted by Tom4 View Post
    Link worked, many thanks but how did you find this?

    I have no idea where to find the file links from here: https://github.com/HomeOfAviSynthPlusEvolution/L-SMASH-Works/releases

    The other file links on github were revealed by Clicking on "Assets"!
    I know this might seem odd, but I can find no links on above page.

    ??




    Twirl down (open) the Assets menu by clicking on the black triangle

    I posted a direct download link above as well

    Image
    [Attachment 67567 - Click to enlarge]
    Quote Quote  
  18. Is this code complete?

    I am trying to understand how VDUB would know where vid.avi is without a file path in .avs script.


    LSMASHSource("vid.avi")
    QTGMC(TR0=2, TR1=2, TR2=1, Rep0=1, Rep1=0, Rep2=4, DCT=5, ThSCD1=300, ThSCD2=110, SourceMatch=3, Lossless=2, Sharpness=0.1, Sbb=0, MatchPreset="slow", NoiseProcess=2, GrainRestore=0.0, NoiseRestore=0.4, NoisePreset="slow", StabilizeNoise=false, NoiseTR=0, NoiseDeint="bob")

    Also, what is NoiseRestore?
    Aim is to create a deinterlaced vid ready for restoration, with the least modification.
    Save with VDUB as Lagarith avi

    Sorry for all the questions
    Last edited by Tom4; 10th Nov 2022 at 18:21.
    Quote Quote  
  19. Originally Posted by Tom4 View Post
    Is this code complete?

    I am trying to understand how VDUB would know where vid.avi is without a file path in .avs script.


    LSMASHSource("vid.avi")
    QTGMC(TR0=2, TR1=2, TR2=1, Rep0=1, Rep1=0, Rep2=4, DCT=5, ThSCD1=300, ThSCD2=110, SourceMatch=3, Lossless=2, Sharpness=0.1, Sbb=0, MatchPreset="slow", NoiseProcess=2, GrainRestore=0.0, NoiseRestore=0.4, NoisePreset="slow", StabilizeNoise=false, NoiseTR=0, NoiseDeint="bob")
    No, you need to specify path, unless the .avs file is in the same directory as "vid.avi", and "AVI" requires LWLibavVideoSource (LSmashVideoSource, not LSmashSource, is for MP4 or MOV, or ISO base media) , or you can use AVISource if you have a VFW decoder installed for the compression used for that file

    Code:
    LWLibavVideoSource("c:\somepath\vid.avi")
    Also, what is NoiseRestore?
    Aim is to create a deinterlaced vid ready for restoration, with the least modification.
    NoiseRestore restores finer more fluctuating noise
    There is full documentation for QTGMC and the settings in the included html file with the QTGMC download

    Manual operation: after selecting a mode, set a Sigma value to estimate the level of source noise. Use the ShowNoise setting to help in this choice. Then decide how much of that noise to restore after the deinterlace. There are two restore points called GrainRestore/NoiseRestore, the amount of noise restored depends on their sum. For full denoising set them both to 0. For grain retention, a good starting point is 0.7/0.3 for NoiseProcess=1, and 0.3/0.1 for NoiseProcess=2. GrainRestore restores more stable "grain-like" detail. NoiseRestore restores finer more fluctuating noise. Usually best if GrainRestore is greater than NoiseRestore unless you want a very noisy look. Too high restoral values will give grain exaggeration and even luma changes.
    Quote Quote  
  20. The file in DL was named LSmashSource
    So I need to use LSMASHVideoSource in script for mp4.
    Use LWlibavVideoSource for avi, which I guess is accessed via LSmashSource file?
    -------
    unless the .avs file is in the same directory as "vid.avi"
    That explains why people are leaving it out in examples.
    Thanks
    Last edited by Tom4; 10th Nov 2022 at 18:32.
    Quote Quote  
  21. LSMASHVideoSource works for MP4 and MOV files (maybe 3gp too). LWlibavVideoSource() works for all supported files (including MP4 and MOV). By default, LWlibavVideoSource() builds and index file so it must have write access to the folder.
    Quote Quote  
  22. Originally Posted by jagabo View Post
    LSMASHVideoSource works for MP4 and MOV files (maybe 3gp too). LWlibavVideoSource() works for all supported files (including MP4 and MOV). By default, LWlibavVideoSource() builds and index file so it must have write access to the folder.
    I copied LSMASHSource to AviSynth plugins folder, used LWlibavVideoSource in script, VDub reports: AviSynth Script error "there is no function named LWlibavVideoSource"
    Quote Quote  
  23. Originally Posted by Tom4 View Post
    Originally Posted by jagabo View Post
    LSMASHVideoSource works for MP4 and MOV files (maybe 3gp too). LWlibavVideoSource() works for all supported files (including MP4 and MOV). By default, LWlibavVideoSource() builds and index file so it must have write access to the folder.
    I copied LSMASHSource to AviSynth plugins folder, used LWlibavVideoSource in script, VDub reports: AviSynth Script error "there is no function named LWlibavVideoSource"
    I've never seen a build of LSMASHSource.dll that didn't include both LSMASHVideoSource() and LWlibavVideoSource.
    Quote Quote  
  24. I do not understand what you mean?

    I just copied the "plugins in folders" to the AviSynth plugin folder.
    Just copied the dll direct, testing to see if this was problem?
    Last edited by Tom4; 10th Nov 2022 at 20:00.
    Quote Quote  
  25. Your error message indicates the .dll was not loaded. That version of .dll works for certain with avisynth+ x64

    Most avisynth .dll's should autoload when placed in the proper plugins folder, but try loading the plugin manually in the script, save the script

    Make sure you use the correct version x64 vs. x86

    LoadPlugin("PATH\LSMASHSource.dll")
    .
    .
    .
    Quote Quote  
  26. If your source AVI uses lagarith, and you have lagarith installed you can use AVISource("vid.avi") . An additional benefit is no indexing required.
    Quote Quote  
  27. Originally Posted by poisondeathray View Post
    If your source AVI uses lagarith, and you have lagarith installed you can use AVISource("vid.avi") . An additional benefit is no indexing required.
    That is interesting.
    Do you know if saving an interlaced avi video to Lagarith, changes anything regarding the interlace?

    It fits with my process to save as Lagarth from the start.
    Providing there is no problems created, I would then start by deinterlacing the Lagarith version avi file.
    ---

    I have copied the dll files directly to avisynth plugin folders and now just receive "Error reading source frame 0"
    Quote Quote  
  28. Originally Posted by Tom4 View Post
    Do you know if saving an interlaced avi video to Lagarith, changes anything regarding the interlace?
    If source file is handled /decoded properly and in the same pixel format, the actual fields will be the same - since the compression is lossless. But saved file might have different metadata . eg. A source file might be flagged interlaced and the field order specified, but an saved file using lagarith might not



    I have copied the dll files directly to avisynth plugin folders and now just receive "Error reading source frame 0"
    Using what source filter ?

    What format is your source file ?

    Use mediainfo (view=>text) copy and paste the text back here
    Quote Quote  
  29. no mediainfo app installed, but I know of.

    Done test with .mp4 and .avi files and correct ext in script.
    vid.avs scripts in folder with video, script opened with VDub.

    LWlibavVideoSource("vid.avi")
    QTGMC(TR0=2, TR1=2, TR2=1, Rep0=1, Rep1=0, Rep2=4, DCT=5, ThSCD1=300, ThSCD2=110, SourceMatch=3, Lossless=2, Sharpness=0.1, Sbb=0, MatchPreset="slow", NoiseProcess=2, GrainRestore=0.0, NoiseRestore=0.4, NoisePreset="slow", StabilizeNoise=false, NoiseTR=0, NoiseDeint="bob")

    Also tried with full video path in script!
    ----
    I will try what you say about Lagarith source.

    BTW: My system is 64bit. I have AVISynth 2.6 in 32bit apps folder.
    So should I change to AVISynth+ version and copy to 64bit app folder?
    Last edited by Tom4; 10th Nov 2022 at 21:04.
    Quote Quote  



Similar Threads

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