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. I use iDealshare VideoGo to convert Tivo to other video files like convert Tivo to MP4, AVI, MPG, WMV, MOV, DV etc.
    Here is the easy guide
    https://www.idealshare.net/video-converter/tivo-to-mp4-converter-mac-windows.html

    Windows version: http://www.idealshare.net/downloads/i-video-converter-7.0.2.6129.exe
    Mac version: http://www.idealshare.net/downloads/i-video-converter-mac-7.0.2.6129.dmg

    ReplyDelete
  2. 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