TiVo Community
TiVo Community
TiVo Community
Go Back   TiVo Community > Main TiVo Forums > TiVo Home Media Features & TiVoToGo
TiVo Community
Reply
Forum Jump
 
Thread Tools
Old 01-02-2014, 05:17 PM   #6241
moyekj
Registered User
 
Join Date: Jan 2006
Location: Mission Viejo, CA
Posts: 9,300
Quote:
Originally Posted by lpwcomp View Post
Actually, it doesn't. What I want to do is feed the .tivo file directly to VRD adscan/adcut-encode. To this end, I have metadata, Ad Detect, Ad Cut and Encode selected. Neither decrypt nor QS fix is selected. I also have the relevant VRD options selected. Unfortunately, kmttg looks for the .mpg file and uses it if it exists. If it doesn't exist, it forces a qsfix to create one.

If you could just point me to the routine wherein it makes that decision, I am perfectly fine with adding to my local mods. I've already found the place in adscan.java to mod that I think will get me what I want.
Yes, that's the right file to modify. But FYI comskip usually gives better commercial detection results but of course cannot operate on .TiVo files.
__________________
Roamio Pro, Elite, Premiere
Cox - Motorola CableCards & TAs
Slingbox 350 via TiVo Mini & TiVo Stream for remote viewing

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
moyekj is offline   Reply With Quote
Old 01-02-2014, 05:48 PM   #6242
Hyrax
Registered User
 
Join Date: Sep 2007
Posts: 100
Quote:
Originally Posted by lpwcomp View Post
What I want to do is feed the .tivo file directly to VRD adscan/adcut-encode.
Does 'adscan/adcut' actually work for you? I've found that both adscan and comskip make enough mistakes that I need to manually review and edit where I want the cuts. There are almost always a minute or two cut from every show (and a lot more from sports events) that should not be cut. I must be doing something wrong if it works nearly perfectly for you.
Hyrax is offline   Reply With Quote
Old 01-02-2014, 06:00 PM   #6243
moyekj
Registered User
 
Join Date: Jan 2006
Location: Mission Viejo, CA
Posts: 9,300
Quote:
Originally Posted by Hyrax View Post
I must be doing something wrong if it works nearly perfectly for you.
I've never heard of either one working even close to perfectly for anyone, at least not without tweaking. Personally I find it quicker to bypass automated ad detection completely and manually find the cuts myself using VRD editing. I also make sure to make the cuts on I-Frames only such that VRD doesn't have to re-encode around any of the cut points.
__________________
Roamio Pro, Elite, Premiere
Cox - Motorola CableCards & TAs
Slingbox 350 via TiVo Mini & TiVo Stream for remote viewing

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
moyekj is offline   Reply With Quote
Old 01-02-2014, 06:06 PM   #6244
ALbino
Lurker Series 2
 
Join Date: Jun 2002
Posts: 67
How can you tell in VRD if it's an I-Frame?
__________________
Evolution: Phillips HDR212 -> Series 2 140060 -> DirecTV TiVo -> Premiere XL4
ALbino is offline   Reply With Quote
Old 01-02-2014, 06:13 PM   #6245
moyekj
Registered User
 
Join Date: Jan 2006
Location: Mission Viejo, CA
Posts: 9,300
Quote:
Originally Posted by ALbino View Post
How can you tell in VRD if it's an I-Frame?
From VRD GUI enable View->Display On Screen Information and in top left corner VRD will show the frame type (I for I-Frames). Plus what I do is under Tools->Options->Navigation I set unshifted right/left arrows to "Move next I-Frame" and shifted right/left arrows to "Move 0.5 Seconds". With that unshifted arrow setup I can jump only between I-Frames when using left/right arrow keys. So when editing I will drag the selection point bar to get close to commercial point, then use left/right arrow keys to fine tune to the exact I-Frame to cut on.
__________________
Roamio Pro, Elite, Premiere
Cox - Motorola CableCards & TAs
Slingbox 350 via TiVo Mini & TiVo Stream for remote viewing

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
moyekj is offline   Reply With Quote
Old 01-02-2014, 06:36 PM   #6246
ThAbtO
TiVoholic by the bay
 
ThAbtO's Avatar
 
Join Date: Apr 2000
Location: SF Bay Area
Posts: 4,989
Quote:
Originally Posted by moyekj View Post
From VRD GUI enable View->Display On Screen Information and in top left corner VRD will show the frame type (I for I-Frames). Plus what I do is under Tools->Options->Navigation I set unshifted right/left arrows to "Move next I-Frame" and shifted right/left arrows to "Move 0.5 Seconds". With that unshifted arrow setup I can jump only between I-Frames when using left/right arrow keys. So when editing I will drag the selection point bar to get close to commercial point, then use left/right arrow keys to fine tune to the exact I-Frame to cut on.
I use up/down for frames, left/right for 1 sec, pgup/dn for 30 sec, mouse wheel for 1/2 sec.
__________________
Series 2 (PLS, sold)
TiVo HD 1TB (157 HD Hrs, PLS, "652")
Roamio! Oh, wait, Its Juliet!
OTA! OTA! OTA!

~~~~~

The TiVo Apocalypse begins on Sat 2013 Feb 16 00:00 GMT!
ThAbtO is offline   Reply With Quote
Old 01-02-2014, 07:33 PM   #6247
cherry ghost
Registered User
 
