UPDATES   09 Jul 2001

A problem with fsid sector mapping has been fixed.

Httpd.tcl now sets priority before launching ExtractStream, to avoid stuttering.

ExtractStream has improved audio sync, and is now compatible with the TiVoMADD utility.

Httpd.tcl's "NowShowing" list has been rewritten for better compatibility with more machines, and links now provide the functionality to extract video via simple browser selection.  A glide/gtk GUI application, esdirect, has been added to aid playback/storage/transcoding.

Mplex (the multiplexer on the TiVo) has been replaced by netmplex, running on the PC.

The distribution of executables has been split into parts consistent with the platform where the executables are used:  es-*-Pc contains executables for Linux,  es-*-TiVo contains executables for TiVo.

CVS is now used to track modifications.  To get between-release source code versions:

pc#  cd [the directory where I want to keep this stuff]
pc#  export CVSROOT=:pserver:anonymous@stampede.org:/home/cvs
pc#  export CVS_RSH=ssh
pc#  cvs login
"CVS" will prompt for a password, just hit "enter".  To get everything from the repository:
pc#  cvs co tivo
There are six subdirectories created under "tivo": Additional functionality has been added by other users, and is not part of the release.  Zapstream is used to zero-out the MFS partitions.  convert-it will make VCD's from extracted mpeg.   ConvertStream splits a raw TiVo v1.3 tystream (produced with "ExtractStream -s")  into it's audio and video components.  For those using the advanced TiVo web services, Jupper's has added ExtrtactStream integrationStuttering problems can be solved with  the setpri/getpri executibles


The ExtractStream, netmplex, and esdirect programs and source code described in this document are released under the GNU GPL  They are not warranted suitable for any purpose, it is the users responsibility to assure proper functionality before use.

Understand that this code is in a very raw form (neither easy to use or understand).  It is released in this early stage in the spirit of Open Source, hoping that others might use and modify the code, improve it, and share their changes.

We urge users to understand the difference between "fair use" and copyright violation when using copyrighted video.  The persons writing and distributing this code feel strongly that the code be used only in a legal manner.  It is legal for you to view the video captured on your TiVo (or any video capture device) at any time and using any playback device, BUT, it is not legal to distribute or publicly playback copyrighted material.  If you are unsure of the legality of your intended use, consult a real lawyer; this is just our interpretation.


ExtractStream was derived from d18c7db's PlayStream. This was truly a reverse engineering masterpiece. Some say that this was derived from Tridge's "vplay", but this has not been confirmed.  The changes made were mostly to compensate for TiVo v1.3 to v2.0.1 considerations.  Even if you're using 2.0.1, you might want to look at the PlayStream distribution for it's README file, which is somewhat outdated, but still has some very useful information.

httpd.tcl is a slight modification of sfr's and TiVoTechie's httpd.tcl.  The only change is to allow direct display of the relevant "NowShowing" information.  TiVoTechie would like it known that his changes only concern the virtual remote capabilities that have no interaction with the MFS database.


On the TiVo

The "es-*-TiVo.tgz" file is a unix file archive containing the "ExtractStream" executable, a modified "httpd.tcl" daemon, the "doehtml" script for starting ExtractStream through your browser, an mpeg multiplexer "mplex",  and NetCat:"nc".

If you've installed the tkp_tools, then there's a name conflict: "nc" is used as a variant of "mc", as defined in "/var/hack/root/.bashrc" (sometimes "/hack/root/.bashrc").  You can either rename the definition of "nc" in your ".bashrc", or you can rename "nc" on your system, or: always refer to NetCat by path (i.e. /hack/bin/nc).

If you've already installed "httpd.tcl", you might want to back it up, since the archive contains a new version that may overwrite your version.

These instructions assume a network aware TiVo.  You're going to need to transfer files totheTiVo. NFS, SAMBA ( smbfs.oand smbmount), rsync or an ftp daemon   are your best options.

