Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
11th January 2020, 21:29 | #462 | Link |
Registered User
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
|
My guess is to fix the lens distorsion first and project it to sphere so that movement of camera won't change the image?
and then run both deshaker passes and project it to back whatever I want...? |
12th January 2020, 10:08 | #464 | Link |
Suspended for forum rule violations
Join Date: Mar 2018
Location: Germany
Posts: 216
|
Once more I would like to point to the thread
https://forum.doom9.org/showthread.p...12#post1895012 and the statements wonkey_monkey did on that. Also in the thread about shekh's Lens Transform at the end there are some thoughts about it. As I said before I doubt this thread is the right place for discussion the matter, as as far as I know orig Deshaker won't be modified, and source is (and probably will never?) be available. However I personally think your 2 ideas could lead to a great improvement - but only for movies with large FOV. Good luck! |
15th January 2020, 23:10 | #465 | Link |
Registered User
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
|
Please help about settings 1st pass. I suspect this behaviour:
When there is some problem finding vector for certain spot, then there is whole big square of missing vectors around. Which parameter to tweak to help with this? |
17th January 2020, 07:22 | #467 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Can only suggest to do in two chunks.
1st 2000, in two passes, save result. remainder, in two passes, save result. Join together. (There could be a way to do the lot in single script using TWriteAvi:- https://forum.doom9.org/showthread.p...ight=TWriteAVI but would need to do a pair of double passes, with first half filename for FirstHalf_pass1, FirstHalf_pass2, and second half filename for SecondHalf_pass1, SecondHalf_pass2. Also need two sets of args for Deshaker. TWriteAVI, cannot not use avs MT and x86 only - TwriteAVI contains old Vdub code incl a little bit of assembler, I dont do x86/x64 assembler) EDIT: Basic two pass script (only for normal single use) Code:
WhateverSource(...) A_Two_Pass_Function(Pass=1) # Create some kind of deshaker log or whatever. ForceProcessAVI() # Force Pass 1, creating log (A function From TWriteAVI plug) A_Two_Pass_Function(Pass=2) # Use created log return Last # 2nd pass when you play/save clip. EDIT: Double chunks something like Code:
WhateverSource(...) Clip1 = Trim(0,-2000) # 2000 frames File1="D:\File1.txt" Clip2 = Trim(2000,0) # remainder File2="D:\File2.txt" Clip1.A_Two_Pass_Function(Pass=1,LogFile=File1) ForceProcessAVI() # Clip1, Force Pass 1 Clip2.A_Two_Pass_Function(Pass=1,LogFile=File2) ForceProcessAVI() # Clip2, Force Pass 1 Result1 = Clip1.A_Two_Pass_Function(Pass=2,LogFile=File1) # Clip 1 Pass 2 Result2 = Clip2.A_Two_Pass_Function(Pass=2,LogFile=File2) # Clip 2 Pass 2 return Result1++Result2
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 17th January 2020 at 07:46. |
17th January 2020, 08:50 | #468 | Link | |
Registered User
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
|
Quote:
However... I thought the last frame of the first part could be little off because the clip is fixed to first frame and there would be a little movement. In your example would not it be the case? If so, I was thinking: reverse the first part, then do the job with one frame in the middle overlapping, reverse back, get rid of the overlapping frame and join... |
|
17th January 2020, 09:57 | #469 | Link | |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Quote:
For duplicate, maybe DuplicateFrame:- http://avisynth.nl/index.php/DuplicateFrame for delete DeleteFrame:- http://avisynth.nl/index.php/DeleteFrame If you are going to reverse, then you better be using a totally frame accurate source, nowt better than AVI Lossless, convert to AVI Lossless with FFMPEG if not. General purpose demo.bat Code:
REM We DO NOT LIKE SPACES IN FILE NAMES (REM == REMark ie comment) setlocal REM Where to Find ffmpeg set FFMPEG="C:\BIN\ffmpeg.exe" REM Where to get input file, No terminating Backslash, "." = current directory (ie same as dir .bat file) set INDIR="." REM Where to place output file, No terminating Backslash. "." would be same as .bat file, ".\\OUT" = OUT folder in same directory as bat file. set OUTDIR="D:" REM Below, can add extensionas as eg *.WMV (SPACE separated) FOR %%A IN (*.mp4 *.vob *.mpg *.TS *.MOV) DO ( REM ****** Un-REM ONLY one of below lines *******. REM %FFMPEG% -i "%INDIR%\%%A" -vcodec copy -acodec copy "%OUTDIR%\%%~nxA.MKV" REM %FFMPEG% -i "%INDIR%\%%A" -vcodec utvideo -acodec copy "%OUTDIR%\%%~nxA.MKV" %FFMPEG% -i "%INDIR%\%%A" -vcodec utvideo -acodec pcm_s16le "%OUTDIR%\%%~nxA.AVI" REM *********************************************. ) REM ... Above UN-REM'ed lines : REM (1) Remux, copy both video and audio (output MKV). REM (2) UtVideo lossless video, copy audio (output MKV). REM (3) UtVideo lossless video, PCM audio (output AVI). Pause
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? |
|
17th January 2020, 12:15 | #470 | Link |
Registered User
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
|
Because afaik with the infinite smoothness the deshaker fixes the first frame and then the view can go little off.
So, at the and of the first part the view would not be not aligned with the beginning of the second part. Therefore reverse... instead moving away the camera should converge to the desired position...starting point of the second part. I have one more idea right now: copy the first frame of the second part before the first part. That should position the clip correctly in the beginning ... and hold ok ... except of computational error. But now...just more thinking...I cannot use zoom for borders restoring because in the first and second part I will end up with different zoom...and they micht not fit together. |
17th January 2020, 15:57 | #471 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
I guess you must wait for advise from somebody that knows what is what, I cant remember the last time I used Deshaker.
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? |
3rd February 2020, 09:32 | #472 | Link |
Registered User
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
|
I use Deshaker to process avs script. I that script, I added some black borders (with AddBorders and Quad filters). I set up Deshaker to ignore the black.
When I process the clip then, sometimes Deshaker fails to analyse the vectors properly. When I go back to the bad frame and manually step though them, the results are ok. Anyone experienced this kind of behaviour? |
4th February 2020, 13:49 | #474 | Link | |
Registered User
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
|
Quote:
But still, clip playback has different results that stepping with arrouw. Really frustrating. |
|
6th February 2020, 14:24 | #476 | Link |
Registered User
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
|
I am processing again once processed video. I have added borders not to loose the whole frame.
I use borders $FF00FF not to be processed. I have found another behaviour. Deshaker does not process fixed area at the border image, in certain cases. See the picture. (1)The processing area seems to be always rectangular (2)The rectangle is sometimes smaller than necessary Changing Initial search range has influence on that, but is not solution. I don't know whether it is possible to fix (1) but maybe (2)? Any settings? |
19th February 2020, 08:48 | #477 | Link |
Registered User
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
|
Hi.
Is that possible, that the rolling shutter depends on the shutter speed? If the camera supports setting it fixed. If so, I would say RS for 30FPS with 1/33sec equals 60FPS with 1/66sec. RS for 30FPS with 1/66sec is half of 60FPS with 1/66sec. RS for 30FPS with 1/33sec is double of 30FPS with 1/66sec. When I take an example record from the Deshaker RS documentation I think all was taken at the same fixed shutter speed. Canon EOS 80D - 1080p60: 90% - 1080p30: 45% - 1080p24: 36% - 1080p30 with 3x digital zoom: 90% |
23rd January 2022, 02:43 | #478 | Link |
Soul Architect
Join Date: Apr 2014
Posts: 2,559
|
Using this plugin under Vapoursynth could be possible by porting the VirtualDub compatibility plugin....
But will there ever be a possibility of using it on Linux? Since the source code isn't available and the author hasn't been heard from in 8 years, I suppose not a chance? |
23rd January 2022, 02:46 | #479 | Link | ||
Registered User
Join Date: Sep 2007
Posts: 5,374
|
Quote:
Quote:
|
||
23rd January 2022, 11:04 | #480 | Link | |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Quote:
last sign-in Dec 2020. EDIT: I think that last time I posted in a Gunnar Thalin thread, he popped up a day or two later.
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 23rd January 2022 at 11:07. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|