cherry ghost's Avatar
 
Join Date: Sep 2005
Location: Chicago
Posts: 4,237
I gave up on Comskip about 6 months ago and just use Mpg2Cut2 now to manually cut.
cherry ghost is online now   Reply With Quote
Old 01-02-2014, 07:37 PM   #6248
lpwcomp
Registered User
 
Join Date: May 2002
Location: John's Creek, Georgia
Posts: 5,554
Quote:
Originally Posted by Hyrax View Post
Does 'adscan/adcut' actually work for you? I've found that both adscan and comskip make enough mistakes that I need to manually review and edit where I want the cuts. There are almost always a minute or two cut from every show (and a lot more from sports events) that should not be cut. I must be doing something wrong if it works nearly perfectly for you.
Quote:
Originally Posted by moyekj View Post
I've never heard of either one working even close to perfectly for anyone, at least not without tweaking. Personally I find it quicker to bypass automated ad detection completely and manually find the cuts myself using VRD editing. I also make sure to make the cuts on I-Frames only such that VRD doesn't have to re-encode around any of the cut points.
It doesn't work perfectly and I never said it did, but so far, AFAICT, it has not cut anything it shouldn't have, merely left stuff that could have been cut.

I use kmmttg mostly for unattended auto transfer-push to a remote TiVo 2. I am hoping to use adscan/adcut to reduce the network traffic and thus the time it takes for the xfer.

For my local archiving purposes, I'll probably only use kmttg for the xfer to the PC and creation of the metadata and then run VRD manually.
__________________
James L. Sutherland
"You know TiVo users. Bunch of b****y little girls" TiVoAxe

"Jessica Fletcher visits Midsomer. Carnage ensues!"
lpwcomp is offline   Reply With Quote
Old 01-02-2014, 07:38 PM   #6249
lpwcomp
Registered User
 
Join Date: May 2002
Location: John's Creek, Georgia
Posts: 5,554
For manual purposes, I have found adscan to be an excellent starting point.
__________________
James L. Sutherland
"You know TiVo users. Bunch of b****y little girls" TiVoAxe

"Jessica Fletcher visits Midsomer. Carnage ensues!"
lpwcomp is offline   Reply With Quote
Old 01-03-2014, 01:10 AM   #6250
moyekj
Registered User
 
Join Date: Jan 2006
Location: Mission Viejo, CA
Posts: 9,300
Quote:
Originally Posted by ThAbtO View Post
Suggestion:

There should be a new option for Web show query so spaces can be removed.

IE: Charlie's Angels

Currently this will result in "Charlies+Angels" when a web site page would need "CharliesAngels"

I currently use www.EpGuides.com for TV episode information and the above example would need the URL to be "www.epguides.com/CharliesAngels", (not cap case sensitive).
kmttg is UTF8 encoding title to make the web query which is the logical way to do things and the default imdb query understands.

So Charlie's Angels would become:
Charlie%27s+Angels

So kmttg default imdb query would become the following which works:
www.imdb.com/find?s=all&q=Charlie%27s+Angels

There must be a syntax where epguides.com accepts a proper url encoding. For request of just getting rid of spaces that wouldn't be sufficient as the ' encodes to %27, etc.
__________________
Roamio Pro, Elite, Premiere
Cox - Motorola CableCards & TAs
Slingbox 350 via TiVo Mini & TiVo Stream for remote viewing

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Last edited by moyekj : 01-03-2014 at 01:15 AM.
moyekj is offline   Reply With Quote
Old 01-03-2014, 01:06 PM   #6251
lpwcomp
Registered User
 
Join Date: May 2002
Location: John's Creek, Georgia
Posts: 5,554
Let me preface this with the fact that I loathe Win 8, but I suppose these problems exist in prior versions.

Anyway, to the issue. I am unable to get VRD to run when invoked by the kmttg service. Here is what I am seeing in the log:

Code:
2014_01_03_11:04:41 NOTE: D:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo: size=1336.57 MB elapsed=0:02:41 (69.64 Mbps)
2014_01_03_11:04:41 ---DONE--- job=download output=D:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo
2014_01_03_11:04:44 NOTE: container=mpeg, video=mpeg2video
2014_01_03_11:04:44 >> Running qsfix on D:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo ...
2014_01_03_11:04:44 C:\WINDOWS\system32\cscript.exe //nologo C:\kmttg\VRDscripts\qsfix.vbs "D:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo" "C:\kmttgmpegs\Top Chef.S11E12.Mississippi Mud Bugs.mpg.qsfix" "/l:C:\Users\J. L. Sutherland\AppData\Local\Temp\VRDLock2972422086245256262.tmp" /m /c:mpeg /v:mpeg2video 
2014_01_03_11:04:46 ERROR: qsfix failed (exit code: 3 ) - check command: C:\WINDOWS\system32\cscript.exe //nologo C:\kmttg\VRDscripts\qsfix.vbs "D:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo" "C:\kmttgmpegs\Top Chef.S11E12.Mississippi Mud Bugs.mpg.qsfix" "/l:C:\Users\J. L. Sutherland\AppData\Local\Temp\VRDLock2972422086245256262.tmp" /m /c:mpeg /v:mpeg2video 
2014_01_03_11:04:46 ERROR: ? Unable to open file/project: D:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo
2014_01_03_11:04:48 ERROR: mpeg file not found: C:\kmttgmpegs\Top Chef.S11E12.Mississippi Mud Bugs.mpg
2014_01_03_11:04:50 NOTE: OVERWRITING EXISTING FILE: D:\Video\Top Chef.S11E12.Mississippi Mud Bugs.mpg
2014_01_03_11:04:50 ERROR: VRD combine Ad Cut & Encode option selected but .Vprj file doesn't exist: C:\kmttgmpegs\Top Chef.S11E12.Mississippi Mud Bugs.VPrj
I have the kmttg service set to run on the same account that the system is running. I have tried disabling both Avasti and the Windows fire wall with bo change. I have run VRD "As Administrator" multiple times. I'm obviously doing something wrong.

