Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Aaron Paxson
Video in 6.1 RC1 not displayed in media gallery
December 23, 2011 8:20 AM
Answer

Aaron Paxson

Rank: Regular Member

Posts: 103

Join Date: July 27, 2010

Recent Posts

It looks like I'm affected by LPS-21213 ( http://issues.liferay.com/browse/LPS-21213 )

When viewing the video, it just shows as a thumbnail. It does show the MIME type, and I can download it, but I don't see a preview and cannot play it.

I've installed and enabled the xuggler, and added a list of mime types to upload in portal-ext.properties.

Is this bug fixed and I'm doing something wrong?

Thanks!
Juan Gonzalez
RE: Video in 6.1 RC1 not displayed in media gallery
December 23, 2011 9:42 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2947

Join Date: October 28, 2008

Recent Posts

Aaron Paxson:
It looks like I'm affected by LPS-21213 ( http://issues.liferay.com/browse/LPS-21213 )

When viewing the video, it just shows as a thumbnail. It does show the MIME type, and I can download it, but I don't see a preview and cannot play it.

I've installed and enabled the xuggler, and added a list of mime types to upload in portal-ext.properties.

Is this bug fixed and I'm doing something wrong?

Thanks!


Hi Aaron,

Any error on logs?

What is the file extension?
Aaron Paxson
RE: Video in 6.1 RC1 not displayed in media gallery
December 23, 2011 12:56 PM
Answer

Aaron Paxson

Rank: Regular Member

Posts: 103

Join Date: July 27, 2010

Recent Posts

Juan Gonzalez P:


Any error on logs?

What is the file extension?



Hi Juan! There isn't any logs generated when I upload or view the video. It's H.264 encoded with .mp4 file extension.

This also happened to me during testing of 6.1 GA4, but waited until RC1 came out, and same happens. Surely, I'm doing something wrong. This is using Jetty with Safari browser.

portal-ext.properties:
1
2dl.file.entry.preview.video.mime.types=mp4,avi,flv,mpg,mpeg,wmv
3dl.file.max.size=0
4com.liferay.portal.upload.UploadServletRequestImpl.max.size=1024000000
5
6base.path=/Users/aaron.paxson/Downloads/liferay-portal-6.1.0-ce-rc1/jetty-7.5.4/webapps/root/WEB-INF/classes

Here is what it looks like:



I didn't install ImageMagick as this is just for testing, but I didn't think IM would help in this case.
Aaron Paxson
RE: Video in 6.1 RC1 not displayed in media gallery
December 23, 2011 1:19 PM
Answer

Aaron Paxson

Rank: Regular Member

Posts: 103

Join Date: July 27, 2010

Recent Posts

I may have found the problem, though, not sure of the resolution. It has an mp4 extension, but when uploading to the Media Gallery, I get the following error (before, I added it to the Documents and Media port let):



Maybe I need to either add a new file type (since the media library shows it as video/quicktime which is not listed), or re-render my vendor under a different encoding?
Aaron Paxson
RE: Video in 6.1 RC1 not displayed in media gallery
December 23, 2011 1:27 PM
Answer

Aaron Paxson

Rank: Regular Member

Posts: 103

Join Date: July 27, 2010

Recent Posts

I added video/quicktime as a registered MIME-type, but still get the same error as above.
Aaron Paxson
RE: Video in 6.1 RC1 not displayed in media gallery
December 23, 2011 2:51 PM
Answer

Aaron Paxson

Rank: Regular Member

Posts: 103

Join Date: July 27, 2010

Recent Posts

