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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > VirtualDub, VDubMod & AviDemux

Reply
 
Thread Tools Search this Thread Display Modes
Old 2nd January 2016, 12:42   #401  |  Link
bxyhxyh
Registered User
 
Join Date: Dec 2011
Posts: 354
How b and c of bicubicresize of this filter are set?
bxyhxyh is offline   Reply With Quote
Old 2nd January 2016, 14:06   #402  |  Link
guth
Registered User
 
Join Date: Apr 2003
Location: Uppsala, Sweden
Posts: 157
Quote:
Originally Posted by bxyhxyh View Post
How b and c of bicubicresize of this filter are set?
It uses a = -0.6, which I believe is the same as b = 0 and c = 0.6.
You can't change this value.
guth is offline   Reply With Quote
Old 6th January 2016, 13:14   #403  |  Link
sorin86
Registered User
 
Join Date: Nov 2014
Posts: 5
Deshake for moon filming

I have some shots taken in the night, aiming at the moon. Zoom is big and so is the shaking (no tripod at that time). How can that be "de-shaken", since there is no real "background"? I only have the bright moon circle against the black background. I tried many settings for Pass 1, but none worked. Any recommendations, please?
sorin86 is offline   Reply With Quote
Old 6th January 2016, 13:29   #404  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Sorin86, search PlanetCrop.

http://forum.doom9.org/showthread.ph...32#post1606032

http://forum.doom9.org/showthread.ph...25#post1606025

Updated to the above posted script, avs in RT_Stats plug.

EDIT: Expects images rather than video.
EDIT: Oops, Avisynth plugin, not Vdub.
__________________
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; 6th January 2016 at 13:48.
StainlessS is offline   Reply With Quote
Old 6th January 2016, 23:04   #405  |  Link
raffriff42
Retried Guesser
 
raffriff42's Avatar
 
Join Date: Jun 2012
Posts: 1,373
Quote:
Originally Posted by sorin86 View Post
I tried many settings for Pass 1, but none worked. Any recommendations, please?
See the screenshot below. It's partly guesswork.

Most importantly, tune the borders to the area the moon is. To get these numbers, use the "crop" function built into every VirtualDub filter. Copy Crop's "offset" numbers into Dehaker's "ignore border."



EDIT whoops, max horizontal & vertical panning should both be about 20.

Last edited by raffriff42; 16th March 2017 at 23:34. Reason: (fixed image link)
raffriff42 is offline   Reply With Quote
Old 25th February 2016, 10:46   #406  |  Link
sorin86
Registered User
 
Join Date: Nov 2014
Posts: 5
Quote:
Originally Posted by raffriff42 View Post
See the screenshot below. It's partly guesswork.
Thank you for your try. Yet nothing works. It seems to be beyond the power of Deshaker. A variant ot the video is here https://www.youtube.com/watch?v=lqyCdM8JJBI
sorin86 is offline   Reply With Quote
Old 1st March 2016, 11:03   #407  |  Link
bxyhxyh
Registered User
 
Join Date: Dec 2011
Posts: 354

with this settings before deshaker, it detected edges.
Then you can play with deshaker settings.
But finding good values for deshaker wasn't easy task for me.
bxyhxyh is offline   Reply With Quote
Old 2nd March 2016, 15:37   #408  |  Link
bxyhxyh
Registered User
 
Join Date: Dec 2011
Posts: 354
I have a question.
Is there any settings that chooses third, fourth or Nth frame as the first frame of the scene and stabilize previous frames compared to that frame?
Setting to add big black bars on those "falling" frames, and less black bars on other frames, instead of first frame is unaffected and the frames that shouldn't be shifted are shifted too much which current version works this way.
For some films I worked on, the first two or three frames were very off compared to the rest of the scene due to camera movement or something.

Sorry if there are some English difficulties.

Last edited by bxyhxyh; 2nd March 2016 at 16:17.
bxyhxyh is offline   Reply With Quote
Old 2nd March 2016, 17:07   #409  |  Link
guth
Registered User
 
