hi
I am reading a video with pix_film and trigger it using auto, at the same time load a sound file with readsf ~ . This is ok for a while but after some time they go out of sync. The sound goes faster than the video.
Any simple solution to this? or do I need to construct my own system to play the video passing the frame number to the pix_film? maybe using a line object with the total num of frames and the total time length of the video ...
thanks
enrike
Could it be possible that your soundfile is being played back with the wrong samplerate? Like 48k instead of 44.1k?
Ingo
-----Ursprüngliche Nachricht----- Von: pd-list-bounces@iem.at [mailto:pd-list-bounces@iem.at] Im Auftrag von altern Gesendet: Donnerstag, 8. März 2012 14:59 An: pd-list Betreff: [PD] pix_film and readsf not in sync....
hi
I am reading a video with pix_film and trigger it using auto, at the same time load a sound file with readsf ~ . This is ok for a while but after some time they go out of sync. The sound goes faster than the video.
Any simple solution to this? or do I need to construct my own system to play the video passing the frame number to the pix_film? maybe using a line object with the total num of frames and the total time length of the video ...
thanks
enrike
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2012-03-08 15:30, Ingo wrote:
Could it be possible that your soundfile is being played back with the wrong samplerate? Like 48k instead of 44.1k?
or the framerate of the video is not the same as Gem's framerate.
fgamsr IOhannes
Hi, I think I would try it this way:
generate frame numbers instead of using auto.
[0, m n( | [step] |
where m is the number of frames in the video, and n is the number of sample frames in the audio file, divided by 44.1 (or your samplerate)
gr, Tim
2012/3/8 altern altern2@gmail.com
hi
I am reading a video with pix_film and trigger it using auto, at the same time load a sound file with readsf ~ . This is ok for a while but after some time they go out of sync. The sound goes faster than the video.
Any simple solution to this? or do I need to construct my own system to play the video passing the frame number to the pix_film? maybe using a line object with the total num of frames and the total time length of the video ...
thanks
enrike
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2012-03-08 15:43, tim vets wrote:
Hi, I think I would try it this way:
generate frame numbers instead of using auto.
[0, m n( | [step] |
[step]?
fgmasdr IOhannes
2012/3/8 IOhannes m zmoelnig zmoelnig@iem.at
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2012-03-08 15:43, tim vets wrote:
Hi, I think I would try it this way:
generate frame numbers instead of using auto.
[0, m n( | [step] |
[step]?
from maxlib iirc: step :: output sequence of numbers (similar to 'line') sorry, I forgot one thing, it takes a list of 3 values, the third one being step (which would be 1 here, or higher if you want to 'strobe' your video :) ) so I should have written [0, m n 1( above instead...) gr, Tim
gr, Tim
fgmasdr IOhannes -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk9Y2oUACgkQkX2Xpv6ydvQnBACgvXJbtzXUDqaqYDk80iDuV/tF W68AoOcMMDf/nQa5mG+4S6ylXSRtJPtN =KidA -----END PGP SIGNATURE-----
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2012-03-08 17:44, tim vets wrote:
[step]?
from maxlib iirc: step :: output sequence of numbers (similar to 'line') sorry, I forgot one thing, it takes a list of 3 values, the third one being step (which would be 1 here
oh, you mean [int]?
fgmasdr IOhannes
we had three different videos 4 to 6 mins length. Format was mpeg video, and the audio was standard 44100 16 bits. The video rate was 29.97 and yes I think this was the problem
I finally solved it using line to ramp the number of frames+1 in the time duration of the video. Unfortunately my solution came too late to use it in the exhibition, and I did not have wireless connection at the place I was so I could not read this until today, that would have solved lot of trouble and stress ... thanks anyway,
On 8 March 2012 18:59, IOhannes m zmoelnig zmoelnig@iem.at wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2012-03-08 17:44, tim vets wrote:
[step]?
from maxlib iirc: step :: output sequence of numbers (similar to 'line') sorry, I forgot one thing, it takes a list of 3 values, the third one being step (which would be 1 here
oh, you mean [int]?
fgmasdr IOhannes -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk9Y84wACgkQkX2Xpv6ydvTVHQCg99lFkjkuEDsuE9ZYL3SYkFZw 7Z4AoNd1frKcVID/6hXS7aXoyB5AlzAA =uL1p -----END PGP SIGNATURE-----
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
For synced playback of video and audio, you might try my 'framesync' library. Its a bit raw, but the core playback stuff works well, and I've used it in a few projects:
http://puredata.info/downloads/framesync
.hc
On Mar 9, 2012, at 5:08 PM, altern wrote:
we had three different videos 4 to 6 mins length. Format was mpeg video, and the audio was standard 44100 16 bits. The video rate was 29.97 and yes I think this was the problem
I finally solved it using line to ramp the number of frames+1 in the time duration of the video. Unfortunately my solution came too late to use it in the exhibition, and I did not have wireless connection at the place I was so I could not read this until today, that would have solved lot of trouble and stress ... thanks anyway,
On 8 March 2012 18:59, IOhannes m zmoelnig zmoelnig@iem.at wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2012-03-08 17:44, tim vets wrote:
[step]?
from maxlib iirc: step :: output sequence of numbers (similar to 'line') sorry, I forgot one thing, it takes a list of 3 values, the third one being step (which would be 1 here
oh, you mean [int]?
fgmasdr IOhannes -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk9Y84wACgkQkX2Xpv6ydvTVHQCg99lFkjkuEDsuE9ZYL3SYkFZw 7Z4AoNd1frKcVID/6hXS7aXoyB5AlzAA =uL1p -----END PGP SIGNATURE-----
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
News is what people want to keep hidden and everything else is publicity. - Bill Moyers
depending on the length of the audio/video there might be different techniques. how long is your clip? have you looked at those examples? http://www.uni-weimar.de/medien/wiki/Audiovideo
m.
Am 08.03.2012 um 14:58 schrieb altern:
hi
I am reading a video with pix_film and trigger it using auto, at the same time load a sound file with readsf ~ . This is ok for a while but after some time they go out of sync. The sound goes faster than the video.
Any simple solution to this? or do I need to construct my own system to play the video passing the frame number to the pix_film? maybe using a line object with the total num of frames and the total time length of the video ...
thanks
enrike
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list