Note: My local changes to kmttg to use .tivo file w/o the separate dcrypt step are not in place.
__________________
James L. Sutherland
"You know TiVo users. Bunch of b****y little girls" TiVoAxe

"Jessica Fletcher visits Midsomer. Carnage ensues!"
lpwcomp is offline   Reply With Quote
Old 01-03-2014, 01:40 PM   #6252
moyekj
Registered User
 
Join Date: Jan 2006
Location: Mission Viejo, CA
Posts: 9,300
Sounds like VRD in service mode cannot see/access file for some reason:
D:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo

Is volume D a network drive? If so try specifying location in kmttg as //host/path instead.

I'm assuming in GUI mode it works properly with above file? Does changing location of .TiVo files to C volume allow it to work in service mode or same error?

Other long shot thing to try is enable "Allow multiple VideoRedo jobs at once" setting in kmttg which will run VRD in non-silent mode (so you will see VRD windows appearing). Doubt it will help but worth a shot.
__________________
Roamio Pro, Elite, Premiere
Cox - Motorola CableCards & TAs
Slingbox 350 via TiVo Mini & TiVo Stream for remote viewing

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
moyekj is offline   Reply With Quote
Old 01-03-2014, 05:26 PM   #6253
BH9244
Registered User
 
Join Date: Feb 2009
Posts: 90
I'm sure someone will promptly point out that I have missed something obvious so apologies in advance if that is the case. But I'm interested in whether there is a means to export listings in kmttg such as the To-Do List etc.. Thanks
BH9244 is offline   Reply With Quote
Old 01-03-2014, 05:36 PM   #6254
ALbino
Lurker Series 2
 
Join Date: Jun 2002
Posts: 67
Quote:
Originally Posted by moyekj View Post
From VRD GUI enable View->Display On Screen Information and in top left corner VRD will show the frame type (I for I-Frames). Plus what I do is under Tools->Options->Navigation I set unshifted right/left arrows to "Move next I-Frame" and shifted right/left arrows to "Move 0.5 Seconds". With that unshifted arrow setup I can jump only between I-Frames when using left/right arrow keys. So when editing I will drag the selection point bar to get close to commercial point, then use left/right arrow keys to fine tune to the exact I-Frame to cut on.
Very cool! Thanks.
__________________
Evolution: Phillips HDR212 -> Series 2 140060 -> DirecTV TiVo -> Premiere XL4
ALbino is offline   Reply With Quote
Old 01-03-2014, 05:48 PM   #6255
lpwcomp
Registered User
 
Join Date: May 2002
Location: John's Creek, Georgia
Posts: 5,554
Quote:
Originally Posted by moyekj View Post
Sounds like VRD in service mode cannot see/access file for some reason:
D:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo

Is volume D a network drive? If so try specifying location in kmttg as //host/path instead.
It is a local SATA drive on this machine.

Quote:
Originally Posted by moyekj View Post
I'm assuming in GUI mode it works properly with above file? Does changing location of .TiVo files to C volume allow it to work in service mode or same error?
Yes, it works fine in the GUI. Changing to C drive made no difference.

This is in the VRD log for a kmttg GUI initiated run:

Code:
2014-01-03 18:13:46 Decoder support lib: 7.0 build 205.58, ippvcg9_l.lib
2014-01-03 18:13:46 Image   support lib: 7.0 build 205.58, ippvcg9_l.lib
2014-01-03 18:13:47 VideoReDo TVSuite started. Licensed to: JA-M073HG-GGCYVA, Version: 4.21.6.674 - Dec 12 2013, AVP On (00cf0070-4}
2014-01-03 18:13:47 Starting up with silent and batch: 1  0
2014-01-03 18:13:47 Destruct CVideoReDoDlgAutoProxy
2014-01-03 18:17:00 Decoder support lib: 7.0 build 205.58, ippvcg9_l.lib
2014-01-03 18:17:00 Image   support lib: 7.0 build 205.58, ippvcg9_l.lib
2014-01-03 18:17:00 VideoReDo TVSuite started. Licensed to: JA-M073HG-GGCYVA, Version: 4.21.6.674 - Dec 12 2013, AVP On (00cf0070-4}
2014-01-03 18:17:00 Starting up with silent and batch: 0  367d7a8
2014-01-03 18:17:01 TS ReadProgramMapTables, seeking to: 467158568
2014-01-03 18:17:01 TS ReadProgramMapTables, seeking to: 934317136
2014-01-03 18:17:01  
           ***** Loading: C:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo

2014-01-03 18:17:01 Setting Batch QSF flag.
2014-01-03 18:17:01 Opening: C:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo in QuickStream Fix Mode.


Quote:
Originally Posted by moyekj View Post
Other long shot thing to try is enable "Allow multiple VideoRedo jobs at once" setting in kmttg which will run VRD in non-silent mode (so you will see VRD windows appearing). Doubt it will help but worth a shot.
Was already enabled. Tried with it disabled. No change.

Seeing this in the VRD log:

Code:
2014-01-03 17:20:58 VideoReDo TVSuite started. Licensed to: JA-M073HG-GGCYVA, Version: 4.21.6.674 - Dec 12 2013, AVP On (00cf0070-4}
2014-01-03 17:20:58 Starting up with silent and batch: 0  239c988
2014-01-03 17:20:58 Tivo reader open error: 0x80071771, file: C:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo
2014-01-03 17:20:58 Tivo reader open error: 0x80071771, file: C:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo
2014-01-03 17:20:58 COM open error for file: C:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo, Error: Tivo file open error, please check your media access key.
Is it possible that there is some weird timing problem wherein the server initiated VRD job is reading the .tivo file before it is actually complete?

I'm also curious about difference in the two commands.

This is from the GUI log:
Code:
C:\WINDOWS\system32\cscript.exe //nologo C:\kmttg\VRDscripts\qsfix.vbs "C:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo" "C:\kmttgmpegs\Top Chef.S11E12.Mississippi Mud Bugs.mpg.qsfix" /l:C:\Users\JL5282~1.SUT\AppData\Local\Temp\VRDLock9047896989165215547.tmp /m /c:mpeg
This is from auto.log.0:

Code:
C:\WINDOWS\system32\cscript.exe //nologo C:\kmttg\VRDscripts\qsfix.vbs "C:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo" "C:\kmttgmpegs\Top Chef.S11E12.Mississippi Mud Bugs.mpg.qsfix" "/l:C:\Users\J. L. Sutherland\AppData\Local\Temp\VRDLock7546112818664612495.tmp" /m /c:mpeg /v:mpeg2video
When I bring up the VRD Gui and open the .tivo file, I get this in the VRD log:

Code:
2014-01-03 18:03:23 TS ReadProgramMapTables, seeking to: 467158568
2014-01-03 18:03:23 TS ReadProgramMapTables, seeking to: 934317136
2014-01-03 18:03:23  
           ***** Loading: C:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo

2014-01-03 18:03:24 Using display driver: VMR9
2014-01-03 18:03:24 VMR 9 (Windowless), MEDIASUBTYPE_YV12 
2014-01-03 18:03:24 VMR 9 (Windowless), MEDIASUBTYPE_YV12
Followed by the rest of the processing messages.
__________________
James L. Sutherland
"You know TiVo users. Bunch of b****y little girls" TiVoAxe

"Jessica Fletcher visits Midsomer. Carnage ensues!"

Last edited by lpwcomp : 01-03-2014 at 06:20 PM. Reason: Additional info
lpwcomp is offline   Reply With Quote
Old 01-03-2014, 07:31 PM   #6256
moyekj
Registered User
 
Join Date: Jan 2006
Location: Mission Viejo, CA
Posts: 9,300
Quote:
Originally Posted by BH9244 View Post
I'm sure someone will promptly point out that I have missed something obvious so apologies in advance if that is the case. But I'm interested in whether there is a means to export listings in kmttg such as the To-Do List etc.. Thanks
With current release you can explicitly export Season Passes and Channel lineups to CSV files. Adding CSV export for ToDo list would be fairly easy to add.
__________________
Roamio Pro, Elite, Premiere
Cox - Motorola CableCards & TAs
Slingbox 350 via TiVo Mini & TiVo Stream for remote viewing

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
moyekj is offline   Reply With Quote
Old 01-03-2014, 07:37 PM   #6257
BH9244
Registered User
 
Join Date: Feb 2009
Posts: 90
Quote:
Originally Posted by moyekj View Post
With current release you can explicitly export Season Passes and Channel lineups to CSV files. Adding CSV export for ToDo list would be fairly easy to add.
Having that capability would be nice for the Now Playing Lists as well if that's also a possibility.. Thanks for considering it..
BH9244 is offline   Reply With Quote
Old 01-03-2014, 07:43 PM   #6258
moyekj
Registered User
 
Join Date: Jan 2006
Location: Mission Viejo, CA
Posts: 9,300
Quote:
Originally Posted by BH9244 View Post
Having that capability would be nice for the Now Playing Lists as well if that's also a possibility.. Thanks for considering it..
For NPL you can crudely get a copy by selecting all entries in table (Ctrl-A in Windows) and then copying to clipboard (Ctrl-C in Windows) and pasting into some document. I'll have to think about NPL export to CSV.

Just curious though why NPL and ToDo lists would be useful in spreadsheet form, especially since they are so dynamic?
__________________
Roamio Pro, Elite, Premiere
Cox - Motorola CableCards & TAs
Slingbox 350 via TiVo Mini & TiVo Stream for remote viewing

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
moyekj is offline   Reply With Quote
Old 01-03-2014, 07:51 PM   #6259
BH9244
Registered User
 
Join Date: Feb 2009
Posts: 90
Quote:
Originally Posted by moyekj View Post
For NPL you can crudely get a copy by selecting all entries in table (Ctrl-A in Windows) and then copying to clipboard (Ctrl-C in Windows) and pasting into some document. I'll have to think about NPL export to CSV.

