adding in uyvy colorspace
I’m developing a very simple Max patch to control the playback of short Full HD video files. After some research in the forum, I found out that the best way to do so is using the Apple ProRes 422 (LT) codec and UYVY. Indeed, it worked out really well and I was able to get a smooth playback. But I want to play up to four files at the same time (adding them) and I’m not quite sure what is the best way to do so. I read the tutorials about colorspaces, the help files, and some patches posted here in the forum, but I admit I’m still a little puzzled.
This is what I came up with:
----------begin_max5_patcher---------- 870.3oc6X10bhCBEF9Z8WASl8R2LAHeYux82wNcbPC0hSBjRHVa6z+6afXZc soZp4Ca6zaLBRfWdxKmyI9z3QVKDaoYVfq.+ELZzSiGMxzktiQ6ZOxJgrcYL IyLLKN8dwh0VSJ+IEcqxz8ZlxdUrcVLYAPv.yVJhExDQDEj+vlG.ytgESAKE 1jnHlhsgZudaV0jvySX7Xpxr.nW6TjqNr2aDbUF6QptOHx1YW2kiT8PJsbqn ky7Uwy0xKWRsl.rr.WuavrHihK1E+1EZs2DyIIl625ORFIt5WRIpk2x3qlKo KUkS+zfoEKM.4Ytf8CLsbrc.WqummGOV+wjFRzDZVFYE8MHURIQfeA+.TB9A oT8Lw+rXBDiLXv2vDOn9SX3YhjiXxtSYmH1vnfYjHRpB.Ayx4r6xo5ucnqKV HRAN0RPXm4yRHJIa666wBZEOQNklLL96jIyC0lCd+3wNDm3VEGqarXMLyvmy LAnvyhfnPCyvkDL.50GDTAV.nRRFsGMYKH7UZ3TtN0QH34kqzKbO.4EziNrM rHpHMlvoFelRR3Y2TbTsPLYTE.cYOh5GzJCVYoFHneOBPIkGQkEva.7Y0yH+ 1XwJQT3fDD6KR4sswx88r5V34cLzGC+ovi5vYXav42yZa8ayotNwgoDqVEe7 pERIxBkonx4TNYQrQiNGkIuYyy3p5KF8jgpmBqdd28QpuqXWIEfYEpiJ2PhK J831G6QKfIgVcX.2hbYPjwF.wv9JY18Ldj39KXtdTKvi6txs85K570KNbqxz e7vvl0yJlwO7OJzLi59+eHmIxkKqzd0aNT.tJYGQyTLNQwD78Fjt1OfyKC5V VTDkueToDVTpn3T8NQ.c7r8JDsKVeonHkpFutNrLcjMCjbp0e7g1.NscCzc5 Q+xpmVOACldbafbNPy8pbfMUOvAQO3FHmCz7Is+kFdjKReYZX3Ks5A6uaPS2 .CCO85Df1ggGZhbFN0D1P47Ix7eVderIA.ZJ5kV8f22uAxe3bZ5+17SJmCNd zq5oAxY3TiaSdX4NboEwcwCqZ89vfv8h6aZ0CdebWfyioeHF6eo2.vvVrA7c ct35G9oxOCaAM2EJuunILnKrCumdJeKIRZ5FpLa2bZjRwKctVH0M8mXZx3kM MynkjtgUMduw5Y64w+yXqv8H -----------end_max5_patcher-----------
There will be no effects, no editing, just normal playback of those files. Is this the best way of doing it? Can I improve it somehow?
What kind of trouble do you have… "smooth video"….does this mean it’s hanging on or missing some images?
Once you read the file with jit.qt.movie do you need to stay with uyvy colormode.
As Joshua said some time ago everything is argb on gpu so once it’s read you should at first create a texture to convert back to argb
May be using a kind of jit.gl.slab @file cc.uyvy2rgba.jxs @dimscale 2 1 or another one which does this kind of conversion as first jit.gl.slab in your process and then do your stuff.
So whatever! Be aware that it’s not an easy thing (if not impossible yet) to read as smoothly as quicktime does some HD video….
But if you’re not that much "cinema" it should run for you.
PS: it ‘s always good to add OS, processor type, ram, max version says my grandfather Max
Hubert, thank you very much for your answer. And I’m sorry, I think my post wasn’t quite clear.
By "smooth" I meant that everything seems to be working fine. When I test the patch, the playback is consistent. But I actually can’t test the whole system (it envolves Max 6. Max for Live and Ableton Live, to sync audio clips with video loops) and running both in the same computer makes the video "choppy" – it is an "old" Macbook Pro, core2duo (2.8) with 8gb ram. I have ordered a new Macbook Pro (15" retina, i7, 2.6, with 16gb ram) to run the video and while I’m waiting I started to develop and test this patch.
As I’m not familiar with this kind of thing (GPU), I want to know what is the best way to do it. Maybe my patch does more processing than necessary, and it could be avoided. I need a straightforward and simple 4 channel video player, and maybe there is a more efficient way to do it. What do you think?
Is this what you suggested?
----------begin_max5_patcher---------- 969.3oc6Y00ThCCE8Y3WQlN6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8xnifuPjMFs8muOxB3rSwgiJdr.N8GZBrYyJH9jR625l06H9UsgtcU Q8vif52uKHz8mAA9de1Y.L4ijAw9Ae5I.7jRSC+Hz4F+7iDchroSln9yi.F2 EBzNDO1zaUTT+hG3GEO6p3RS0ZrHThwBpV+YF0phq9FswkkKIhp0nv.dmB7b tPOLZjYHkUOzfAGAYIcy5CGpi1yC+KPtVKbd -----------end_max5_patcher-----------
Thank you again!
you could put things a bit more further using jit.gl.slab @file 43j-four.jxswaymix like in the tutorial 43jYourVeryOwnSlab…
By the way running Live and jitter stuff on your new MBP( i would like the same in fact) should be ok !!!
But i would consider using the message loadram for each movie and if you have several video try to use a kind of copy paste from VPS4 tutorial from Andrew Benson…
Hubert, I’m so sorry that it took me that long to answer you. I’ve been quite busy.
Thank you, that is really informative. For sure it is something that I need to study more. I started to develop my own custom file for jit.gl.slab, and I hope that soon I will get the result I want – I’m still trying to understand everything by reading the tutorials and using the efficient method of trial and error.
I also began to read the full Andrew Benson tutorial, indeed highly informative. For sure I will use some of its ideas.
Once again, thank you!
Forums > Jitter