AVS Forum banner

Status
Not open for further replies.
1 - 20 of 389 Posts

·
Registered
Joined
·
979 Posts
Discussion Starter · #1 ·
I am very pleased to announce the fourth revision of the ReplayTV 5000 Toolkit.


ReplayTV tools are a collection of command line utilities to work with MPEG-2 streams for the ReplayTV 5000 series Personal Video Recorder.


These tools will allow you to do the following:


* Edit downloaded shows without reencoding; stream them with DVArchive

* Convert RTV files for use with DVD Authoring

* Convert RTV4K MPEGs for streaming to a RTV5K

* Convert MPEG-2 streams and stream to a RTV5K with DVArchive



What's New in Rev 4:



Revised Documentation

RTVEDIT: if no associated ndx is found for the given mpg, create a 5k ndx

EVTDUMP: added -p and -i switches to set program time and ignore time

RTVCONV: added -d switch to write demultiplexed streams (.m2v, .mp2)

RVTCONV: added filtering of RTVEDIT-ed files for DVD authoring



EVTDUMP:


* EVTDUMP switches may be useful for changing detection parameters without recompiling. Specify times in seconds. For example, a 30 minute show may have program segments shorter than the default 5 minutes, use -p180 to set the program time limit to 3 minutes.



RTVEDIT:


* RTVEDIT will now re-build a .ndx corresponding to the original .mpg if no .ndx is found. It will *assume* the mpg is a RTV5K stream. There is no check for this and results on a non-RTV5K stream are unpredictable (read "bad"). An .ndx is required for editing the stream, so once the .ndx is re-generated, you can run RTVEDIT on the fileset as normal.



RTVCONVERT:


* RTVCONVERT can now process an RTVEDIT-ed mpg and produce a stream suitable for DVD authoring. Simply run RTVCONVERT on the output of an RTVEDIT stream and use the resulting stream in your DVD authoring program (tested on MediaChance DVDLab, Sonic Solutions DVDit, Sonic/Daikin Scenarist, Ulead MovieFactory 1.x.).


* If your DVD authoring program accepts demultiplexed streams, use the -d switch to have RTVCONVERT write .m2v and .mp2 files directly.



Binaries are included for Mac OS X, Win32 and Linux. Enjoy!

 

rtvtoolsrev4.zip 144.9775390625k . file
 

Attachments

·
Registered
Joined
·
712 Posts
Quote:
Originally posted by agent-x
"suitable for DVD authoring" means your audio should stay in sync. :)
Does this mean no need to buy womble to fix the mpeg? Is this as fast as Womble?
 

·
Registered
Joined
·
1,463 Posts
You're my boy blue! Uh... I mean... way to go Lee! Especially adding the conversion functionality.
 

·
Registered
Joined
·
979 Posts
Discussion Starter · #6 ·
Quote:
Originally posted by dyker
Does this mean no need to buy womble to fix the mpeg? Is this as fast as Womble?
Womble should not be necessary.


If you wanted to convert a 60 minute show to a DVD (waste of space I know but bear with me ;) ) you would just need to do the following steps:


1. Download to your PC (time varies)


2. You'll need to create a simple RTVEDIT script even if you aren't trimming the MPEG at all.