Just curious though why NPL and ToDo lists would be useful in spreadsheet form, especially since they are so dynamic?
For me it would be useful in the event of a hardware failure to know what was stored on the unit or scheduled to record.
BH9244 is offline   Reply With Quote
Old 01-03-2014, 08:05 PM   #6260
moyekj
Registered User
 
Join Date: Jan 2006
Location: Mission Viejo, CA
Posts: 9,300
Quote:
Originally Posted by lpwcomp View Post
...Is it possible that there is some weird timing problem wherein the server initiated VRD job is reading the .tivo file before it is actually complete?...
Don't think so, or I would have had a lot more issue reports, and I've never seen this specific problem myself, plus in GUI mode the timing should be almost identical.

Are you able to process any file with VRD in service mode? It's looking like a permissions problem of some sort where VRD can't read your files while in service mode. You can test without kmttg having to re-download .TiVo files by temporarily turning off "Overwrite existing files" option. You may also have to clear auto.history entries so that auto matches aren't skipped.
__________________
Roamio Pro, Elite, Premiere
Cox - Motorola CableCards & TAs
Slingbox 350 via TiVo Mini & TiVo Stream for remote viewing

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
moyekj is offline   Reply With Quote
Old 01-04-2014, 04:06 PM   #6261
elprice7345
Registered User
 
Join Date: Sep 2009
Location: Houston, TX
Posts: 51
Adding hard subtitles

I'm trying to add hard subtitles to a video using kmttg to pull to my TiVo Premiere through pyTivo.

I would like to re-encode the video once into a format, including the hard subs, so pyTivo doesn’t have to re-encode it again when the video is pulled

My original video is currently in an mkv container with soft subtitles. MediaInfo for original file is attached.

I used MKVExtractGUI2 to extract the subs to an srt file.

I then tried to alter the kmttg encoding file moyekj provided here: http://www.tivocommunity.com/tivo-vb...06#post9816706 and combine it with a pyTivo transcoding profile.

My encoding profile:
Code:
# Description (single line, keep short)
<description>
convert mkv to TiVo mpeg2 with hardcoded subs, AC3 audio, MP2 video

# Encode command or script (single line)
# Known keywords: FFMPEG, HANDBRAKE, MENCODER, PERL, INPUT, OUTPUT, PWD, CPU_CORES, SRTFILE
<command>
FFMPEG -y -i INPUT -i SRTFILE -scodec mov_text -threads CPU_CORES -acodec ac3 -vcodec mpeg2video -b 28500k -maxrate 30000k -bufsize 4096k -ab 448k -ar 48000 -copyts -map 0:0 -map 0:1 -fflags genpts -f dvd OUTPUT

# Encoded output file extension
<extension>
mpg
The video processes correctly and looks fine, but still doesn’t have subtitles. MediaInfo for resulting file is attached.

What am I missing?
__________________
Premiere (Ethernet)
Premiere (MoCA bridge)
elprice7345 is offline   Reply With Quote
Old 01-04-2014, 05:05 PM   #6262
lpwcomp
Registered User
 
Join Date: May 2002
Location: John's Creek, Georgia
Posts: 5,554
Based on this thread which google found when I searched on error 0x80071771, and the fact that the error changes, both in the kmttg auto.log.0:

Code:
2014_01_04_15:23:25 NOTE: container=mpeg, video=mpeg2video
2014_01_04_15:23:25 >> Running qsfix on D:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo ...
2014_01_04_15:23:25 C:\WINDOWS\system32\cscript.exe //nologo C:\kmttg\VRDscripts\qsfix.vbs "D:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo" "C:\kmttgmpegs\Top Chef.S11E12.Mississippi Mud Bugs.mpg.qsfix" "/l:C:\Users\J. L. Sutherland\AppData\Local\Temp\VRDLock5273737965836127034.tmp" /m /c:mpeg /v:mpeg2video 
2014_01_04_15:23:27 ERROR: qsfix failed (exit code: 4 ) - check command: C:\WINDOWS\system32\cscript.exe //nologo C:\kmttg\VRDscripts\qsfix.vbs "D:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo" "C:\kmttgmpegs\Top Chef.S11E12.Mississippi Mud Bugs.mpg.qsfix" "/l:C:\Users\J. L. Sutherland\AppData\Local\Temp\VRDLock5273737965836127034.tmp" /m /c:mpeg /v:mpeg2video 
2014_01_04_15:23:27 ERROR: ? Problem opening output file: C:\kmttgmpegs\Top Chef.S11E12.Mississippi Mud Bugs.mpg.qsfix
2014_01_04_15:23:27 ERROR: *BADPROFILE*
and in the VRD log:

Code:
2014-01-04 15:23:27 VideoReDo TVSuite started. Licensed to: JA-M073HG-GGCYVA, Version: 4.21.6.674 - Dec 12 2013, AVP On (00cf0070-5}
2014-01-04 15:23:27 Starting up with silent and batch: 0  242dc80
2014-01-04 15:23:27  
           ***** Loading: D:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo

