<?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 Can't convert to MP4 in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/can-t-convert-to-mp4/m-p/327073#M14074</link>
    <description>&lt;P&gt;I'm testing out Nuxeo 5.8 on a Ubuntu VM box, and all is well except conversion to MP4 (WebM works fine).&lt;/P&gt;
&lt;P&gt;As soon as it tries to convert to MP4, it dies with "Transcoding Failed".&lt;/P&gt;
&lt;P&gt;Here's what I get in the server log:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;2014-06-16 15:06:16,099 ERROR [Nuxeo-Work-videoConversion-1] [org.nuxeo.ecm.core.work.AbstractWork] Exception during work: VideoConversionWork(ccfeb4ac-2a29-4f99-86e6-1aa4c22f53fd, , Progress(?%, ?/0), Transcoding)
org.nuxeo.ecm.core.api.ClientRuntimeException: org.nuxeo.ecm.core.convert.api.ConversionException: Error while converting via CommandLineService
	at org.nuxeo.ecm.platform.video.service.VideoServiceImpl.convert(VideoServiceImpl.java:163)
	at org.nuxeo.ecm.platform.video.service.VideoConversionWork.work(VideoConversionWork.java:100)
	at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:65)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:744)
Caused by: org.nuxeo.ecm.core.convert.api.ConversionException: Error while converting via CommandLineService
	at org.nuxeo.ecm.platform.convert.plugins.CommandLineBasedConverter.execOnBlob(CommandLineBasedConverter.java:178)
	at org.nuxeo.ecm.platform.convert.plugins.CommandLineBasedConverter.convert(CommandLineBasedConverter.java:94)
	at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convert(ConversionServiceImpl.java:168)
	at org.nuxeo.ecm.platform.video.service.VideoServiceImpl.convert(VideoServiceImpl.java:157)
	... 5 more
Caused by: org.nuxeo.ecm.platform.commandline.executor.api.CommandException: Error code 1 return by command: /bin/sh -c ffmpeg -i "/var/lib/nuxeo/server/tmp/cmdLineBasedConverter8282258184716835511.mp4" -s "854"x"480" -acodec libfaac -vcodec libx264 -v 0 "/var/lib/nuxeo/server/tmp/convertToMP4_217e5c1c-b2ac-4a95-ae32-42b691ab9f96/videoConversion729483108240418596.mp4"
Unknown encoder 'libfaac'
	at org.nuxeo.ecm.platform.commandline.executor.api.ExecResult.&amp;lt;init&amp;gt;(ExecResult.java:61)
	at org.nuxeo.ecm.platform.commandline.executor.service.executors.ShellExecutor.exec(ShellExecutor.java:98)
	at org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent.execCommand(CommandLineExecutorComponent.java:160)
	at org.nuxeo.ecm.platform.convert.plugins.CommandLineBasedConverter.execOnBlob(CommandLineBasedConverter.java:168)
	... 8 more
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I went as far as compiling FFMPEG from source, thinking that might be the issue.&lt;/P&gt;
&lt;P&gt;After trying for a few days, I'm finally come here for help. I'm also a new to linux, so I'm probably doing something wrong?&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jun 2014 20:48:47 GMT</pubDate>
    <dc:creator>stangn99_</dc:creator>
    <dc:date>2014-06-16T20:48:47Z</dc:date>
    <item>
      <title>Can't convert to MP4</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/can-t-convert-to-mp4/m-p/327073#M14074</link>
      <description>&lt;P&gt;I'm testing out Nuxeo 5.8 on a Ubuntu VM box, and all is well except conversion to MP4 (WebM works fine).&lt;/P&gt;
&lt;P&gt;As soon as it tries to convert to MP4, it dies with "Transcoding Failed".&lt;/P&gt;
&lt;P&gt;Here's what I get in the server log:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;2014-06-16 15:06:16,099 ERROR [Nuxeo-Work-videoConversion-1] [org.nuxeo.ecm.core.work.AbstractWork] Exception during work: VideoConversionWork(ccfeb4ac-2a29-4f99-86e6-1aa4c22f53fd, , Progress(?%, ?/0), Transcoding)
org.nuxeo.ecm.core.api.ClientRuntimeException: org.nuxeo.ecm.core.convert.api.ConversionException: Error while converting via CommandLineService
	at org.nuxeo.ecm.platform.video.service.VideoServiceImpl.convert(VideoServiceImpl.java:163)
	at org.nuxeo.ecm.platform.video.service.VideoConversionWork.work(VideoConversionWork.java:100)
	at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:65)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:744)
