MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Main Features (talk, share your ideas, get support) » Watch / Listen Media » MyTV - Engine 0.2 » Tips and Tricks


Tips and Tricks Post your Tips and Tricks in here.

Reply
 
Thread Tools Display Modes
Old 2007-11-29, 04:07   #121 (permalink)
Portal Member
 
Join Date: Jan 2007
Posts: 62
Thanks: 6
Thanked 1 Time in 1 Post

Country:


Default

Quote:
Originally Posted by and-81 View Post
Also, just out of interest... I'm considering writing a TV3 plugin based on the ComSkip Launcher but for general post-processing of recordings. Basically, it could be used to convert recordings into DivX or run Comskip or things like that... some sort of scripted actions... And it would be rules-based, so you could filter by channels or recording types and things like that ... I haven't started and I'm quite busy with other things, but maybe in the next month or so I'll get onto it ... so that might be of some interest to the comskip crowd too ...
I would love a plugin like that. It would be nice to have recordings automatically commercial scanned and then cut and transcoded to xvid. BeyondTV has a plugin that does this perfectly called AutoXvid.
WalkmanAA is offline   Reply With Quote
Old 2007-12-07, 05:37   #122 (permalink)
Portal Developer
 
and-81's Avatar
 
Join Date: Mar 2005
Location: Melbourne
Age: 27
Posts: 2,251
Thanks: 30
Thanked 145 Times in 88 Posts

Country:

My System

Default

Hey all,

I've had some requests for information on how to selectively run comskip depending on the channel the recording is on.

Here's an example batch file to filter out channels you don't want to run comskip on...

Make a file with a ".bat" extension (just open notepad and save the file as a .bat) with the following code in it:

Code:
@ECHO OFF

REM Plugin parameters must start with:  "{6}"
REM eg. "{6}" --playnice "{0}"

IF %1=="Channel Name 1" GOTO End
IF %1=="Channel Name 2" GOTO End

START "ComSkip" "C:\Program Files\ComSkip\ComSkip.exe" %2 %3 %4 %5 %6 %7 %8 %9

:End
Modify the file to suite your needs, and then point the ComSkip Launcher plugin at this file instead of the comskip exe. The first parameter passed to the file needs to be the channel name ( "{6}" ). You could use it to filter on some other detail if you wanted to ... but I'll leave that as an exercise for the reader.

Also, I've made a change to the TV2 launcher plugin so you can now run it when a recording starts.

Cheers,

Last edited by and-81; 2007-12-08 at 11:58. Reason: correction to batch file
and-81 is offline   Reply With Quote
This User Say Thank You:
Old 2007-12-08, 04:50   #123 (permalink)
Portal Member
 
johnrw's Avatar
 
Join Date: May 2007
Posts: 68
Thanks: 1
Thanked 1 Time in 1 Post

Country:


Smile

Aaron

Thanks for the earlier advice when auto commercial skipping was released in the SVN. At the time, my system was wonkey and needed a re-bore which I have done, but not without challenges - for some reason my computer clock got reset 20 days back and because of that no EPG data would show - took a while to notice that had happened - rest the clock and all worked normally.

Anyway, your auto skipping when watching after recording TV is probably the best thing since sliced bread - so far, evrything has worked fine. I am trying the running of Comskip from the start of recording to see what that looks like.

Has anyone ever requested that when a recorded TV program is deleted within MP single seat, it also deletes all the Comskip created files? I find I have to do that cleanup every now and then or am I missing something by way of a "delete all associated files" setting?

A huge thankyou Aaron - my system is now near perfect, especially with auto Comskip and MCE Replacement Plugin being used simply for blasting my Sky TV set top box (although my second set top box does not respond to blasting from learned IR codes).
johnrw is offline   Reply With Quote
Old 2007-12-08, 10:06   #124 (permalink)
Portal Member
 
Join Date: Oct 2007
Posts: 208
Thanks: 11
Thanked 3 Times in 3 Posts

Country:

My System

Default

Quote:
Originally Posted by johnrw View Post
Has anyone ever requested that when a recorded TV program is deleted within MP single seat, it also deletes all the Comskip created files? I find I have to do that cleanup every now and then or am I missing something by way of a "delete all associated files" setting?
That would be nice!
Rudi99 is online now   Reply With Quote
Old 2007-12-08, 11:57   #125 (permalink)
Portal Developer
 
and-81's Avatar
 
Join Date: Mar 2005
Location: Melbourne
Age: 27
Posts: 2,251
Thanks: 30
Thanked 145 Times in 88 Posts

Country:

My System

Default

It should already delete the .txt file. You can modify the comskip ini to get rid of some of the other files when it finishes.

I can't remember the parameters, but crack open the ini file and take a look. Also, check the comskip web page.

ALSO, I've made a correction to the batch file example above. Thanks to Taipan for pointing this out.

Cheers,
and-81 is offline   Reply With Quote
Old 2007-12-09, 22:41   #126 (permalink)
Portal Member
 
johnrw's Avatar
 
Join Date: May 2007
Posts: 68
Thanks: 1
Thanked 1 Time in 1 Post

Country:


Default