2014-01-04 15:23:27 Setting Batch QSF flag.
2014-01-04 15:23:27 Starting stream open for: D:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo
2014-01-04 15:23:27 Opening: D:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo in QuickStream Fix Mode.
2014-01-04 15:23:27 After aStream open.
2014-01-04 15:23:27 Is DVRMS: 0.
2014-01-04 15:23:27 Tivo reader open error: 0x80071771, file: D:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo
2014-01-04 15:23:27 Setting output options from profile: Audio Recode Required
MPEG2 Program Stream
2014-01-04 15:23:27 ProfileSupport::SetVideoFrametRate failed - Invalid MPEG-2 frame rate: 0
2014-01-04 15:23:27 Destruct CVideoReDoDlgAutoProxy
it appears that when VideoReDo is invoked by the kmttg service, it cannot get the MAK and thus cannot decrypt the .tivo file.
__________________
James L. Sutherland
"You know TiVo users. Bunch of b****y little girls" TiVoAxe

"Jessica Fletcher visits Midsomer. Carnage ensues!"
lpwcomp is offline   Reply With Quote
Old 01-04-2014, 08:36 PM   #6263
moyekj
Registered User
 
Join Date: Jan 2006
Location: Mission Viejo, CA
Posts: 9,300
Quote:
Originally Posted by elprice7345 View Post
I'm trying to add hard subtitles to a video using kmttg to pull to my TiVo Premiere through pyTivo.
....
What am I missing?
With ffmpeg, the key is having a fonts configuration file and telling ffmpeg where it can find it. So 1st you need a fonts.conf file:
Code:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/fonts.conf file to configure system font access -->
<fontconfig>

<!--
   DO NOT EDIT THIS FILE.
   IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED.
   LOCAL CHANGES BELONG IN 'local.conf'.

   The intent of this standard configuration file is to be adequate for
   most environments.  If you have a reasonably normal environment and
   have found problems with this configuration, they are probably
   things that others will also want fixed.  Please submit any
   problems to the fontconfig bugzilla system located at fontconfig.org

   Note that the normal 'make install' procedure for fontconfig is to
   replace any existing fonts.conf file with the new version.  Place
   any local customizations in local.conf which this file references.

   Keith Packard
-->

<!-- Font directory list -->

   <dir>./</dir>
   <dir>WINDOWSFONTDIR</dir>
   <dir>~/.fonts</dir>

<!--
  Accept deprecated 'mono' alias, replacing it with 'monospace'
-->
   <match target="pattern">
      <test qual="any" name="family">
         <string>mono</string>
      </test>
      <edit name="family" mode="assign">
         <string>monospace</string>
      </edit>
   </match>

<!--
  Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'
-->
   <match target="pattern">
      <test qual="any" name="family">
         <string>sans serif</string>
      </test>
      <edit name="family" mode="assign">
         <string>sans-serif</string>
      </edit>
   </match>

<!--
  Accept deprecated 'sans' alias, replacing it with 'sans-serif'
-->
   <match target="pattern">
      <test qual="any" name="family">
         <string>sans</string>
      </test>
      <edit name="family" mode="assign">
         <string>sans-serif</string>
      </edit>
   </match>

<!--
  Load local system customization file
-->
   <include ignore_missing="yes">conf.d</include>

<!-- Font cache directory list -->

   <cachedir>WINDOWSTEMPDIR_FONTCONFIG_CACHE</cachedir>
   <cachedir>~/.fontconfig</cachedir>

   <config>
<!--
  These are the default Unicode chars that are expected to be blank
  in fonts.  All other blank chars are assumed to be broken and
  won't appear in the resulting charsets
