maybe i've to use this?
Code:video = Mpeg2Source("10-08-12 - IRIBTV4.d2v") audio = FFAudioSource("10-08-12 - IRIBTV4.mpg", track=-1, cache=True, cachefile="", adjustdelay=-1, utf8=False, varprefix="") m = AudioDub(video, audio) TFM(m) Stab(m, range=1,dxmax=4,dymax=4)
+ Reply to Thread
Results 31 to 60 of 76
-
-
An AviSynth script always has an implicit variable called "last". So what happens here is you load your video, apply some processing to it, but then you load the video (and audio) again, and lose the earlier result.
What you did in your later message again fixed the situation, as now TFM() and Stab() are applied to the result of AudioDub(). You can also apply filters directly to a clip like this (green text):
Code:video = Mpeg2Source("10-08-12 - IRIBTV4.d2v").TFM().Stab(range=1,dxmax=4,dymax=4) audio = FFAudioSource("10-08-12 - IRIBTV4.mpg", track=-1, cache=True, cachefile="", adjustdelay=-1, utf8=False, varprefix="") AudioDub(video, audio)
Code:last = Mpeg2Source("10-08-12 - IRIBTV4.d2v") audio = FFAudioSource("10-08-12 - IRIBTV4.mpg", track=-1, cache=True, cachefile="", adjustdelay=-1, utf8=False, varprefix="") last = AudioDub(last, audio) return last
-
got it. thank u very much. u did a favor in helping me and if u didn't i couldn't resolve the problem.
today, i setup conversion with your guides and come to work. night, i will check the result and will inform what happened. -
In the last three lines you join audio and video to create a stream called m. You then apply TFM() to m. You then throw away the result of TFM() and create a new video from m using Stab(). Remember, when you don't specify a stream by name the name "last" is used. So those last three lines are equivalent to:
Code:m = AudioDub(video, audio) last = TFM(m) last = Stab(m, range=1,dxmax=4,dymax=4)
Code:m = AudioDub(video, audio) m = TFM(m) m = Stab(m, range=1,dxmax=4,dymax=4) return(m)
Code:AudioDub(video, audio) TFM() Stab(range=1,dxmax=4,dymax=4) # implied return(last) at the end of the script
Code:video = Mpeg2Source("10-08-12 - IRIBTV4.d2v") audio = FFAudioSource("10-08-12 - IRIBTV4.mpg", track=-1, cache=True, cachefile="", adjustdelay=-1, utf8=False, varprefix="") AudioDub(video, audio) TFM() Stab(range=1,dxmax=4,dymax=4)
-
yes, i used the same script and vibration eliminated. thx
now, when i look at the result you got and the result i got, i see a great difference in quality between them. to visualize, i've included three snapshots, one of yours, one of mine and one of the original mpg. how could you reach this quality? the original video as well as my conversion has many noises which are eliminated in your conversion. i referred to the script you sent and found some other filters like Sharpen. but the parameters seem to be set by a professional. so i come here again to ask how can i make such a soft and smooth output? -
The full script I used is in post #11
https://forum.videohelp.com/threads/374825-940729-how-to-eliminate-vibration?p=2415747&...=1#post2415747 -
sure, but i probably don't need all of it. since i've to get involve with many plugins if i want to use the whole script, i prefer to use only the filter which caused the noises away.
-
Unfortunately, many of the steps removed some noise and smoothed out edges. The major noise reduction was from TemporalDegrain().
Code:Mpeg2Source("D:\Downloads\sample.d2v", CPU2="ooooxx", Info=3)
Code:QTGMC(preset="fast")
Code:dehalo_alpha(rx=3, ry=1)
Code:TemporalDegrain(SAD1=200, SAD2=150, Sigma=8)
Code:Spline36Resize(width/2, height)
Code:TurnLeft() nnedi3(dh=true) TurnRight()
Code:aWarpSharp(depth=5)
Code:Sharpen(0.2, 0.2)
-
thanks jagabo
so u mean that it's better that i keep the whole script as is and don't alter or reduce any part?
u mean that all the parameters are at their optimized values and i may use this script for all of my other conversions too? (unless Crop which is clip specific)
i certainly don't know what values are the best, like SAD1, SAD2 & Sigma, since don't know what's the effect of these parameters, and if i change for example 0.2 for Sharpen will get it better or not.
so please let me know whether these values and functions and the whole script should be fixed and this in the whole should be selected or they're dependent to the clip and should change?Last edited by hamidi2; 27th Oct 2015 at 00:52.
-
You first have to deinterlace the video. This video is film based so TFM() would normally work well. But the shaking makes it less effective, giving a blurry picture. QTGMC() will work much better -- it will give a sharper result. TemporalDegrain() is the major noise reduction filter I used. The arguments control how much noise reduction it performs. Bigger values give more noise reduction, smaller values less. I usually change them proportionally. So if you double SAD1 also double SAD2 and Sigma. It is motion compensated so you can use it before or after Stab().
So start with:
Code:QTGMC(preset="fast") TemporalDegrain(SAD1=200, SAD2=150, Sigma=8) Stab()
There are many other noise reduction filters you can try. See the list at avisynth.nl:
http://avisynth.nl/index.php/External_filters#Denoisers
Examine the scripts with VirtualDub or some other editor that lets you step frame by frame through the video. Change filter parameters one at a time to see what effect they have. You can use multiple instances of VirtualDub to view two scripts side by side. Or you can use Interleave() or StackHorizontal() two compare two different filter chains. Use VirtualDub's zoom option to enlarge details. Or use a screen magnifier like Windows built in Magnifier to zoom into detail.
You should still encode short segments to see how they look in motion. Sometimes filters that look great when you examine still frames show terrible artifacts at normal playback speed. Don't filter an entire movie when you're experimenting. Use a short segment with a mix of still shots and motion shots, bright and dark scenes. You'll get much faster feedback. Use Trim() to select a section to experiment with. For example Trim(1000, 2000) will give you only frames 1000 through 2000, ignoring the rest of the video. -
good notes, thx
in brief, i need to have lots of experience to see what is really good and get familiar with what filters should be used when i watch a video. -
i tried the original script. i added required plugins until i get:
Code:RemoveGrain: invalid mode 20 (QTGMC-3.33.avsi, line 764) (QTGMC-3.33.avsi, line 790) (QTGMC-3.33.avsi, line 614)
-
thx resolved
i wonder why u didn't include TFM in the script -
If you use QTGMC() you don't need TFM(). As I pointed out earlier, TFM() didn't work well with this video because of the shaking.
-
ok
now everything is ok and i began to convert the whole video with the script. i changed the Crop script into:
Code:Crop(32,0,-10,-48)
now it seems that the output i get from AvsPmod is a bit different from what i see in Avidemux. i don't know what's the problem. maybe the avsproxy_gui or the Avidemux itself. the colors alter to worse. it seems that the red element in them reduces. i'm depicting it by presenting a snapshot of both. -
-
Yes. Try your short sample.
I saw this as a fix:
http://forum.doom9.org/showthread.php?t=137661
But the version I'm using doesn't seem to have that option.Last edited by jagabo; 28th Oct 2015 at 11:00.
-
thanks for the link. i checked Video display of my avidemux and found that it doesn't contain SDL. i use version 2.5.6, since 2.6 is not yet complete.
besides, i checked the output. you may wonder that they're different, not as much, but differ. it seems that my colors are whiter.
in the following, i present three pics. one is the result of my processes, caused by avsproxy_gui and avidemux with the original script. one is the output you sent to me with the script. and one is the original input video.
all snapshots got by vlc, not screenshot of avspmod or something. -
The last image has gone through a PC to TV levels adjustment. You can do that in AviSynth with ColorYUV(levels="PC->TV"). But that isn't necessary for this video. I don't know where in your processing that incorrect levels adjustment was made. I'm not familiar with using AvsProxy with AviSynth. You might be able to work around the problem by adding ConvertToRGB() at the end of your AviSynth script.
<edit>
I installed AviDemux 2.5.6 and use AvsProxy to feed the AVS script to AviDemux and encoded with MPEG4 AVC. I didn't get any change in levels. What codec are you using?Last edited by jagabo; 28th Oct 2015 at 20:38.
-
also please let me know the method you used to convert src mpg file into mkv while u didn't have avsproxy. what software read the avs script and fed to what software to convert?
-
I don't know if this will help... on the Output2 tab of AviDemux's x264 configuration dialog make sure that Full Range Samples is selected.
I usually use the x264 cli encoder via a batch file to encode. I just drag/drop an AVS script onto the batch file. The batch file looks like:
Code:start /b /low x264.exe --preset=slow --tune=film --crf=18 --sar=1:1 --output %1.mkv %1 @pause >nul
You can find info about most of the parameters here:
https://en.wikibooks.org/wiki/MeGUI/x264_Settings -
There are delogo filters for AviSynth too. And for VirtualDub.
I tried ConvertToRGB with AviProxy and it rejected it. -
I tried ConvertToRGB() and it didn't work here too. It suggests to use ConvertToYV12() instead. I tried it and the colors didn't change.
-
The video was already YV12 throughout the entire script.
Try using no filters in AviDemux, just compress the video. Do you get the same levels changes? Maybe the delogo filter (or some other filter) is causing the problem. Look to see if there are PC vs. TV levels settings.
I tried AviDemux's delogo filter here and got no levels changes.
Another possibility is that you just have a playback issue -- ie, the player is using different levels for that file for some reason.Last edited by jagabo; 30th Oct 2015 at 06:08.
-
i use vlc to play the video. going to check avidemux with no filter...
u mean the original snapshot has true colors?
...
i did conversion without use of avsproxy directly from mpg to mkv by avidemux. it seems that vlc when snapshots from an mkv file it changes its colors and when snapshots from an mpg file it doesn't. the following is the image i got from this mkv:Last edited by hamidi2; 30th Oct 2015 at 09:46.
Similar Threads
-
Nokia Lumia OIS Jello / wobble due to motor vibration
By Mr. Aldi in forum RestorationReplies: 5Last Post: 22nd Mar 2015, 11:01 -
Vibration causing images to go wierd
By woodlander in forum Capturing and VCRReplies: 11Last Post: 8th Jul 2012, 09:22 -
Recording voice calls how to eliminate echo
By planetx in forum AudioReplies: 12Last Post: 25th Mar 2011, 06:41 -
Decrease zoom-in vibration effect
By SearchQuality in forum RestorationReplies: 14Last Post: 14th Jan 2011, 10:57 -
eliminate contour outlines?
By spiritgumm in forum RestorationReplies: 0Last Post: 9th Dec 2010, 12:45