Code:
Code:
FMyFile.mpg
E
Code:
Code:
rtvedit myfile.txt
Even with minor edits and trims it should not take more than 2-3 minutes to process on a 2Ghz machine. (NOTE if you have Write Caching disabled on Windows it'll double the time.)


3. Now all you need to do is run RTVCONVERT on the file RTVEDIT just made. (using the above example it would be MyFile1.mpg).

Code:
Code:
rtvconvert myfile1.mpg DVDfile.mpg
If your DVD authoring tool perfers demuxed streams you can specify -d on the command line and rtvconvert will demux it for you.

Code:
Code:
rtvconvert -d myfile1.mpg DVDfile.mpg
Either way about 2-3 minutes for this step. As with RTVEDIT, if write caching is disabled on the drive it'll be closer to 5-6.



So the total time for processing the MPG after it's on your PC to when it's in your DVD Authoring application can be as little as 5-6 minutes. (Obviously it depends on the speed of your machine and how long the MPG is)
 

·
Registered
Joined
·
8,103 Posts
I love these tools. Just been keeping quiet waiting for others to talk about it so it's spelled out to me and all I have to do is add it up. I suspect others are doing the same because not much has been said in this thread so far.


In a different thread, some smart-type person showed how to make a little batch file script as an icon. All you have to do is drop a file(a replay mpg in this case) on to the icon and several command line programs are run in sequence making the process a nobrainer. Where did I see that? I might search for it later and post back here or EDIT this post. It seems perfect for these tools (batch files are so easy to reconfigure too).


There's other programs that will wait till a file arrives in a directory and then processes it how ever you have it set up(however you want). I'm eyeing out a way to use all of the above to automate the process from DVArchive transfer scheduling to ripping out the commercials and saving space or sending dvd-ready mpgs to a folder so all is left is to burn them.


I don't like the grammatic structuring of this post, but I'm tired right now; hope it's readable.


I love Lee for being the bringer of all good things. Hope the creator of the program understands how much the work is appreciated. The praise goes unheard from people all over who celebrate the tools quietly in their unmarked and uncounted casas with little grins and smiles. There have been bigger software productions that are more formidable, but these little tools are the ones fueling the revolutionary process. I want to give recognition. Hope I didn't hit too many cheesey notes telling you how I feel. I'd leave it said by the poets, but they never show up.


cow
 

·
Registered
Joined
·
108 Posts
Re: rtvconvert for DVD authoring


Is it to say that the output mpeg (assuming no demux)

of rtvconvert on a 5K mpeg can be streamed back to the replaytv as well as be used in DVD authoring tool?
 

·
Registered
Joined
·
712 Posts
Quote:
Originally posted by Lee Thompson
Womble should not be necessary.

WOW!! Thanks!! Wife just asked me about copying off some kid's show that is only airing this weekend to DVD and I was thinking I'd have to crack open the wally. If this all works as billed, are you asking for anything via Paypal?


:cool:
 

·
Registered
Joined
·
1,951 Posts
Ok, I have been too lazy to try these tools until last night. My compatibility-exchange units are arriving tomorrow, and I want to be able to keep some of my old recordings. I ran rtvedit on my 4k files and converted them to "5k" files. Seems to have worked and the files do stream back to the 5k's using DVArchive. I'm amazed at how quickly this works. The longest it rans was 5 minutes!


The basic procedure (for those who haven't tried it) is to create a text file with the commands shown in one of the readme files. I think it is all of three lines long. Then execute "rtvedit edit.txt" on the command line. Once the files are converted you will need to notify DVArchive that the MPEG is now compatible with the 5k's. Go into DVArchive and select the shows properties. Under the Advanced tab there is a pull-down for configuring the MPEG RTV version.


I did receive a couple of different errors... first was something about an invalid ndx file. It was just ignored and it contued straight on. The second was something about an improper index. It just skips to a valid index and continues converting. So far I have not found any problems in the new MPEG files, but I haven't watched them all the way through yet. Of course, YMMV.


Thanks a lot Lee and 'anonymous' for producing these tools. I suspect 'anonymous' is one of the RTV programmers, but this is only a guess.


Cheers
 

·
Registered
Joined
·
36 Posts
Hey, I've never tried these tools and I'm thinking of doing so this weekend -- just a couple of questions first:


Since this tool appears to depend on RTV's detecting commercials, it seems for those that are not detected, you have to go through the video and find the beginning/end times of the commercial segments and put those in the evtdump file manually? If this is the case, my other question is, in order to view the video beforehand (to find the commercials) I have to use VLAN, and since the video is recorded in VBR, the time fluctuates constantly, making it impossible to tell exactly when the commercial segment commences/ends. Any suggestions?


Thanks!



CC
 

·
Registered
Joined
·
535 Posts
Well, if you do look closely at the evt dump file, you would notice that all the commercials and more (scene changes) are detected and dumped, it is just that the CA logic didnt identify them as commercial breaks. So all you need to do is flip a few A's into D's :)

Here is how I do it. I run the evtdump on the file and open it in editor. I than run rtvedit and take a note at what points the show was edited (it is also obvious from the evt file, but much easier to see in the output of the edit file (you can also just redirect the output of the editing program to a file and open it for viewing later). For example is the 60 minutes show shows that the edited file is 43 minutes, good chance is nothing needs to be done, and all commercials were detected correctly. If the file is smaller or bigger, I'll open the original video file in WMP or VLAN and drag to the first edit point, than second than so on. I do not need to determine points, I just want to find, where they are approximately. Once I see that any of the points are out of wack, I go to the opened evt.txt file and sure enough, if there is a porblem, that means that there is A in front of that edit point - flip it to D. Try it and you get a hand of it, really the whole process is a lot faster than wombling, cause you dont really have to detect frames and such.

I use far.exe from rarsoft.com instead of the run interface of windows, but maybe somebody will write a gui interface to the tools.

Quote:
Originally posted by Cobalt_Crysalis
Hey, I've never tried these tools and I'm thinking of doing so this weekend -- just a couple of questions first:


Since this tool appears to depend on RTV's detecting commercials, it seems for those that are not detected, you have to go through the video and find the beginning/end times of the commercial segments and put those in the evtdump file manually? If this is the case, my other question is, in order to view the video beforehand (to find the commercials) I have to use VLAN, and since the video is recorded in VBR, the time fluctuates constantly, making it impossible to tell exactly when the commercial segment commences/ends. Any suggestions?


Thanks!



CC
 

·
Registered
Joined
·
979 Posts
Discussion Starter · #13 ·
Quote:
Originally posted by wen-king
Re: rtvconvert for DVD authoring


Is it to say that the output mpeg (assuming no demux)

of rtvconvert on a 5K mpeg can be streamed back to the replaytv as well as be used in DVD authoring tool?
Yes. :)
 

·
Registered
Joined
·
979 Posts
Discussion Starter · #14 ·
Quote:
Originally posted by alyosha
Well, if you do look closely at the evt dump file, you would notice that all the commercials and more (scene changes) are detected and dumped, it is just that the CA logic didnt identify them as commercial breaks. So all you need to do is flip a few A's into D's :)

