Bsplayer Integration and more

Here you can ask your questions on how to use Comskip for the detection of commercials. Also questions on how to remove commercials are welcome
ercuem
Posts: 12
Joined: Fri Sep 29, 2006 10:27 am

Post by ercuem »

Erik

how to use comskip for more than one recording step by step.

with postprocessing.bat comskip takes just the first recording and stops than.

I want to search for commercial in a hole directory .

I think netherland and germans language are very similar, do you speak german too

ercuem
erik
Site Admin
Posts: 3369
Joined: Sun Aug 21, 2005 3:49 pm

Post by erik »

I spreche ein bischen deutsch aber es ist besser in dieser forum Englisch zu spregen. When as fuhr sie zu swierig ist kunnen sie deutsch schreiben aber meiner antwort werde in english sein.

I use two bat file to rerun comskip on a whole directory of .csv files.

This should be called testall.bat

Code: Select all

del %1*.log
del %1*.dif
del test.txt
for %%f in (%1*.ref) do if exist "%%~dpnf.csv" call test.bat "%%~dpnf"
The "for" line checks for .ref file to exist and if they exist then process the .csv file.
To simply run it on all .csv files replace by

Code: Select all

del %1*.log
del %1*.dif
del test.txt
for %%f in (%1*.csv) do call test.bat "%%~dpnf"
This should be called test.bat

Code: Select all

echo . >>test.txt
echo comskip.exe "%~dpn1.csv" >>test.txt
del "%~dpn1.txt"
"..\comskip\debug\comskip.exe" "%~dpn1.csv"
type "%~dpn1.dif" >>test.txt

Make sure the line with "...\comskip.exe" contains the full path to comskip.exe
The comskip.ini file should be in same directory as the .csv files

testall.bat can be called with the path to the directory to be processed or, if inside the directory with the .csv's, without a argument.
If you want more help on commands like "for" and "if" start a cmd window and execute
help for
or
help if
ercuem
Posts: 12
Joined: Fri Sep 29, 2006 10:27 am

Post by ercuem »

Erik

danke f?r die Erkl?rung der .bat files

ich habe hier im Forum diese ini file gefunden, welche bei meinen Aufnahmen 98 Prozent funktioniert.
Wirklich sehr sehr gut, viel besser als die ini file, mit der ich vorher gearbeitet habe.
Jede Werbung wird gefunden, auch der Anfang und das Ende wird sehr sauber gefunden und das nicht einmal sender spezifisch.Sondern bei allen sendern die ich ausprobiert habe.
Nur wenn das Logo unten ist muss ich hier:

logo_at_bottom=0

auf eins stellen.

Der einzige fehler warum es nicht hundert prozent ist, liegt daran das "manchmal" , "eine" kurze Werbung vor dem schnitt vergessen wird.
Auch werden manchmal / selten kommende trailer ?bersehen.
Ich bin eigentlich mit diesem Resultat sehr zufrieden.
Trotzdem werde ich die Aufnahmen, welche fehler enthalten sammeln und dir per E.Mail zusenden, damit du die m?glichkeit hast, comskip noch weiter zu verbessern.
Ich h?tte nicht gedacht das aus comskip soviel zu machen ist, wenn man die richtige configuration in der ini file hat.
Leider ist es f?r den Laien sehr schwer die richtige configuration zu finden, vor allem wenn man nicht so gut englisch spricht wie ich.

Wenn du auf den ersten Blick, bei der ini file einen Fehler siehst, kannst du ja posten.

Ach ja, gibt es die m?glichkeit im debug mode die tats?chlichen schnittpunkte zu kennzeichnen und commskip schreibt seine .ref file selbst?.

Danke
ercuem


"
detect_method=43 ;1=black frame, 2=logo, 4=scene change, 8=fuzzy logic, 16=closed captions, 32=aspect ration, 64=silence, 255=all
verbose=10 ;show a lot of extra info, level 5 is also OK, set to 0 to disable
max_brightness=150 ;frame not black if any pixels checked are greater than this (scale 0 to 255)
test_brightness=150 ;frame not pure black if any pixels checked are greater than this, will check average brightness (scale 0 to 255)
max_avg_brightness=20 ;lower than 15 for StarTrek ;maximum average brightness for a dim frame to be considered black (scale 0 to 255) 0 means autosetting
max_commercialbreak=600 ;maximum length in seconds to consider a segment a commercial break
min_commercialbreak=40 ;minimum length in seconds to consider a segment a commercial break
max_commercial_size=160 ;maximum time in seconds for a single commercial or multiple commercials if no breaks in between
min_commercial_size=20 ;mimimum time in seconds for a single commercial
min_show_segment_length=100 ; any segment longer than this will be scored towards show.
non_uniformity=500
max_volume=100 ; any frame with sound volume larger than this will not be regarded as black frame
min_silence=10 ; Any deep silence longer than this amount of frames is a possible cutpoint
ticker_tape=0 ; Amount of pixels from bottom to ignore in all processing
max_repair_size=200