Download the "es-*-TiVo.tgz" archive here.

Transfer the archive to the TiVo (or, in the case of SAMBA or NFS, make sure the file can be accessed from the TiVo).

The archive is relative "hack/bin"  If your "hack/bin" is on "/var", then "cd /var".  If your "hack/bin" is on "/", then "cd /" (and make sure the root is mounted read/write: "mount -o remount,rw /").  The "doehtml" script, in order to avoid name conflict with the "nc" program (as detailed above), calls "nc" using a full path name; if you're not using "/hack/bin", then edit the doehtml script to properly point to the "nc" program.  Finally, unarchive:

bash-2.02#  cat /var/tmp/mnt/es-0.3-TiVo.tgz | gzip -dc | cpio -i -H tar
If "ExtractStream: is in your path, you should be able to enter the command:
bash-2.02#  ExtractStream
Without arguments, it will respond with usage information.

On the Linux PC:

The "es-*-Pc.tgz" file is a unix file archive containing the "netmplex" mpeg multiplexer, "n2v", and "n2v.meat" scripts.  The scripts are referenced via MiMe types on your browser, to playback extracted mpeg in realtime.

The scripts assume  "vlc" from Videolan for mpeg2 playback.

Some of the capabilities described in this document require NetCat:.NetCat: may need to run on both the TiVo and your client PC.  The archive contains "nc" for the TiVo.  You may want to get NetCat for your client OS here.  Using "netmplex", NetCat is not necessary on the PC.

Download the "es-*-Pc.tgz" archive here.

As root user in the "/" directory, unarchive

pc#  tar -xzvf es-0.3-TiVo.tgz
This will place the executables in "/usr/bin".

In your Netscape 4.7x browser, define (or modify) the following Mime type ("Edit"->"Preferences..."->"Navigator"->"Applications"):

Description: MPEG2 Video
Mime Type:   video/x-mpeg2
Suffixes:    mpv2,mp2v
Application: /usr/bin/esdirect %s
We would appreciate instructions for other browsers.

On the Windows PC

"TiVo-VCD.mcf" is used to guide TMPGEnc multiplexing of TiVo audio/video in Windows.   There are many discussion threads that show the correct codecs to use.

Source code

The source code distribution " es-*-src.tgz" contains the " ExtractStream.c" source file, "mplex", "esdirect", and "netmplex" source directories.

Extract these with:

pc#  tar -xzvf es-0.3-src.tgz



This daemon runs in the background and acts as a very unsophisticated web server.  To launch it, run:
bash-2.02#  httpd.tcl >/dev/null 2>/dev/null &
You can also put that line at the end of your "/etc/rc.d/rc.sysinit"  file.

I'm not about to explain all the functionality of this file... only what's been added for mpeg extraction.

In the "location" or "URL" entry field of your favorite browser (except:"opera" doesn't like this server), type your TiVo's IP address or machine name.  It should provide you a list of options, including "NowShowing". Select thisoption.

The resulting page should list the programs available on the TiVo, their descriptions, and, most importantly, the tyStream FSID's needed by ExtractStream.  Note that these are hyperlinks... Click on them and vlc will start playing the selected video.

The way this works: Your browser requests the tyStream FSID's from /hack/bin/httpd.tcl, which passes these values to /hack/bin/doehtml, which activates NetCat in "listen" mode for the audio and video streams along with ExtractStream.  Httpd.tcl returns the IP address of the TiVo, and an indication of "Best" or "Basic" quality.  The Mime type is used by the browser to activate "esdirect", giving it the IP address and quality indicator.  "esdirect" activates the necessary applications to process the streams incoming from the TiVo.


"Esdirect" is a Glade / GTK based GUI for managing  and running the incantations necessary for viewing, writing, and transcoding extracted TiVo MPEG streams.  Glade and GTK are available for Windows, so there's a chance that this might work on the legacy Windows platform, but the incantations often rely on pipes (which Windows won't properly stream... it writes the output of one program into a temporary file, then starts up the second program after the first is complete... very inappropriate for mpeg streams).  The program also uses "popen" to act as a go-between sender and reciever incantations.  I don't know, but I'd guess this is also poorly/improperly implemented in the legacy Windows environment.

