resolume deck file description

Just let it all out, buddy. You're among friends here.
Post Reply
User avatar
gtz
Is taking Resolume on a second date
Posts: 35
Joined: Thu Mar 22, 2007 17:54
Location: berllin

resolume deck file description

Post 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?

User avatar
bart
Team Resolume
Posts: 2223
Joined: Wed Sep 29, 2004 10:01
Location: Resolume HQ

Re: resolume deck file description

Post 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.

User avatar
gtz
Is taking Resolume on a second date
Posts: 35
Joined: Thu Mar 22, 2007 17:54
Location: berllin

Re: resolume deck file description

Post 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?

epiq
Is taking Resolume on a second date
Posts: 20
Joined: Tue Oct 16, 2007 13:33
Location: tagra / veldrain

Re: resolume deck file description

Post by epiq »

can i convert my deck's from resolume 2 to avenue?

edwin
Team Resolume
Posts: 1202
Joined: Thu Oct 07, 2004 10:40

Re: resolume deck file description

Post 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.

User avatar
gtz
Is taking Resolume on a second date
Posts: 35
Joined: Thu Mar 22, 2007 17:54
Location: berllin

Re: resolume deck file description

Post 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";
?>

Post Reply