Announcement: Our new CyberLink Feedback Forum has arrived! Please transfer to our new forum to provide your feedback or to start a new discussion. The content on this CyberLink Community forum is now read only, but will continue to be available as a user resource. Thanks!
CyberLink Community Forum
where the experts meet
| Advanced Search >
Can I copy PiP settings to multiple images in a sequence?
deldridg [Avatar]
Newbie Joined: Dec 02, 2011 23:41 Messages: 9 Offline
[Post New]
Hello folks,

I have a PNG image sequence which I am overlaying onto a video clip. In it there are a number of frames (> 100) that I wish to add a Chroma Key attribute to in the PiP Designer.

Is there any way to either select/group these images and add the Chroma Key to all, or to modify one in the PiP Designer and copy to the remaining images in one go? To do this individually for any number - over 100 in this case - is going to take more time than it's worth.

It appears that PD can only treat such a sequence as a sequence of individual files which have to be individually handled rather than as a single sequence - ie. edit one, edit all. Is this correct?

I realise that I could Produce the sequence into a single file and use that instead, but then I would lose my transparent background, essential to my project.

I am relatively new to PD but have done a lot of searching, playing, hair pulling etc. with no luck so far (and I am running out of hair!). Any help will be very gratefully received.

Many thanks,
David (Sydney)

This message was edited 5 times. Last update was at Nov 18. 2015 21:19

PD 15, Cubase 9
Dafydd B [Avatar]
Senior Contributor Joined: Aug 26, 2006 08:20 Messages: 11973 Offline
[Post New]
If for example you
1. placed 5 of the sample images into track 1,
2. applied Chroma key to each so the same "tone" is removed.
You would then have a "project to save" - 001.pds
Close PDR14.
Make a duplicate/cvopy of the pds file and rename it 001a.pds
If you then Open the pds in a Text Editor like NotePad you could rename the image files with alternatives - all in the same location as the previous 5.
You will then save the 001a.pds in NotePad.
Open the 001a.pds in PDR14 and you may find the image files have the applied Chroma Key and the image files are different.
The above is pure theory and I haven't tested it - give it a go, should work.
I hope I've written this up ok.

What is being suggested is image file substitution within a pds. Simply changing the file name to another will result in the newly named image file appearing in your project rather than the originals.
Dafydd

This message was edited 1 time. Last update was at Nov 19. 2015 04:49

deldridg [Avatar]
Newbie Joined: Dec 02, 2011 23:41 Messages: 9 Offline
[Post New]
Hi Dafydd,

thank you very much for responding so quickly. I like where you're coming from as I can easily automate this kind of stuff if only I could reverse engineer the .pds file sufficiently.

I did almost as you mentioned, though with two .png images added to the timeline with the Chroma Key set only on the first image. I then spent a little time looking through the resulting .pds file to locate differences that could point to candidates for copying the Chroma attributes to the non-PiP edited images.

From what I can see, the obvious location for the Chroma Key (PiP attribute) is within the <CLIP>....</CLIP> tags as this is where the PiP editing is done in PD (not in images). I then looked through all 96 tags and found the 5 or so that differed between the 2 images. Remember that only the first image has the Chroma Key applied. No other PiP attributes were set.

On the basis that all but one of the differing tags were filename specific or pointed to the image's timeline location, this left only the first tag <CLIP etc... as the potential location for the Chroma Key information.

There are 2 attributes within CLIP that seem obvious for copying over to the other files and these are: PIPPARAMSIZE and PIPPARAM. It is my guess that PIPPARAM contains the encoded values for my desirous Chroma Key value.

Simple stuff??

Not so - when I did this and opened the new resulting .pds in PD it opened OK but didn't load any image files, appearing to be a blank project. Something deeper going on here and without further "inside" knowledge, impossible to reverse engineer from what I can see. The PIPPARAM attribute is heavily coded and waaay beyond my time availability!

So this is probably a dead end I'm afraid but it was certainly worth a go.

Cheers and thanks very much indeed. At least it's been entertaining!

David (or Dafydd had I been born in lovely Cardiff!)

PS. Is it wrong to thoroughly enjoy this nerdy stuff?? wink PD 15, Cubase 9
deldridg [Avatar]
Newbie Joined: Dec 02, 2011 23:41 Messages: 9 Offline
[Post New]
Hi again Dafydd,

as a PS - it is my guess that your initial theory would likely work though it's the replication of the attribute from a single image instance to many others that I'm after, rather than the substitution of attributes from X images to X images.

This is why I did a differences analysis to attempt to find the replicable elements that I could automate.