Join Date: Apr 2003
Location: Uppsala, Sweden
Posts: 157
Quote:
Originally Posted by bxyhxyh View Post
Is there any settings that chooses third, fourth or Nth frame as the first frame of the scene and stabilize previous frames compared to that frame?
Not really. But you can edit the logfile after Deshaker pass 1 to offset the first frame by a certain number of pixels. It's not as convenient, but you'll get the exact same effect.

Add a line to the logfile for the frame number of the first processed frame. For example, if you started running Deshaker pass 1 at the beginning of the clip, and then add the following line...

0 100 0 0 1

...the first frame will be shifted to the right by 100 pixels. The first 0 is the frame number, and then follows x-shift, y-shift, rotation and zoom factor.

Last edited by guth; 2nd March 2016 at 17:11.
guth is offline   Reply With Quote
Old 16th March 2016, 08:10   #410  |  Link
sorin86
Registered User
 
Join Date: Nov 2014
Posts: 5
A weakness of this piece of software

Thank you for your suggestion. It seemed to work for a lot of frames, but there were also some terrible jerks. As one can't spend hours and hours to detect the proper Deshaker settings (if there are any), the conclusion is that this software just isn't able to deal with such a situation which is not so uncommon.


Quote:
Originally Posted by bxyhxyh View Post

with this settings before deshaker, it detected edges.
Then you can play with deshaker settings.
But finding good values for deshaker wasn't easy task for me.
sorin86 is offline   Reply With Quote
Old 20th November 2016, 05:51   #411  |  Link
affter333
Registered User
 
Join Date: Mar 2006
Posts: 15
thanks for the de-shaker, it's so useful !!

I'm still using it.
affter333 is offline   Reply With Quote
Old 20th November 2016, 14:09   #412  |  Link
dipje
Registered User
 
Join Date: Oct 2014
Posts: 268
@sorin86: Programs like Mocha are for that kind of stuff. Plane and image-trackers, which track a certain object in the frame (instead of all the motion detected).
If you still have huge jerks there is little any kind of video-stabilizer can do with that. Huge jerk-movements are just that. You can even stabilize it 100% but you will end up with almost no frame left, or leave them in since they would ruin the overal 'cropfactor' of the stabilization. Cutting those huge jerks out before entering any kind of stabilization process helps a lot.
dipje is offline   Reply With Quote
Old 6th July 2017, 18:06   #413  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Has anyone ever seen DeShaker source code published anywhere ? (any version, but later better)

I have a requirement for spatial alignment/zooming, for sequence matching, I have a bit of an idea for rapid detection of spatial alignment and zoom,
but it may not work at all. Would like to see how someone who has some clue what he is doing, does it.
__________________
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 ???
StainlessS is offline   Reply With Quote
Old 6th July 2017, 19:08   #414  |  Link
guth
Registered User
 
Join Date: Apr 2003
Location: Uppsala, Sweden
Posts: 157
It's not published (I hope). But if you describe your idea (privately if you prefer), I'll tell you what I think about it. I promise I won't steal your idea...
guth is offline   Reply With Quote
Old 6th July 2017, 22:45   #415  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Hi Guth,

Was thinking that maybe use something like Zebra() Avisynth plugin:- https://forum.doom9.org/showthread.p...ighlight=zebra
(Arh damn, my images have gone from there too. [EDIT: Fixed images])

and scan on one or several of the (resized) bands(maybe minmaxdifference band), perhaps using something like RT_Stats RT_LumaCorrelation,
maybe in 2 parts vertical and 2 parts horizontal, to gauge shift and zoom (H and V separately).

EDIT: Then once rapid/rough estimate is done, and approx shift/zoom gotten then exhaustive subpixel shift/zoom
to get final crop/resize.
We dont actually have to do it at every frame, only per clip, but is complicated by fact that we have two different clips with
perhaps differing color/gamma.
__________________
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; 7th July 2017 at 04:23.
StainlessS is offline   Reply With Quote
Old 7th July 2017, 11:11   #416  |  Link
guth
Registered User
 
Join Date: Apr 2003
Location: Uppsala, Sweden
Posts: 157
I don't know the exact problem you're trying to solve. "Sequence matching"... "two different clips"... you mean you have two clips of the same scene and you want to "time match" them? And you also want to match them spatially? (Does this have something to do with 3D stereo video?)