After converting to a quicktime .mov file, and fixing my poor typo for the Xuggler libraries, I now get this error when uploading:

 1
 2
 322:48:37,182 ERROR [VideoProcessor:396] com.liferay.portal.kernel.process.ProcessException: com.liferay.portal.kernel.process.ProcessException: java.lang.RuntimeException: Unable to open input URL
 4com.liferay.portal.kernel.process.ProcessException: com.liferay.portal.kernel.process.ProcessException: java.lang.RuntimeException: Unable to open input URL
 5    at com.liferay.portal.kernel.process.ProcessExecutor.execute(ProcessExecutor.java:66)
 6    at com.liferay.portlet.documentlibrary.util.VideoProcessor._generateVideoXuggler(VideoProcessor.java:371)
 7    at com.liferay.portlet.documentlibrary.util.VideoProcessor._generateVideoXuggler(VideoProcessor.java:391)
 8    at com.liferay.portlet.documentlibrary.util.VideoProcessor._generateVideo(VideoProcessor.java:309)
 9    at com.liferay.portlet.documentlibrary.util.VideoProcessor.generateVideo(VideoProcessor.java:67)
10    at com.liferay.portlet.documentlibrary.messaging.VideoProcessorMessageListener.doReceive(VideoProcessorMessageListener.java:34)
11    at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:25)
12    at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:65)
13    at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:101)
14    at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:669)
15    at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:580)
16    at java.lang.Thread.run(Thread.java:680)
17Caused by: com.liferay.portal.kernel.process.ProcessException: java.lang.RuntimeException: Unable to open input URL
18    at com.liferay.portlet.documentlibrary.util.VideoProcessor$LiferayVideoProcessCallable.call(VideoProcessor.java:602)
19    at com.liferay.portlet.documentlibrary.util.VideoProcessor$LiferayVideoProcessCallable.call(VideoProcessor.java:1)
20    at com.liferay.portal.kernel.process.ProcessExecutor.main(ProcessExecutor.java:77)
21Caused by: java.lang.RuntimeException: Unable to open input URL
22    at com.liferay.portlet.documentlibrary.util.LiferayConverter.openContainer(LiferayConverter.java:536)
23    at com.liferay.portlet.documentlibrary.util.LiferayVideoConverter.doConvert(LiferayVideoConverter.java:123)
24    at com.liferay.portlet.documentlibrary.util.LiferayVideoConverter.convert(LiferayVideoConverter.java:78)
25    at com.liferay.portlet.documentlibrary.util.VideoProcessor$LiferayVideoProcessCallable.call(VideoProcessor.java:599)
26    ... 2 more
2722:48:39,263 ERROR [VideoProcessor:238] com.liferay.portal.kernel.process.ProcessException: com.liferay.portal.kernel.process.ProcessException: java.lang.RuntimeException: Unable to open input URL
28com.liferay.portal.kernel.process.ProcessException: com.liferay.portal.kernel.process.ProcessException: java.lang.RuntimeException: Unable to open input URL
29    at com.liferay.portal.kernel.process.ProcessExecutor.execute(ProcessExecutor.java:66)
30    at com.liferay.portlet.documentlibrary.util.VideoProcessor._generateThumbnailXuggler(VideoProcessor.java:234)
31    at com.liferay.portlet.documentlibrary.util.VideoProcessor._generateVideo(VideoProcessor.java:321)
32    at com.liferay.portlet.documentlibrary.util.VideoProcessor.generateVideo(VideoProcessor.java:67)
33    at com.liferay.portlet.documentlibrary.messaging.VideoProcessorMessageListener.doReceive(VideoProcessorMessageListener.java:34)
34    at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:25)
35    at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:65)
36    at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:101)
37    at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:669)
38    at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:580)
39    at java.lang.Thread.run(Thread.java:680)
40Caused by: com.liferay.portal.kernel.process.ProcessException: java.lang.RuntimeException: Unable to open input URL
41    at com.liferay.portlet.documentlibrary.util.VideoProcessor$LiferayVideoThumbnailProcessCallable.call(VideoProcessor.java:657)
42    at com.liferay.portlet.documentlibrary.util.VideoProcessor$LiferayVideoThumbnailProcessCallable.call(VideoProcessor.java:1)
43    at com.liferay.portal.kernel.process.ProcessExecutor.main(ProcessExecutor.java:77)
44Caused by: java.lang.RuntimeException: Unable to open input URL
45    at com.liferay.portlet.documentlibrary.util.LiferayConverter.openContainer(LiferayConverter.java:536)
46    at com.liferay.portlet.documentlibrary.util.LiferayVideoThumbnailConverter.doConvert(LiferayVideoThumbnailConverter.java:63)
47    at com.liferay.portlet.documentlibrary.util.LiferayVideoThumbnailConverter.convert(LiferayVideoThumbnailConverter.java:51)
48    at com.liferay.portlet.documentlibrary.util.VideoProcessor$LiferayVideoThumbnailProcessCallable.call(VideoProcessor.java:654)
49    ... 2 more
5022:48:39,265 ERROR [VideoProcessor:327] com.liferay.portal.kernel.exception.SystemException: com.liferay.portlet.documentlibrary.NoSuchFileException: document_thumbnail/88/159/12703/12704.jpg
51com.liferay.portal.kernel.exception.SystemException: com.liferay.portlet.documentlibrary.NoSuchFileException: document_thumbnail/88/159/12703/12704.jpg
52    at com.liferay.portlet.documentlibrary.util.VideoProcessor._generateThumbnailXuggler(VideoProcessor.java:252)
53    at com.liferay.portlet.documentlibrary.util.VideoProcessor._generateVideo(VideoProcessor.java:321)
54    at com.liferay.portlet.documentlibrary.util.VideoProcessor.generateVideo(VideoProcessor.java:67)
55    at com.liferay.portlet.documentlibrary.messaging.VideoProcessorMessageListener.doReceive(VideoProcessorMessageListener.java:34)
56    at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:25)
57    at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:65)
58    at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:101)
59    at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:669)
60    at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:580)
61    at java.lang.Thread.run(Thread.java:680)
62Caused by: com.liferay.portlet.documentlibrary.NoSuchFileException: document_thumbnail/88/159/12703/12704.jpg
63    at com.liferay.portlet.documentlibrary.store.BaseStore.addFile(BaseStore.java:108)
64    at com.liferay.portlet.documentlibrary.store.StoreProxyImpl.addFile(StoreProxyImpl.java:52)
65    at com.liferay.portlet.documentlibrary.store.SafeFileNameStoreWrapper.addFile(SafeFileNameStoreWrapper.java:70)
66    at com.liferay.portlet.documentlibrary.store.DLStoreImpl.addFile(DLStoreImpl.java:98)
67    at com.liferay.portlet.documentlibrary.store.DLStoreImpl.addFile(DLStoreImpl.java:171)
68    at com.liferay.portlet.documentlibrary.store.DLStoreUtil.addFile(DLStoreUtil.java:186)
69    at com.liferay.portlet.documentlibrary.util.DLPreviewableProcessor.addFileToStore(DLPreviewableProcessor.java:170)
70    at com.liferay.portlet.documentlibrary.util.VideoProcessor._generateThumbnailXuggler(VideoProcessor.java:241)
71    ... 9 more
Juan Gonzalez
RE: Video in 6.1 RC1 not displayed in media gallery
December 23, 2011 3:03 PM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2947

