Page 1 of 1

resolume deck file description

Posted: Tue Sep 23, 2008 17:24
by gtz
i'm thinking about writing a little tool to export my resolume decks as directory structures with video files. is there any info on the .dck file format?

Re: resolume deck file description

Posted: Wed Sep 24, 2008 09:19
by bart
The Resolume 2 .dck is binary and not easy to parse. Resolume 3 will have xml based composition files with decks and it is very easy to parse.

Re: resolume deck file description

Posted: Wed Sep 24, 2008 16:02
by gtz
yeah, i figured that part about .dck being binary out myself. would you mind sharing any info you might have on the format?

Re: resolume deck file description

Posted: Wed Sep 02, 2009 19:18
by epiq
can i convert my deck's from resolume 2 to avenue?

Re: resolume deck file description

Posted: Fri Sep 04, 2009 08:28
by edwin
We can't give you any details about the .dck format, that's not because we don't want to but because it's way too complex to be of any use. We've been working on an experimental deck converter to see if we convert .dck files to the new .avc format.

Re: resolume deck file description

Posted: Fri Nov 20, 2009 05:01
by gtz
i just cobbled together a smal script that takesa deck file name and a target directory as parameters and copies all clips referenced in the deck to the output directory.

i.e.

Code: Select all

php resolume_deck_backup.php whatever.dck /path/to/target/dir
will create the folder

Code: Select all

/path/tp/target/dir/whatever
and copy all the clips referenced in whatever.dck to the created folder.

i thought this might come in handy for backup purposes. save the following as resolume_deck_backup.php

Code: Select all

<?php
	$deck= $_SERVER["argv"][1];
	$output_dir= $_SERVER["argv"][2];
	
	$pathinfo= pathinfo($deck);
	$output_dir= realpath($output_dir)."/".$pathinfo["filename"];

	echo "\n\nreading deck file: ".$deck;
	echo "\ncopy clips to: ".$output_dir;
	
	if(is_file($deck)){
		$content= file_get_contents($deck);
		
		$pattern= "/FileName..(.+)\x05/";
		$matches= array();
		preg_match_all($pattern, $content, $matches);
		
		$clips= $matches[1];
		echo "\nclips found: ".count($clips);
		
		if(count($clips>0)){
			if(!is_dir($output_dir)){
				echo "\ncreating dir: ".$output_dir;
				mkdir($output_dir);	
			}
			foreach($clips as $clip){
				if(is_file($clip)){
					$target_clip= $output_dir."/".basename($clip);
					echo "\ncopying: ".$clip." -> ".$target_clip." ...";
					copy($clip, $target_clip);
				} else {
					echo "\nerror: clip not found ".$clip;
				}
			}
			
		}
	} else {
		echo "\n\nerror: deck file not found";
	}
	
	echo "\n\n";
?>