Setup a Netscape 4.76 "mime" type, as directed above.

Point your browser at your TiVo's name or IP address, where httpd.tcl is running, and select the NowShowing option.  The following window appears:

The "Watch" tab is initially selected.  The "Netmplex command line" is setup for a standard system.  The viwer command defaults to "vlc" using SDL in a 300x300 display; this is tailored to a 200-300Mhz CPU running XFree86 3.x. Faster CPU's can use a larger window, XFree86 4.x users might want to use the "xv" plugin, rather than "sdl".  The "while" loop is used to keep the stream going if "vlc" crashes.  The environmental variables "TIVOPIP" and  "BEST" are imported from the TiVo, they don't need to be set in your environment.

The "esdirect" application will read from the pipe coming out of "netmplex", and write to the pipe running the output task.  The progress bars at the bottom will indicate how much data has been read/written.  The extent of this bar is always the next multiple of 350MB... so don't expect it to every reach the end.

Select the "Write" tab to write the extracted mpeg2 to a file.  In this case, the "OUTFILE" environmental variable is provided, given that you modify the "Output filename" entry field.  Note that "tee" really writes the file, "esdirect" is just given a copy of the written data, which is only used to update the status bar.

Select the "Transcode" tab to initiate MPEG2 to MPEG1 transcoding.  Given the nature of transcoding utilities, this is done in multiple passes.  In the first pass,  the data is just written to disk.  Since the TiVo can download a stream much faster than it can be transcoded, I thought it would be best to just write the file, allowing other things to be done with TiVo extraction while the lengthy process of transcoding is active.

The "Temporary filename stub"  is used for the intermediate files and final output.  Different extensions will be tacked onto the end of the stub.   The incantations can assume the "STUB" environmental variable is defined.

Initially, the given "Netcat command" is used, in two seperate pipes, for retrieving data from the TiVo.  "$PORT" will be predefined appropriately for the audio or video streams,  $EXTEN" will be predefined "m2a" for audio, "m2v" for video".  One progress bar will denote video data, the other audio.

When the video pipe completes writing its file, the "Video Transcode Command" is executed.  The MPEG2 video output file is read by esdirect, then output to a pipe running that command.  Note that the command, if all is sucessful, will delete the MPEG2 video file once the MPEG1 video file has been written.

Likewise,  when the audio pipe completes writing its file, the "Audio Transcode Command" is executed.  The 33Khz  output file is read by esdirect, then output to a pipe running that command (that should correct the output frequency to 44Khz).  Note that the command, if all is sucessful, will delete the input audio file once the output file has been written.

While the transcoders are running, the progress bars should show the status of each.  This is functionality currently broken; the status bars don't update at all.

Once both the audio and video files are transcoded, the "Multiplexing command" is executed on the MPEG1 a/v files.  This step could also run your application for creating a VCD image.

Select the "Watch and Write" tab to watch the video while simultaneously writing the extracted mpeg to disk.  This is a combination of the first two tabs... if you understand those, you'll understand this.

Under "File" you can exit the application, start extracting (using the currently selected tab settings), or save your current settings.  Saving your settings saves all your incantations to the file "~/.esdirectrc".  The next time the program is launched, it will use the settings in that file over it's default settings.


With no arguments, ExtractStream prints usage information:
bash-2.02# ExtractStream

ExtractStream [-v] [-s] [-d] [-p] <fsid>...

ExtractStream takes valid <fsid> numbers of the streams you want to play,
extracts the sectors allocated to that stream and attempts to play the
audio/video information on those sectors through the TiVo codecs.

-v Verbose output (stderr)

