Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-73550

Videos with more than 2 audio channels could not be processed when using Xuggler

    Details

      Description

      Steps to reproduce:

      1. Enable Xuggler
      2. Add attached video
      3. try to watch it in DM

      Expected:Video could be reproduced

      Current: An error is thrown in js console (and in server logs)

      Errors:

      JS:

      • On preview:

       

      Failed to load resource: the server responded with a status of 416
      

      Server logs:

      • On upload (I guess this is during the preview generation):
      java.util.concurrent.ExecutionException: com.liferay.portal.kernel.process.ProcessException: java.lang.RuntimeException: Audio resampling is not supported
      at java.util.concurrent.FutureTask.report(FutureTask.java:122)
      at java.util.concurrent.FutureTask.get(FutureTask.java:192)
      at com.liferay.portal.kernel.concurrent.NoticeableFutureConverter.get(NoticeableFutureConverter.java:66)
      at com.liferay.portlet.documentlibrary.util.VideoProcessorImpl._generateVideoXuggler(VideoProcessorImpl.java:548)
      at com.liferay.portlet.documentlibrary.util.VideoProcessorImpl._generateVideoXuggler(VideoProcessorImpl.java:582)
      at com.liferay.portlet.documentlibrary.util.VideoProcessorImpl._generateVideo(VideoProcessorImpl.java:471)
      at com.liferay.portlet.documentlibrary.util.VideoProcessorImpl.generateVideo(VideoProcessorImpl.java:118)
      at com.liferay.document.library.kernel.util.VideoProcessorUtil.generateVideo(VideoProcessorUtil.java:36)
      at com.liferay.portlet.documentlibrary.messaging.VideoProcessorMessageListener.generate(VideoProcessorMessageListener.java:32)
      at com.liferay.portlet.documentlibrary.messaging.BaseProcessorMessageListener.doReceive(BaseProcessorMessageListener.java:36)
      at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
      at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
      at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:58)
      at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756)
      at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667)
      at java.lang.Thread.run(Thread.java:748)
      Caused by: com.liferay.portal.kernel.process.ProcessException: java.lang.RuntimeException: Audio resampling is not supported
      at com.liferay.portlet.documentlibrary.util.VideoProcessorImpl$LiferayVideoProcessCallable.call(VideoProcessorImpl.java:683)
      at com.liferay.portlet.documentlibrary.util.VideoProcessorImpl$LiferayVideoProcessCallable.call(VideoProcessorImpl.java:639)
      at com.liferay.portal.kernel.process.local.LocalProcessLauncher.main(LocalProcessLauncher.java:122)
      Caused by: java.lang.RuntimeException: Audio resampling is not supported
      at com.liferay.portlet.documentlibrary.util.LiferayConverter.createIAudioResampler(LiferayConverter.java:151)
      at com.liferay.portlet.documentlibrary.util.LiferayConverter.prepareAudio(LiferayConverter.java:730)
      at com.liferay.portlet.documentlibrary.util.LiferayVideoConverter.doConvert(LiferayVideoConverter.java:161)
      at com.liferay.portlet.documentlibrary.util.LiferayVideoConverter.convert(LiferayVideoConverter.java:74)
      at com.liferay.portlet.documentlibrary.util.VideoProcessorImpl$LiferayVideoProcessCallable.call(VideoProcessorImpl.java:680)
      ... 2 more
      • On preview:
      08:03:40,677 ERROR [http-nio-8080-exec-5][ServletResponseUtil:227] Unable to get ranges
      java.io.IOException: Range start 0 is greater than end -1
       at com.liferay.portal.kernel.servlet.ServletResponseUtil.getRanges(ServletResponseUtil.java:116)
       at com.liferay.portal.kernel.servlet.ServletResponseUtil.sendFileWithRangeHeader(ServletResponseUtil.java:224)
       at com.liferay.portal.webserver.WebServerServlet.sendFile(WebServerServlet.java:1164)
       at com.liferay.portal.webserver.WebServerServlet.service(WebServerServlet.java:296)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
       at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:119)
       at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:142)
       at com.liferay.portal.servlet.filters.uploadservletrequest.UploadServletRequestFilter.processFilter(UploadServletRequestFilter.java:93)
       at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
       at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:142)
       at com.liferay.portal.servlet.filters.jsoncontenttype.JSONContentTypeFilter.processFilter(JSONContentTypeFilter.java:42)
       at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
       at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:142)
       at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:261)
       at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
       at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:142)
       at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:88)
       at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
       at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:142)
       at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:326)
       at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
       at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
       at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
       at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
       at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)
       at com.liferay.portal.servlet.filters.urlrewrite.UrlRewriteFilter.processFilter(UrlRewriteFilter.java:65)
       at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:168)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:168)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:99)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
       at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
       at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
       at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
       at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
       at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
       at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
       at java.lang.Thread.run(Thread.java:748)

        Attachments

        1. error.png
          error.png
          33 kB
        2. errorlog.txt
          4 kB
        3. Fixed.png
          Fixed.png
          41 kB
        4. reproduced.png
          reproduced.png
          173 kB
        5. SampleVideo_preview0.mp4
          2.01 MB
        6. xuggler.gif
          xuggler.gif
          8.22 MB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 51 weeks, 6 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP41
                  7.0.6 CE GA7
                  7.0.0 DXP SP8
                  7.0.X
                  7.1.0 M1
                  7.1.X
                  Master