# .TIVO with CAPTIONS on Mac

Discussion in 'TiVo Roamio DVRs' started by deac33, May 3, 2014.

1. #21 of 56

### moyekjWell-Known Member

11,259
76
Jan 23, 2006
Mission...
If you go back to my 1st post in this thread, the suggestion was to download TiVo files in TS format then use pyTivo to send it back:
The ts=on setting doesn't affect transfers for .TiVo files as they are left as is by pyTivo.

If the only goal is to archive shows for your TiVo then TS .TiVo files are the best option.

If you want to do something else with the downloaded files then the problem is TS .TiVo files can't be decrypted properly by tivodecode. VideoRedo (which runs on Windows only) with a minimal TiVo Desktop installation can handle decryption of these TS .TiVo files, so you'd need to find a way to be able to run Parallels or something with Windows to pursue that option.

2. #22 of 56

### deac33Member

44
0
Sep 28, 2013
I would really like to be able to download one file that can be both played on other devices with captions like a .mpg as well as be uploaded back to the Tivo still retaining the captions. (We have this second goal with the TS .TIVO file).

Will a VideoRedo decoded .mpg file serve both of these purposes?

Is there possibly another decoder that does run on a Mac that can generate such a .mpg file from a TS .TIVO file?

I don't know why some PS decoded .mpg files have good captions and some do not even when played on the computer.

I fear I may have to resort to trying VideoRedo in Parallels, but at least that may give me one .mpg file that can also be uploaded.

Thank you for your long suffering advice to stay with me on this exploratory journey. You are an absoute champ.

3. #23 of 56

### moyekjWell-Known Member

11,259
76
Jan 23, 2006
Mission...
Decrypting TS .TiVo file to a TS .mpg file and then returning the that .mpg file to TiVo with ts=on setting should work. In that case, pyTivo will know it doesn't need to remux the file so ffmpeg won't be in the picture so you shouldn't have an issue related to ffmpeg.

The only available solutions for decrypting .TiVo files that I know of are:
1. tivodecode - a cross-platform C-based program that can only really handle PS .TiVo files properly. (There are versions of tivodecode with TS support, but from my experience and others it has problems and doesn't work without issues for most TS .TiVo files. It either doesn't work at all or if it does, generates a .mpg file that has improperly decrypted segments resulting in heavy pixelation during playback).
2. Windows DirectShow with at least partial TiVo Desktop installation (VideoRedo uses DirectShow to decrypt .TiVo files).

So for TS .TiVo files there's no reliable way to decrypt them on platforms other than Windows that I know of.

4. #24 of 56

### moyekjWell-Known Member

11,259
76
Jan 23, 2006
Mission...
Of course you always have the option to:
1. Download shows as TS .TiVo files for sole purpose of transferring back to TiVos
2. Download same shows as PS .TiVo files to different location as above for purposes other than transferring back to TiVos.

5. #25 of 56

### deac33Member

44
0
Sep 28, 2013
Thanks for this and your subsequent comments that suggest that to do what I want to do requires trying your suggestions here:
... Using VideoRedo on Windows.

So I created a fresh Windows 7 virtual machine in Parallels and installed the 15 day trial version of the $50 VideoRedo Plus 3.1, the latest on their website. In kmttg Configure... under VideoRedo I entered the VRD path and checked both: ... Decrypt using VideoRedo instead of tivodecode ... Show VideoRedo encoding profiles When I saved the configuration an error message showed up: ... Configuration saved to file: C:\kmttg\config.ini ... Refreshing encoding profiles ... Encoding support requires VRD version 4.20.2.595 or later ... Version you are running is: 3.10.3.629 - Nov 9 2011 ... Encountered problems obtaining encoding profiles from VideoRedo Of the 3 versions of VideoRedo on their site, the only one at version 4.2 is the$96 TVSuite H.264. Since I can live with mpg and not requite mp4, I don't need the H.264, correct?

I unchecked "Show VideoRedo encoding profiles" and it saved okay. To just get uploadable mpg's with captions can I get along with the kmttg built in encoding profiles and not need the ones from VideoRedo?

6. #26 of 56

### moyekjWell-Known Member

11,259
76
Jan 23, 2006
Mission...
If you are not encoding to H.264 you only need the \$50 VideoRedo. Using VideoRedo kmttg will decrypt TS .TiVo files to a mpeg2 .ts file which you can subsequently transfer back to your TiVos with captions intact using pyTivo and/or further process for other devices using kmttg ffmpeg or handbrake encoding profiles.

7. #27 of 56

10,401
42
Aug 2, 2003
DirectShow Dump will decode TS .TiVo files, you don't need VideoReDo.

8. #28 of 56

### moyekjWell-Known Member

11,259
76
Jan 23, 2006
Mission...
I don't believe you can batch a bunch of jobs at once (or even queue up a bunch at once to process 1 at a time) using DirectShow Dump though right?

9. #29 of 56

### deac33Member

44
0
Sep 28, 2013
Actually I can live with one at a time at this point if it just works to give an mpg with captions that can also be uploaded. I've been running into new problems with VideoRedo, so I'll put that on hold and I'll check out DirectShow Dump.

Many thanks to you both. You are both super rock stars.

-deac

10. #30 of 56

### moyekjWell-Known Member

