Load video using Midi instrument. pdp2gem/pix texture Help!!!
Hi,
I am very new to PD, a complete beginner and I am completely stuck!And i need help fast!!!please!
I am trying to load a video when you press a certain key on a midi keyboard. I am using pdp2gem and pix_texture to do this. The problem I am having is that I need the videos to re-start from the beginning every time you hit the key. At the moment they don't, they only play once through and when u hit the key a second time they don't play again. How do I fix this? I do not want to loop the videos. I want them to stop when u leave go of the key and start when u press it.
I have 12 videos I need to play. How do I make the video disappear when u are not pressing the key. At the moment when i leave go of the key the other 11 videos appear. I want no video to appear when nothing is being pressed. I was using [spigot] to do this and it did not work.
Help please!!
Semi-Automatic Video Remixer
I feel like this patch is almost done and I'm looking for some feedback now. It's my first real attempt at making something in PD so I'm sure I took some very roundabout ways to do things. I should also say that this forum was one of my main resources for help, though I never asked anything myself the past discussions were often very useful. Thanks.
The basic idea with this patch started with a joke about how there is a video remix for just about everything on youtube. I suggested that someone should just make an automated program to make the remixes. Then I realized I could probably make something like that in PD. This is what I made.
Some basic instructions: (I should write a readme for it)
1. Load a video or two using the appropriate buttons. (.mov)
2. Load a song, or not. A song that is beat oriented looks best in my opinion. (.wav) Wait for it to load in the array below.
3. Select whether you are using one or two videos.
4. Adjust the volume sliders for the videos and music.
5. Press 'Play' to start the music and video. (X11 opens here for me for the video, I imagine this will vary on another OS)
6. Tap the spacebar in time to the music to set the tempo for the remixer. The tempo is visible at the top left.
7. Once you have the tempo set as you want it press 'Remix'.
8. The video will remix itself to the music.
Adjust the VideoFX Sensitivity to have the flashes occur more frequently. Adjust Reverse Playback to set how often the video plays backwards.
Also you can press 'Record A/V' to save the playback to a .mov file that should appear in the HD directory.
The remix is all random which limits how effective the cuts can be but it is also very satisfying when something ends up syncing perfectly in an unexpected way. I had considered making the user be able to scrub the video to choose points in the timeline to jump to specifically to allow more control over the cuts but I decided it wasn't what I was going for. I may do another version that enables this but I'm leaving it out of this one.
That's about all there is to it. I'm interested in any kind of feedback. One thing I haven't been able to figure out is how to stop the remixer function along with everything else. It's not a big deal but if anyone has ideas please let me know.
Thank you.
http://www.pdpatchrepo.info/hurleur/Remixer_Dual_Video_Extra.pd
Networked Audio problems
here this was on the pd list, i thought i'd post it to condense information
Somebody was just asking me about options for streaming audio and video in Pd-extended. I wouldn't mind help with the answer. Here's what I have gathered so far.
Audio:
streamin~ and streamout~ --- but the help patches don't seem to work in Linux. Seems to work ok in windows.
netsend~ and netreceive~ --- not provided in pd-extended and seemed a bit flaky when I tried them before.
mp3streamin~ and mp3streamout~ --- help patch missing in pd-extended but seem to work ok outside of Windows.
mp3cast~ and friends: seems to work ok if you have a shoutcast server...
Video:
I couldn't find anything in Gem to stream video. Did I miss it? I was wondering if using pix_pix2sig~, streaming as audio, then pix_sig2pix~ might work.
in pdp/pidip there's pdp_i and pdp_o. I didn't find help patches for these in pd_extended
also in pdp/pidip there's some other's pdp_mp4live~ etc. I suspect the ffserver-based ones don't work in pd-extended. Not sure on the others.
For either audio or video maybe there's a way to send to vlc through the stdin or stdout, then let vlc do the streaming?
Troubles with video in GEM-Vista
Hi everyone! It´s me again with more newb troubles
After resolve my troubles with GEM, all was fine. The video and pix_texture work fine.
Recently, I started to take video with my cell phone and save it in .3gp file format. When I tried to convert the files, I have to download the necesary códecs to convert in .avi and work it with GEM. And the result was:
(see the image attached)
I try many ways to fix this (saving the file with many parameters), but it´s dificult because I unknown the real trouble here.
This image was saved without compresion (uncompressed). When I work with an AVI compressed file, the video appears completly, but "dissolves it" when I try to manipulate the frame.
The same video was played in Windows Media Player and work fine.
Can you help me? I work with Windows Vista and Pd 0.41-4 (non extended); GEM 0.90. The video from the picture above was AVI uncompressed.
Thank you for your time. Nice day
Audio Help
you need to be more specific with some details here...
are you trying to play the video included in the video files? if so i'm not sure what approach you'd take, it seems all the [pix_***] objects related to video are just that, only video... maybe rip the audio off the video and use the same lookup control on the array with the audio that you use to read through the video, so they stay in sync...
you can never include too much info when looking for help, your post is a bit vague to respond to in detail... i don't know pdp much at all but maybe there's an alternative there (and i know there's objects like pix2pdp and vice versa if i'm not mistaken, so you can mix pdp and GEM where you'd need to)...
also always make sure to patch to a DAC~, check the test audio and midi screen in your menu, etc... on multiple occasions i'd pull my hair out wondering why something wouldn't work only to realize the instance of Pd i was running didn't have 'control' of the soundcard and therefore wouldn't output any audio.
Seeking Sompatible Video Capture Card - Composite Video on Linux
hi all.
for a project we're working on at the moment, we've been looking for a usb video composite capture card that would work with pd/GEM on Linux OS. we bought a Pinnacle PCTV USB2 that works fine on Linux with the usbvision driver, but somehow crashes GEM. we've posted the error log on the pd and gem-dev list, with no luck until now. so here it is again in case someone around here can help :
we want to use [pix_video] with a USB video capture device (Pinnacle PCTV USB2). But when we send [1( to [pix_video], pd says :
GEM: Start rendering
pix_videoNEW: starting transfer
cap: name Pinnacle PCTV USB 2 type 3 channels 3 maxw 720 maxh 576 minw 48 minh 32
picture: brightness 32896 depth 21571 palette 8
channel 0 name Television type 1 flags 1
channel 1 name Composite1 type 2 flags 0
channel 2 name S-Video type 2 flags 0
setting to channel 1
closing video
pix_texture: not using client storage
and all that we can see is a white rectangle.
XTerm is saying : VIDIOCGMBUF: Invalid argument
When we stop rendering with [0(, pd crashes.
we're on Ubuntu 6.06 LTS with Pd 0.39-2 / GEM 0.90. The USB video capture device is a Pinnacle PCTV Analog USB2
we had no trouble for getting the box to work with the video4linux drivers.
It works well with TVTime, but not with GEM. It seems everything goes well (using pix_videoNEW, listing the video channels, choosing the good one), and then this message "closing video". Why ?
we've tried the patch on Windows XP and have no problems with [pix_video] with this video capture device.
Any ideas ?
Saving video files in the pd patch?
as promised...a little tutorial on setting default values and restoring saved values in a pd patch. i hope this helps.
the patch is at [url=http://www.geocities.com/z_fron/saving.zip
]http://www.geocities.com/z_fron/saving.zip
sorry it's a zip file, but geocities won't let you upload .pd files for some reason.
pidaid, let me know if you need help applying this to your videos. i am not quite clear on what you mean you want to save the file names or save the actual video in the patch. saving filenames and having them loaded automatically when you start your patch shouldn't be a problem, but there is no way to save the video in the patch file (.pd files just contain text.) although....(this is pretty farfetched), you could save an image or video with in a patch if there were a way to convert the image or video into an array. but then you'd have to convert it back to a video and it would really be a waste of time and by no means useful or necessary or benificial in anyway that i can see.
cheers,
hilbert~