Message Boards Message Boards

0
|
9560 Views
|
13 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Avi export - set time/speed

Posted 9 years ago
POSTED BY: Michael Steffen
13 Replies
POSTED BY: Michael Steffen
POSTED BY: Michael Steffen

Hi Michael,

the problem simply seems to be that you are exporting an empty list:

Table[someFunction[p], {p, .39, .37, .01}]

You can not go from .39 to .37 with a positive stepsize .01; is must read:

Table[someFunction[p], {p, .39, .37, -.01}]

Animate and Manipulate are more tolerant in this respect, but not Table.

Regards -- Henrik

POSTED BY: Henrik Schachner

Solved - I exchanged every '80' with 160, the 160 in the export-function with 320 (2 'rounds') - and now I have what I wanted - 12 seconds slow running, 300 frames, and it works.

(There is maybe another little flaw with line-length of the boxes, not sure, I need to watch it on pc first and try around a bit - but when I understand 'the way' I'll for sure get the rest perfect, too. (-> if line-length is really damaged, the reason could only be one of the 80/160-values))

POSTED BY: Michael Steffen
POSTED BY: Michael Steffen

I thought your parameter t in CubeTrail was only in the rotation, but it also appears in the choice of vertices. Can you unlink the two meanings?

POSTED BY: Gianluca Gorni

Doublepost

POSTED BY: Michael Steffen
  • he expression 9/4 cannot be used as a part specification.
  • Further output of Part::pkspec1 will be suppressed during this calculation.
  • Part specification 9/4[[1]] is longer than depth of object. ...

    Export[NotebookDirectory[] <> "movie.avi", ParallelTable[CubeTrail[4, 8, 3.8, .75, n], {n, 1, 160, 1/4}], "FrameRate" -> 25, "VideoEncoding" -> Uncompressed]

POSTED BY: Michael Steffen

I haven't, but it seems that is what I am looking for :) I'll try around now a bit, many thanks already!

POSTED BY: Michael Steffen

For a slow, smooth animation have you tried generating more intermediate frames?

Table[CubeTrail[4, 8, 3.8, .75, n], {n, 1, 160,1/4}]
POSTED BY: Gianluca Gorni

This Table[CubeTrail[4, 8, 3.8, .75, n], {n, 1, 160,1/4}] does not work here, producing lots of errors and then the Pi is slowing down heavy until it freezes...

POSTED BY: Michael Steffen

No, thats not what I want - my goal is to let the animation run slower and smoother/more fluid.... Now the cubes do one rotation at 80, and what I want is that 160 for example is one rotation...but I think I got an idea, seems to me that I simply looked at the wrong location....I´ll try around now a bit, hopefully I got it.

POSTED BY: Michael Steffen
Posted 9 years ago

In ParallelTable you generate 80 frames, then you are exporting at 900 frames per second. However, the corrected code below produces a really cool 36 second movie!

Export[NotebookDirectory[] <> "movie2.avi", 
 ParallelTable[CubeTrail[4, 8, 3.8, .75, n], {n, 1, 900}], 
 "FrameRate" -> 25, "VideoEncoding" -> Uncompressed]
POSTED BY: David Keith
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract