On 2011-11-24 00:52:28 +0000, Gordon Freeman said:
> "J" <(E-Mail Removed)> wrote:
>>
>> I'm not too clued up on video issues, but I always thought AVI meant
>> '640 x 480'. The thing is, my 'old' Sony P93 digicam produces a video
>> which is 640 x 480 and a 3 minute video would be app., 60MB in size.
>> But...'I have a newer Canon SX130 IS which produces 720 HD video and
>> also '640 x 480' video, but the later takes up 300MB for a 3 minute
>> video. Why does the Canon's 640 x 480 video take up SIX times the room
>> of the Sony 640 x 480 video?
>
> AVI is a container format, it can be any resolution and the video can be
> compressed with one of many codecs. Another common picture size is
> 320x240.
>
> The most likely reason for the Canon using 300MB for a 3 minute video is
> that it will be using MJPEG compression, which is effectively a stream
> of jpegs (25 or 30 a second) wrapped in an AVI container. This is very
> easy for a stills camera to produce without special hardware being
> required, but is also very inefficient from a compression POV. The Sony
> was probably using an MPEG4 format in which only the frame-to-frame
> differences are stored which would certainly achieve the 5-fold space
> saving you mention.
>
> There is an advantage to the inefficient MJPEG compression method
> though: every frame is a keyframe (whole picture) so it is easy to edit
> the video without re-encoding, whereas with MPEG4 there is typcially
> only a keyframe once every 10 seconds or so which means edits either
> have to be cruder or else you have to recompress some or all of the
> video which loses quality and takes many times longer. So if space is
> no object, MJPEG is more flexible, but the penalty is that you only
> get about 10 minutes of video per gigabyte, whereas MPEG4 may give you
> an hour or more per gigabyte (depending on what quality and resolution
> you use).
That makes a lot of sense. However, the Canon spec for the SX130 IS
says the file type for movies is MOV [H.264 + Linear PCM (stereo)],
which is MPEG-4 AVC.
For images with a lot of movement, H.264 gives little compression
advantage of M-JPEG. H.264 reduces file size when inter-frame changes
are small.
|