+ Reply to Thread
Results 1 to 30 of 38
-
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 SelurLast edited by Selur; 9th Nov 2022 at 09:45.
users currently on my ignore list: deadrats, Stears555, marcorocchini -
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. -
You might want to read up on Avisynth and Vapoursynth.
users currently on my ignore list: deadrats, Stears555, marcorocchini -
I have Avisynth.
No UI with Lagarith save.
I also have VirtualDub, but limited with available filters.
swings and roundabouts. -
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.
-
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 -
-
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).
-
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)
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")
users currently on my ignore list: deadrats, Stears555, marcorocchini -
I have downloaded QTGMC.avsi
Had some problem finding links for QTGMC required Plugins!
I am finding the links now, my badLast edited by Tom4; 10th Nov 2022 at 00:26.
-
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? -
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(...)
-
-
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.
-
Twirl down (open) the Assets menu by clicking on the black triangle
I posted a direct download link above as well
[Attachment 67567 - Click to enlarge] -
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 questionsLast edited by Tom4; 10th Nov 2022 at 18:21.
-
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
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. -
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.
ThanksLast edited by Tom4; 10th Nov 2022 at 18:32.
-
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 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.
-
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")
.
.
. -
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" -
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"
What format is your source file ?
Use mediainfo (view=>text) copy and paste the text back here -
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.
Similar Threads
-
FFmpeg: Lossless video conversion from AVI to MP4 possible for ALL codecs ?
By pxstein in forum Video ConversionReplies: 1Last Post: 8th Feb 2022, 01:20 -
Lossless Copy of Excerpt Using FFmpeg
By raywood in forum ProgrammingReplies: 8Last Post: 21st Jun 2021, 07:44 -
if mpv-32bit doesnt work with XP then what is this 32bit version for?
By sommers in forum Newbie / General discussionsReplies: 4Last Post: 14th May 2020, 10:52 -
lossless framerate change with ffmpeg?
By BabaG in forum Video ConversionReplies: 7Last Post: 8th Feb 2020, 19:53 -
FFMPEG - hevc_nvenc & h264_nvenc lossless presets not truly lossless?
By AnomalyDetected in forum Video ConversionReplies: 5Last Post: 27th Oct 2019, 02:24