Anyway, things that I guess could be problematic with your idea is if objects move differently in the two clips, or if rotation is different. Also, if it's not a rectilinear lens (maybe you have 180 degree video with two cameras, for VR??) the "distorted" geometry might be a problem too.

And to find shift and zoom, are you going to guess values for these and see which set gets the best match? Guessing two unknowns at the same time can be time consuming, but maybe you'll do it hierarchically, at different scales?
You might want to look into something called "least squares matching" (not to be confused with "least squares fit") that can find a shift without guessing. I'm not using this in Deshaker, though, and I don't remember why.

In short, I believe your idea might work, but depending on the exact intended use it may not be very robust.
guth is offline   Reply With Quote
Old 7th July 2017, 12:10   #417  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Quote:
And you also want to match them spatially?
Yep, thats it, need to match spatially so can then match sequences, for eg replace bad quality sequence with similar good quality sequence of different clip.
Perhaps of different input clip size, up to about 32 pixels difference H or V. (3D, of no concern).
The two clips would be spatially aligned on a single in-sync frame, rotation does not come into it.

Was thinking, something like, split vertical into top and bottom, process top via shift/resize until find match (single vertical pixel column from zebra),
same again for bottom, calc shift/resize from two results. repeat for horizontal.
Then with rough estimates, go 2D subpixel to find and return best shift/resize, and intersection coords.

The Zebra thing is intended just to do away with the gazillions of 2D shift/resize/correlation ops, do it individually in two 1D passes
for primary estimate. [selecting best Zebra band via RT_YPlaneStdev() ].

I'll have a look for "least squares matching" , thanks very much for your time, I think I have enough for now.

EDIT: For the particular immediate use, I have a good quality, good color clip with massive opaque logo, and a low res bad color clip
without logo and of different size and cropping. I want to match spatially, then do color matching with GamMatch (from GamMac thread)
and replace logo with resized, shifted, recolored, low quality area.
The recoloring part already works better than anticipated.
EDIT: We also have to spatially match with logo area chopped off and extrapolate crop and resize stuff.

Quote:
it may not be very robust
Yep, I figured that
__________________
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; 8th July 2017 at 11:53.
StainlessS is offline   Reply With Quote
Old 7th July 2017, 12:37   #418  |  Link
guth
Registered User
 
Join Date: Apr 2003
Location: Uppsala, Sweden
Posts: 157
I was wondering what kind of strange use this could be, but your edit explained it.
guth is offline   Reply With Quote
Old 2nd August 2017, 02:01   #419  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Hi Guth,

Just had a glance at your docs for DeShaker, the Rolling Shutter docs Motorola Defy as 848x480 widescreen: 52%,
Actual screen resolution is 854x480, but captures video highest rez at 640x480 4:3 (dont know if of any interest).

Code:
General
Complete name                            : C:\Z\2017-08-02_01-09-46_141.3gp
Format                                   : MPEG-4
Format profile                           : 3GPP Media Release 4
Codec ID                                 : 3gp4 (3gp4/mp41/3gp6)
File size                                : 5.10 MiB
Duration                                 : 16 s 789 ms
Overall bit rate                         : 2 550 kb/s
Law rating                               : 0x00000000
Released date                            : 0
Encoded date                             : UTC 2017-08-02 00:10:10
Tagged date                              : UTC 2017-08-02 00:10:10
Classification                           : 0x00000000

Video
ID                                       : 2
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Baseline@L3
Format settings, CABAC                   : No
Format settings, ReFrames                : 1 frame
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 16 s 789 ms
Bit rate                                 : 2 483 kb/s
Maximum bit rate                         : 2 000 kb/s
Width                                    : 640 pixels
Height                                   : 480 pixels
Display aspect ratio                     : 4:3
Frame rate mode                          : Variable
Frame rate                               : 29.841 FPS
Minimum frame rate                       : 8.197 FPS
Maximum frame rate                       : 34.483 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.271
Stream size                              : 4.97 MiB (97%)
Language                                 : English
Encoded date                             : UTC 2017-08-02 00:10:10
Tagged date                              : UTC 2017-08-02 00:10:10

