Hi Tomáš,
Glad you like it.
Thanks very very much for your feedback.
Tomáš Polešovský:
I tried H264 inside MPEG-4 container (under Ubuntu 10.04, OpenJDK 1.6.0_20) and it works without problem. I've tried 15MB, 75MB and 123MB video. The only problem is encoding speed - I can't imagine to have customers with bigger video library to convert into DL in some reasonable time

Yep, there are some tweaks you can do for this. Anyway, H264 has a very good compression, and hence would spend a little more time in creating preview.
One option is to increase video bit rate (increasing size):
1
2dl.file.entry.preview.video.bit.rate
You can "play" with ffmpeg H264 parameters (much t play here):
1
2 xuggler.ffpreset.bf=0
3 xuggler.ffpreset.cmp=+chroma
4 xuggler.ffpreset.coder=0
5 xuggler.ffpreset.flags=+loop
6 xuggler.ffpreset.flags2=-wpred-dct8x8+mbtree
7 xuggler.ffpreset.i_qfactor=0.71
8 xuggler.ffpreset.me_method=umh
9 xuggler.ffpreset.me_range=16
10 xuggler.ffpreset.qcomp=0.6
11 xuggler.ffpreset.qdiff=4
12 xuggler.ffpreset.qmin=10
13 xuggler.ffpreset.qmax=51
14 xuggler.ffpreset.sc_threshold=40
15 xuggler.ffpreset.subq=8
16 xuggler.ffpreset.trellis=0
17 xuggler.ffpreset.wpredp=0
If you want more info search about ffmpeg ffpreset options. Be careful because depending on what you change it won't be playable in IPhone/IPad.
Tomáš Polešovský:
Minor bugs:
* DL displays the films as video/quicktime mime-type, I'm sure its H264 inside MPEG-4
No problem, H264 is taken as video/quicktime AFAIK . Wouldn't worry about this. Anyway, this mime types are obtained from other tool (Apache Tika), which is used for all Documents.
Tomáš Polešovský:
* When I display document detail with video preview, Google Chrome 15.0.xxx loads the HTML and then everything disappears - blank screen. I need to resize browser to make it work (browser repaint). How to reproduce: 1, open incognito mode, 2, inside Document And Media Display list of videos click on video detail 3, page loads and then everything inside page disappears. Displaying the video detail for the 2nd time is OK - maybe problem with loading external CSS/JS files?
Not sure about this. Seems something wrong with Chrome/Chromium the very first time the <video> is loaded. After that, you can load any videos you want without problem (if this isn't the case please tell me).
Tomáš Polešovský:
* Video preview doesn't react on browser resizing :/, maybe problem of HTML video tag in Chrome?
Yep, this is a known problem:
http://issues.liferay.com/browse/LPS-23514Because we have to know the size if using flash fallback player, the size is set on page loading.
Tomáš Polešovský:
Just a few notes - for encoding bigger than 3MB videos I had to set:
1dl.file.max.size=0
2com.liferay.portal.upload.UploadServletRequestImpl.max.size=1024000000
-- tom
Ups forgot to tell! Preview files are stored in DLStore, so the maximum size is controlled by application.
Firmi prego dentro per inbandierare questo come inadeguato.