Join Date: October 28, 2008

Recent Posts

Aaron Paxson:
I may have found the problem, though, not sure of the resolution. It has an mp4 extension, but when uploading to the Media Gallery, I get the following error (before, I added it to the Documents and Media port let):



Maybe I need to either add a new file type (since the media library shows it as video/quicktime which is not listed), or re-render my vendor under a different encoding?


First of all, DON'T modify default values for mime types. It should work for your file with default values. In fact, you have entered some invalid mime types (mp4,mpeg etc aren't valid mime types).

Second, upload file ALWAYS with extension. In your case it should have .mp4. Why did you upload file without extension?

Then tell the results.
Aaron Paxson
RE: Video in 6.1 RC1 not displayed in media gallery
December 23, 2011 3:46 PM
Answer

Aaron Paxson

Rank: Regular Member

Posts: 103

Join Date: July 27, 2010

Recent Posts

Juan Gonzalez P:

First of all, DON'T modify default values for mime types. It should work for your file with default values. In fact, you have entered some invalid mime types (mp4,mpeg etc aren't valid mime types).


I didn't modify the default values. I only added them. I understand I used file extensions instead of MIME types (ooops). I removed the extensions, and added the video/quicktime MIME-type via portal-ext.properties

Juan Gonzalez P:

Second, upload file ALWAYS with extension. In your case it should have .mp4. Why did you upload file without extension?