However I'm naturally drawn to testing the theory you propose but I can't see how that approach will solve my problem. Am I properly understanding your idea properly? Any thoughts?

Cheers and a big thanks again,
David (Sydney, Aust) PD 15, Cubase 9
ynotfish
Senior Contributor Location: N.S.W. Australia Joined: May 08, 2009 02:06 Messages: 9977 Offline
[Post New]
Hi David -

As you've determined, Chroma Key is one of the attributes in PiP Designer that cannot be copied & pasted. Basic object settings & motion can be applied to a sequence easily.

I gather you're trying to avoid opening all the .PNGs in graphics software and applying transparency to each. Yes? I've done that myself on a few occasions. More tedious than time consuming.

Another possibility is to produce the sequence, then apply chroma key to the video file, which is then overlaid on the other video. That would give you the transparency you're after.

Cheers - Tony
Visit PDtoots. PowerDirector Tutorials, tips, free resources & more. Subscribe!
Full linked Tutorial Catalog
PDtoots happily supports fellow PowerDirector users!
Dafydd B [Avatar]
Senior Contributor Joined: Aug 26, 2006 08:20 Messages: 11973 Offline
[Post New]
Hi David,

Just tried the theory option - as you wrote, comes up with a blank project.
The video route is a better option, run with that and see if it matches what you're after.
PS. Enjoying the geeky stuff is what keeps one's mind activeeeeeee.
Dafydd (pronounced Da-Vith... with a smile or a white rock.)

Cardiff - yep quite ok as a city, plenty of open parks with lakes. I visit the city quite often.

This message was edited 2 times. Last update was at Nov 19. 2015 13:36

deldridg [Avatar]
Newbie Joined: Dec 02, 2011 23:41 Messages: 9 Offline
[Post New]
Quote: Hi David -

As you've determined, Chroma Key is one of the attributes in PiP Designer that cannot be copied & pasted. Basic object settings & motion can be applied to a sequence easily.

I gather you're trying to avoid opening all the .PNGs in graphics software and applying transparency to each. Yes? I've done that myself on a few occasions. More tedious than time consuming.

Another possibility is to produce the sequence, then apply chroma key to the video file, which is then overlaid on the other video. That would give you the transparency you're after.

Cheers - Tony


Hello and thank you Tony,

yes, you are correct about my avoidance of repetitive tasks. I get enough of them maintaining our property, making school lunches, driving kids around etc.! (Doing anything for/with my kids is of course a joy actually, but I can do without manually editing hundreds if not thousands of .png files in my too-busy life!!).

Producing a video and adding a single Chroma Key? Elegant, quick and effective? Now now Tony, where's the fun in that? I don't get to reverse engineer someone else's XML and then write code until all hours while my family are asleep (and I should be)!!

Actually, I should have mentioned that I have tested this route. These are early days but I'm looking to integrate some VideoScribe 'doodling' into my business and so far the video pathway has only produced fairly average results with a thin/grainy result. I haven't been able to achieve bold lines - largely, I'm guessing due to compression in the video produced by VS.

Perhaps there is a line thickness/background colour combination that works best?? Just thought of that - will have a play tonight (when the missus/kids are asleep - and I should be!!).

Many thanks!

Cheers,

David E (Sydney)

This message was edited 1 time. Last update was at Nov 19. 2015 14:49

PD 15, Cubase 9
deldridg [Avatar]
Newbie Joined: Dec 02, 2011 23:41 Messages: 9 Offline
[Post New]
Quote: Hi David,

Just tried the theory option - as you wrote, comes up with a blank project.
The video route is a better option, run with that and see if it matches what you're after.
PS. Enjoying the geeky stuff is what keeps one's mind activeeeeeee.
Dafydd (pronounced Da-Vith... with a smile or a white rock.)

Cardiff - yep quite ok as a city, plenty of open parks with lakes. I visit the city quite often.


Hi again Dafydd,

Just mentioned above that I have had a cursory play with the video option but so far with disappointing results. I will try some line thickness/key colour combinations and will report back to this forum if it's helpful to anyone else trying to achieve the same thing.

As you say, it's far more stimulating to be messing about under the 'hood'! Shame the dev team obscured the PiP code - so many possibilities would emerge! Now I wonder how I could reverse engineer PIPPARAM... wink

Some yrs ago I drove from London to Criccieth and back down towards Cardiff and back to London (in a red Mini of course!). Gorgeous countryside and fabulous driving roads. Can't wait to go back - you, like us here in Australia are truly blessed!

Cheers,

David

This message was edited 2 times. Last update was at Nov 19. 2015 15:01

PD 15, Cubase 9
Powered by JForum 2.1.8 © JForum Team