Hello List,
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 ( http://www.youtube.com/watch?v=boX0v54SqtU ) - 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. I attach part of my second try. I hope that will be enough to see where I' wrong Thanks
Albena http://albena.posterous.com runabout.eu the-rest-art.blogspot.com
Le 06/10/2011 11:25, Albena Baeva a écrit :
Hello List,
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 (http://www.youtube.com/watch?v=boX0v54SqtU ) - 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. I attach part of my second try. I hope that will be enough to see where I' wrong Thanks
Albena http://albena.posterous.com http://albena.posterous.com/ runabout.eu http://runabout.eu the-rest-art.blogspot.com http://the-rest-art.blogspot.com
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
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 :
[snapshot~]
|
[/ 44100]
|
[* 25]
|
[pix_film]
Hope it helps. ++
Jack
because this is a very reoccurring question and the next question you will probably ask is: why is the sound playback stuttering when i play video in sync with it?
i made those educational patches to address both questions: http://www.uni-weimar.de/medien/wiki/Audiovideo
hope it helps. max
Am 06.10.2011 um 11:25 schrieb Albena Baeva:
Hello List,
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 (http://www.youtube.com/watch?v=boX0v54SqtU ) - 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.
I attach part of my second try. I hope that will be enough to see where I' wrong ThanksAlbena http://albena.posterous.com runabout.eu the-rest-art.blogspot.com
<playLogic.pd>_______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Thanks a lot,
I looked at the tutorial patches and they are really great. Now I get a little bit further, I found that I have the same mistake with your patches as with mine. "error: soundfiler_read: truncated to 4000000 elements" So the buffer of the soundfile doesn't allow to get a bigger size of the sample than this 4000000, and mine is a little bit more I guess. I tried to change the size manually but it didn't help, it stays the same. So my next question is :)) Is it possible to load bigger files in tabread4(or change it somehow)? I suppose I can always divide the video into 2 clips and trigger between them, but it will be more clean if I manage t do it with one clip. best albena
On Thu, Oct 6, 2011 at 4:40 PM, Max abonnements@revolwear.com wrote:
because this is a very reoccurring question and the next question you will probably ask is: why is the sound playback stuttering when i play video in sync with it?
i made those educational patches to address both questions: http://www.uni-weimar.de/medien/wiki/Audiovideo
hope it helps. max
Am 06.10.2011 um 11:25 schrieb Albena Baeva:
Hello List,
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 ( http://www.youtube.com/watch?v=boX0v54SqtU ) - 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.
I attach part of my second try. I hope that will be enough to see where
I' wrong
Thanks
Albena http://albena.posterous.com runabout.eu the-rest-art.blogspot.com
<playLogic.pd>_______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management ->
the default maxsize of sound filer is 4000000. if you want/need that bigger, change the maxsize of sound filer with the -maxsize option (see sound filer-help for that. m.
Am 06.10.2011 um 18:50 schrieb Albena Baeva:
Thanks a lot,
I looked at the tutorial patches and they are really great. Now I get a little bit further, I found that I have the same mistake with your patches as with mine. "error: soundfiler_read: truncated to 4000000 elements" So the buffer of the soundfile doesn't allow to get a bigger size of the sample than this 4000000, and mine is a little bit more I guess. I tried to change the size manually but it didn't help, it stays the same. So my next question is :)) Is it possible to load bigger files in tabread4(or change it somehow)? I suppose I can always divide the video into 2 clips and trigger between them, but it will be more clean if I manage t do it with one clip. best albena
On Thu, Oct 6, 2011 at 4:40 PM, Max abonnements@revolwear.com wrote: because this is a very reoccurring question and the next question you will probably ask is: why is the sound playback stuttering when i play video in sync with it?
i made those educational patches to address both questions: http://www.uni-weimar.de/medien/wiki/Audiovideo
hope it helps. max
Am 06.10.2011 um 11:25 schrieb Albena Baeva:
Hello List,
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 (http://www.youtube.com/watch?v=boX0v54SqtU ) - 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. I attach part of my second try. I hope that will be enough to see where I' wrong Thanks
Albena http://albena.posterous.com runabout.eu the-rest-art.blogspot.com
<playLogic.pd>_______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-- http://albena.posterous.com runabout.eu the-rest-art.blogspot.com