I didn't. The file extension is there. Unless you are referring to the title of the document? I am now working with a quicktime .mov, which is helping me isolate the problem.

After fixing my environment variables (bad typo), I now get "Unable to open input URL" in my logs. See my post above.

Thanks for your help!
Juan Gonzalez
RE: Video in 6.1 RC1 not displayed in media gallery
December 24, 2011 3:55 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2947

Join Date: October 28, 2008

Recent Posts

Title of document will be the file which has to be converted. It's important that extension is set there.

Did you test without changing title? If not, just upload file without changing anything and tell results. Title must have the extension.
Aaron Paxson
RE: Video in 6.1 RC1 not displayed in media gallery
December 24, 2011 8:56 AM
Answer

Aaron Paxson

Rank: Regular Member

Posts: 103

Join Date: July 27, 2010

Recent Posts

Ahhh, so instead of using the filename field, it's using the Title. No, I figured Title was just another metadata field to describe the video, and not the actual filename itself. A small shortcoming, but good enough for initial start. This has been a much needed addition to Liferay, and a great start!

Thanks for being patient with me, Juan! Mucho Gracias! Yes, it seems to be working.
Aaron Paxson
RE: Video in 6.1 RC1 not displayed in media gallery
December 24, 2011 9:04 AM
Answer

Aaron Paxson

Rank: Regular Member

Posts: 103

Join Date: July 27, 2010

Recent Posts

It looks like once the video has been "identified" in Liferay, you can go back and change the Title field to something more "clean". It still works. Is this recommended, or do you foresee problems in the future with this?
Juan Gonzalez
RE: Video in 6.1 RC1 not displayed in media gallery
December 25, 2011 4:15 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2947

Join Date: October 28, 2008

Recent Posts

Aaron Paxson:
Ahhh, so instead of using the filename field, it's using the Title. No, I figured Title was just another metadata field to describe the video, and not the actual filename itself. A small shortcoming, but good enough for initial start. This has been a much needed addition to Liferay, and a great start!

Thanks for being patient with me, Juan! Mucho Gracias! Yes, it seems to be working.


Glad it worked emoticon
Juan Gonzalez
RE: Video in 6.1 RC1 not displayed in media gallery
December 25, 2011 4:19 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2947

Join Date: October 28, 2008

Recent Posts

Aaron Paxson:
It looks like once the video has been "identified" in Liferay, you can go back and change the Title field to something more "clean". It still works. Is this recommended, or do you foresee problems in the future with this?


What do you mean with "clean"? Removing extension? I don't remember testing that, but title of file should be unchanged or if it's changed should mantain the extension, at least with Video files (Xuggler needs extension to identify containers properly).
tutti frutti
RE: Video in 6.1 RC1 not displayed in media gallery
February 9, 2012 1:32 AM
Answer

tutti frutti

Rank: New Member

Posts: 17

Join Date: March 3, 2010

Recent Posts

Hello,

I'am using liferay 6.1 CE GA.
I have added a file with "swf" extension in document and media but I can't preview it.
I install xuggler and activate it. Openoffice conversion and ImageMagick ..
I have added in portal-ext.properties a mime type
dl.file.entry.preview.video.mime.types= ...video/x-flv,application/x-shockwave-flash