Audio
ID                                       : 1
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 16 s 768 ms
Bit rate mode                            : Constant
Bit rate                                 : 64.0 kb/s
Channel(s)                               : 1 channel
Channel positions                        : Front: C
Sampling rate                            : 16.0 kHz
Frame rate                               : 15.625 FPS (1024 spf)
Compression mode                         : Lossy
Stream size                              : 131 KiB (3%)
Language                                 : English
Encoded date                             : UTC 2017-08-02 00:10:10
Tagged date                              : UTC 2017-08-02 00:10:10
From Aida64
Code:
SYSTEM:

Manufacturer                        Motorola
Model                               MB525
Brand                               moto
Board                               jordan
Device                              umts_jordan
Platform                            omap3
Product                             MB525_RTGB
Installed RAM                       512 MB

Device Features
android.hardware.camera
android.hardware.camera.autofocus
android.hardware.camera.flash
android.hardware.location
android.hardware.location.gps
android.hardware.location.network
android.hardware.sensor.accelerometer
android.hardware.sensor.compass
android.hardware.sensor.light
android.hardware.sensor.proximity
android.hardware.telephony
android.hardware.telephony.gsm
android.hardware.touchascreen
android.hardware.touchascreen.multitouch

CPU:

Core                                ARM Cortex-A8@800
Architecture                        MHz
Instruction Set                     32-bit ARMv7
CPU Revision                        r3p2
CPU Cores                           1
CPU Clock Range                     300-800 MHz
Core 1 clock                        300 MHz
CPU Utilization                     7%
Scaling Governor                    ondemand
CPU ABI                             armeabi-v7a
AES                                 Not Supported
NEON                                Supported

DISPLAY:

Screen Resolution                   480 x 854
xdpi / ydpi                         96 / 96 dpi
GPU Vendor                          Imagination Technologies
GPU Rednderer                       PowerVR SGX 530
Refresh Rate                        68Hz
Default Orientation                 Portrait
OpenGL ES Version                   2.0
GPU Version                         OpenGL ES-CM 1.1

ANDROID:
Android Version                     2.1-update1 (Eclair)
API Level                           7
Rooted Device                       Yes
Android ID                          xxxxxxx
Build ID                            JRDNEM_U3_2.21.0

DEVICES:

Camera
Resolution                          5.0 MP (2592 x 1936)
Focus Modes                         auto, Macro, infinity, off
Flash                               Supported

USB Device - Motorola Inc Motorola Phone ()
Manufacturer                        Motoroloa Inc
Product                             Motoroloa Phone

SENSORS:
KXTF9 3-axis Accelerometer          ????
AK8973 3-axis Magnetic field sensor ????
AK8973 Temperature Sensor           29.0 degrees C
ISL29030 Proximity sensor           ????
Orientation Sensor                  Azimuth:???? / Pitch: ???? / Roll: ????
ISL29030 Ambient Light Sensor       2.0 lux
The Defy+ (with a software upgrade,) is supposed to support up to 720p, but I dont know if 16:9 or what, nor if update was released.
Only difference with ordinary Defy was the plus had a Bayer lens(red, some later Defy also had red), whereas plain Defy had SOC (green) lens.
Also, Defy+ had bigger battery and the (pretty much) same processor was clocked at 1GHz instead of 800MHz as in the plain Defy.

Plain Defy:- http://www.gsmarena.com/motorola_defy-3514.php
Defy+:- http://www.gsmarena.com/motorola_defy+-4098.php

Picked myself one up for £8.00 a couple of months back :- https://uk.webuy.com/search/index.ph...+defy&section=
(Gonna try Jelly Bean on it when I get time, great little phone, me loves it).
__________________
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 ???
StainlessS is offline   Reply With Quote
Old 2nd August 2017, 18:01   #420  |  Link
guth
Registered User
 
Join Date: Apr 2003
Location: Uppsala, Sweden
Posts: 157
Do you mean that my rolling shutter listing for this mobile is misleading?
I just add the rolling shutter info that people send me. I think it's better if the end user uses that info as best as he can instead of me trying to correct it, without knowing what the guy who sent it to me might have done.
guth is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:58.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.