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-10-28, 07:52   #91 (permalink)
Portal Member
 
Join Date: Nov 2005
Posts: 227
Thanks: 1
Thanked 3 Times in 3 Posts

Country:

My System

Default

Hi there, have you pointed the plugin configuration at the folder containing your comskip.exe? I believe there is a test button to check if it is working on that page, what results does that give (use a small file to save time). I have mine run whilst the recording is taking place and have edited the comskip.ini file to "play nice" as Erik says, i.e. it is less of a drain on the CPU

Cheers
m
mdsflyer is offline   Reply With Quote
Old 2007-10-28, 10:47   #92 (permalink)
Portal Member
 
Join Date: Apr 2006
Age: 34
Posts: 157
Thanks: 0
Thanked 2 Times in 2 Posts

Country:


Default

Quote:
Originally Posted by johnrw View Post
How is your write-up going? It looks like it has the right solution. I worked for ASEA as it was then called in Västerås. Now of course part of ABB.
Sorry, got caught up in something for a few days.

I use OnFile (obviously ), but it shouldn't be a problem to use the ComSkip launcher to do everything for you.
However Mencoder use helluva lot of CPU to encode the Xvid's and that might be a problem with MP's ability to function. Might be a switch for mencoder, but I havn't researched that.

Paths:
In this example Comskip is unzipped into "C:\Comskip", Mencoder in "C:\mencoder\" and we want our resulting Xvid files in "C:\vcr\". This can ofcourse be changed.

Mp configuration:
* Point the Comskip launcher to a .Bat file (see bottom of post), located where you want

ComSkip configuration:
* Open Comskip.ini
* Change "output_edl" to 1
Tuning etc of comskip is something you might wanna do, but I refer to Comskip site for that