-->
      <blank>
         <int>0x0020</int>   <!-- SPACE -->
         <int>0x00A0</int>   <!-- NO-BREAK SPACE -->
         <int>0x00AD</int>   <!-- SOFT HYPHEN -->
         <int>0x034F</int>   <!-- COMBINING GRAPHEME JOINER -->
         <int>0x0600</int>   <!-- ARABIC NUMBER SIGN -->
         <int>0x0601</int>   <!-- ARABIC SIGN SANAH -->
         <int>0x0602</int>   <!-- ARABIC FOOTNOTE MARKER -->
         <int>0x0603</int>   <!-- ARABIC SIGN SAFHA -->
         <int>0x06DD</int>   <!-- ARABIC END OF AYAH -->
         <int>0x070F</int>   <!-- SYRIAC ABBREVIATION MARK -->
         <int>0x115F</int>   <!-- HANGUL CHOSEONG FILLER -->
         <int>0x1160</int>   <!-- HANGUL JUNGSEONG FILLER -->
         <int>0x1680</int>   <!-- OGHAM SPACE MARK -->
         <int>0x17B4</int>   <!-- KHMER VOWEL INHERENT AQ -->
         <int>0x17B5</int>   <!-- KHMER VOWEL INHERENT AA -->
         <int>0x180E</int>   <!-- MONGOLIAN VOWEL SEPARATOR -->
         <int>0x2000</int>   <!-- EN QUAD -->
         <int>0x2001</int>   <!-- EM QUAD -->
         <int>0x2002</int>   <!-- EN SPACE -->
         <int>0x2003</int>   <!-- EM SPACE -->
         <int>0x2004</int>   <!-- THREE-PER-EM SPACE -->
         <int>0x2005</int>   <!-- FOUR-PER-EM SPACE -->
         <int>0x2006</int>   <!-- SIX-PER-EM SPACE -->
         <int>0x2007</int>   <!-- FIGURE SPACE -->
         <int>0x2008</int>   <!-- PUNCTUATION SPACE -->
         <int>0x2009</int>   <!-- THIN SPACE -->
         <int>0x200A</int>   <!-- HAIR SPACE -->
         <int>0x200B</int>   <!-- ZERO WIDTH SPACE -->
         <int>0x200C</int>   <!-- ZERO WIDTH NON-JOINER -->
         <int>0x200D</int>   <!-- ZERO WIDTH JOINER -->
         <int>0x200E</int>   <!-- LEFT-TO-RIGHT MARK -->
         <int>0x200F</int>   <!-- RIGHT-TO-LEFT MARK -->
         <int>0x2028</int>   <!-- LINE SEPARATOR -->
         <int>0x2029</int>   <!-- PARAGRAPH SEPARATOR -->
         <int>0x202A</int>   <!-- LEFT-TO-RIGHT EMBEDDING -->
         <int>0x202B</int>   <!-- RIGHT-TO-LEFT EMBEDDING -->
         <int>0x202C</int>   <!-- POP DIRECTIONAL FORMATTING -->
         <int>0x202D</int>   <!-- LEFT-TO-RIGHT OVERRIDE -->
         <int>0x202E</int>   <!-- RIGHT-TO-LEFT OVERRIDE -->
         <int>0x202F</int>   <!-- NARROW NO-BREAK SPACE -->
         <int>0x205F</int>   <!-- MEDIUM MATHEMATICAL SPACE -->
         <int>0x2060</int>   <!-- WORD JOINER -->
         <int>0x2061</int>   <!-- FUNCTION APPLICATION -->
         <int>0x2062</int>   <!-- INVISIBLE TIMES -->
         <int>0x2063</int>   <!-- INVISIBLE SEPARATOR -->
         <int>0x206A</int>   <!-- INHIBIT SYMMETRIC SWAPPING -->
         <int>0x206B</int>   <!-- ACTIVATE SYMMETRIC SWAPPING -->
         <int>0x206C</int>   <!-- INHIBIT ARABIC FORM SHAPING -->
         <int>0x206D</int>   <!-- ACTIVATE ARABIC FORM SHAPING -->
         <int>0x206E</int>   <!-- NATIONAL DIGIT SHAPES -->
         <int>0x206F</int>   <!-- NOMINAL DIGIT SHAPES -->
         <int>0x2800</int>   <!-- BRAILLE PATTERN BLANK -->
         <int>0x3000</int>   <!-- IDEOGRAPHIC SPACE -->
         <int>0x3164</int>   <!-- HANGUL FILLER -->
         <int>0xFEFF</int>   <!-- ZERO WIDTH NO-BREAK SPACE -->
         <int>0xFFA0</int>   <!-- HALFWIDTH HANGUL FILLER -->
         <int>0xFFF9</int>   <!-- INTERLINEAR ANNOTATION ANCHOR -->
         <int>0xFFFA</int>   <!-- INTERLINEAR ANNOTATION SEPARATOR -->
         <int>0xFFFB</int>   <!-- INTERLINEAR ANNOTATION TERMINATOR -->
      </blank>
<!--
  Rescan configuration every 30 seconds when FcFontSetList is called
-->
      <rescan>
         <int>30</int>
      </rescan>
   </config>
</fontconfig>
Then tell ffmpeg where you can find it:
set FC_CONFIG_DIR=<full_path_to_fonts.conf_dir_here>
set FONTCONFIG_PATH=<full_path_to_fonts.conf_dir_here
set FONTCONFIG_FILE=fonts.conf

Then to get hard subs in the output video include the following as part of ffmpeg command:
-vf "subtitles=inputFile.srt"

(inputFile.mpg and inputFile.srt need to be in the same directory).

To get this working within kmttg you will need to set the above font variables as global environment variables.
__________________
Roamio Pro, Elite, Premiere
Cox - Motorola CableCards & TAs
Slingbox 350 via TiVo Mini & TiVo Stream for remote viewing

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Last edited by moyekj : 01-04-2014 at 08:41 PM.
moyekj is offline   Reply With Quote
Old 01-04-2014, 08:39 PM   #6264
mlippert
Registered User
 
Join Date: Apr 2010
Location: Massachusetts
Posts: 55
Quote:
Originally Posted by lpwcomp View Post
it appears that when VideoReDo is invoked by the kmttg service, it cannot get the MAK and thus cannot decrypt the .tivo file.
James,
Another thought. IIRC VideoRedo uses parts of the TivoDesktop to do the decoding. Is it possible that your service account can't access those parts?
mlippert is offline   Reply With Quote
Old 01-04-2014, 08:41 PM   #6265
ThAbtO
TiVoholic by the bay
 
ThAbtO's Avatar
 
Join Date: Apr 2000
Location: SF Bay Area
Posts: 4,989
Quote:
Originally Posted by mlippert View Post
James,
Another thought. IIRC VideoRedo uses parts of the TivoDesktop to do the decoding. Is it possible that your service account can't access those parts?
VRD needs Desktop fully/partially installed to recognize .TiVo files.
__________________
Series 2 (PLS, sold)
TiVo HD 1TB (157 HD Hrs, PLS, "652")
Roamio! Oh, wait, Its Juliet!
OTA! OTA! OTA!

