- image sequence to video - page 2 - Creative Uses of CHDK - CHDK Forum  

- image sequence to video

  • 25 Replies
  • 15364 Views
Re: - image sequence to video
« Reply #10 on: 19 / June / 2009, 06:34:38 »
Advertisements
Thanks for that detailed reply.

One other question, how do I display the first and last frames for four seconds ?

On the test I have done on a smaller image, the frame at the start of the movie has a horizontal bar of vertical lines at the bottom, for some reason.

Quote
Steve, if you have any more questions


Who is Steve ?


David  :)


*

Offline yair

  • *
  • 34
  • A620, A640, A530
Re: - image sequence to video
« Reply #11 on: 19 / June / 2009, 07:37:50 »
http://avisynth.org/mediawiki/FreezeFrame
alternately, you can use the script in most editing programs like a regular video for fade,freeze,cut etc.
Code: [Select]
length=100
pan=CoronaSequence("microfunguy.jpg",stop=length)
Animate(0,length-5,"BicubicResize", pan,600,800,0.33,0.33,0,0,600,800, pan,600,800,0.33,0.33,0,24200,600,800)
AssumeFPS(25) #pretty sure this isn't necessary, but for the protocol
FreezeFrame(0,5,0)
FreezeFrame(95,100,100) #this one isn't needed as the length of the animate filter is set to (length-5) so it will just freeze on the last frame on its own.

as for the bars, i'm not sure. try to bake the script and see if it shows on the output as well.
« Last Edit: 19 / June / 2009, 07:49:08 by yair »

Re: - image sequence to video
« Reply #12 on: 19 / June / 2009, 09:30:16 »
I have just checked and the original stitched source image is 22901 high x 1759 wide.

For playback on widescreen TV (16:9 aspect ratio) or computer monitor, a frame size of 1280x720 would be suitable.

In other words, 1759 x 990 source frames would be resized to 1280 x 720.

Freeze frame for four seconds at beginning and end and a pan time of 80 seconds.

I could use an external programme to initially resize image to 720 wide x 9374 high or maybe AVSynth can also do that 'on the fly' for each frame ?

How do I do this ?

Thanks.
« Last Edit: 19 / June / 2009, 10:12:12 by Microfunguy »

*

Offline yair

  • *
  • 34
  • A620, A640, A530
Re: - image sequence to video
« Reply #13 on: 19 / June / 2009, 11:07:22 »
avs is known to have best in class resizing, i use the built in resizers and the simplest one at that, there are many options.

try this,

Code: [Select]

fps=25
length=80*fps
src_frame_width=1759
src_frame_height=990
dst_frame_width=1280
dst_frame_height=720

pan=CoronaSequence("demo.jpg",stop=length)
Animate(4*fps,length-(4*fps),"BicubicResize", pan,dst_frame_width,dst_frame_height,0.33,0.33,0,0,src_frame_width ,src_frame_height , pan,dst_frame_width,dst_frame_height,0.33,0.33,0,(pan.height-src_frame_height),src_frame_width ,src_frame_height)

notice i dont use freezeframe anymore as i set the start frame and end frame of the animate to 4 seconds after start and before end. i removed assumefps as 25fps is the default.
« Last Edit: 19 / June / 2009, 11:10:17 by yair »


Re: - image sequence to video
« Reply #14 on: 19 / June / 2009, 11:17:43 »
Thanks.

I will upload final movie to ZShare.

It will take some time to render.


*

Offline yair

  • *
  • 34
  • A620, A640, A530
Re: - image sequence to video
« Reply #15 on: 19 / June / 2009, 11:22:57 »
how did you acquire the shot? from afar with tele lens then stitch?

Re: - image sequence to video
« Reply #16 on: 19 / June / 2009, 12:28:42 »
how did you acquire the shot? from afar with tele lens then stitch?


Very perceptive !

Yes, otherwise the perspective distortion would have made it difficult or impossible to stitch.

I don't think last script is a good idea, with 2,000 bicubic resizes it will take almost six hours.

Let us assume that I resize the source image to 1280 x 16,665

What is the script then ?


*

Offline yair

  • *
  • 34
  • A620, A640, A530
Re: - image sequence to video
« Reply #17 on: 19 / June / 2009, 15:58:10 »
i tried encoding this script and in meGUI and it claimed it will be done in 1:14hr, thats with an aging E6400 cpu.
Code: [Select]
fps=25
length=80*fps #if we operate at 25fps pal
src_frame_width=1280
src_frame_height=720
dst_frame_width=1280
dst_frame_height=720

pan=CoronaSequence("demores.jpg",stop=length)
Animate(4*fps,length-(4*fps),"BicubicResize", pan,dst_frame_width,dst_frame_height,0.33,0.33,0,0,src_frame_width ,src_frame_height , pan,dst_frame_width,dst_frame_height,0.33,0.33,0,(pan.height-src_frame_height),src_frame_width ,src_frame_height)
i must admit i then went back to my trusty sony vegas pro.
now in its 9th version with support for 4k resolution. will it pan a 25000x1280 photo?
not only did it preview this pan @ 25fps in full resolution, the encoding took something like a minute (i used its mainconcept   AVC mp4 compressor, set at the ).



Re: - image sequence to video
« Reply #18 on: 19 / June / 2009, 16:58:37 »
Well, it took over two hours to render !

You can download the 11MB  XVid movie here.

I am surprised Vegas can pan an image that size, most programmes that I tried cannot.

Difficult to believe Vegas could encode that quickly.

If you would like to try you can download the source image 16_9_aspect.jpg - 11.60MB


*

Offline yair

  • *
  • 34
  • A620, A640, A530
Re: - image sequence to video
« Reply #19 on: 19 / June / 2009, 17:43:44 »
i know vegas from before sony bought them, they where the first to show real time previews on undedicated hardware. you can edit RED on it.
so the preview was not that surprising. the encoding was.
it took 1:42min, and the file size is close to 20mb, its single pass encoding with a very generous bit rate. here it is
i created a gradient ramp in photoshop to test sized 1759x22901.
you can d/l the vegas demo and try for yourself, here is the project. and this are the settings i used vegas.jpg - 0.05MB

 

Related Topics