So i get an error on the apache tomcat console :

09:57:37,546 ERROR [ffmpeg:75] [swf @ 0x17e863e0] Compressed SWF format not supported
08:57:38,062 ERROR [VideoProcessorImpl:448] com.liferay.portal.kernel.process.ProcessException: java.lang.RuntimeException: Unable to open input URL
com.liferay.portal.kernel.process.ProcessException: java.lang.RuntimeException: Unable to open input URL
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: Unable to open input URL
at com.liferay.portlet.documentlibrary.util.LiferayConverter.openContainer(LiferayConverter.java:535)
at com.liferay.portlet.documentlibrary.util.LiferayVideoConverter.doConvert(LiferayVideoConverter.java:123)
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

Any idea ? Is SWf file "previewable" ?

Thanks a lot.
Juan Gonzalez
RE: Video in 6.1 RC1 not displayed in media gallery
February 9, 2012 8:24 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2947

Join Date: October 28, 2008

Recent Posts

tutti frutti:
Hello,

I'am using liferay 6.1 CE GA.
I have added a file with "swf" extension in document and media but I can't preview it.
I install xuggler and activate it. Openoffice conversion and ImageMagick ..
I have added in portal-ext.properties a mime type
dl.file.entry.preview.video.mime.types= ...video/x-flv,application/x-shockwave-flash

So i get an error on the apache tomcat console :

09:57:37,546 ERROR [ffmpeg:75] [swf @ 0x17e863e0] Compressed SWF format not supported
08:57:38,062 ERROR [VideoProcessorImpl:448] com.liferay.portal.kernel.process.ProcessException: java.lang.RuntimeException: Unable to open input URL
com.liferay.portal.kernel.process.ProcessException: java.lang.RuntimeException: Unable to open input URL
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: Unable to open input URL
at com.liferay.portlet.documentlibrary.util.LiferayConverter.openContainer(LiferayConverter.java:535)
at com.liferay.portlet.documentlibrary.util.LiferayVideoConverter.doConvert(LiferayVideoConverter.java:123)
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

Any idea ? Is SWf file "previewable" ?

Thanks a lot.


swf files aren't mean to be playable, isn't it? I suppose flv files are more suitable for being playable like a video file. Try with flv files instead.
Madhura Raut
RE: Video in 6.1 RC1 not displayed in media gallery
March 5, 2012 10:13 PM
Answer

Madhura Raut

Rank: Junior Member

Posts: 41

Join Date: November 11, 2010

Recent Posts

Aaron Paxson:
Ahhh, so instead of using the filename field, it's using the Title. No, I figured Title was just another metadata field to describe the video, and not the actual filename itself. A small shortcoming, but good enough for initial start. This has been a much needed addition to Liferay, and a great start!

Thanks for being patient with me, Juan! Mucho Gracias! Yes, it seems to be working.



Hi,

I have downloaded the installable for xuggler from http://com.xuggle.s3.amazonaws.com/xuggler/xuggler-3.4.FINAL/xuggle-xuggler.3.4.1012-win32-setup.exe
I am starting my server using the script... Please verify my environment variables:

XUGGLE_HOME: C:\Program Files\Xuggle
Path: C:\Program Files\Xuggle\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Windows Imaging\;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program Files\TortoiseSVN\bin;C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin

I have enabled xuggler from control panel of the portal.

I have following things in my portal-ext.properties:
dl.file.entry.preview.video.container=mp4
dl.file.entry.preview.video.player=alloy
dl.file.entry.preview.video.mime.types=video/avi,video/mp4,video/mpeg,video/ogg,video/quicktime,video/x-flv,video/x-ms-wmv,video/x-msvideo,application/x-shockwave-flash,application/x-shockwave-flash2-preview
Is there ANYTHING ELSE i need to configure? Like the library path or anything?