video: Difference between revisions

From IndieWeb
(How subheads, How to POSSE, move Barnaby's "videos" to proto since no way to tell they're videos not photos, noted who uses u-video or not)
(→‎Indieweb Support: IndieWeb Examples vs support, separate services to their own section, add Tantek with today's video post example)
Line 43: Line 43:
__TOC__
__TOC__


== Indieweb Support ==
== ==
The following indie web sites have video posts.
The following indie web sites have video posts.


=== Aaron Parecki ===
=== Aaron Parecki ===
[[User:Aaronparecki.com|Aaron Parecki]] uses [[p3k]] to post recorded video with sound since 2014-09-10, e.g.:
uses [[p3k]] to post recorded video with sound since 2014-09-10, e.g.:
* http://aaronparecki.com/notes/2015/07/21/4/travel-pdx
* http://aaronparecki.com/notes/2015/07/21/4/travel-pdx
** markup uses: <code>&lt;video&gt;</code> tag, but '''no <code>u-video</code>''' markup.
** markup uses: <code>&lt;video&gt;</code> tag, but '''no <code>u-video</code>''' markup.
Line 67: Line 66:


=== Ben Werdmuller ===
=== Ben Werdmuller ===
[[User:Werd.io|Ben Werdmuller]] uses [[Idno]] to post recorded video, as well as video recorded at the point of upload using a phone, since 2013-08-16. (Previously he'd been uploading to [[YouTube]].) e.g.:
uses [[Idno]] to post recorded video, as well as video recorded at the point of upload using a phone, since 2013-08-16. (Previously he'd been uploading to [[YouTube]].) e.g.:
* <nowiki>http://werd.io/view/520ed6b7bed7de4914317083</nowiki>
* <nowiki>http://werd.io/view/520ed6b7bed7de4914317083</nowiki>
** 2015-12-12 link appears to be 404 - content may have been removed.
** 2015-12-12 link appears to be 404 - content may have been removed.
Line 77: Line 76:
{{benthatmustbeme}} uses [[Postly]] to post video since 2015-01-09.  
{{benthatmustbeme}} uses [[Postly]] to post video since 2015-01-09.  
* https://ben.thatmustbe.me/video/2015/1/9/9/
* https://ben.thatmustbe.me/video/2015/1/9/9/


However, the "video" mf2 property is on the <video> tag not on the <source> tag, parsers have a problem with this
video
<video> tag <>, a


=== Pestagram ===
=== Pestagram ===
[[pestagram]] translates [[instagram]] video posts into indieweb video posts since 2015-08-18, e.g.
[[pestagram]] translates [[instagram]] video posts into indieweb video posts since 2015-08-18, e.g.
Line 90: Line 94:
** markup uses: <code>&lt;video&gt;</code> tag and '''<code>u-video</code>'''!
** markup uses: <code>&lt;video&gt;</code> tag and '''<code>u-video</code>'''!


=== Proto video ===
== Proto video ==
Examples resembling but not quite video posts.
Examples resembling but not quite video posts.
==== Barnaby Walters ====
=== Barnaby Walters ===
[[User:Waterpigs.co.uk|Barnaby Walters]] uses [[Taproot]] to post very short silent looping videos in the form of animated GIFs on his site since 2012-12-18, e.g.:
[[User:Waterpigs.co.uk|Barnaby Walters]] uses [[Taproot]] to post very short silent looping videos in the form of animated GIFs on his site since 2012-12-18, e.g.:
* http://waterpigs.co.uk/notes/707/
* http://waterpigs.co.uk/notes/707/

Revision as of 02:34, 13 December 2015

🎥


video is a type of post supported by a few silos. There are few indieweb sites that support video posts themselves — most still embed video from other sites.

See also:

Why

Video posts are quite popular on general silos like Facebook, media silos Flickr & Instagram, and obviously video-specific silos such as Vimeo, Vine, & YouTube.

Post (even short) videos on your own site instead for all the usual reasons.

How

How to markup

Use an h-entry as always, and then an HTML5 <video> element with class name u-video and src attribute of the URL of the audio file, e.g.

<video class="u-video" src="http://ben.example.com/camcorder.webm" controls="controls">
alternate text content - like a transcript
</video>

Alternatively

<video controls="controls">
<source class="u-video" src="http://ben.example.com/camcorder.webm" >
<source class="u-video" src="http://ben.example.com/camcorder.mp4" >
alternate text content - like a transcript
</video>

How to POSSE

To POSSE video, you may want to consider the following destinations:

IndieWeb Examples

The following indie web sites have video posts.

Aaron Parecki

Aaron Parecki uses p3k to post recorded video with sound since 2014-09-10, e.g.:

Previously, video support was limited to autolinking mp4 files and animated GIFs since 2013-04-25, e.g.:

The video files themselves appear to have one-off named (undated) permalinks at the same domain, and are only shown/visible/posted within the context of short notes posts.

Shane Becker

Shane Becker uses Homesteading to manually PESOS video posts from Vine and YouTube to http://veganstraightedge.com/videos as of 2013-07-07 (though older posts were ported over then), e.g. newest post appears to be from 2013-05-31:

The video files themselves use datestamped indieweb subdomain URLs of the form:

  • assets.veganstraightedge.com/videos/YYYY/M(M)/D(D)/file-name.mp4

Ben Werdmuller

Ben Werdmüller uses Idno to post recorded video, as well as video recorded at the point of upload using a phone, since 2013-08-16. (Previously he'd been uploading to YouTube.) e.g.:

  • http://werd.io/view/520ed6b7bed7de4914317083
    • 2015-12-12 link appears to be 404 - content may have been removed.
  • NEED ANOTHER video post permalink for werd.io!

Each video has a link to the file itself, in case it cannot be played in an embedded state in the browser.

Ben Roberts

Ben Roberts uses Postly to post video since 2015-01-09.

  • https://ben.thatmustbe.me/video/2015/1/9/9/
    • markup uses: <video> tag with u-video, but no direct src attribute, instead the video source is on a nested <source> element, and thus parsers will see an empty u-video property.

Tantek

Tantek Çelik uses Falcon to post video since 2015-12-12.

Services Examples

Pestagram

pestagram translates instagram video posts into indieweb video posts since 2015-08-18, e.g.

Unmung

unmung turns video podcast feeds into h-feed with video posts, e.g.:

  • TWiG
    • markup uses: <video> tag and u-video!

Proto video examples

Examples resembling but not quite video posts.

Barnaby Walters

Barnaby Walters uses Taproot to post very short silent looping videos in the form of animated GIFs on his site since 2012-12-18, e.g.:

The video files themselves in general appear to have one-off named (undated) permalinks at the same domain, and are only shown/visible/posted within the context of short notes posts.

There is no explicit markup to indicate a video post, or that the img gifs are animated.

Brainstorming

A simplest-case Indieweb video system might work like the following:

  • Provide a file upload form, where the file input might have an accept="video/*;capture=camcorder" attribute (the capture=camcorder attribute allows the device's camera to be used, where one exists)
  • Videos can then be uploaded via both desktop & mobile browsers
  • The uploaded file is stored in a location that can be made accessible to site visitors
  • HTML5 video tags are used to display the video on the page.

The size implications of video files created by modern devices (see below) may mean that some video files cannot be uploaded; this is particularly true from mobile connections, or where the user's web server configuration cannot be altered (the default is often very low). It's possible to detect the size of files to be uploaded using Javascript, and perhaps warn the user about files that might be too large.

Animated images / GIFs

Some animated image files may be considered to have movie-like properties. These can be uploaded like standard images.

Silo Support

The following silos support video posts (with limits)

Reference

Video formats and compatibility

Video formats have two components: the codec, which is how the media content is encoded (typically separately for both video & audio), and the wrapper, which can be thought of as a file envelope that the video sits in. By far the most common video format is h.264 MP4 (video encoded using the h.264 codec and saved in an MP4 envelope file). This is also referred to as AVC, or MPEG-4 Part 10.

Recording devices

Typically, devices save at a vastly higher bitrate than is strictly necessary, in order to make their cameras seem like they take footage at the best possible quality. This has a number of adverse effects when it comes to actually using that footage: the files are often too big to send, and you can't simply upload a video file as-is and expect users to be able to stream it. A 5 minute iPhone video can easily clock in at 1gb in size. (The iPhone will then tell you you've got to wait for wifi to upload it.)

Most consumer devices record h.264 MP4 video; however, a vast array of incompatible video codecs and envelope formats exists, particularly when professional video equipment is taken into consideration. .3gp video is commonly created by older devices.

Web support

To make matters worse, supported video formats vary by browser. While many browsers support h.264 MP4, this is patent encumbered. As a result, some use the WebM envelope format with VP8 video and Vorbis audio streams. Firefox now delegates to the operating system for MP4 support, but there's no guarantee that this exists.

Web video often doesn't truly stream: it's simply downloaded progressively to the browser, which can begin playing it before the download is complete. Real streaming servers are available, which can adapt the bitrate of the stream to match the recipient's bandwidth.

To truly support HTML5 web video, platforms should think about:

  • Supporting both WebM and h.264/MP4
  • Transcode videos to a smaller bitrate for use with HTTP progressive downloads on the web (or consider a real media streaming server)

However, uploading a video file from your device and serving it from your web server is often sufficient.

If you choose to compress the file further, it's worth considering whether to transcode manually, using one of the many available applications across all platforms, or to integrate an open source encoder like FFMPEG or Handbrake on the server so as to generate friendly streaming versions once your video has been uploaded.

If you are accepting videos from third parties, you may wish to consider the legal implications. YouTube, for example, always archives the exact file that was uploaded, even though it serves a transcoded version to visitors. That way it can prove that it was not the originator of any copyright violations.

Ben Werdmuller works on latakoo, a service that provides apps to compress the video before upload (making for faster uploads from, eg, mobile devices and shared Internet), but it should be noted that this is a paid service that does not explicitly provide Indieweb support. (It does, however, have an API.)

There is certainly scope for an indie video app that records video, modifies it in the app, and uploads it to the location of the user's choice (or even makes it available for the user to download and re-upload).

QA/FAQ

  • Are there any non proprietary ways to do realtime video on the web?

See Also