Re: Burning a video to DVD from AIFF and MPEG-2 files



On Sun, 15 Feb 2009, Peter Köhlmann wrote:-

Hetware wrote:

This video is distributed as AIFF and MPEG-2 files.

http://wkjo.com/dvd/

I have never attempted to burn a video to DVD. Is there anything I
need to do, other than simply copy the files to a writable DVD disk?

Depends on what you intend to do with it.

If you expect to play it as a DVD in a DVD player, that is *not* *at*
*all* sufficient

If you just want to run it from the DVD on a computer, it is OK

Almost. A quick look at the web site for the source files shows that the
video and audio are available for download as separate files. So, to be
able to play them so they are in sync, they need to be combined into a
single file.

My preference is to use FFmpeg, so what I would do is use something like
either this:

ffmpeg -i Who_Killed_John_ONeill-Mpeg2_Video.m2v \
-i Who_Killed_John_ONeill-Mpeg2_Audio.aif \
-target pal-dvd \
-b 5062k \
-map 0 \
-map 1:0 \
-y Who_Killed_John_ONeill.mpeg

or this:

ffmpeg -i Who_Killed_John_ONeill-Mpeg2_Video.m2v \
-i Who_Killed_John_ONeill-Mpeg2_Audio.aif \
-target pal-dvd \
-b 5177k \
-map 0 \
-map 1:0 \
-acodec mp2 \
-ab 320k \
-y Who_Killed_John_ONeill.mpeg

depending on whether I wanted an AC3 or MP2 audio stream. And if you're
wanting the DVD in NTSC format, use "-target ntsc-dvd" and the MPEG
video will be compliant with the NTSC standards.

As an explanation of the options, -target can be used as a shortcut to
set up some specific options. Using pal-dvd sets the screen size to
720x576, 25fps, and a bitrate of 6Mbps. The default is for an ac3 audio
stream at 448Kbps. Picking an ntsc-dvd target sets the screen size to
720x480, 29.97fps, a bitrate of 6Mbps and the same audio settings as for
pal-dvd.

The -b 5062k and -b 5177k sets the video bitrate to 5062Kbps and
5177Kbps[0]. These give a little overhead so that the resultant MPEG
file won't exceed the size of a DVDR. And, as you can guess, the reason
for the higher video bitrate when using an MP2 audio stream is because
of the lower audio bitrate, which means that the bitrate for the video
stream can be increased a little bit.

The -map 0 means map the first input stream
(Who_Killed_John_ONeill-Mpeg2_Video.m2v) as stream 0.0, while -map 1:0
means map the second input stream () as stream 0.1 and synchronize it
with the first stream.

The -acodec mp2 and -ab 320k means encode the audio in MP2 format and
set the audio bitrate to 320Kbps. Picking an MP2 audio stream requires
setting the audio bitrate to 320Kbps, or one of the lower supported
bitrates.

Finally, the -y option tells FFmpeg to overwrite an existing output
file.

After FFmpeg has finished creating the MPEG video, you then need to use
something else to actually create the DVD structure. As for what to use,
there are a few applications that can do the job. As a couple of
examples, there's the command line program dvdauthor or the GUI based
devede. Both of these are available through the Packman repo.


[0] These bitrates are calculated using a DVD size of 4,600,000,000
bytes, or 36,800,000,000 bits. This leaves 100,000,000 bytes for use
with menus and blank space[1]. The audio file has a supposed length of
01:41:00, or 6060 seconds. The real running time for the audio is
01:40:23 but I rounded it up just in case.

The AC3 format audio stream uses up a total of 2,714,880,000 bits or
339,360,000 bytes (6060x448000 bits). This leaves 34,085,120,000 bits,
or 4,260,640,000 bytes, for the video stream. Dividing this by the run
time, you end up with 5,624,607 bps. As it's possible to be as much as
10% higher than the specified bitrate, dropping this to 5062Kbps gives
some headroom and means the file shouldn't exceed DVDR size.

For the MP2 format audio, the calculations are similar. In this case,
6060 seconds uses a total of 1,939,200,000 bits or 242,400,000 bytes.
This means that there is a total of 34,860,800,000 bits, or
4,357,600,000 bytes, available for the video. As before, dividing this
by the run time, you end up with 5,752,607 bps. Again, dropping the
maximum by 10% for that spare headroom, gives you a bitrate of 5177Kbps.

[1] A good idea is to leave at least 30MiB free as this is going to be
at the very outside edge of the disc, and this is more likely to be the
area that suffers damage.

Regards,
David Bolt

--
Team Acorn: http://www.distributed.net/ OGR-NG @ ~100Mnodes RC5-72 @ ~1Mkeys/s
| openSUSE 10.3 32b | openSUSE 11.0 32b |
openSUSE 10.2 64b | openSUSE 10.3 64b | openSUSE 11.0 64b | openSUSE 11.1 64b
TOS 4.02 | openSUSE 10.3 PPC | RISC OS 3.6 | RISC OS 3.11
.



Relevant Pages

  • Managing one video source with 2 audio sources....
    ... We have some issues that are keeping us from improving our video quality. ... The main issue is having audio streams for a given region of the country. ... The problem comes in where we've got to manage each audio stream separately, ... keeping our separate audio streams which is important to our customers. ...
    (microsoft.public.windowsmedia.sdk)
  • Re: video playback speed too fast
    ... If I play the video stream only the playback speed appears to be correct! ... Under proposed solutions and tests doing just the audio stream all of the solutions failed. ... I tried unchecking all the converters and with the default set both with same 'fast' playback. ...
    (microsoft.public.windows.vista.music_pictures_video)
  • Re: Sound quality on Freeview 701 and 702
    ... >> 128kbps audio bitrate on BBCi satellite. ... >> I don`t think they ever lowered the bitrate to gain space. ... >> complaint, and feel that you have done a very good job. ... >> from the video streams rather than the audio streams? ...
    (uk.tech.digital-tv)
  • Re: How to implement a DS source/splitter filter that accept live video
    ... video and audio are in separate stream. ... I still don't understand what this source filter ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: (OT?): Could DTV become the new Radio
    ... If you got the bit stream down to around a half a megabit ... The video could be minimal, ... audio of an associated radio station. ... could transmit *only* the audio stream. ...
    (rec.radio.shortwave)

Loading