<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic No register commands for conversion in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/no-register-commands-for-conversion/m-p/323644#M10645</link>
    <description>&lt;P&gt;when i use this code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;    CommandLineExecutorComponent commandLineExecutorComponent = new CommandLineExecutorComponent();
	for (String command : commandLineExecutorComponent.getRegistredCommands()) {
		System.out.println(command);
	}
	
	for (String command : commandLineExecutorComponent.getAvailableCommands()) {
		System.out.println(command);
	}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;it doesnt print anything. i cant proceed because when i use ffmpeg its says&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;Exception in thread "main" org.nuxeo.ecm.platform.commandline.executor.api.CommandNotAvailable: ffmpeg is not a registered command. null
at org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent.execCommand(CommandLineExecutorComponent.java:155)
at tv.migo.nuxeo.IntermidiateTranscoding.run(IntermidiateTranscoding.java:69)
at tv.migo.nuxeo.IntermidiateTranscoding.main(IntermidiateTranscoding.java:78)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;code here:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;@OperationMethod
public BlobHolder run(BlobHolder blobHolder) throws ClientException, CommandNotAvailable {

	System.out.println(blobHolder.getFilePath());
	System.out.println(blobHolder.getBlob().getFilename());
	System.out.println(blobHolder.getBlob().getLength());
	
	/*
	ConversionServiceImpl conversionServiceImpl = new ConversionServiceImpl();
	BlobHolder holder = conversionServiceImpl.convertToMimeType(".mp4", blobHolder, null);
	*/
	
	CommandLineExecutorComponent commandLineExecutorComponent = new CommandLineExecutorComponent();
	for (String command : commandLineExecutorComponent.getRegistredCommands()) {
		System.out.println(command);
	}
	
	for (String command : commandLineExecutorComponent.getAvailableCommands()) {
		System.out.println(command);
	}
	CmdParameters parameters = new CmdParameters();
	
	parameters.addNamedParameter("-i", blobHolder.getFilePath());
	parameters.addNamedParameter("-vcodec", "dnxhd");
	parameters.addNamedParameter("-b", "115M");
	
	BlobHolder holder = (BlobHolder) commandLineExecutorComponent.execCommand("ffmpeg", parameters);
	
	return holder;
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 18 Mar 2014 09:54:47 GMT</pubDate>
    <dc:creator>William_Cooper</dc:creator>
    <dc:date>2014-03-18T09:54:47Z</dc:date>
    <item>
      <title>No register commands for conversion</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/no-register-commands-for-conversion/m-p/323644#M10645</link>
      <description>&lt;P&gt;when i use this code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;    CommandLineExecutorComponent commandLineExecutorComponent = new CommandLineExecutorComponent();
	for (String command : commandLineExecutorComponent.getRegistredCommands()) {
		System.out.println(command);
	}
	
	for (String command : commandLineExecutorComponent.getAvailableCommands()) {
		System.out.println(command);
	}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;it doesnt print anything. i cant proceed because when i use ffmpeg its says&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;Exception in thread "main" org.nuxeo.ecm.platform.commandline.executor.api.CommandNotAvailable: ffmpeg is not a registered command. null
at org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent.execCommand(CommandLineExecutorComponent.java:155)
at tv.migo.nuxeo.IntermidiateTranscoding.run(IntermidiateTranscoding.java:69)
at tv.migo.nuxeo.IntermidiateTranscoding.main(IntermidiateTranscoding.java:78)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;code here:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;@OperationMethod
public BlobHolder run(BlobHolder blobHolder) throws ClientException, CommandNotAvailable {

	System.out.println(blobHolder.getFilePath());
	System.out.println(blobHolder.getBlob().getFilename());
	System.out.println(blobHolder.getBlob().getLength());
	
	/*
	ConversionServiceImpl conversionServiceImpl = new ConversionServiceImpl();
	BlobHolder holder = conversionServiceImpl.convertToMimeType(".mp4", blobHolder, null);
	*/
	
	CommandLineExecutorComponent commandLineExecutorComponent = new CommandLineExecutorComponent();
	for (String command : commandLineExecutorComponent.getRegistredCommands()) {
		System.out.println(command);
	}
	
	for (String command : commandLineExecutorComponent.getAvailableCommands()) {
		System.out.println(command);
	}
	CmdParameters parameters = new CmdParameters();
	
	parameters.addNamedParameter("-i", blobHolder.getFilePath());
	parameters.addNamedParameter("-vcodec", "dnxhd");
	parameters.addNamedParameter("-b", "115M");
	
	BlobHolder holder = (BlobHolder) commandLineExecutorComponent.execCommand("ffmpeg", parameters);
	
	return holder;
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Mar 2014 09:54:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/no-register-commands-for-conversion/m-p/323644#M10645</guid>
      <dc:creator>William_Cooper</dc:creator>
      <dc:date>2014-03-18T09:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: No register commands for conversion</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/no-register-commands-for-conversion/m-p/323645#M10646</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2014 11:57:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/no-register-commands-for-conversion/m-p/323645#M10646</guid>
      <dc:creator>Vladimir_Pasqui</dc:creator>
      <dc:date>2014-03-18T11:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: No register commands for conversion</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/no-register-commands-for-conversion/m-p/323646#M10647</link>
      <description>&lt;P&gt;yes.ffmpeg is found on my own pc and in our nuxeo server. i've tried it.the problem is that NO COMMANDS are available.0.even echo doesn't appear&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2014 13:39:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/no-register-commands-for-conversion/m-p/323646#M10647</guid>
      <dc:creator>William_Cooper</dc:creator>
      <dc:date>2014-03-18T13:39:20Z</dc:date>
    </item>
  </channel>
</rss>

