June 14th, 2007

Dealing with Video Too Long for DVD

One of the movies I wanted to transfer from TiVo to DVD was too long to fit. In order to reduce its size, the bitrate must be reduced (see section 2b):

maximum-bitrate (bits/second) = 4,500,000,000 (bytes) * 8 (bits/byte) / video-length (seconds)

You can get the duration from the output of ffmpeg:

ffmpeg -i movie.mpg delete-me.vob -fs 1

This maximum bitrate gets split between audio and video. Use 256,000 for the audio and the rest for video. The new ffmpeg command is:

ffmpeg -i movie.mpg -target ntsc-dvd -b <video bitrate> -ab <audio bitrate> movie.vob

Uncategorized

Comments (0)

Permalink

TiVo to DVD: Summary

Here’s the full procedure for making a DVD from something on your TiVo:

  1. Browse to https://your TiVo’s IP address
  2. Log in with user=tivo and password=Your TiVo’s MAK

  3. Download the show. We’ll call it tvshow.TiVo
  4. Convert to MPEG
  5. tivodecode -m MAK -o tvshow-orig.mpg tvshow.TiVo

  6. Optional: Edit with Gopdit
  7. gopdit tvshow-orig.mpg

    Save to tvshow.mpg

  8. Transcode for NTSC DVD
  9. ffmpeg -i tvshow.mpg -target ntsc-dvd tvshow.vob

  10. Create DVD Author file
  11. Make a file called tvshow-dvdauthor.xml that contains this:

    <dvdauthor>
    <vmgm />
    <titleset>
    <titles>
    <pgc>
    <vob file="tvshow.vob" chapters="0,10:00,20:00,30:00,40:00,50:00" />
    </pgc>
    </titles>
    </titleset>
    </dvdauthor>

    (This chapters list assumes a 1-hour show with chapters every ten minutes.)

  12. Create the DVD structure
  13. dvdauthor -o dvd -x tvshow-dvdauthor.xml

  14. Check the DVD
  15. mplayer dvd:// -dvd-device ./dvd

  16. Burn the DVD
  17. growisofs -dvd-compat -Z /dev/dvdrw -dvd-video ./dvd

Uncategorized

Comments (0)

Permalink