-s Dump raw tyStream data to stdout

-d Dump sector scan info to stderr (no mpeg dumped at all)

-p Include PES headers with data

If -s is not set, and AUDIO_OUT or VIDEO_OUT environmental variables
are set, then mpeg output will go to these files instead of the
codecs.  If only  VIDEO_OUT is set,then both audio and video are
written to the file (note PS streams not yet working).

If the DUMP_OUT environmental variable is set, then the raw tyStream
is copied to the named file.  This is in addition to writing to
stdout if -s is set, or to the files named in VIDEO_OUT or AUDIO_OUT
if they're set.

The "<fsid>..." argument(s), which are required, are those shown by the "httpd.tcl" daemon when selecting the "NowShowing" option as described above.  Note that there will be one or more tyStream FSID's associated with a program.  The "httpd.tcl" daemon presents those separated by slashes ("/").  ExtractStream expects them separated by spaces.

If none of the environmental variables (DUMP_OUT , VIDEO_OUT, or AUDIO_OUT) are set, and none of the command line options: "-s" or"-d"are used, then ExtractStream acts as PlayStream does: writing the mpeg data to the proper devices.  This mode hasn't been tested in a long time, it probably requires the "-p" option, and you have to do something to keep it from competing with MyWorld for mpeg attention -- which is not properly documented for TiVo 2.0.1 systems (it's not necessarily different than killing and restarting MyWorld was in TiVo v1.3, but a cursory look at the process queue would make one think that it may not be as simple as it was). Another reason to read the README file that comes with the old PlayStream..

Extracting MPEG

Currently, using ExtractStream for mpeg extraction requires splitting the mpeg stream into it's audio and video component elemental streams. To do this, the environmental variables VIDEO_OUT and AUDIO_OUT must beset to file names before running ExtractStream.  If you're using NFS or SAMBA, you could pass these files across the network by specifying files on the remotely mounted partitions.  For example, you might have your PC's "C:" drive mounted as "/mnt" on the TiVo, you could save the mpeg audio and video files with:
bash-2.02# export VIDEO_OUT=/mnt/program1.m2v
bash-2.02# export AUDIO_OUT=/mnt/program1.m2a
bash-2.02# ExtractStream 53476 5347753478
When complete, your "C:" drive should contain the files "program1.m2[av]".

Creating an MPEG2 Program Stream from Audio and Video Elemental Streams

With elemental audio and video streams, you must multiplex these into program streams expected by most MPEG2 players.

Note that there are three "mplex" programs discussed here: two are in the distribution, and the one from the mjpegtools group at sourceforge .


With the addition of "netmplex", "mplex" on the TiVo is no longer necessary.  Netmplex can be run on both Windows and Linux.

Netmplex is married to ExtractStream over your LAN, expecting audio and video streams on ports 1235 and 1236.  It's output can be file based, piped to standard output, or on port 8080 for access to web-enabled playback devices.

Running "netmplex -h" provides the following usage information.

  netmplex [options] [remote path]
  -a addr Set remote IP address
  -B        Best quality
  -h         This text
  -H         Host HTTP services on port 8080
  -l          Attach as listener/server to mpeg streams
  -t num  Toss bits from slow readers, debug option
  -o file    Write output to file instead of stdout
  -v          Verbose info
