<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Le 06/10/2011 11:25, Albena Baeva a écrit :
<blockquote
cite="mid:CA+m4K3h5rewLibX6MWeXy5tY6ANwLQtr0dNEOuZuJQVPx2WsfQ@mail.gmail.com"
type="cite"><br clear="all">
<div>Hello List,</div>
<div><br>
</div>
<div>I'm trying to synchronise film and it's sound in pd. I have
several short clips exported as one longer video and separate
audio file. I need to be able to start each one of them when I
choose, but I loose synchronisation of sound an video. I first
try to use this patch (<a moz-do-not-send="true"
href="http://www.youtube.com/watch?v=boX0v54SqtU">http://www.youtube.com/watch?v=boX0v54SqtU</a>
) - I send to the right inlet of [phasor] the starting point of
the video (/) by the total fim length. That worked with one of
my video test, but with the real video that I have to use
totally lost synchronisation. I
send separately the begging point of the video to [counter] and
[pix film]. Then I tried to use [phasor] as the play machine for
both. But it still doesn't work- the problem this time is the
speed of the sound sample is faster and the way the films change
is pretty random, but there is synchronisation. </div>
I attach part of my second try. I hope that will be enough to see
where I' wrong
<div>Thanks
<div><br>
</div>
<div>Albena<br>
<div><a moz-do-not-send="true"
href="http://albena.posterous.com/" target="_blank">http://albena.posterous.com</a></div>
<a moz-do-not-send="true" href="http://runabout.eu"
target="_blank">runabout.eu</a><br>
<a moz-do-not-send="true"
href="http://the-rest-art.blogspot.com" target="_blank">the-rest-art.blogspot.com</a><br>
<br>
</div>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a class="moz-txt-link-freetext" href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a>
</pre>
</blockquote>
To synchronise movies and sounds, you need to do the same thing
presented in the youtube video (with [snapshot~]). Then you need
also to know how many frames per second there is in your movie. For
example, if your movie has 25 fps and your sound is at 44100 Hz,
then you need to divide the value from [snapshot~] by 44100 (to get
time in second) and multiply this time by 25 to get the frame that
must be reached (you send this value to the right inlet of
[pix_film]). Then :<br>
<br>
<tt> [snapshot~]<br>
|<br>
[/ 44100]<br>
|<br>
[* 25]<br>
|<br>
[pix_film]</tt><br>
<br>
Hope it helps.<br>
++<br>
<br>
Jack<br>
<br>
<br>
</body>
</html>