Caused by: org.nuxeo.ecm.core.convert.api.ConversionException: Error while converting via CommandLineService
	at org.nuxeo.ecm.platform.convert.plugins.CommandLineBasedConverter.execOnBlob(CommandLineBasedConverter.java:178)
	at org.nuxeo.ecm.platform.convert.plugins.CommandLineBasedConverter.convert(CommandLineBasedConverter.java:94)
	at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convert(ConversionServiceImpl.java:168)
	at org.nuxeo.ecm.platform.video.service.VideoServiceImpl.convert(VideoServiceImpl.java:157)
	... 5 more
Caused by: org.nuxeo.ecm.platform.commandline.executor.api.CommandException: Error code 1 return by command: /bin/sh -c ffmpeg -i "/var/lib/nuxeo/server/tmp/cmdLineBasedConverter8282258184716835511.mp4" -s "854"x"480" -acodec libfaac -vcodec libx264 -v 0 "/var/lib/nuxeo/server/tmp/convertToMP4_217e5c1c-b2ac-4a95-ae32-42b691ab9f96/videoConversion729483108240418596.mp4"
Unknown encoder 'libfaac'
	at org.nuxeo.ecm.platform.commandline.executor.api.ExecResult.&amp;lt;init&amp;gt;(ExecResult.java:61)
	at org.nuxeo.ecm.platform.commandline.executor.service.executors.ShellExecutor.exec(ShellExecutor.java:98)
	at org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent.execCommand(CommandLineExecutorComponent.java:160)
	at org.nuxeo.ecm.platform.convert.plugins.CommandLineBasedConverter.execOnBlob(CommandLineBasedConverter.java:168)
	... 8 more
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I went as far as compiling FFMPEG from source, thinking that might be the issue.&lt;/P&gt;
&lt;P&gt;After trying for a few days, I'm finally come here for help. I'm also a new to linux, so I'm probably doing something wrong?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2014 20:48:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/can-t-convert-to-mp4/m-p/327073#M14074</guid>
      <dc:creator>stangn99_</dc:creator>
      <dc:date>2014-06-16T20:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can't convert to MP4</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/can-t-convert-to-mp4/m-p/327074#M14075</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Unknown encoder 'libfaac'&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Ubuntu does not supply FFmpeg with libfaac support. So you must compile FFmpeg from sources with &lt;CODE&gt;--enable-libfaac&lt;/CODE&gt; option.&lt;/P&gt;
&lt;P&gt;You can give a try to a custom script we've written:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;cd /tmp
git clone &lt;A href="https://github.com/nuxeo/ffmpeg-nuxeo" target="test_blank"&gt;https://github.com/nuxeo/ffmpeg-nuxeo&lt;/A&gt;
cd ffmpeg-nuxeo
sudo ./build-all.sh true
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;That script basically follows the instructions from &lt;A href="http://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu"&gt;the FFmpeg Compilation Guide for Ubuntu&lt;/A&gt; adding a few options like "&lt;CODE&gt;--enable-libfaac&lt;/CODE&gt;" and "&lt;CODE&gt;--enable-nonfree&lt;/CODE&gt;".&lt;/P&gt;
&lt;P&gt;I'm updating the related Nuxeo documentation (&lt;A href="http://doc.nuxeo.com/x/zgJc"&gt;ADMINDOC/Installing+and+setting+up+related+software&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2014 18:51:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/can-t-convert-to-mp4/m-p/327074#M14075</guid>
      <dc:creator>Julien_Carsique</dc:creator>
      <dc:date>2014-06-17T18:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can't convert to MP4</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/can-t-convert-to-mp4/m-p/327075#M14076</link>
      <description>&lt;P&gt;It worked! This time i added --enable-libfaac and now Nuxeo is converting to  mp4 without issues.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2014 22:00:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/can-t-convert-to-mp4/m-p/327075#M14076</guid>
      <dc:creator>stangn99_</dc:creator>
      <dc:date>2014-06-17T22:00:51Z</dc:date>
    </item>
  </channel>
</rss>