Note the "-B" (that's a capital "B") command line argument.  This is to be used when recieving "Best" quality TiVo mpeg.  Basic quality is assumed, otherwise.

If you have a viewer that reads over the internet, then use the "-H" (That's a capital "H") option.  Connect your viewer to the current host on port 8080, and video will start streaming.

If "tyStream FSID's" are provided on the command line, along with the TiVo's IP address, then netmplex will directly request "httpd.tcl" on the TiVo to start the "doehtml" script, which starts ExtractStream and the appropriate netcat listeners in "server" mode.  Note that you can also use your browser to perform  this activation with the Mime type previously mentioned.

You can setup the TiVo side as a server (listener) or a client, Likewise, you can setup netmplex as a server (listener) or client.  For example, setup the TiVo as a server for the audio and video ports:

bash-2.02# mkfifo /var/tmp/vid /var/tmp/aud
bash-2.02# export VIDEO_OUT=/var/tmp/vid
bash-2.02# export AUDIO_OUT=/var/tmp/aud
bash-2.02# nice -20 /hack/bin/nc -n -l -p 1236 <$VIDEO_OUT &
bash-2.02# nice -20 /hack/bin/nc -n -l -p 1235 <$AUDIO_OUT &
bash-2.02# nice -20 ExtractStream [tyStream FSID's] &
Now, on your PC run netmplex as a server, with output to a file:
pc# netmplex -a [TiVo's IP address] -o myfile.mpeg2
Alternately, you can run netmplex as a server:
pc# netmplex -l -o myfile.mpeg2
Then run ExtractStream as a client:
bash-2.02# mkfifo /var/tmp/vid /var/tmp/aud
bash-2.02# export VIDEO_OUT=/var/tmp/vid
bash-2.02# export AUDIO_OUT=/var/tmp/aud
bash-2.02# nice -20 /hack/bin/nc -n -w 3 [PC's IP address] 1236 <$VIDEO_OUT &
bash-2.02# nice -20 /hack/bin/nc -n -w 3 [PC's IP address] 1235 <$AUDIO_OUT &
bash-2.02# nice -20 ExtractStream [tyStream FSID's] &
Mplex, from the mjpegtools group

In Linux, the "mplex" program, available with the Mjpegtools at sourceforge ,works quite well.  Assuming you have extracted the MPEG audio and video elemental streams from the TiVo, the correct incantation is:

pc#  mplex-f 2 -m 2 -o program1.mpeg2 program1.m2[av]
This will create the program stream file "program1.mpeg2".

The following instructions should be obsolete.  There has been a reported problem with a truncated audio packet that may not be fixed.  This can be easily fixed from mplex.  If you see the mplex error: "Failed to find start of next stream at...", then, in mplex's inptstrm.c change:

    syncword = (syncword<<(8-AU_start % 8));
    next = getbits( &audio_bs,8-(AU_start % 8) );
    syncword = syncword | next;
    if ( syncword != AUDIO_SYNCWORD )
           mjpeg_warn("Failed to find start of next stream at %lld prev %lld !\n", AU_start/8, prev_offset/8 );
     do {
        syncword = (syncword<<(8-AU_start % 8));
        next = getbits( &audio_bs,8-(AU_start % 8) );
        syncword = syncword | next;
    } while ( syncword != AUDIO_SYNCWORD );
#if 0
        mjpeg_warn("Failed to find start of next stream at %lld prev %lld !\n", AU_start/8, prev_offset/8 );

In Windows,   TMPGEnc will multiplex the audio and video data.  Using TMPGEnc with the "TiVo-VCD.mcf"   file will create a  cleaned-up cropped (removal of left edgegreen vertical line and top closed caption data) VCD compatible MPEG file.

Playing an MPEG2 Program Stream

In Linux, "vlc" from Videolan, isa great player:
pc#  vlc-V sdl -v program1.mpeg2

Transcoding MPEG2 Elemental and Program Streams toMPEG1

Note that transcoding MPEG2 to MPEG1 requires a great deal of processor horse power and disk space; it's only warranted if you're making VCD's.  MPEG1 files sizes are equivalent to MPEG2 files captured with TiVo's "BASIC" quality.

The Mjpegtools at sourceforge contain a transcode script, that requires mpeg2dec, plus some patches to the output drivers provided by the mjpegtools.

I've changed the transcode to two separate files, one for audio, and one for video.  The video script looks like:

cat $1.m2v |  mpeg2dec -o YUVh | mpeg2enc-s -r 24  -o $1.m1v
I couldn't find the audio transcoding tools referenced in the mjpegtools"transcode", so I made my own audio transcode script:
mpg123 -s -r 44100 --wav -$1.m2a | toolame -p 2 -b 224 - $1.m1a
Find toolame here ,and mpg123 here (if you play mp3 files in Linux, you probably already have mpg123).  The only reason for the audio transcode is: VCD compliance requires 44.1kHz audio, versus the33kHz audio coming off the TiVo.

Again, use mplex to make aVCD conformant MPEG1program stream:

pc#  mplex -f 1 -m 1 -o program1.mpeg1 program1.m1[av]
Vcdimager  is one of the many tools that can be used to create a VCD image in Linux,the incantation is:
pc#  vcdimager--cdi-dir=/<where you put it>/cdi/ --cue-file=program1.cue \
            --bin-file=program1.bin \
            --volume-label="My first program"  program1.mpeg1
It generates cdrdao cue and bin files, the VCD can be written with an incantation like:
pc#  cdrdao write --device /dev/sg2 --speed 8 program1.cue
Most DVD players will playback VCD's (or SVCD's made with MPEG2 files).  VCD playback on your Linux PC is best performed with "mtv". Note that "mtv" is neither Open Source nor free.

Other MPEG Extraction Methods

The AUDIO_OUT and VIDEO_OUT environmental variables can point to named pipes (Linux Fifo's made with mkfifo or mknod).  Using this, no file needs to be saved at all; we can pipe the data directly into the recipient program on a PC.

First, on the TiVo, make some named pipes:

bash-2.02# mkfifo /var/tmp/aud
bash-2.02# mkfifo/var/tmp/vid
Run ExtractStream as before, but setting the environmental variables to the named pipes:
bash-2.02# export VIDEO_OUT=/var/tmp/vid
bash-2.02# export AUDIO_OUT=/var/tmp/aud
bash-2.02# ExtractStream 53476 53477 53478
In a separate shell on the TiVo, use "nc" to read from the fifo's:
bash-2.02# nc -n -w 3 1235 </var/tmp/vid &
bash-2.02# nc -n-w 3 1236 </var/tmp/aud&
Where "" is replaced with the IP address of your PC.  Actually, you need to start these after you've started "nc" on your PC, but this discussion will flow more smoothly if I show these first.

On your Linux PC, capture the data:

pc#  nc -l -p 1236 >program1.m2a &
pc#  nc -l -p 1235 >program1.m2v &
The net effect here does exactly the same thing as the first example where NFS or SAMBA was used to transfer the file across the network... it was just a lot trickier, requiring many more commands  :)

Actually, there is a reason for this.  The "nc"'s running on the PC side, rather than writing a file, can be placed into players or transcoders.

For example, the receiving "nc"'s on the PC might start a player:

pc#  nc -l-p 1236 | mpeg2dec &
pc#  nc -l -p 1235 | mpg123 &
This will play the video/audio on you system.  Note that mpeg2dec has no mechanism for maintaining frame rate with real time.  If your machine isn't fast enough, then it will playback in slow motion.

Likewise, you could be transcoding on the PC:

pc#  nc -l -p 1236 | mpg123 -s -r 44100 - | \
    toolame -p 2 -b 224 - program1.m1a
pc#  nc -l -p 1235 | \
   mpeg2dec -o YUVh | \
   mpeg2enc -s  -r 24  -o program1.m1v &
Using this method to transfer the mpeg data can save a great deal of disk space.

Extracting Raw tyStreams

Extracting raw tyStreams is useful for archiving a TiVo tyStream on yourPC in a format that would be easily restored back onto the TiVo for viewing at a later date.  We don't know how to restore the files yet, but we can at least archive them.

The "-s" command line option in ExtractStream causes the program to not split audio and video streams,  and to merely output the raw tyStream to "stdout" (standard output).  You can pipe the data directly across the net using a SAMBA or NFS mounted partition,as in:

bash-2.02# ExtractStream -s 53476 53477 53478 >/mnt/program1.rawtivo
Alternatively use netcat for extracting the raw tyStream across the network to a receiving program.  For example, on the PC side:
pc#  nc-l -p 1234 >/mnt/program1.rawtivo
On the TiVo side, run:
bash-2.02# ExtractStream -s 498441 498445  | nc -n -w 3 1234
Where, again, you need to replace "" with the IP address of your PC.

MPLEX on the TiVo

Note that this program has been superceded by netmplex, documented above.  The "mplex" program, provided in this distribution, for the TiVo, is based on the mplex program in mjpegtools(discussed above).  The basic difference is: it only takes one pass over theA/V input.  The big difference is it's been royally hacked.

This means: it can be used to directly generate an mpeg2 file, or playback video from the TiVo without creating any file at all.

The precompiled TiVo version is in the distribution  "ExtractStream-0.1.tgz", the source, "mplex.tgz",  is also available.  When compiling on the TiVo, make sure to use the "-msoft-float" option.

This program has performance problems on the TiVo.  It needs to be profiled.  It probably has to do with it's use of floating point numbers, when integers would do.  For example:

Is the same as:
Currently, this program is limited to use on "basic" quality TiVo programs, because:

Creating an MPEG2 Program Stream with the obsolete "mplex"

This procedure is much easier with the new netmplex, detailed above.  This section remains here for historical reasons.

Our mplex can run on either a Linux workstation (you need to compile it from source), or your TiVo (in the distribution).  You won't get TiVo stuttering if you run it on your workstation.  Here's an example running our "mplex" on a Linux workstation:

pc#  mkfifo vid
pc#  mkfifo aud
pc#  export VIDEO_OUT=./vid
pc#  export AUDIO_OUT=./aud
pc#  nc -l -p 1238 >$VIDEO_OUT &
pc#  nc -l -p 1239 >$AUDIO_OUT &
Then, run mplex.  For output to a file, use:
pc#  mplex > foo.mpeg2
For output to video, run:
pc#  mplex | (while true; do vlc -V sdl -v /dev/stdin; done)
The "while" loop is to handle "vlc" crashes... it currently has some audio problems that cause a segfault, the "while" loop will keep the video streaming where it left off to the new incarnation of "vlc".

On the TiVo, start the extraction

bash-2.02# mkfifo /var/tmp/vid
bash-2.02# mkfifo /var/tmp/aud
bash-2.02# export VIDEO_OUT=/var/tmp/vid
bash-2.02# export AUDIO_OUT=/var/tmp/aud
bash-2.02# nc -w 3 -n <workstation IP address>  1238 <$AUDIO_OUT
bash-2.02# nc -w 3 -n <workstation IP address>  1239 <$VIDEO_OUT
bash-2.02# ExtractStream <tyStream FSID's>
The video should start playing or writing to the file (depending on the "mplex" incantation you used).

If you're willing to allow stuttering on your TiVo, then you can run "mplex" there.  If you want realtime video playback on your workstation, run:

pc#  nc -l -p 1255 | (while true; do vlc --width=200 --height=200 -V sdl -v /dev/stdin; done)
On the TiVo, run:
bash-2.02# mkfifo /var/tmp/vid
bash-2.02# mkfifo /var/tmp/aud
bash-2.02# export VIDEO_OUT=/var/tmp/vid
bash-2.02# export AUDIO_OUT=/var/tmp/aud
bash-2.02# mplex | nc -n -w 3 <workstation IP address> 1255 &
bash-2.02# ExtractStream <tyStream FSID's>
If you just want to create an mpeg2 file, then don't run the "vlc" line on the workstation, and, on the TiVo, replace:
bash-2.02#  mplex | nc -n -w 3 <workstation IP address> 1255 &
bash-2.02# mplex >foo.mpeg2

Known Bugs