Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
andy chan
[SOLVED] Xuggler video preview error
March 20, 2012 9:38 PM
Answer

andy chan

Rank: New Member

Posts: 7

Join Date: December 15, 2011

Recent Posts

Hi all,

I have installed Xuggler successfully, but try it in liferay shown those errors:

2012-03-09 16:21:34,574 WARN com.xuggle.xuggler.Configuration - Invalid property on object com.xuggle.xuggler.IStreamCoder@167877256[codec=com.xuggle.xuggler.ICodec@167853992;time base=1/30;frame rate=30/1;pixel type=YUV420P;width=640;height=360;]; name="wpredp"; value="0"
2012-03-09 16:21:38,259 ERROR com.xuggle.xuggler - Error: outputChannels <= 0 (../../../../../../../csrc/com/xuggle/xuggler/AudioResampler.cpp:151)
2012-03-09 16:21:38,271 DEBUG com.xuggle.xuggler - Closing dangling StreamCoder (../../../../../../../csrc/com/xuggle/xuggler/StreamCoder.cpp:96)
2012-03-09 16:21:38,272 DEBUG com.xuggle.xuggler - Closing dangling StreamCoder (../../../../../../../csrc/com/xuggle/xuggler/StreamCoder.cpp:96)
08:21:38,315 ERROR [VideoProcessorImpl:448] com.liferay.portal.kernel.process.ProcessException: java.lang.RuntimeException: Audio resampling is not supported
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:660)
at com.liferay.portlet.documentlibrary.util.VideoProcessorImpl$LiferayVideoProcessCallable.call(VideoProcessorImpl.java:1)
at com.liferay.portal.kernel.process.ProcessExecutor.main(ProcessExecutor.java:128)
Caused by: java.lang.RuntimeException: Audio resampling is not supported
at com.liferay.portlet.documentlibrary.util.LiferayConverter.createIAudioResampler(LiferayConverter.java:145)
at com.liferay.portlet.documentlibrary.util.LiferayConverter.prepareAudio(LiferayConverter.java:609)
at com.liferay.portlet.documentlibrary.util.LiferayVideoConverter.doConvert(LiferayVideoConverter.java:168)
at com.liferay.portlet.documentlibrary.util.LiferayVideoConverter.convert(LiferayVideoConverter.java:78)
at com.liferay.portlet.documentlibrary.util.VideoProcessorImpl$LiferayVideoProcessCallable.call(VideoProcessorImpl.java:657)
... 2 more

I checked extension should be correct and error is still shown. The special thing is whatever type of video (avi, flv, ogv etc)uploaded to Liferay DL, error is same as previous one. It seem can't detect video format. Is it any setting needed in portal-ext.properties(I never touch it except enable xuggle)?

How to solve it?thank you
Attachment

Attachment

Attachments: liferay_error.jpg (253.1k), liferay_media.jpg (64.5k)
Juan Gonzalez
RE: Xuggler video preview error
March 9, 2012 4:15 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2797

Join Date: October 28, 2008

Recent Posts

This video seems to have H264 codec, so please change the file name with ".mp4" extension and post here results.
andy chan
RE: Xuggler video preview error
March 11, 2012 6:49 PM
Answer

andy chan

Rank: New Member

Posts: 7

Join Date: December 15, 2011

Recent Posts

Thank for your help. I checked extension should be correct and error is still shown. The special thing is whatever type of video (mp4, avi, flv, ogv etc)uploaded to Liferay DL, error is same as previous one. It seem can't detect video format.
Attachment

Attachment

Attachments: liferay_error.jpg (168.0k), liferay_media.jpg (47.3k)
Juan Gonzalez
RE: Xuggler video preview error
March 12, 2012 12:25 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2797

Join Date: October 28, 2008

Recent Posts

Did you added environment variables to Tomcat? (setenv)

Can you attach some of those videos so I can test in my environment?
andy chan
RE: Xuggler video preview error
March 12, 2012 2:08 AM
Answer

andy chan

Rank: New Member

Posts: 7

Join Date: December 15, 2011

Recent Posts

what environment variables did you mean? I don't setting anything in tomcat
I am only using default setting in Liferay except enable Xuggler.
I try to attach one for you.

other videos I used are bundled with xuggler source.
https://github.com/xuggle/xuggle-xuggler/tree/master/test/fixtures

Many thanks....emoticon
Attachments: testfile_h264_mp4a_tmcd.mov (11,399.6k)
Juan Gonzalez
RE: Xuggler video preview error
March 12, 2012 3:20 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2797

Join Date: October 28, 2008

Recent Posts

How did you install Xuggler? Seems you did wrong.

Read this to know what environment variables you have to set, and add this variables to Tomcat startup process (setenv.sh file):

http://wiki.xuggle.com/Frequently_Asked_Questions#What.27s_up_with_java.lang.UnsatisfiedLinkError.3F

I'll test the file this evening to see how it goes.
andy chan
RE: Xuggler video preview error
March 20, 2012 12:47 AM
Answer

andy chan

Rank: New Member

Posts: 7

Join Date: December 15, 2011

Recent Posts

Hi, I have uninstalled and re-installed it again. Now it is work prefect. Thank you for help.
Juan Gonzalez
RE: Xuggler video preview error
March 20, 2012 2:28 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2797

Join Date: October 28, 2008

Recent Posts

Glad it worked.

Please can you mark the thread as ?
Thanks