I have run this with MP 0.2.3 Final and selected at "start of recording" in the Comskip MP Configuration options. When a recording was carried out, it did not create the .txt file which contains the logo. It was before the updated SVN was loaded. I then tried to switch to "after recording" option and that option would check okay with the radio button but did not save it because on immedialtely closing MP Configuration and restarting MP Configuration, the "start of recording" option was checked. I am unable to change the option "at start" back to "after recording". Any ideas?
johnrw is offline   Reply With Quote
Old 2007-12-12, 14:43   #127 (permalink)
Portal Developer
 
and-81's Avatar
 
Join Date: Mar 2005
Location: Melbourne
Age: 27
Posts: 2,251
Thanks: 30
Thanked 145 Times in 88 Posts

Country:

My System

Default

johnrw:

This has me a little confused. The start of recording option is not available in 0.2.3.0 final, so I assume you are running an SVN on top of that?

You can force the setting manually by modifying the mediaportal.xml configuration file. Do a search in the file for "comskip" and you should find it.

Is anyone else experiencing this? I can't seem to reproduce the problem here... yet.

Cheers,

Last edited by and-81; 2007-12-12 at 14:45.
and-81 is offline   Reply With Quote
Old 2007-12-12, 19:04   #128 (permalink)
Portal Member
 
johnrw's Avatar
 
Join Date: May 2007
Posts: 68
Thanks: 1
Thanked 1 Time in 1 Post

Country:


Default

I read my text in my reported issue again and I can see how I have confused. Here is another shot as the issue.

With 0.2.3.0 Final plus the SVN which first introduced auto-skip with Comskip run after recording, the logo.txt file was produced and all worked in auto skip.

When I updated to later SVNs containing the option to run Comskip from start of recording, no logo.txt file was produced (the other two txt files were produced) so auto skip or even manual skip with the remote did not work.

If I go back to MP Configuration to reset Comskip to run at end of recording, it will not hold the setting and just stays on running Comskip from start of recording.

When I change back to the older SVN (16599 I think), it works again.

I have changed back and forth with the SVNs two or three times and it is consistent.

Cheers

Just checked the mediaportal.xml file:

When I select Comskip after end of recording in MP Configuration, then close MP setup, then check the .xml file it shows "no"to run at start.

When I go back to MP Configuration, open the Comskip plugin, the radio button shows run at start. If I click on run at start, then check the .xml file it shows "yes". If I start MP Configuration again, click on run Comskip at end, a re-check of this setting in MP Configuartion, after I have previously shut it down and re-opened, shows the radio button on at start. Once more then if I shut MP Configuration and check the .xml file it shows "no".

It so far looks like the .xml file gets updated eevn though the MP Comskip plugin display never holds the at end button selection.

The end result is that whatever I have in .xml "no" or "yes", the logo.txt file does not get produced.

Done one more check:

When the Comskip plugin is opened within MP Configuration, the radio button always defaults to run at start. This saves "yes" into the .xml file. When I set the radio button to at end of recording, save and shut down MP Configuration without reopening the Comskip plugin to check the radio button (which if I did would always go back to the run at start position), then check the .xml file, it shows "no".

The first part of the problem is that MP Configuration Comskip plugin always defaults and saves "yes" in the .xml file if the plugin is opened.

I have made sure the .xml is in the "no" position so I will check tonight what happened to see if a logo.txt file is created. The second potential problem is that if it is in the "yes" position (in the .xml fil) it does not produce the logo.txt file and maybe when it is in the "no" position (in the .xml file) it does produce the logo.txt file. Tonight's test will reveal.

Last edited by johnrw; 2007-12-12 at 19:50. Reason: Automerged Doublepost
johnrw is offline   Reply With Quote
Old 2007-12-13, 01:58   #129 (permalink)
Portal Developer
 
and-81's Avatar
 
Join Date: Mar 2005
Location: Melbourne
Age: 27
Posts: 2,251
Thanks: 30
Thanked 145 Times in 88 Posts

Country:

My System

Default

ok, thanks for the detailed description.

I'll take another look at it.

It sounds like there are two issues present:
1. The plugin is not loading it's configuration properly.
2. ComSkip is not processing the DVR-MS files properly when run at start.

We may need to contact erik if we can show that "2" is right.

I'll go fix "1" now.

Cheers,
and-81 is offline   Reply With Quote
Old 2007-12-13, 08:11   #130 (permalink)
Portal Member
 
Join Date: Jan 2006
Posts: 90
Thanks: 2
Thanked 5 Times in 4 Posts


Default

Please set
verbose=11
and run comskip "fro the start" and mail me the generated log file.
erik1958 is online now   Reply With Quote
Reply

Bookmarks

Tags
commercials, comskip, cut, howto

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
System requirements for HDTV with MediaPortal Tech Geek Hardware Selection Help 62 2007-08-08 08:20
MediaPortal GET YOU GOING GUIDE aal Tips and Tricks 19 2007-06-22 19:39
A perfect HTPC with MP & PVR Scheduler & faster XP STSC Tips and Tricks 16 2007-01-30 23:40
PVR Scheduler: cant make it work ethanx Codecs, External Players 1 2006-03-20 00:42
Compile problems Anonymous General Development (no feature request here!) 1 2004-04-28 22:49


All times are GMT +1. The time now is 18:36.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden