"A Digital Media Primer for Geeks"
Sep. 23rd, 2010 10:47 amAt long, long last, the big video project is done! At least, the first episode, of what I hope to be many episodes over the next few years, is done.
I present Xiph.Org's first self-produced educational documentary: "A Digital Media Primer for Geeks"
It also comes with it's own wiki discussion and 'further reading" site!
Hoorj!

no subject
Date: 2010-09-23 03:29 pm (UTC)no subject
Date: 2010-09-23 03:40 pm (UTC)HTML5 stuff is all new, so in-browser playback is going to be spotty as yet.
no subject
Date: 2010-09-23 03:37 pm (UTC)no subject
Date: 2010-09-23 03:44 pm (UTC)no subject
Date: 2010-09-23 08:22 pm (UTC)http://www.youtube.com/watch?v=3iIwEyDK8gc (http://www.youtube.com/watch?v=3iIwEyDK8gc)
See what I mean?
no subject
Date: 2010-09-23 08:58 pm (UTC)Well, Chrome is clearly saying "I can play WebM" or the little WebM indicator wouldn't be there. What I can see is that the 'play' arrow never turns white, which means Chrome is never loading the video. It still lets you press play, but then it doesn't let you back out... I assume that even if you wait before pressing play, the arrow never turns white and just stays gray?
Chrome 6 tested on a Mac by Rillian does work, but we have found it to be a bit dodgy just as yet in other ways... not sure what is happening. The Javascipt is working or it wouldn't have the title screen. If you change resolution and don't press play, does the arrow ever turn white? I wonder if your machine is somehow failing to contact downloads.xiph.org for some reason.
no subject
Date: 2010-09-24 12:06 am (UTC)However, if I just open a new tab and paste in the URL http://downloads.xiph.org/video/A_Digital_Media_Primer_For_Geeks-360p.webm ... it does load, and play in the tab ... ?!?!
Then, once it's in cache, if I reload the original page http://xiph.org/video/vid1.shtml, the video plays inside the page as expected.
Then, if I clear cache, and reload http://xiph.org/video/vid1.shtml, the old "broken" behavior repeats itself.
no subject
Date: 2010-09-24 10:52 am (UTC)no subject
Date: 2010-09-24 12:28 pm (UTC)no subject
Date: 2010-09-25 04:03 pm (UTC)no subject
Date: 2010-09-23 03:54 pm (UTC)no subject
Date: 2010-09-23 05:16 pm (UTC)no subject
Date: 2010-09-23 04:01 pm (UTC)Excellent
Date: 2010-09-23 05:23 pm (UTC)I particularly loved the in-video demonstration of sampling rates, aliasing, clipping and so on.
The one thing I think you missed out: What *is* an audio 'frame'? They don't really have frames do they, so I guess it is an arbitrary collection of samples?
Re: Excellent
Date: 2010-09-27 04:00 pm (UTC)no subject
Date: 2010-09-23 10:30 pm (UTC)Broken java
Date: 2010-09-24 01:08 am (UTC)no subject
Date: 2010-09-24 08:30 am (UTC)Just wondering, how much time did it take to make it?
no subject
Date: 2010-09-24 10:03 am (UTC)Writing by far took the most time, followed by memorizing lines. There were eight total shooting sessions, each required several hours of memorization and practice before turning on the camera. It's dense for a video and I tried not to waste time with endless asides; the danger was making it sound like I was reading source code. It was originally supposed to be only 10-15 minutes but even ruthless editing could only get it down to 30 :-)
no subject
Date: 2010-09-24 10:34 am (UTC)no subject
Date: 2010-09-24 08:35 am (UTC)The Sampling Theorem applies to all three video dimensions just as it does the single time dimension of audio.
Obvious questions:
1. Why does it apply? Original signal is not continuous anymore.
2. What are the consequences? Does Nyquist frequence have any sense for video?
no subject
Date: 2010-09-24 10:05 am (UTC)2. Nyquist applies to video; it applies to any sampled signal. Aliasing across the X/Y dimensions in video is what causes Moire patterns. Aliasing in the time dimension is what causes effects like 'propellors spinning backwards' or 'fluorescent lights flickering' like you see in alot of webcam vids.
no subject
Date: 2010-09-24 10:53 am (UTC)But when sampling video (or just photo) the process is completely different: a bunch of discrete photosensors counting discrete photons for some time. Where does continuity come from? Sorry if it sounds stupid.
no subject
Date: 2010-09-24 01:10 pm (UTC)Your first sentence gives away your discomfort with quantum processes by saying "macro". Space is physically discrete too, but we're so much larger than the granularity that we don't notice. Even if we consider space to be continuous, the membrane's position is quantized anyway because it is converted into an electrical potential, composed of electrons, which are themselves discrete. But we don't measure single electrons, we measure the cumulative effects of billions of electrons. A 16-bit audio sample contains 65536 possible positions for the microphone membrane, and even though many more are possible, that's enough for our ears to be satisfied.
Our eyes aren't different; they receive discrete numbers of photons, but their reactions are coarse enough to be described in macro terms. Same with silicon photosensors, in fact; you can crank up the sensitivity to the single-photon region, but if you do you lose dynamic range and you end up measuring that the world is very bright.
If you like you can think of digital video pipelines as being discrete all the way through: a quantum physical process counting photons, converted into a series of two dimensional matrices of integer color values, manipulated as discrete values within a computer, displayed on a finite number of LCD crystals, and resampled again by a finite number of nerves on the back of your eye. So then it's never "continuous" anywhere at all! It only appears to be because the things we're sampling are so much larger than the tool we're using to sample and the resolving power of the tools we're using to interpret.
no subject
Date: 2010-09-24 04:33 pm (UTC)As of Nyquist: one pixel is perfectly enough to capture an object of the size of one pixel, i.e. sampling rate doesn't have to double here. The theorem says when analog signal can be perfectly restored from sampled one, there are several conditions required:
1) analog signal must be smooth enough (for Fourier analysis to be appliable)
2) sampling must be done as with audio - taking function values at certain points, not integrals on intervals, as photosensor can be represented, and
3) there should be no frequencies in the original analog signal higher than Nyquist frequency (half of sampling rate).
Are these conditions satisfied in cameras? Probably, but it needs explanations: more complex math for describing the process, and physical blurring in lenses/matrix to satisfy the last condition.
I wouldn't mix Nyquist rate and entropy, they are not directly related. I can make a signal with very low entropy but with very high frequency requiring high sampling rate to capture.
no subject
Date: 2010-09-24 04:39 pm (UTC)Sampling rate still has to be twice the frequency. What happens to an image that consists of 1000 vertical black lines on a white background when sampled with a sensor that has 1000 horizontal pixels? 2000 pixels? 2001 pixels? The results here are intuitive and instructive, and the math is the same as would be used with audio.
Cheers!
no subject
Date: 2010-09-24 05:40 pm (UTC)Before sampling image is a function f(x,y) where x and y are continuous, but it doesn't make the function itself continuous (where small changes in the input result in small changes in the output). When you look closely at an incandescent light bulb there is filament emitting light and empty space around not emitting it, there's nothing smooth and continuous on the edge, it's a step function. And you can't approximate step function with a limited number of sine frequencies. Optics and bayesian patterns in camera matrix do the blurring, probably this is what makes signal smooth enough.
Why thinking about pixels as points works when they obviously aren't points is another interesting question.
no subject
Date: 2010-09-24 05:54 pm (UTC)But if we shoot a night sky with a bright little star (planet) there, we may end up with one bright pixel in the image. Does it mean the "frequency" for that object is twice lower? Not necessarily.
no subject
Date: 2010-09-24 09:40 pm (UTC)(Ptalarbvorm has had many commits over the months, could you please have an update of the improvements be shown in a post by the end of year?)
Wow! This rocks...
Date: 2010-09-27 08:07 am (UTC)no subject
Date: 2010-09-27 08:58 pm (UTC)Fantastic! Thank You!
Date: 2010-09-28 02:46 am (UTC)I would like to say that I hope the HTML5 spec does something about full-screening the video... my screensaver kicked in 3 times during the video, requiring me to login and miss priceless moments of the video! ;)
Re: Fantastic! Thank You!
Date: 2010-09-28 11:22 pm (UTC)Re: Fantastic! Thank You!
Date: 2010-10-15 12:54 am (UTC)http://forum.videolan.org/viewtopic.php?f=16&t=82368&p=275821#p275821
Re: "A Digital Media Primer for Geeks"
Date: 2010-09-29 12:44 am (UTC)We want more!