Re: combine two existing large files

From: LEE Sau Dan (danlee_at_informatik.uni-freiburg.de)
Date: 10/04/04


Date: 04 Oct 2004 23:09:31 +0200


>>>>> "Gary" == Gary Hu <garyhu@avis.idv.tw> writes:

>> In what way do you "combine those two files"? Concatenate one
>> to the end of the other or what?

    Gary> Yes, that's my hope.

I'm hope that's not. In that way, your video and audio streams will
be on very different parts of the disk. The playback may be not
smooth, because the disk head has to seek to here and there and here
and there for every small fragment of concurrent video/audio data.
Even if it is fast enough (e.g. on harddisk rather than on CDROM),
it'll not be a good idea for the health of your harddisk.

Normally, the video and audio streams are interleaved in the final
video+audio format, so that playback is possible by scanning the file
sequentially (with suitable buffer sizes to store the video/audio
fragments to be played shortly). I can't see how modifying the
sector/block tables of the filesystem would gain you that much
efficiency here. Moreover, such an approach would require the atomic
unit of the "shuffling" be in disk blocks, not bytes. Is that really
what you (not really you, but the ones consuming your resulting files)
could tolerate?

-- 
Lee Sau Dan                     +Z05biGVm-                          ~{@nJX6X~}
E-mail: danlee@informatik.uni-freiburg.de
Home page: http://www.informatik.uni-freiburg.de/~danlee


Relevant Pages

  • Record my webcam
    ... I'm trying to record the video and audio streams from my webcam/microphone ... to a file on the disk. ...
    (microsoft.public.dotnet.framework)
  • Re: Bootup Question
    ... We need more details regarding the video and sound driver problems in order to ... After the last disk has ... |> completed its tasks it asks for the Windows 2000 installation disc. ...
    (microsoft.public.win2000.general)
  • Re: Enhanced PLAY.CMD with play list support
    ... for .mp3 files and Internet audio streams. ... > How about extracting the audio stream from a video DVD? ... Which does about as much as pissing on your keyboard, bruce. ... >> within the header information, as much as its own timing accuracy. ...
    (comp.lang.fortran)
  • Re: Enhanced PLAY.CMD with play list support
    ... for .mp3 files and Internet audio streams. ... > How about extracting the audio stream from a video DVD? ... Which does about as much as pissing on your keyboard, bruce. ... >> within the header information, as much as its own timing accuracy. ...
    (sci.astro)
  • Re: MiniDV -to- PC -to- CD
    ... disk, the video file created on the Hard Disk has a .WMV extension. ... DVD disks and CD disks, tho they look the same, are not. ... Very few DVD players will play a CD with video on it. ... Most decent video-capture programs will capture DV video directly into their "clip bins", storing it directly as DV format with no additional loss so you can edit it, and then render the final output to your desired format. ...
    (rec.photo.digital)

Loading