Mencoder:
Lots of stuff to play around with here.
* -xvidencopts pass=1:aspect=16/9:bitrate=-950000 (Here we are forcing 16/9 format and want the result file to be ~950000Kb)
* -lameopts abr:br=128 (MP3 audio @ 128kbit)
* -o "C:\vcr\%~n1_clean.avi" (Hardcoded output path of the Xvid file. Filename will be same as original but with clean appended.)
* pass=2 (Do 2 pass encoding. Recommended, but it's taking longer.)

CleanAndEncode.bat
Code:
@echo off
C:\comskip\comskip.exe %1
C:\mencoder\mencoder.exe "%1" -edl "%~dpn1.edl" -ovc xvid -oac mp3lame -lameopts abr:br=128 -xvidencopts pass=1:aspect=16/9:bitrate=-950000 -o NUL
C:\mencoder\mencoder.exe "%1" -edl "%~dpn1.edl" -ovc xvid -oac mp3lame -lameopts abr:br=128 -xvidencopts pass=2:aspect=16/9:bitrate=-950000 -o "C:\vcr\%~n1_clean.avi"
If you are really brave you can have the .bat file deleting the original recording. Not that I'd recommend that.
__________________
OnFile Monitor - Automated file actions.
http://member.drunkdragons.com/zion/onfile
zion22 is offline   Reply With Quote
Old 2007-10-28, 11:30   #93 (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

of course, you could do this:

START /LOW C:\mencoder\mencoder.exe ...

use that in the batch file to lower the process priority ... might be an option.

Also, keep in mind that ComSkip wont finish until the recording does, so a high cpu load After the recording has finished would only be a problem in back-to-back recording situations.

Hope that helps,
and-81 is offline   Reply With Quote
Old 2007-10-28, 20:54   #94 (permalink)
Portal Member
 
Bleazle's Avatar
 
Join Date: Jul 2007
Location: Pukekohe
Posts: 100
Thanks: 3
Thanked 3 Times in 3 Posts

Country:

My System

Default

Quote:
Originally Posted by mdsflyer View Post
Hi there, have you pointed the plugin configuration at the folder containing your comskip.exe? I believe there is a test button to check if it is working on that page, what results does that give (use a small file to save time). I have mine run whilst the recording is taking place and have edited the comskip.ini file to "play nice" as Erik says, i.e. it is less of a drain on the CPU

Cheers
m
Thanks for the reply - I think I've done something basic wrong here. The plugin is pointed at comskip.exe and test works great (with "Play nice") on existing recordings.

comskip,exe is in c:/program files/comskip & TV records to G:/TV Recordings - so how does comskip know it should be monitoring this folder for new recordings?

Cheers

Dave
Bleazle is offline   Reply With Quote
Old 2007-10-28, 21:24   #95 (permalink)
Super Moderator
 
Paranoid Delusion's Avatar
 
Join Date: Jun 2005
Location: Cheshire UK
Posts: 6,602
Thanks: 129
Thanked 233 Times in 207 Posts

Country:

My System

Default

Quote:
so how does comskip know it should be monitoring this folder for new recordings?
At a guess from TVE3 recording settings (which you are using) as mine is E\RecordedTV.

inside each recordings folder you should get 2 text files produced as well as the xml file.
Paranoid Delusion is offline   Reply With Quote
Old 2007-10-28, 22:38   #96 (permalink)
Portal Member
 
johnrw's Avatar
 
Join Date: May 2007
Posts: 68
Thanks: 1
Thanked 1 Time in 1 Post

Country:


Default

Excuse my lack of knowledge but where do you download Mencoder from in its correct form to be used for this commercials removal function?
johnrw is offline   Reply With Quote
Old 2007-10-28, 23:55   #97 (permalink)
Portal Member
 
Join Date: Apr 2006
Age: 34
Posts: 157
Thanks: 0
Thanked 2 Times in 2 Posts

Country:


Default

Mencoder is in the Mplayer package. http://www.mplayerhq.hu

Not really sure the one in there is actually supporting .dvr-ms file, since it's been around for a while. I actually tried to find the very latest SVN build of it, but failed unless I'd compile it myself.

There is however a ...uhm... reworked version of Mencoder that supports it here: http://babgvant.com/forums/thread/1941.aspx
__________________
OnFile Monitor - Automated file actions.
http://member.drunkdragons.com/zion/onfile
zion22 is offline   Reply With Quote
Old 2007-10-29, 02:07   #98 (permalink)
Portal Member
 
Bleazle's Avatar
 
Join Date: Jul 2007
Location: Pukekohe
Posts: 100
Thanks: 3
Thanked 3 Times in 3 Posts

Country:

My System

Default

Update: comskip is working automatically - the only change I made was to make sure the plugin was enabled in MP setup AND TVServer (had tried it enabled in one or the other previously, but not both at the same time) Seems strange to me but what the hell, at least it's working now
Bleazle is offline   Reply With Quote
Old 2007-11-07, 00:45   #99 (permalink)
Mho
Portal Member
 
Join Date: Nov 2007
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

Hello
only some shorts remarks

Quote:
Code:
@echo off
C:\comskip\comskip.exe %1
C:\mencoder\mencoder.exe "%1" -edl "%~dpn1.edl" -ovc xvid -oac mp3lame -lameopts abr:br=128 -xvidencopts pass=1:aspect=16/9:bitrate=-950000 -o NUL
C:\mencoder\mencoder.exe "%1" -edl "%~dpn1.edl" -ovc xvid -oac mp3lame -lameopts abr:br=128 -xvidencopts pass=2:aspect=16/9:bitrate=-950000 -o "C:\vcr\%~n1_clean.avi"
There is a little mistake
it should be
Quote:
@echo off
C:\comskip\comskip.exe %1
C:\mencoder\mencoder.exe %1 -edl "%~dpn1.edl" -ovc xvid -oac mp3lame -lameopts abr:br=128 -xvidencopts pass=1:aspect=16/9:bitrate=-950000 -o NUL
C:\mencoder\mencoder.exe %1 -edl "%~dpn1.edl" -ovc xvid -oac mp3lame -lameopts abr:br=128 -xvidencopts pass=2:aspect=16/9:bitrate=-950000 -o "C:\vcr\%~n1_clean.avi"
Otherwise mencoder would do nothing.

Quote:
Originally Posted by and-81 View Post
START /LOW C:\mencoder\mencoder.exe ...

use that in the batch file to lower the process priority ... might be an option.
This doesn't work for both mencoder calls, because START starts a new task. So both of them would work parallel.
It's only possible to use this with the second call.



Mho
Mho is offline   Reply With Quote
Old 2007-11-07, 02:11   #100 (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

Quote:
Originally Posted by Mho View Post
Quote:
Originally Posted by and-81 View Post
START /LOW C:\mencoder\mencoder.exe ...

use that in the batch file to lower the process priority ... might be an option.
This doesn't work for both mencoder calls, because START starts a new task. So both of them would work parallel.
It's only possible to use this with the second call.
Add /WAIT to the command to have it wait for mencoder to finish before moving on to the next command.

Cheers,
and-81 is offline   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:34.


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