NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Information Community Announcements v
« Previous 1 … 45 46 47 48 49 … 56 Next »
Comclean plugin : automatic deletion of commercials

 
  • 0 Vote(s) - 0 Average
Comclean plugin : automatic deletion of commercials
reboot
Offline

Posting Freak

Posts: 1,426
Threads: 89
Joined: Mar 2005
#21
2005-06-13, 08:36 PM
comskip.ini, changes in bold:
Quote:detect_method=255 ;1=black frame, 2=logo, 4=scene change, 8=fuzzy logic, 16=closed captions, 32=aspect ration, 255=all
verbose=10 ;show extra info
fps=29.97 ;frames per second (NTSC=29.970, PAL=25)
border=5 ;border around edge of video to ignore
max_brightness=100 ;frame not black if any pixels checked are greater than this (scale 0 to 255)
test_brightness=30 ;frame not pure black if any pixels checked are greater than this, will check average brightness (scale 0 to 255)
max_avg_brightness=40 ;maximum average brightness for a dim frame to be considered black (scale 0 to 255)
max_commercialbreak=330 ;maximum length in seconds to consider a segment a commercial break
min_commercialbreak=30 ;minimum length in seconds to consider a segment a commercial break
max_commercial_size=180 ;maximum time in seconds for a single commercial or multiple commercials if no breaks in between
min_commercial_size=1 ;mimimum time in seconds for a single commercial
min_show_segment_length=300
live_tv=1
delete_logo_file=1
min_black_frames_for_break=1;
You can add anything you want to the dictionary. It's a simple text file. Just take a few notes on what commercials reoccur on the channels you watch, and add a few distinct words from them.
You can never have enough tuners!
Pentium Quad / 4Gb Dual Channel RAM / XPSP3 / 2 x PVR-500, PVR-250 / GB-PVR
erik
Offline

Posting Freak

Posts: 1,138
Threads: 123
Joined: Apr 2005
#22
2005-06-14, 04:35 AM
tipstir

for a typical PAL environment I use this comskip.ini

Quote:detect_method=45 ;1=black frame, 2=logo, 4=scene change, 8=fuzzy logic, 16=closed captions, 32=aspect ration, 255=all
verbose=4 ;show extra info
fps=25 ;frames per second (NTSC=29.970, PAL=25)
border=10 ;border around edge of video to ignore
max_brightness=40 ;frame not black if any pixels checked are greater than this (scale 0 to 255)
test_brightness=30 ;frame not pure black if any pixels checked are greater than this, will check average brightness (scale 0 to 255)
max_avg_brightness=20 ;maximum average brightness for a dim frame to be considered black (scale 0 to 255)
max_commercialbreak=600 ;maximum length in seconds to consider a segment a commercial break
min_commercialbreak=5 ;minimum length in seconds to consider a segment a commercial break
max_commercial_size=400 ;maximum time in seconds for a single commercial or multiple commercials if no breaks in between
min_commercial_size=1 ;mimimum time in seconds for a single commercial
min_show_segment_length=100
live_tv=1
delete_logo_file=1
min_black_frames_for_break=1;
output_videoredo=0
output_zoomplayer_chapter=0
output_zoomplayer_cutlist=0


Not sure if it will work for you :o
I do not use logo recognition. It makes running comskip much faster on my limited hardware and the commercial recognition is even better.
It only fails if you have a show with many black frames in it.
I also tried ShowAnalyzer but the recognition results are (for the moment) worse then comskip, and I can not disable logo recognition.
P4 3GHz 1GB, 250GB, nVidia dualTV, GBPVR 1.3.11, XP
Support Comskip, visit the forum and donate at http://www.comskip.org/
HamsterGirl35
Offline

Member

Posts: 83
Threads: 11
Joined: Jun 2005
#23
2005-06-14, 04:09 PM
I have the following in my postprocessing.bat

postprocessing.bat
ComSkipHelper.exe %1 > comskiphelp.log
call comclean %1
RenameRecordings.exe %1 > renamerecordings.log
RecTracker %1 > rectracker.log

But, for some strange reason, the only thing didn't work was it won't rename afterwards?
It will rename if I run above renamerecordings command on dos prompt...

Help.....

HamsterGirl35

tipstir Wrote:Reboot,

What do you mean put up a copy of RenameRecordings.exe on Wiki isn't it there? Don't you have a copy of that also. Is that was your not using is the (s) version?

To me ComSkip works great with a little help of my next version deem mirco bot plugin called XLOG PLUS! (not released yet) I am able to skip all the right sections of the commerical segments, for TV shows (Cartoons Smile , News, Movies, an etc)

