Smoothing time-lapse videos with AviSynth - page 3 - Creative Uses of CHDK - CHDK Forum  

Smoothing time-lapse videos with AviSynth

  • 40 Replies
  • 24592 Views
Re: Smoothing time-lapse videos with AviSynth
« Reply #20 on: 26 / November / 2013, 18:23:21 »
Advertisements
Let us say both to beginning and end but not the middle where the camera is doing a slow pan.

The MSU_FRC is not working yet as AutoCrop() command not recognised.

Will check.

*

Offline Paco

  • **
  • 77
Re: Smoothing time-lapse videos with AviSynth
« Reply #21 on: 26 / November / 2013, 18:43:15 »
Let us say both to beginning and end but not the middle where the camera is doing a slow pan.
Yeah, that's what I thought. Very easy:

Code: [Select]
v = MpegAutoIndexSource("HD video by Canon SX50 camera - 50x zoom example 1.mp4")
fps = v.FrameRate()

v1 = v.Trim(50, 75).AssumeFPS(fps/4)
v2 = v.Trim(76, 175)
v3 = v.Trim(176, 200).AssumeFPS(fps/4)

#v = v1.ConvertToYV12().AutoCrop(0, wMultOf=16, hMultOf=16).MSU_FRC(4, "fast") + v2 + v3.ConvertToYV12().AutoCrop(0, wMultOf=16, hMultOf=16).MSU_FRC(4, "fast")
v = Dissolve(v1.ConvertToYV12().AutoCrop(0, wMultOf=16, hMultOf=16).MSU_FRC(4, "fast"), v2, v3.ConvertToYV12().AutoCrop(0, wMultOf=16, hMultOf=16).MSU_FRC(4, "fast"), 10)

return v

You can use either but Dissolve has better transitions.

zoom split

Quote
The MSU_FRC is not working yet as AutoCrop() command not recognised.

You have to install the plug-in: new version of AutoCrop plugin

Re: Smoothing time-lapse videos with AviSynth
« Reply #22 on: 26 / November / 2013, 18:46:22 »
Yes, I have now installed the AutoCrop plugin but am stuck with ConvertToYV12.

Says the input image format is not suitable.

*

Offline Paco

  • **
  • 77
Re: Smoothing time-lapse videos with AviSynth
« Reply #23 on: 26 / November / 2013, 18:51:55 »
Yes, I have now installed the AutoCrop plugin but am stuck with ConvertToYV12.

Says the input image format is not suitable.
Please post the script. Read: Convert.

BTW, can you move all the stuff that is not directly related to time-lapse to a new thread? This is way off topic by now.


Re: Smoothing time-lapse videos with AviSynth
« Reply #24 on: 26 / November / 2013, 18:59:48 »
reyalp will move it to 'Movie processing with AviSynth'.

The script is same as above but using the alternative syntax and does not return a clip.
QTSource() is used to input the original MOV file which I believe is RGB colour space.
Everything works up until ConvertToYV12().

Will read the link.

P.S.

I have a LOT of timelapses taken this year, my apple tree timelapse has been running since April.

*

Offline Paco

  • **
  • 77
Re: Smoothing time-lapse videos with AviSynth
« Reply #25 on: 26 / November / 2013, 19:19:29 »
reyalp will move it to 'Movie processing with AviSynth'.

That's too general. How about 'Panning a panorama image and slowing down a video using AviSynth'?

Quote
The script is same as above but using the alternative syntax and does not return a clip.
QTSource() is used to input the original MOV file which I believe is RGB colour space.
Everything works up until ConvertToYV12().

RGB should work acc. to docs. Did you try MpegAutoIndexSource? My clip is YUV like I believe yours is and it worked for me.

Quote
I have a LOT of timelapses taken this year, my apple tree timelapse has been running since April.

That sounds cool. Be sure to post the video.

Re: Smoothing time-lapse videos with AviSynth
« Reply #26 on: 26 / November / 2013, 19:23:55 »
It seems the movie QTSource loads is YUV colour space :-

Code: [Select]
File size                                : 447 MiB
Duration                                 : 2mn 36s
Overall bit rate                         : 23.9 Mbps
Encoded date                             : UTC 1980-01-01 01:38:19
Tagged date                              : UTC 1980-01-01 01:38:19
Copyright                                :         
com.apple.quicktime.make                 : Canon
com.apple.quicktime.model                : Canon PowerShot SX50 HS
com.apple.quicktime.author               :         

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Baseline@L4.1
Format settings, CABAC                   : No
Format settings, ReFrames                : 1 frame
Format settings, GOP                     : M=1, N=12
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 2mn 36s
Bit rate                                 : 22.4 Mbps
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.450
Stream size                              : 418 MiB (94%)
Language                                 : English
Encoded date                             : UTC 1980-01-01 01:38:19
Tagged date                              : UTC 1980-01-01 01:38:19
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio
ID                                       : 2
Format                                   : PCM
Format settings, Endianness              : Little
Format settings, Sign                    : Signed
Codec ID                                 : sowt
Duration                                 : 2mn 36s
Bit rate mode                            : Constant
Bit rate                                 : 1 536 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Stream size                              : 28.7 MiB (6%)
Language                                 : English
Encoded date                             : UTC 1980-01-01 01:38:19
Tagged date                              : UTC 1980-01-01 01:38:19

Re: Smoothing time-lapse videos with AviSynth
« Reply #27 on: 26 / November / 2013, 19:33:14 »
Did you try MpegAutoIndexSource?

No, because QTsource loads the file OK.


*

Offline Paco

  • **
  • 77
Re: Smoothing time-lapse videos with AviSynth
« Reply #28 on: 26 / November / 2013, 19:40:43 »
It seems the movie QTSource loads is YUV colour space :-

Code: [Select]
com.apple.quicktime.model                : Canon PowerShot SX50 HS
com.apple.quicktime.author               :         

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Baseline@L4.1
Format settings, CABAC                   : No
Format settings, ReFrames                : 1 frame
Format settings, GOP                     : M=1, N=12
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 2mn 36s
Bit rate                                 : 22.4 Mbps
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive

That looks remarkably similar to mine which was also shot on an SX50:

Code: [Select]
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
Format settings, CABAC : Yes
Format settings, ReFrames : 1 frame
Format settings, GOP : M=1, N=60
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 29s 778ms
Bit rate : 3 001 Kbps
Maximum bit rate : 4 939 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive

All the more reason you should be using MpegAutoIndexSource, which worked for me. What are you waiting for?

Re: Smoothing time-lapse videos with AviSynth
« Reply #29 on: 26 / November / 2013, 19:52:18 »
You used it on an mp4 file not a mov file.

However, it apparently supports mov so I will try it.

According to the Convert link you gave, the SX50hs' YUV colour space with 4:2:0 subsampling IS YV12.
However, if ConvertToYV12 is omitted FRC complains.
« Last Edit: 26 / November / 2013, 20:11:16 by Microfunguy »

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal