mfs_ftp: easy extract / insert via ftp protocols
here's a little tivo side ftp server for moving recordings from tivo -> pc, pc -> tivo or tivo <-> tivo with a regular browser or ftp client. video can be moved between different versions of tivo hardware / software and streamviewed on a recieving tivo
mfs_ftp.tar.zip - current version of the complete program dir including s1 support binaries
(attached to this post)
installation:
shutdown any previous version of mfs_ftp running in the tivo
unzip the mfs_ftp.tar.zip to mfs_ftp.tar on your pc
open mfs_ftp.tar & extract readme.txt - READ IT!
transfer mfs_ftp.tar to /var in the tivo
backup the old mfs_ftp dir: "mv /var/mfs_ftp /var/mfs_ftp.bak"
from the "/var " prompt unpack with
"tar -xvf mfs_ftp.tar" or "cpio -i -H tar -d -F mfs_ftp.tar"
start from bash "/var/mfs_ftp/mfs_ftp.tcl" or load from a startup script
mfs_ftp 1.2.9 MAY NOT BE REDISTRIBUTED. PERIOD! (read the license and terms of use)
sadly many are offering mfs_ftp installed on units for sale, since the legality of the license is unlikely to deter the unscrupulous here's the deal. if you want to include mfs_ftp on a tivo your selling (presumably as an inducement to buy) send your contact info with a $40 paypal to rc3105@hotmail.com I'll provide a transferrable license tied to the tivo itself & permission to install / distribute mfs_ftp on that particular tivo. this provides a legit means for techs to install sw for the clueless & specified damages that can be recovered (in court, etc) from those distributing in violation of copyright
my paypal is rc3105@hotmail.com and donations are allways appreciated. mfs_ftp is FREE for personal non-commercial use if you install it yourself, so enjoy ;)
Usefull things to have / know about
THIS THREAD IS THE FAQ! (and moderated to stay that way)
please read readme.txt & this ENTIRE thread BEFORE posting a mfs_ftp related question - off topic posts, obsolete info & chitchat more than a month or so old gets nuked
please ask any questions re: installation / usage in this support thread instead of cluttering the forum starting new ones
ALL required S1 support files are included in the zip
here's links to usefull alternate threads
MFS_FTP on Series 2 Units contains S2 support binaries - substitute s2 binaries after installation but before starting mfs_ftp
Mfs_Ftp: suggestions, feedback, etc
mfs ftp issues in the newbie forum
tmf / ty+ tivoweb extraction module: extract tmf or ty+ via tivoweb
tmf2ty_cfg.exe is a windows binary that extracts ty from tmf. these ty are insertable with mfs_ftp & compatable with all ty utilities. if savepath.txt is in the directory with tmf2ty_cfg.exe (or in the dir with the tmf under some versions of XP) the first line of the file is used as the output path. these are tcl paths so use forward slashes - "x:/extracts/" "d:/my_recordings/" "v:/video_files/" etc
Commonly asked questions (and answers)
Re: Advice... things not working
Quote:
Originally posted by alanjudy
The other question is, while I have seen that someone has gone from SA to DTivo, has any sucessfully gone from DTivo (2.5.2) to SA (3.0.1)
Thanks
=alanjudy
alanjudy,
This is my exact setup, and as you see from my post above, with versions 1.1.1 and beyond it works in bot directions...
Derek aka ][ronMan aka DSmooth
SA2dtivo - dtivo2SA - working!
Well; I'm xfering a .tmf originally from my dtivo to my SA. It's the same one that created my 0Byte file, undeletable listing. I found out that my SA is MUCH slower to respond and transfer to. Both tivos are 3.1 - I just didn't WAIT long enough for it to allocate space .. It is a 2hour movie, so it appears it;s going to take some time. I'll report back on results.
here is a dump of the transfer sofar...
echo to verify: PORT 192,168,1,49,7,156
ip is 192.168.1.49 port is 1948
200 PORT command successful.
echo to verify: STOR Hackers .tmf
150 Opening BINARY mode data connection for "Hackers"
entering dumpxml
segment is showing.xml
leaving dumpxml
entering parsexml
title is "Hackers" - episode "unknown episode"
leaving parsexml
attempting to create recording - success
attempting to set recordingfsid - success
attempting to set bitrate & such - success
attempting to create a dummy station - success
attempting to create a showing - success - trying to set showing info - success
trying to create the program & set the info - success
attempting to showing set program - success
created Hackers : unknown episode : fsid# 2842851
entering tmf2fsid
starting segment part00.ty
entering AddPart
trying to open recordingfsid
success
createing recording ? success
trying to add part - success
trying to mfs streamfill allocate space
success - created newfsid 2842854
trying to set file to fsidtwo - success
leaving AddPart
Re: SA2dtivo - dtivo2SA - working!
Quote:
Originally posted by Hi8
I'll report back on results.
It works perfectly! Plays and looks as good if not BETTER than anything ever recorded on my SA, well, there you have it!
the down side is xfer speed. it took about 5hours to xfer a 1h45m movie to my SA. What is surprising is how fast it downloaded from my dtivo, less than 25mins.
I noticed the time difference the listing info reported a 1hr recording yet the green progbar reported correctly at 1:45.
Great Job RC!
here is the ftp sessionlog info:
sending Hackers .tmf as Hackers .tmf (1 of 1)
PORT 192,168,1,49,7,156
200 PORT command successful.
STOR Hackers .tmf
150 Opening BINARY mode data connection for "Hackers"
Transmitted 1920999936 bytes in 17739.4 secs, (1.04 Mbps), transfer succeeded
226 File transfer complete
PWD
257 "/" is current directory.
TYPE A
200 Type set to A.
PORT 192,168,1,49,8,109
200 PORT command successful.
LIST
150 Opening data connection for file list.
Received 1068 bytes in 0.1 secs, (100.00 Kbps), transfer succeeded
226 Transfer complete.
QUIT
shutting down & exiting
**** please note the last entry ****
on my SA it shuts the server down at the end of a session, on my dtivo it just returns a 221 call 'server closing control connection' the former is abit bit of a disadavantage as I have to go in and manually restart it for each session. On my dtivo it starts on bootup, and runs along side my tivoftpd only on port 24.
using the same client WS_FTP Pro, and both my tivos are running 3.1, and mfs_ftp 1.1.2
Problem decompressing large .tmf file? Nope it was winrar.
For what its worth,
I just downloaded a 5.59 GB (6,008,352,768 bytes on disk) to my ntfs formatted drive. When I opened it up with winrar, it (winrar) said the file was corrupt. I got a similar error with winzip.
So I tried a couple of other windows based decompressors and they worked just fine. (Specifically 7-Zip File Manager from source forge (free) and WinTAR-SCSI (trial)).
Z
explanation-why mfs-ftp wont run.
I've noticed a number of posts about why the mfs_ftp.tcl script doesn't run for some people. I think I can clarify the confusion.
First, what's really going on:
A text file on a dos system has a <cr><nl> at the end of each line. Unix expects just a nl.
Looking at the 1st line in mfs_ftp_1.2.3.tcl, we see a line that is supposed to start the tcl interpreter:
#!/tvbin/tivosh
This invokes a program called /tvbin/tivosh. So
far this is 1st grade stuff. Now for the fly in the ointment...
If the file is a DOS format file, the <cr> before the <nl> becomes part of the filename, and looks like this:
#!/tvbin/tivosh<cr>
Yes, in UNIX a <cr> *can* be part of a filename. Of course the tivo can't find the tivosh<cr> program, and, well, end of story.
The dos2unix command probably strips the <cr> (I dont use this utility myself), or Unix purists might use the command
"tr -d '\r' <mfs_ftp_1.2.3.tcl >mfs_ftp_1.2.3_unix.tcl"
to do the same thing. In either case, this will remove the <cr> and fix the problem.
----------------------------------
why does the command "/tvbin/tivosh ./mfs_ftp_1.2.3.tcl" work? because TCL doesnt
need that filename, and doesn't (usually) care
about the extra <cr> in the file.
----------------------------------
Why is this happening? I looked at the unziped files on my unix system, and find that the mfs_ftp_1.2.2.tcl and mfs_ftp_1.2.3.tcl files are in 'DOS' format. In order to work the <cr> needs to be stripped.. somehow...
IF you use FTP from a *DOS* system up to the tivo
(unix) system in *ASCII* mode, the format translation is done for you , and things should work out of the box. If you use *BINARY* mode,
OR come from a UNIX system, FTP believes no translation is needed... and the extra <cr> is left intact (booo).
If you are running unix, or have the 'od' utility on your Tivo, the following command will show the line terminators and you can see it for yourself:
od -c mfs_ftp_1.2.3.tcl | less
-------
Conclusion: Just run the dos2unix command, or the tr command to remove the 'cr', and enjoy the use of the program!:cool:
500k/sec typical with hub?
I'm running a stock Philips 20hr SA (no hd upgrades) with a turbo net card - anyone else got this setup?
I'm getting 500k/sec - which is fine, but I'm seeing others get 6x that speed.
Is my hub the limiting factor (compared to a switch), or the hard drive?
Riley - this is a truly great app - takes me 11 minutes for a half hour show at basic quality - takes about a minute in tytool 6r3 to convert it to a m2v which I can watch through media player.:)
Time to start taking tv shows to work on the ipod to watch at lunchtime :D :D
Re: 500k/sec typical with hub?
Quote:
Originally posted by kangolo
I'm running a stock Philips 20hr SA (no hd upgrades) with a turbo net card - anyone else got this setup?
I'm getting 500k/sec - which is fine, but I'm seeing others get 6x that speed.
Is my hub the limiting factor (compared to a switch), or the hard drive?
Riley - this is a truly great app - takes me 11 minutes for a half hour show at basic quality - takes about a minute in tytool 6r3 to convert it to a m2v which I can watch through media player.:)
Time to start taking tv shows to work on the ipod to watch at lunchtime :D :D
kangolo,
I have a 14 hr Philips SA with a TiVonet card and Im getting 800k/sec ... with a Turbonet on my other TiVo, I get about 1.5M/sec.
Mickey
Share your shows at LookMa-NoHands.Com!