WebM attachments now embedded using HTML5 video tags!

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
thelinx
The Strongest
Posts: 857
Joined: Fri Sep 26, 2008 3:56 pm
Location: Sweden

WebM attachments now embedded using HTML5 video tags!

Post by thelinx »

So you have this gameplay video you want to show off, but you can't be bothered uploading it to youtube?
Fret no more!

Just upload it as an attachment (the rule of 10 MB still applies) and it'll be embedded in all of it's glory!

Here's an example:
always.webm
(3.36 MiB) Downloaded 1280 times
Enjoy!
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: WebM attachments now embedded using HTML5 video tags!

Post by Robin »

Golly, how festive!
Help us help you: attach a .love.
User avatar
Boolsheet
Inner party member
Posts: 780
Joined: Wed Dec 29, 2010 4:57 am
Location: Switzerland

Re: WebM attachments now embedded using HTML5 video tags!

Post by Boolsheet »

Weeee!
love.webm
Game Slave nogame screen
(3.58 MiB) Downloaded 1254 times
Excellent work.
Shallow indentations.
User avatar
Thursdaybloom
Citizen
Posts: 81
Joined: Mon Feb 15, 2010 3:43 am
Location: Australia

Re: WebM attachments now embedded using HTML5 video tags!

Post by Thursdaybloom »

I'm met with a video-sized black box with a grey X in the middle. Underneath is the name of the embedded file which links to a download of a *.webm file. I obviously fail to meet the dress code and am not allowed into your club.
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Milwaukee, WI
Contact:

Re: WebM attachments now embedded using HTML5 video tags!

Post by TechnoCat »

What is a good way to do a screencap on Windows encoded as WebM?
User avatar
thelinx
The Strongest
Posts: 857
Joined: Fri Sep 26, 2008 3:56 pm
Location: Sweden

Re: WebM attachments now embedded using HTML5 video tags!

Post by thelinx »

Thursdaybloom wrote:I'm met with a video-sized black box with a grey X in the middle. Underneath is the name of the embedded file which links to a download of a *.webm file. I obviously fail to meet the dress code and am not allowed into your club.
Wait for Firefox 4.
TechnoCat wrote:What is a good way to do a screencap on Windows encoded as WebM?
Record a video with any screencaster, use ffmpeg to re-encode it to WebM.
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Milwaukee, WI
Contact:

Re: WebM attachments now embedded using HTML5 video tags!

Post by TechnoCat »

thelinx wrote:Wait for Firefox 4.
Be impatient.
User avatar
nevon
Commander of the Circuloids
Posts: 938
Joined: Thu Feb 14, 2008 8:25 pm
Location: Stockholm, Sweden
Contact:

Re: WebM attachments now embedded using HTML5 video tags!

Post by nevon »

thelinx wrote:
TechnoCat wrote:What is a good way to do a screencap on Windows encoded as WebM?
Record a video with any screencaster, use ffmpeg to re-encode it to WebM.
Or just record it with ffmpeg directly. No re-encoding necessary.
User avatar
Boolsheet
Inner party member
Posts: 780
Joined: Wed Dec 29, 2010 4:57 am
Location: Switzerland

Re: WebM attachments now embedded using HTML5 video tags!

Post by Boolsheet »

TechnoCat wrote:What is a good way to do a screencap on Windows encoded as WebM?
Hm, always depends what you need and want.
Like thelinx said, you probably want to encode it after you captured it. There are not many applications that give you the option to use your own codec and VP8 editing sounds like it could be painful.

Here's what I have experience with:

There's FRAPS which captures stuff that uses Direct3D/OpenGL. Because the recording is lossless(*) it requires a fast CPU and hard disk for higher resolutions. Since Aero uses Direct3D it can capture the whole desktop. Never used this feature myself, I'm a "classic" guy.
(* It switches to a different colorspace with HD resolutions for performance reasons. It's possible to force RGB though.)


There's also VirtualDub. It has a neat screen capture feature in its "capture AVI" mode. Unlike FRAPS you have to configure everything yourself and learn what all the little options do. Like "Disk I/O" in the capture menu, where the default setting for the buffers is too small for lossless recordings. And because it uses the old audio interface it can't record the audio, unless your driver provides a loopback (stereo mix, what u hear, ...) that can be selected.
You can choose any of the installed VfW codecs on your system that support RGBA.
I can recommend the Ut Video Codec Suite (latest version / readme). It's lossless, fully multithreaded, and the compression is ok. Problem is, FFmpeg can't read it. You have to use avisynth or convert it to something like Huffyuv (or use that codec in the first place, if it's fast enough).

Didn't use anything else long enough to recommend it.



I encoded only a few WebM videos with the reference encoder that only accepts raw input. It's available on the Google Code WebM download site.

You can get a Windows FFmpeg build here. Sadly, those autobuilds were stopped because he's on vacation and is apparently annoyed with the troll driven development of FFmpeg.

If you're unfamiliar with FFmpeg be warned: It might give you serious head scratching. It's a collection of audio and video encoder/decoders, format muxers/demuxers and some other stuff. Most are included in the actual source code of the project, some are added with libraries. Simple conversion are easy to do, but it's hard to fine tune stuff. Not all options of the encoders are exposed or documented (at least in the standalone exectuable). Maybe someone else has more experience with it.

The following line encodes the input video with VP8 and Vorbis at bitrates of 1 Mbit for video and 128 Kbits for audio:

Code: Select all

ffmpeg.exe -i input.avi -vcodec libvpx -acodec libvorbis -b 1000k -ab 128k output.webm
Should we move to another thread if there are more questions?
Shallow indentations.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 4 guests