<commit_before><?php
 
	/* ===========================
	 * KDLTranscoderQTPTools
	 */
class KDLTranscoderQTPTools extends KDLOperatorBase {
    public function __construct($id, $name=null, $sourceBlacklist=null, $targetBlacklist=null) {
    	parent::__construct($id,$name,$sourceBlacklist,$targetBlacklist);
    	if(is_null($targetBlacklist)){
			$this->_targetBlacklist = 
				array(
					KDLConstants::ContainerIndex=>array(KDLContainerTarget::WMV, KDLContainerTarget::ISMV),
					KDLConstants::VideoIndex=>array("wvc1", KDLVideoTarget::WMV2,KDLVideoTarget::WMV3,KDLVideoTarget::FLV,KDLVideoTarget::VP6));		
    	}
    }

    public function GenerateCommandLine(KDLFlavor $design, KDLFlavor $target, $extra=null)
	{
/*
pcastaction encode --input=/Users/macuser/Downloads/APCN.pr_the_dark_knight_now_showing_DM.mov --output=/web/content/tmp/apcn.h264_hint_server.mp4 --encoder=h264_hint_server --basedir=~/Downloads/tmp
pcastaction encode --input=__input__ --output=__outPut__ --encoder=desktop --basedir=~/web/content/tmp

 */
/*
~/Downloads/qt_tools/pieces/bin/qt_export icod.mov --video=avc1,,100  --replacefile -1 --datarate=2000 aaa500.mp5
 */
 // ~/Downloads/qt_tools/pieces/bin/qt_export --video=avc1,,100 --audio=mp4a APCN.pr_the_dark_knight_now_showing_DM.mov aaa227icod.mp5  --replacefile -1
//		return "qqqqqwwwww"; //$design->ToString();
	$cmdStr = null;
// rem ffmpeg -i <infilename> -vcodec flv   -r 25 -b 500k  -ar 22050 -ac 2 -acodec libmp3lame -f flv -t 60 -y <outfilename>
$vcodecParams = "fl";
$format = "fl";
$acodec = "libmp3lam";

		$cmdStr = " ".KDLCmdlinePlaceholders::InFileName;

		if($target->_video){
			$vid = $target->_video;
			switch($vid->_id){
				case KDLVideoTarget::H263:
					$vcodecParams = "h263";
					break; 
				case KDLVideoTarget::H264:
				case KDLVideoTarget::H264B:
				case KDLVideoTarget::H264M:
				case KDLVideoTarget::H264H:
					$vcodecParams = "avc1";
					break; 				
				case KDLVideoTarget::MPEG4:
					$vcodecParams = "mp4v";
					break;
				default:
					$vcodecParams="";
					break;
			}
			
			$cmdStr .= " --video=".$vcodecParams;

			$cmdStr .= ",";<commit_msg>remove 'extra' param from GenerateCommandLine, ctor fix<commit_after><?php
 
	/* ===========================
	 * KDLTranscoderQTPTools
	 */
class KDLTranscoderQTPTools extends KDLOperatorBase {
    public function __construct($id, $name=null, $sourceBlacklist=null, $targetBlacklist=null) {
    	if(is_null($targetBlacklist)){
			parent::__construct($id,$name,$sourceBlacklist, 
				array(
					KDLConstants::ContainerIndex=>array(KDLContainerTarget::WMV, KDLContainerTarget::ISMV),
					KDLConstants::VideoIndex=>array("wvc1", KDLVideoTarget::WMV2,KDLVideoTarget::WMV3,KDLVideoTarget::FLV,KDLVideoTarget::VP6)));
    	}
    	else
    		parent::__construct($id,$name,$sourceBlacklist,$targetBlacklist);
    }

    public function GenerateCommandLine(KDLFlavor $design, KDLFlavor $target)
	{
/*
pcastaction encode --input=/Users/macuser/Downloads/APCN.pr_the_dark_knight_now_showing_DM.mov --output=/web/content/tmp/apcn.h264_hint_server.mp4 --encoder=h264_hint_server --basedir=~/Downloads/tmp
pcastaction encode --input=__input__ --output=__outPut__ --encoder=desktop --basedir=~/web/content/tmp

 */
/*
~/Downloads/qt_tools/pieces/bin/qt_export icod.mov --video=avc1,,100  --replacefile -1 --datarate=2000 aaa500.mp5
 */
 // ~/Downloads/qt_tools/pieces/bin/qt_export --video=avc1,,100 --audio=mp4a APCN.pr_the_dark_knight_now_showing_DM.mov aaa227icod.mp5  --replacefile -1
//		return "qqqqqwwwww"; //$design->ToString();
	$cmdStr = null;
	$extra=$this->_extra;
// rem ffmpeg -i <infilename> -vcodec flv   -r 25 -b 500k  -ar 22050 -ac 2 -acodec libmp3lame -f flv -t 60 -y <outfilename>
$vcodecParams = "fl";
$format = "fl";
$acodec = "libmp3lam";

		$cmdStr = " ".KDLCmdlinePlaceholders::InFileName;

		if($target->_video){
			$vid = $target->_video;
			switch($vid->_id){
				case KDLVideoTarget::H263:
					$vcodecParams = "h263";
					break; 
				case KDLVideoTarget::H264:
				case KDLVideoTarget::H264B:
				case KDLVideoTarget::H264M:
				case KDLVideoTarget::H264H:
					$vcodecParams = "avc1";
					break; 				
				case KDLVideoTarget::MPEG4:
					$vcodecParams = "mp4v";
					break;
				default:
					$vcodecParams="";
					break;
			}
			
			$cmdStr .= " --video=".$vcodecParams;

			$cmdStr .= ",";
{'fraction_non_alphanumeric': 0.16228676809589673, 'fraction_numerical': 0.03227293683725219, 'mean_word_length': 4.16547619047619, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6811935', 'n_tokens_mistral': 1872, 'n_tokens_neox': 1577, 'n_words': 245}