Here is how I do it. I run the evtdump on the file and open it in editor. I than run rtvedit and take a note at what points the show was edited (it is also obvious from the evt file, but much easier to see in the output of the edit file (you can also just redirect the output of the editing program to a file and open it for viewing later). For example is the 60 minutes show shows that the edited file is 43 minutes, good chance is nothing needs to be done, and all commercials were detected correctly. If the file is smaller or bigger, I'll open the original video file in WMP or VLAN and drag to the first edit point, than second than so on. I do not need to determine points, I just want to find, where they are approximately. Once I see that any of the points are out of wack, I go to the opened evt.txt file and sure enough, if there is a porblem, that means that there is A in front of that edit point - flip it to D. Try it and you get a hand of it, really the whole process is a lot faster than wombling, cause you dont really have to detect frames and such.

I use far.exe from rarsoft.com instead of the run interface of windows, but maybe somebody will write a gui interface to the tools.
Personally, I run evtdump and then modify the result manually using VirtualDub-MPEG2 (VirtualDub with the MPEG2 modification) since it always shows the timestamp in HHH:MM.HSEC.


Note if you use edit times from any external (non EVTDUMP) source you'll want to use rtvedit with the -t1 option. (The NDX's clock is a little different than the MPG's clock.)



Also remember the new additions to evtdump let you tune the commercial detection (-p and -i flags).
 

·
Registered
Joined
·
535 Posts
Neat, I have to play with the -p and -i to see if I can create templates for specific shows, and just use them instead of editing evt file.
 

·
Registered
Joined
·
108 Posts
I can't get my mplex (linux/unix) to recognize the

output of rtvconvert. In my simple script for making

DVD, mplex is used to add VOB header to mpeg2

file before dvdauthor (linux/unix). Is adding VOB

header perhaps something that can be incorporated

into a future release of rtvconvert?
 

·
Registered
Joined
·
805 Posts
Great job.


And, for what it's worth, an 'rtvconvert into regular dvd' not only makes a great input to Ulead DMF2, it also makes the Hauppague MediaMVP a lot happier. MediaMVP can open a directory with dozens of 'rtvconverted' mpg files virtually instantly -- first time, every time.
 

·
Registered
Joined
·
44 Posts
Quote:
Originally posted by Lee Thompson
I am very pleased to announce the fourth revision of the ReplayTV 5000 Toolkit.


RTVCONV: added -d switch to write demultiplexed streams (.m2v, .mp2)

RVTCONV: added filtering of RTVEDIT-ed files for DVD authoring


Binaries are included for Mac OS X, Win32 and Linux. Enjoy!
Um, not trying to nitpick or anything, but is there a separate/different RVTconv utility, as opposed to RTVconv? If there is, I don't see it for any os. Just wondering, thanks. Keep up the great work!


-e
 

·
Registered
Joined
·
8,143 Posts
Lee, couple of questions for you...


1) The -i and -p options that can modify the commercial detection, is this just the way the events are handled or is there acutal reprocessing of the mpeg stream?


2) The cut on rtvconvert... it's limited to cutting on GOP boundries? Or are partial GOPs reconstructed?


Looks cool!


I'm about to use event dump to look at the commercial detection differences between 5.0 and 5.1. I might need to bone up on events quickly, any documentation on the events?


Thanks to you guys!
 
1 - 20 of 389 Posts
Status
Not open for further replies.
Top