Erik,

I'll try your newer batch file again with Reboot codes and see if it works. The last time I did try it without Reboot I got a blank no skip so nothing skipped and a lot of commericals (all of them)

Well got to test this 0.0.0.1 version of comclean.bat and see if works for me,

PostProcessing.bat

Comskip.exe %1
call comclean %1
RenameRecordings.exe %1
RecTracker.exe %1
Xlogplus.exe
Xlogbakp.exe

If not I'll go back may current way:

PostProcessing.bat

Comskip.exe %1
RenameRecordings.exe %1
RecTracker.exe %1
Xlogplus.exe
Xlogbakp.exe

Note: For those who are using XLOG, The current XLOG does pretty much same results which I was using always. What's new in the Plus version is that it works a bit differently and also keeps Jeff folder used for Video Archiver, GetVideo and tools just tidy.
HamsterGirl35
Offline

Member

Posts: 83
Threads: 11
Joined: Jun 2005
#24
2005-06-14, 04:25 PM
I will knock those logs out first and try if they work, will let you know ^_^

tipstir Wrote:Knock out those > logs you don't need them first off
HamsterGirl35
Offline

Member

Posts: 83
Threads: 11
Joined: Jun 2005
#25
2005-06-14, 06:14 PM
Renamerecordings.exe in postprocessing.bat still didn't rename the 4 files:

......20050614_10301100.txt;
......20050614_10301100.log
......20050614_10301100.mpg &
......20050614_10301100_clean.mpg

What did I do wrong?

help......
HamsterGirl35
Offline

Member

Posts: 83
Threads: 11
Joined: Jun 2005
#26
2005-06-14, 07:51 PM
Yes, you are right about that with some shows...^_^

But, but, but.....
the problem is that prior to putting the comclean.exe in postprocessing.bat, renamerecordings.exe was working fine for me.

Once I put comclean in the postprocessing.bat, renamerecordings wouldn't do the trick....
For this particular show that I mentioned above,I have to go to the DOS PROMPT to manually type in "renamerecordings.exe %1" and it DID chnage the name of the show for me......

I really don't know what's the problem but, really like renamerecordings.exe & comclean to work for me properly without manual intervention.....because both plugins are great utilities.....




tipstir Wrote:What type of show are you recording some shows don't have names for them just the show title or date as you see above.
erik
Offline

Posting Freak

Posts: 1,138
Threads: 123
Joined: Apr 2005
#27
2005-06-15, 12:55 AM
HamsterGirl35

I suggest you switch to version 0.0.1 of comclean
From the list of files you showed its clear you run version 0.0.0.
Version 0.0.0 will appear to do nothing unless you look at the *_clean.mpg file
Version 0.0.1 cleans the*.mpg file and will create a *_original.mpg backup file containing the full show including the commercials.

I have no clue why renamerecordings does not work. I do not run renamerecordings myself so I can not help :o
P4 3GHz 1GB, 250GB, nVidia dualTV, GBPVR 1.3.11, XP
Support Comskip, visit the forum and donate at http://www.comskip.org/
reboot
Offline

Posting Freak

Posts: 1,426
Threads: 89
Joined: Mar 2005
#28
2005-06-15, 06:04 AM
HamsterGirl35, does your comclean.bat have this in it?:
Quote:Rem -----------------------------------------Renamerecoding fix -----------------------------------------
Rem Delete the old .mpg file and rename the new one to the old name
Rem Uncomment next 2 lines to make renamerecoding work!!!!!!!
move "%~dpn1.mpg" "%~dpn1_original.mpg"
move "%~dpn1_clean.mpg" "%~dpn1.mpg"
Rem ------------------------------------------Renamerecoding fix -----------------------------------------
If you have REM in front of the two lines that start with "move", renamerecordings won't work.
You can never have enough tuners!
Pentium Quad / 4Gb Dual Channel RAM / XPSP3 / 2 x PVR-500, PVR-250 / GB-PVR
HamsterGirl35
Offline

Member

Posts: 83
Threads: 11
Joined: Jun 2005
#29
2005-06-15, 07:01 AM
This is what I have for comclean.bat:

Help......coz I didn't modify anything.....

===============================
@echo off
Rem comclean.bat Version 0.0.1
Rem Adapt to your framerate times 100 (PAL=2500/NTSC=2997)
set framerate=2997
Rem Adapt to where mpgtx.exe can be found
set mpgtx="c:\Program Files\devnz\gbpvr\mpgtx.exe"