11,259
76
Jan 23, 2006
Mission...
FYI, it looks like there is a command line version available in this zip file which could be used to batch a bunch of jobs. I guess I should think about adding that to kmttg as an option for Windows users.

11. #31 of 56

10,401
42
Aug 2, 2003
I've actually only used the command-line version of DSD, which probably says a lot about me.

12. #32 of 56

### deac33Member

44
0
Sep 28, 2013

The only documentation I could find was the /? switch which shows -s and -t. I used a kmttg TS .TIVO file for -s and gave a directory for -t (and then a filename I made up as MM.mpg). There was no output in either case. Possible a permissions issue though I opened up the destination disk with chmod 777 -R and then checked that it's all writeable.

I assume that it wants a .TIVO as input and produces a .mpg?

Does it need other installations, I see references to Tivo Desktop?

thanks,
-deac

13. #33 of 56

### moyekjWell-Known Member

11,259
76
Jan 23, 2006
Mission...
Yes, you need at least a partial install of TiVo Desktop with TiVoDirectShowFilter.dll installed and registered for DirectShow Dump or VideoRedo to work. A partial install is achieved by first installing TiVoDesktop and configuring it with MAK, etc. then uninstall and choose partial uninstall to keep the components needed to decrypt .TiVo files. TiVo is hiding TiVo Desktop these days, but the link is:
http://assets.tivo.com/assets/exe/tivotogo/TiVoDesktop2.8.3.exe

Note that I have incorporated DirectShow dump in beta version of kmttg. You can substitute your current kmttg.jar with the one in this zip file:

Then if running kmttg on Windows run Help->Update tools to download updated tools package which contains DirectShow dump.
Then you can find an option to enable under config->Program Options: "Decrypt using DirectShow Dump instead of tivodecode"

The command line for DSDCmd.exe is quite simple:
"\path\to\DSDCmd.exe" "-s:\path\to\file.TiVo" "-t:\path\to\file.mpg"
(The quotes around everything is in case your paths and/or file names have spaces).

(Note that DSDCmd.exe is not setup to accept stdin instead of a file, so combined download/decrypt is not possible).

14. #34 of 56

10,401
42
Aug 2, 2003
BTW, I use (and pyTivo uses) ".ts" for transport streams, and ".mpg" only for program streams. If you tell FFmpeg to make a new stream, and you don't specify the format, it will infer the same way, based on the filename.

15. #35 of 56

### moyekjWell-Known Member

11,259
76
Jan 23, 2006
Mission...
For kmttg encodes the format is always explicitly defined, so the file extension name doesn't really matter. Having said that, when using VideoRedo for decrypt I do actually use .ts extension for TS .TiVo decrypt/qsfix instead of .mpg. (Also use .ts for H264 .TiVo decrypt).

16. #36 of 56

### deac33Member

44
0
Sep 28, 2013
YES, IT WORKS!!!! End to end, I was able to download with TS to .TIVO and decrypt to .mpg which can be played in VLC with captions and the mpg uploaded back to the Tivo with the same beautiful captions as the original. THANK YOU SO MUCH FOR ADDING THIS AND FOR ALL OF THE ASSISTANCE!!!

This is a complete win for my goals. I am going to test comskip which is still running but I'll be quite content even if that doesn't work out. I'm about 4 days into the 15 day VideoRedo trial so it's available if needed.

Quicktime player does not show the captions, but that's okay. I have your "captions" task queued and will put the .srt file in the same folder as the .mpg just to test, but VLC is probably a better player anyway.

Testing so far has been successful on two recordings which failed every other approach, and their upload succeeded to two different Tivos.

After my other tests I'll copy my Parallels virtual machine and put it on a second Mac to go into production mode with the 2 Macs to download all of my recordings to date. Hopefully never again will I have to be concerned about filling the Tivo hard disk. And I can take the mpg's with me to play on the road.

It's so nice to have everything working in a single mpg so I don't have to save every .TIVO (though I probably will as a form of backup. )

As always, your instructions were perfectly clear and complete. You have a great talent for not only imagining what needs to be done and writing the code but also for explaining it clearly. THANK YOU, THANK YOU, THANK YOU!!

I'll use this for a few days and clean up my notes and come back with any new results.

BUT MISSION ACCOMPLISHED for what I really wanted to do. Anything else is gravy.

-deac

17. #37 of 56

### deac33Member

44
0
Sep 28, 2013
William, thank you so much for joining the conversation. You and Kevin are doing wonderful things for humanity. Many thanks to you both!

-deac

18. #38 of 56

### deac33Member

44
0
Sep 28, 2013
First failure - a little more testing shows that the mpg's often only have about 70% of the captions of the original recording. The .TIVO files when uploaded so far do have perfect video, audio, and captions, so I will be keeping both .TIVO & mpg.

I suspect that the DirectShow Dump may have some. I understand that it's no longer being supported, that would be a shame because it seems powerful.

I just started a new test using VideoRedo to decrypt. I'll see how that comes out.

19. #39 of 56

### deac33Member

44
0
Sep 28, 2013
After a tiny sample it appears that VideoRedo only misses a few sentences in the captions and then picks up again. And the captions are much less noisy than with DirectShow Dump. Unless you can think of a way to get DirectShow Dump cleaned up, buying VideoRedo may be the best system.

-deac

20. #40 of 56