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

Videos with audio cannot be previewed; exceptions occur during upload

    Details

    • Fix Priority:
      5
    • Sprint:
      023 - Ekans

      Description

      Steps to reproduce:

      1. Enable Xuggler
      2. Upload video with sound

      Expected result:
      No errors appear.

      Actual result:
      Console errors appear.

      Loading jar:file:/C:/Users/liferay/Desktop/liferay-portal-master/tomcat-9.0.17/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
      2019-04-10 22:37:47.817 ERROR [main][xuggler:105] Error: inputChannels > 2; unsupported (../../../../../../../csrc/com/xuggle/xuggler/AudioResampler.cpp:151)
      2019-04-10 14:37:48.213 ERROR [liferay/document_library_video_processor-1][VideoProcessorImpl:568] Unable to process 34191 sample.mp4.
      java.util.concurrent.ExecutionException: com.liferay.petra.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.portlet.documentlibrary.util.VideoProcessorImpl._generateVideoXuggler(VideoProcessorImpl.java:550)
              at com.liferay.portlet.documentlibrary.util.VideoProcessorImpl._generateVideoXuggler(VideoProcessorImpl.java:596)
              at com.liferay.portlet.documentlibrary.util.VideoProcessorImpl._generateVideo(VideoProcessorImpl.java:470)
              at com.liferay.portlet.documentlibrary.util.VideoProcessorImpl.generateVideo(VideoProcessorImpl.java:119)
              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:752)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:664)
              at java.lang.Thread.run(Thread.java:748)
      Caused by: com.liferay.petra.process.ProcessException: java.lang.RuntimeException: Audio resampling is not supported
              at com.liferay.portlet.documentlibrary.util.VideoProcessorImpl$LiferayVideoProcessCallable.call(VideoProcessorImpl.java:726)
              at com.liferay.portlet.documentlibrary.util.VideoProcessorImpl$LiferayVideoProcessCallable.call(VideoProcessorImpl.java:682)
              at com.liferay.petra.process.local.LocalProcessLauncher.main(LocalProcessLauncher.java:135)
      Caused by: java.lang.RuntimeException: Audio resampling is not supported
              at com.liferay.portlet.documentlibrary.util.LiferayConverter.createIAudioResampler(LiferayConverter.java:153)
              at com.liferay.portlet.documentlibrary.util.LiferayConverter.prepareAudio(LiferayConverter.java:735)
              at com.liferay.portlet.documentlibrary.util.LiferayVideoConverter.doConvert(LiferayVideoConverter.java:162)
              at com.liferay.portlet.documentlibrary.util.LiferayVideoConverter.convert(LiferayVideoConverter.java:75)
              at com.liferay.portlet.documentlibrary.util.VideoProcessorImpl$LiferayVideoProcessCallable.call(VideoProcessorImpl.java:723)
              ... 2 more
      Loading jar:file:/C:/Users/liferay/Desktop/liferay-portal-master/tomcat-9.0.17/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
      Apr 10, 2019 10:37:48 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
      INFO: Detected server unknown
      Apr 10, 2019 10:37:48 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
      INFO: Global shared lib directory /C:/Users/liferay/Desktop/liferay-portal-master/tomcat-9.0.17/lib/
      Apr 10, 2019 10:37:48 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
      INFO: Global lib directory /C:/Users/liferay/Desktop/liferay-portal-master/tomcat-9.0.17/lib/ext/
      Apr 10, 2019 10:37:48 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
      INFO: Portal lib directory /C:/Users/liferay/Desktop/liferay-portal-master/tomcat-9.0.17/webapps/ROOT/WEB-INF/lib/
      Apr 10, 2019 10:37:49 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
      INFO: Properties for portal loaded from [jar:file:/C:/Users/liferay/Desktop/liferay-portal-master/tomcat-9.0.17/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties]
      Loading jar:file:/C:/Users/liferay/Desktop/liferay-portal-master/tomcat-9.0.17/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
      2019-04-10 22:37:56.169 ERROR [main][xuggler:105] Error: inputChannels > 2; unsupported (../../../../../../../csrc/com/xuggle/xuggler/AudioResampler.cpp:151)
      2019-04-10 14:37:56.554 ERROR [liferay/document_library_video_processor-1][VideoProcessorImpl:568] Unable to process 34191 sample.mp4.
      java.util.concurrent.ExecutionException: com.liferay.petra.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.portlet.documentlibrary.util.VideoProcessorImpl._generateVideoXuggler(VideoProcessorImpl.java:550)
              at com.liferay.portlet.documentlibrary.util.VideoProcessorImpl._generateVideoXuggler(VideoProcessorImpl.java:596)
              at com.liferay.portlet.documentlibrary.util.VideoProcessorImpl._generateVideo(VideoProcessorImpl.java:470)
              at com.liferay.portlet.documentlibrary.util.VideoProcessorImpl.generateVideo(VideoProcessorImpl.java:119)
              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:752)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:664)
              at java.lang.Thread.run(Thread.java:748)
      Caused by: com.liferay.petra.process.ProcessException: java.lang.RuntimeException: Audio resampling is not supported
              at com.liferay.portlet.documentlibrary.util.VideoProcessorImpl$LiferayVideoProcessCallable.call(VideoProcessorImpl.java:726)
              at com.liferay.portlet.documentlibrary.util.VideoProcessorImpl$LiferayVideoProcessCallable.call(VideoProcessorImpl.java:682)
              at com.liferay.petra.process.local.LocalProcessLauncher.main(LocalProcessLauncher.java:135)
      Caused by: java.lang.RuntimeException: Audio resampling is not supported
              at com.liferay.portlet.documentlibrary.util.LiferayConverter.createIAudioResampler(LiferayConverter.java:153)
              at com.liferay.portlet.documentlibrary.util.LiferayConverter.prepareAudio(LiferayConverter.java:735)
              at com.liferay.portlet.documentlibrary.util.LiferayVideoConverter.doConvert(LiferayVideoConverter.java:162)
              at com.liferay.portlet.documentlibrary.util.LiferayVideoConverter.convert(LiferayVideoConverter.java:75)
              at com.liferay.portlet.documentlibrary.util.VideoProcessorImpl$LiferayVideoProcessCallable.call(VideoProcessorImpl.java:723)
              ... 2 more
      Loading jar:file:/C:/Users/liferay/Desktop/liferay-portal-master/tomcat-9.0.17/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
      Apr 10, 2019 10:37:57 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
      INFO: Detected server unknown
      Apr 10, 2019 10:37:57 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
      INFO: Global shared lib directory /C:/Users/liferay/Desktop/liferay-portal-master/tomcat-9.0.17/lib/
      Apr 10, 2019 10:37:57 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
      INFO: Global lib directory /C:/Users/liferay/Desktop/liferay-portal-master/tomcat-9.0.17/lib/ext/
      Apr 10, 2019 10:37:57 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
      INFO: Portal lib directory /C:/Users/liferay/Desktop/liferay-portal-master/tomcat-9.0.17/webapps/ROOT/WEB-INF/lib/
      Apr 10, 2019 10:37:57 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
      INFO: Properties for portal loaded from [jar:file:/C:/Users/liferay/Desktop/liferay-portal-master/tomcat-9.0.17/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties]
      Loading jar:file:/C:/Users/liferay/Desktop/liferay-portal-master/tomcat-9.0.17/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
      

      Preview cannot be generated for videos with audio.

      However, if a video (like Document_1.mp4) is uploaded, no errors occur and the video can be previewed and played.

      Reproduced on:
      Tomcat 9.0.17 + MySQL 5.7.
      Portal master 5c27f0521d86f24bfa53a540d4f4665961c4187e

        Attachments

        1. audio.PNG
          audio.PNG
          2.59 MB
        2. Document_1.mp3
          4.33 MB
        3. Document_1.mp4
          12.83 MB
        4. sample.mp4
          5.01 MB

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  31 weeks, 6 days ago

                  Packages

                  Version Package
                  Master