rem Initialize the variables
set start=0
set duration=0

rem Set the command line start
set cmdline=%mpgtx% -j -f -o "%~dpn1_clean.mpg" "%~dpn1.mpg"
set cutpoints=

rem Process all the lines from the Comskip output file
for /F "usebackq tokens=1,2,3*" %%i in ("%~dpn1.txt") do call :processline %%i %%j
rem Output last clip
call :totime %start%
set cmdline=%cmdline% [%tim%-]
echo Resulting cutpoints: %cutpoints%
rem echo %cmdline% >"%~dpn1.bat"
rem echo exit >>"%~dpn1.bat"
rem start /wait /low call "%~dpn1.bat"
@echo on
%cmdline%
@echo off
echo Resulting cutpoints: %cutpoints%
Rem RENAME the old .mpg file and rename the new one to the old name
move "%~dpn1.mpg" "%~dpn1_original.mpg"
move "%~dpn1_clean.mpg" "%~dpn1.mpg"
exit
goto :eof

:processline
rem Skip useless lines
if "%1"=="FILE" goto :eof
if "%1"=="-------------------" goto :eof
rem Output the clip information for the show part
set /a length=%1-%start%
set /a duration=%duration%+%length%
call :totime %length%
set cutpoints=%cutpoints% %tim%

if "%1"=="0" goto :nostartshow
call :totime %start%
set cmdline=%cmdline% [%tim%
call :totime %1
set cmdline=%cmdline%-%tim%]
:nostartshow
rem Remember start of next clip
set start=%2
goto :eof

:totime
set tim=
if "%1"=="0" goto :eof
set /A position=%1 *100 / %framerate%
set /A hours=%position% / 60 /60
set /A hrest = %position% - %hours%*60*60
set /A minutes=%hrest% /60
set /A seconds = %hrest% - %minutes%*60
set tim=%hours%:%minutes%:%seconds%
goto eof
:eof



reboot Wrote:HamsterGirl35, does your comclean.bat have this in it?:

If you have REM in front of the two lines that start with "move", renamerecordings won't work.
erik
Offline

Posting Freak

Posts: 1,138
Threads: 123
Joined: Apr 2005
#30
2005-06-15, 07:14 AM
This is indeed the version 0.0.1.
All should be ok.
In one of your posts you mention to have a x_clean.mpg in your directory.
With version 0.0.1 that is not possible, only with version 0.0.0
So that is why I (and reboot) are puzzled.

If you disable comclean in postprocessing.bat is renamerecoding(s) working?
What are the files you see in the recording directory after a successfull recording?
If you enable renamerecording(s) again, what files do you see in the recording directory after a successfull recording?
Please understand that after a recording considerable time is spend in running comskip and somewhat less but still some time is spend in comclean so of you look too early renamerecoding may not have been activated yet.
You should enable the logging ( like you had with e.g. > comskip.log) so you can see if there where any errors being found while running comskip and/or comclean.
P4 3GHz 1GB, 250GB, nVidia dualTV, GBPVR 1.3.11, XP
Support Comskip, visit the forum and donate at http://www.comskip.org/
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (7): « Previous 1 2 3 4 5 … 7 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  New plugin - MovieTrailers imilne 11 6,020 2014-09-25, 08:16 AM
Last Post: imilne
  HD Logos for the NPVR WebRadio Plugin Lao Pan 3 3,296 2014-02-09, 01:32 PM
Last Post: Lao Pan
  Files plugin tmrt 13 7,271 2014-01-09, 11:16 PM
Last Post: mvallevand
  Plex Plugin - first release psycik 141 58,512 2013-06-16, 08:59 PM
Last Post: JonnyCam
  Avidemux: Perfectly Cut Out Commercials, Clips, Etc. BTJustice 12 30,111 2012-11-14, 02:29 PM
Last Post: thomasaherzog
  Web Cams plugin for NextPVR McBainUK 37 15,243 2012-10-19, 07:35 AM
Last Post: McBainUK
  PhotoFilter: New Photos/Videos plugin to browse using metadata cncb 1 1,922 2012-08-10, 04:06 PM
Last Post: cncb
  Any interest in a Spotify Plugin for NextPVR? McBainUK 38 13,745 2012-05-22, 05:37 AM
Last Post: McBainUK
  System Plugin - CPU Temperature Monitoring imilne 1 1,983 2012-03-28, 07:59 PM
Last Post: LegioX
  System Plugin - 2nd Test Release (4th Feb) imilne 31 10,558 2012-02-24, 12:22 PM
Last Post: Reddwarf

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode