loading audio from a video into a buffer?
Is there a way to load the audio from a video immediately into a buffer? I had a look at spigot but I see no way to access the cached file. I could just separate the audio from the video and load them at the same time but thats a lot of work when you want to experiment just with some files.
Any ideas / tips on the subject?
just to be clear, what you are asking for is a method for loading the audio track in a QT file into a [buffer~] object?
sorry but i’m not aware of any solutions for this, think u might have to go with the separation of audio / video files. but maybe someone else knows…
Yes, loading a QT movie with audio into max and the audio automatically transfered to a buffer. I searched the forum but no clue’s how to do this. I read that spigot stores the audio in a cache file but I have no idea how to access this file and if thats possible at all.
try the "import" message to buffer~.
you will have to possibly first read the movie into qt.movie, query the length, resize the buffer~ based on that length, and then import the movie into the buffer~
Yes, import message works great. Great tip. Thanx a million!!!
This post is from a while back, but I wanted to ask how you guys worked around reading a movie file in ~buffer. I tried what Rob suggested, loading the file into the qt.movie, querying the length and then resizing the buffer to finally try to read the movie file, but ~buffer just will not let me load any video files! A super short tip or example would be most appreciated!
Thanks a bunch!
this should work. ?
<code>-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 412.3ocsSFrSqCCDEccxWwHutT0XngB6feCDB4DOoY34XGY6TJffucbraJEJ HAB81Dq45I245SheNOiUY1hNFbIbCjk8bdVVTZTHaWcFqSrsVIbw1X0ltNT6 YyR64ws9jthp+2LPnkfuEgpglFzBtVyfRBUHzPJEJgGHeKHFjjYxA8PGoUnO ZewNwFi16nmvn1h4KduWyfep4I0dgutkzquyh09zYgyWFdInnjOtvO+zX0p4 KfamlfccUzj8lSx3AwTc+ImwNHGZQWLGrqrjPAWaTR13tujmO9X1ODbZ7gf0 GwsDnd8uSC9N0jj+wdLgBVixHBeuBiRnWy1CfumZ7hKFWNa4QP6.Dw+OfnNz 4DqwiXD00ardnRIjg.OuyrAV.mT7kLi+aXVw2wreBlJVcdbgm94p7q4T4pk+ BREcfoH8muTFiwn9GwmyLXqmB89wAumDI57jV3Ii9ft3enmVRJQ8g2njjSTE ttF0NJdh99Mn0syxXTBeGu2XGKKmEKIcpLRXlE2PS8mZPXCT0GP5fMwisqJC fHLmWxeCtqWF8. -----------end_max5_patcher-----------
[buffer~] is one of the victima of c74’s recent ‘update mania’. Several features broke in Max 6.0
Import the audio portion of a .mov file works again with Max 6.1, no need to query length.
<code>-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 1018.3oc0X00bahCE8Y6eEZ3YWaDfIg9TZmN6KaSmclL6Sc53QXcwQY.IpP3 0Y6z829JI.aRVafPRcx9BXIzGGcNWczU9GSm3DK1AENn2i9JZxjeLcxDaUlJ lTWdhSFY25TRgsYNb3uDw24Lq5SJXmxVsBEiJZpkWlIJUofx1Eu5ZyIp02x3 aVIg0ppoDGN2cFJDad5co4I9h4tnuU2CF0N1546c3lwNQvUbRFX+xGjLRZyW plR084P0f6DS3ablgbb1OflNWv9aaChzS2d3x3MnEap6mSmZdL64wI4RHG3T TAnNNyf6iY7sbxxntXlnQvLuVLhTiD.YKNtPEL127JnSFAOlfkmbfh2HnEpT jmvRgtW8FTUumTCjT5AXcRd4cUagtn5k2I3E2l4UGYV.bEQwD71AhZ8gSAaO b2up6gphERJHeXWZO9svZTfAdQURnmE3dKag0mcXmIxBnL0+Iv62j.bM79E+ YAHKVbysDIPW7QfntFtQUljr3yBB8ZXwMFBnXww0mf9TgKWZWRQUNYQmPE75 O5b.5S3AxlH0ChBjq.NIN0NbcpcLtxJgOLhWtI9gh3w2CbPtwCTtCOEo7q12 U+NgsajVuXeqGSXmNMguE8dKy.d4wW098tpCsZFVavtrCC1fADB+ThJOdD4Q oGRoRjKxKSIJnsPxTPVio4GMKOzWDxLRpd.lGaJaF7YlGqYRcukHpHOOEjHH IQyBy0bnlV12JMj.cXsRyRnBqqPPwZhwXtoE+NSUfRjhLzGneZes27oUXO2U eN2MX0e7k4DVxo9TVteKm8pX0mmWUq3llcqaVKRERuZM1pssef91K21tXM1. 4+fJxYaDp6exmv666ZcJBrNEW310FO+kiXmWRpnRfsIF9JkBTQYrNnRYxCRB DJhkkKjpQSVdUzDta1J7sZBQ83faXnw5eG4Y8uW1clhg+OJ6YEJcjjQcXhGt Sxv2+WNYTWo0Tpkmj67KibwQgle4V+qWX2o6Xp4eW6xK1x.zUaEo5oBcUpPX h0z6.QXzUVXkIn.p79s2ithPI41OTxYeuDP3QdqkZKMe2tu1hevH3e85ZUFQ IMI57LBMs8yIkwe7+FfcQYp+gTt9HQ45FLzboKzg0E0dz49DX+597kZ0laYT JvamX.kUXxUn5BHGU6GJbhF.ZvmMzXx4ue3zGdxXzbgNujZERe0ISNZ3n56Q 0T3vz7xge2Af+nyGcND1z6rBG7aH3DLD7fOe6ECGhbEb1fi+PviIAyykdYN2 se.c9zqGGabBE6Qv90mhrGfNJDUc5GIOeq9JW0CpEL5TKtqJSkvY1hLdUQal LNRXKqo8UMfH0o.nzm+WJqN8d2kgNSMyyOm9urajeLA -----------end_max5_patcher-----------
Wow! Thank you both for the quick response! Im going use CTRLZJONES method as it sheds light on a couple of other important importing factors! Thanks for the support!
I have some patches that I builded some time ago that use to work fine when I needed to load the audio of video file into a [buffer~].
I can’t understand why, none of them are working today.
In troubleshooting the cause, I have use the simple patch posted above by DAGGY which uses the message " import blading.mov 0 -1 " into a buffer and it does not work.
I always get this message —> buffer~: blading.mov: can’t open
I have tried copying the " blading.mov " file into the same folder as my patch as well as making sure , in the file preferences … , that the folder containining these files was effectively in the path’s list.
Nothing works yet.
Has someone has an idea of something else I could try to find the problems?
Thanks a lot for your help.
i believe this feature only works in 32 bit mode
I just tried it and it still works (64bit). Maybe you need to restart your computer?! Sometimes I have this strange behaviour in Max that something which normally works suddenly doesn’t. A restart always fix it.
Thank you both for your reply.
On my side, even when I restart Max, it is not working.
If I switch Max to 32bit mode then it works fine.
Ultimately, my goal with having the [buffer~] load the audio of a video file is to build a video player which use the [groove~] to drive [jit.movie].
It’s nice to only have to read the video file and have the import done automatically on the audio side.
Is there another way to read a video file in [jit.move] and have a [buffer~] extract and load the audio?
Or the only method is to extract the audio from the video file prior to importing them and then import them separately into Max?
Thanks again for your help on this.
Hi Doug, Sorry but I made a mistake. in 64bit mode it doesn’t work on my system either. I was under the impression I always was running in 64bit mode. Turns out I wasn’t :-\
Maybe you can address this with cycling 74 since it looks like a bug. I see no reason why this could not work in 64bit mode.
The only workaround I can think of is indeed strip the audio beforehand and import it later.
Thanks Danny for your reply confirming it wasn’t working on your side either.
Just so you know, I wrote to Cycling 74 support to ask about this issue.
Here is the answer they gave me, just so you know :
" I believe that it requires the QT backend, an operation which is not supported in the 64-bit version. The preferred way of working with audio from a movie file now is using the jit.movie~ object. "
Forums > Jitter