~~~~~

The TiVo Apocalypse begins on Sat 2013 Feb 16 00:00 GMT!
ThAbtO is offline   Reply With Quote
Old 01-04-2014, 08:44 PM   #6266
moyekj
Registered User
 
Join Date: Jan 2006
Location: Mission Viejo, CA
Posts: 9,300
Quote:
Originally Posted by mlippert View Post
James,
Another thought. IIRC VideoRedo uses parts of the TivoDesktop to do the decoding. Is it possible that your service account can't access those parts?
The kmttg service should be set to run using same account that VRD GUI is run as which supposedly should take care of that. Perhaps James needs to double-check that service is indeed running under proper account.
__________________
Roamio Pro, Elite, Premiere
Cox - Motorola CableCards & TAs
Slingbox 350 via TiVo Mini & TiVo Stream for remote viewing

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
moyekj is offline   Reply With Quote
Old 01-04-2014, 09:53 PM   #6267
ThAbtO
TiVoholic by the bay
 
ThAbtO's Avatar
 
Join Date: Apr 2000
Location: SF Bay Area
Posts: 4,989
I was just looking on KMTTG's Recently Deleted folder and notice something quirky. Is this normal?

On my S3 HD (652), the Deleted date all says 12/31/69 4:00pm.
On Roamio, it displays the correct deleted dates.
__________________
Series 2 (PLS, sold)
TiVo HD 1TB (157 HD Hrs, PLS, "652")
Roamio! Oh, wait, Its Juliet!
OTA! OTA! OTA!

~~~~~

The TiVo Apocalypse begins on Sat 2013 Feb 16 00:00 GMT!
ThAbtO is offline   Reply With Quote
Old 01-05-2014, 01:08 AM   #6268
moyekj
Registered User
 
Join Date: Jan 2006
Location: Mission Viejo, CA
Posts: 9,300
S3 information can only come from tivo.com, not the unit itself, so could be information is not saved properly @tivo.com. series 4 & later units the information comes from the local units themselves via RPC.
__________________
Roamio Pro, Elite, Premiere
Cox - Motorola CableCards & TAs
Slingbox 350 via TiVo Mini & TiVo Stream for remote viewing

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
moyekj is offline   Reply With Quote
Old 01-05-2014, 03:59 AM   #6269
lpwcomp
Registered User
 
Join Date: May 2002
Location: John's Creek, Georgia
Posts: 5,554
Quote:
Originally Posted by mlippert View Post
James,
Another thought. IIRC VideoRedo uses parts of the TivoDesktop to do the decoding. Is it possible that your service account can't access those parts?
It appears to either not be able to get the MAK or is getting the wrong MAK. I suppose it is also possible that it cannot access the dll it needs to use

Quote:
Originally Posted by moyekj View Post
The kmttg service should be set to run using same account that VRD GUI is run as which supposedly should take care of that. Perhaps James needs to double-check that service is indeed running under proper account.
I have the kmttg service set to run on the same account I use when I first bring up the system, .\J. L. Sutherland
(it's actually NIMITZ\J. L. Sutherland but the system insists on changing NIMITZ (my computer's name) to .)

When I ran the decrypt from the kmttg GUI, the service ran the adscan & adcut-encode steps with no problem.
__________________
James L. Sutherland
"You know TiVo users. Bunch of b****y little girls" TiVoAxe

"Jessica Fletcher visits Midsomer. Carnage ensues!"
lpwcomp is offline   Reply With Quote
Old 01-05-2014, 01:10 PM   #6270
moyekj
Registered User
 
Join Date: Jan 2006
Location: Mission Viejo, CA
Posts: 9,300
Quote:
Originally Posted by lpwcomp View Post
It appears to either not be able to get the MAK or is getting the wrong MAK. I suppose it is also possible that it cannot access the dll it needs to use

I have the kmttg service set to run on the same account I use when I first bring up the system, .\J. L. Sutherland
(it's actually NIMITZ\J. L. Sutherland but the system insists on changing NIMITZ (my computer's name) to .)

When I ran the decrypt from the kmttg GUI, the service ran the adscan & adcut-encode steps with no problem.
Just to be absolutely sure, while kmttg service is running and processing, watch the Task Manager for "cscript.exe" and make sure it is running as correct user. Although in your case since it seems to fail quickly so it may be hard to catch. Best to have Task Manager sorting by name and scrolled such that processes starting with "c" are visible. If it's running with correct username then I don't know what the issue is. I just verified service mode runs are working for me with latest VRD TVSuite version on my Windows Vista laptop.
__________________
Roamio Pro, Elite, Premiere
Cox - Motorola CableCards & TAs
Slingbox 350 via TiVo Mini & TiVo Stream for remote viewing

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
moyekj is offline   Reply With Quote
Reply
Forum Jump




Thread Tools


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Advertisements

TiVo Community
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
vBulletin Skins by: Relivo Media

(C) 2013 Magenium Solutions - All Rights Reserved. No information may be posted elsewhere without written permission.
TiVo® is a registered trademark of TiVo Inc. This site is not owned or operated by TiVo Inc.
All times are GMT -5. The time now is 08:49 AM.
OUR NETWORK: MyOpenRouter | TechLore | SansaCommunity | RoboCommunity | MediaSmart Home | Explore3DTV | Dijit Community | DVR Playground |