[Xerte-dev] Re: Video playback quality in html5 LOs.

Ron Mitchell ronm at mitchellmedia.co.uk
Thu May 15 11:57:03 BST 2014


and surely the first point of call anyway is where possible to upload to a
streaming solution and embed from there.

I know that's not always possible and that there are page types which
currently only work with directly uploaded video's or direct link's to .mp4
but still I see to many examples where authors are using the easy option for
them by uploading direct rather than the best option for end users
especially on slower connections etc.

-----Original Message-----
From: xerte-dev-bounces at lists.nottingham.ac.uk
[mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 15 May 2014 11:25
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Video playback quality in html5 LOs.

When we went through all this, the most important thing was that the user
only had to upload one file: I think that's important, so would look for the
automagical solution.

Any automagical solution would need to be licensed appropriately for
redistribution.

I do wonder if the quality thing is down to the quality of the video
uploaded (silk purse and sows ear?).


-----Original Message-----
From: xerte-dev-bounces at lists.nottingham.ac.uk
[mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of David Goodwin
Sent: 15 May 2014 11:21
To: For Xerte technical developers
Subject: [Xerte-dev] Video playback quality in html5 LOs.

Hi,

We've been asked to improve the quality/behaviour of video playback within
html5 LOs.


I assume :

We shouldn't think about including a flash fallback player (given they're
using a html5 template).



Therefore :

We should make sure there's a webm and mp4 format video available for 
the video playback.

and

We should re-encode the mp4 video to h264 basic profile to ensure it 
plays on mobile devices.




Does the data.xml/preview.xml file have an XSD to validate against - and 
specify which attributes/tags are legal?


Possible solutions are :



1. We could embed additional stuff in the xml files -

<?xml version="1.0"?>
<learningObject language="en-GB" name="Learning Object Title" 
navigation="Linear" textSize="12" displayMode="default">
.....
   <textVideo linkID="PG1400145368211" name="video test" align="Left" 
url="path/to/file" tip="Enter a Tooltipx" reset="true"
url_webm="path/to/file.webm" url_ogg="path/to/ogg"

transcriptTabTxt="Transcript" transcriptTabTip="Transcript" 
transcriptTabWidth="90"><![CDATA[asdasdasd asdasd asda sdas vide ov ideo 
video]]></textVideo>

....

(note the url_webm, url_ogg attributes).


Cons - presumably would get lost on re-edit - we'd need to have a 
post-save filter in XOT to add it into the xml files all the time.


Cons - attributes may not be legal/allowable.

Pros - we could add those attributes in, only if the underlying file 
exists - i.e. it's been transcoded in the background.




2. We could alter the html5 playback JavaScript to cause it to check for 
the existence of whatever the textVideo url attribute is pointing to 
plus a set of extensions which would be used to indicate that the file 
has been transcoded.

e.g. <textVideo url="foo" ... />

JS would check for :

foo.webm
foo.mp4
foo.ogg

And if it finds any of them, it'll use them. (http head request - to 
check for existence).

Pros : no need to touch data.xml/preview.xml, url attribute always 
points to what the user uploaded.

Pros : a simple cron job (perhaps) could rummage through USER-FILES 
looking for video files which haven't been transcoded. If the cron job 
is never run then the original file will always be used, if the cron job 
has run then hopefully there are some better files to use.


Cons : "magical"



Any other ideas/thoughts?

I don't suppose it's really feasible to just tell the template author 
they should upload the correct encoding - when they're unlikely to be 
aware of the nuances of video encoding, or the tools available for it?



thanks,

David.

-- 
Pale Purple Ltd

PHP Web application development and support

http://www.palepurple.co.uk
@PalePurpleLtd
07792 380669 / 0845 0046746

_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev

_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
This message and any attachment are intended solely for the addressee and
may contain confidential information. If you have received this message in
error, please send it back to me, and immediately delete it.   Please do not
use, copy or disclose the information contained in this message or in any
attachment.  Any views or opinions expressed by the author of this email do
not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system,
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.







More information about the Xerte-dev mailing list