Saturday, August 21, 2010

Convert TiVo video to iPad video in Linux

Steps in General
1) Download the Video
2) Decode the Video
3) Re-encode the Video

Steps in Detail
1) Find the URL for the TiVo file however you like.  Find your TiVos MAK however you like.  Set the output file location.

curl '$url' --digest -k -u tivo:$mak -c /tmp/cookies.txt --retry 12 --retry-delay 10 -o $target

$c = "";
$c .= "curl '$url' "; //source
$c .= "--digest -k "; //tivo needs these??
$c .= "-u tivo:$mak "; //username and password
$c .= "-c /tmp/cookies.txt "; //storing cookies is necessary, we just don't want them.
$c .= "--retry 12 --retry-delay 10 "; //help retry??
$c .= "-o $target"; //output

2) Find your TiVos MAK however you like.  Set the input file location.  Set the output file location.

tivodecode $input -m $mak -o $output

$d = "";
$d .= "tivodecode $input ";
$d .= "-m $mak ";
$d .= "-o $output ";

3) Set the input file location.  Set the output file location.

mencoder $input -o '$output' -ss 00:00:02 -ovc x264 -x264encopts qcomp=0.8:nocabac:level_idc=30:bframes=0:global_header:threads=auto:bitrate=1200 -vf pp=lb,scale=1024:-10,harddup -oac faac -faacopts mpeg=4:object=2:raw:br=128 -af volnorm=1 -of lavf -lavfopts format=mp4

$m = "";
$m .= "mencoder $input -o '$output' ";
$m .= "-ss 00:00:02 ";
$m .= "-ovc x264 ";
$m .= "-x264encopts qcomp=0.8:nocabac:level_idc=30:bframes=0:global_header:threads=auto:bitrate=1200 ";
$m .= "-vf pp=lb,scale=1024:-10,harddup ";
$m .= "-oac faac ";
$m .= "-faacopts mpeg=4:object=2:raw:br=128 ";
$m .= "-af volnorm=1 ";
$m .= "-of lavf ";
$m .= "-lavfopts format=mp4";

UPDATE: Normalized Audio.

2 comments:

  1. Another method is to use Avdshare Video Converter to convert Tivo to MP4 or MOV for iPad, iTunes, QuickTime etc.
    https://www.avdshare.com/tivo-to-mp4-mov-converter

    It also helps to convert Tivo to AVI, WMV, MPG, MKV, DV, FLV, etc

    ReplyDelete
  2. TiVo to iTunes Converter - Avdshare Video Converter:https://www.avdshare.com/tivo-to-itunes-convert-and-transfer-tivo-to-itunes-for-playback
    Convert any TiVo video to iTunes more supported MOV or MP4 for successfully uploading TiVo video to iTunes library.
    Convert any TiVo video to MP4, MOV for directly playing on iPhone, iPad, iPod, QuickTime and other iOS devices.
    Convert any TiVo video to WMV, ASF for playing TiVo in Windows Media Player or editing TiVo in Windows Movie Maker.

    ReplyDelete