;### Punsih ###

punish=20 ; Compare to average for sum of 1=brightness, 2=uniform 4=volume, 8=silence, 16=schange, set to 0 to disable
punish_threshold=1.3 ; Multiply when amount is above average * punish_threshold
punish_modifier=2.0 ; When above average * threshold multiply score by this value


length_strict_modifier=1.1
length_nonstrict_modifier=1.5
combined_length_strict_modifier=2.0
combined_length_nonstrict_modifier=1.25
logo_present_modifier=1
excessive_length_modifier=0.01
ar_wrong_modifier=1.0
min_schange_modifier=0.5
max_schange_modifier=2.0
schange_threshold=80
cc_commercial_type_modifier=4.0
cc_wrong_type_modifier=2.1
cc_correct_type_modifier=0.75
dictionary_modifier=1.00


intelligent_brightness=0 ; Set to 1 to use a USA specific algorithm to tune some of the settings, not adviced outside the USA
give_up_logo_search=2000


;### Logo ###

logo_percentile=0.92 ; if more then this amount of logo is found then logo detection will be disabled
logo_threshold=0.50
aggressive_logo_rejection=1
connect_blocks_with_logo=1 ; set to 1 if you want successive blocks with logo on the transition to be regarded as connected, set to 0 to disable
cut_on_ar_change=1 ; set to 1 if you want to cut also on aspect ratio changes, set to 0 to disable
delete_show_after_last_commercial=1 ; set to 1 if you want to delete the last block if its a show and after a commercial
delete_show_before_first_commercial=1
delete_show_before_or_after_current=1 ; set to 1 if you want to delete the previous and the next show in the recording, this can lead to the deletion of trailers of next show
shrink_logo=5 ; Reduce the duration of the logo with this amount of seconds
after_logo=1 ; set to number of seconds after logo disappears comskip should start to search for silence to insert an additional cutpoint
before_logo=1 ;
reward=0
padding=0
ms_audio_delay=5
logo_max_percentage_of_screen=0.35
subtitles=0
delete_logo_file=1 ; set to 1 if you want comskip to tidy up after finishing


;### Output ###

output_framearray=1 ; create a big excel file for detailed analysis, set to 0 to disable
output_videoredo=1
output_womble=0
output_cuttermaran=0
output_mpeg2schnitt=0
output_mpgtx=0
output_zoomplayer_chapter=0
output_zoomplayer_cutlist=0
output_edl=0
output_vcf=0
output_btv=0 ; set to 1 if you want Beyond TV chapter cutlist output
output_projectx=0 ; set to 1 if you want ProjectX cutlist output (Xcl)
output_demux=0 ; set to 1 if you want comskip to demux the mpeg file while scanning
output_bsplayer=1
live_tv=1 ; set to 1 if you use parallelprocessing and need the output while recording
dictionary=0
cuttermaran_options="cut=\"true\" unattended=\"true\" muxResult=\"false\" snapToCutPoints=\"true\" closeApp=\"true\""
mpeg2schnitt_options="mpeg2schnitt.exe /S /E /R25 /Z %2 %1
erik
Site Admin
Posts: 3369
Joined: Sun Aug 21, 2005 3:49 pm

Post by erik »

You can edit the cutpoints with comskip by starting comskip with the .txt file instead of the .mpg file.
Comskip "full path\recording.txt"

This will open the cutpoint edit window where you can review and edit the cutpoints and write out when you are happy with them.
Once written out you can rename the new .txt file to the .ref extension and use it as a reference.
erik
Site Admin
Posts: 3369
Joined: Sun Aug 21, 2005 3:49 pm

Post by erik »

I checked your ini file
If you change to
min_show_segment_length=140
some errors will disappear
ercuem
Posts: 12
Joined: Fri Sep 29, 2006 10:27 am

Post by ercuem »

Erik
ich habe das mit den bat dateien nicht geschafft,kannst du mir bitt noch einmal helfen.

Mein Ordner mit den original *.mpg dateien ist:

E:\filmler\neue aufnahmen\originale\

und comskip ist in:

C:\Programme\devnz\gbpvr\

wie m?ssen die bat dateien aussehen.
Post Reply