Trim

To discuss the tuning of comskip and for posting your ini files
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Re: Trim

Post by erik »

I solved the H7 problem. Looks like build 140 delivers the best results.
There is one file that improves when you set logo_filter=0 but a number of other files need logo_filter=5
No solution.

I added a description of the various Heuristics to the sticky tuning parameter post.
The descriptions are a big vague but that is why they are heuristic rules :)
MCE_Anders
Posts: 12
Joined: Mon May 05, 2008 8:02 am

Re: Trim

Post by MCE_Anders »

Hi

Thanks for a quick response. Home today with a cold so suddenly have time *chough*…

Didn’t quite understand the “I solved the H7 problem”. Which show?
The sentence “Deletes too short or too long commercials and too short commercials at the start of the end of the recording” is v e r y fuzzy. I can’t figure out what you mean ;)

I must also check on how to mark the heuristics… If I understand correctly, using bit-patterns, the value 1 refers to H1, 2 to H2, 4 to H3, 8 to H4, 16 to H5 and 32 (not 36) to H6 or did your suggestion mean disabling H6 AND H2???

Actually, reviewing the three different versions I find that 112 gives the best result. 132 is ok too except for one recording (Frusna_kanal5) but that recording is a bit special since it doesn’t start the ordinary 2 mins before broadcast time so there is no initial commercial which can explain the cuts in the beginning.

140 marks show segments as commercials in two cases, which isn’t very nice if one plan for automated cutting.

http://www.femtiosju.se/Differences_112_132_140.xls

I must say this is interesting and I will try to dig up some cash to show my appreciation!
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Re: Trim

Post by erik »

Weird, I do not get the same behaviour as you get with build 140.
Do you reprocess the entire recording or use the .csv file?
When you do reprocess the original mpg file, could you see if there is a different result when you use the .csv files as input?
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Re: Trim

Post by erik »

The difference is in the disable_heuristics settings.

When I try with
min_commercial_break_at_start_or_end=5
and
disable_heuristics=0
I get one main issue with Lyxfällan_TV3 because for all other recordings the last show segment after the last commercial is to be discarded because
delete_show_after_last_commercial=1
and
delete_show_before_or_after_current=1
and this is not wanted for Lyxfällan_TV3. This is a problem that can not be solved except when you extend the recording of Lyxfällan_TV3 such that it always has a (small) commercial block at the end.
MCE_Anders
Posts: 12
Joined: Mon May 05, 2008 8:02 am

Re: Trim

Post by MCE_Anders »

erik wrote:Weird, I do not get the same behaviour as you get with build 140.
Do you reprocess the entire recording or use the .csv file?
When you do reprocess the original mpg file, could you see if there is a different result when you use the .csv files as input?
:cry: Oops... Only ran the .csv file. Did notice that myself later this afternoon. (I blame the a fever...)

Will rerun all movies this evening or tomorrow.

Did you see my question about the values for heuristics?

/Anders
MCE_Anders
Posts: 12
Joined: Mon May 05, 2008 8:02 am

Re: Trim

Post by MCE_Anders »

erik wrote:This is a problem that can not be solved except when you extend the recording of Lyxfällan_TV3 such that it always has a (small) commercial block at the end.
According to that I can point out an issue that might be of relevance:
My default recording settings are “start if possible 2 minutes before broadcast time and end 3 minutes after”. If I have two or more recordings in a row for the same tuner the recording starts/stops exactly on broadcast time. That’s why Frusna_Kanal 5 didn’t have any initial commercials and I guess that’s making the tuning more difficult.

I did a rerun and the results are much better! I do apologize for jumping to conclusions. I updated the Excel document linked above and there are only a couple of frames here and there that differs during the period of the actual show. TV3 and Kanal 5 mix previews of upcoming shows in a way that TV4 and TV6 don’t and Comskip mark them as show, but that’s fully understandable. It might be a bit confusing to watch since the commercials is gone one might not notice that they are previews. “What on earth is Dr Phil doing in Two and a half men!!!” :lol:

I’ll make a thread with the config for DVB-T users in Sweden so that you don’t have to run through all this again.

Cheers!
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Re: Trim

Post by erik »

See the updated text in the "list of parameters" post

This is the comskip.ini I use to process your files.

Code: Select all

[Main Settings]
detect_method=111
verbose=1
max_brightness=60
maxbright=5
test_brightness=40
max_avg_brightness=25
max_commercialbreak=600
min_commercialbreak=25
max_commercial_size=125
min_commercial_size=4
min_show_segment_length=125
max_volume=500
non_uniformity=500
[Detailed Settings]
min_silence=8
noise_level=5
brightness_jump=200
fps=25
validate_silence=1
validate_uniform=1
validate_scenechange=1
global_threshold=1.05
disable_heuristics=0
[CPU Load Reduction]
play_nice_start=-1
play_nice_end=-1
play_nice_sleep=10
[Input Correction]
max_repair_size=200
ms_audio_delay=5
volume_slip=20
variable_bitrate=1
[Aspect Ratio]
ar_delta=0.08
cut_on_ar_change=1
[Global Removes]
padding=0
remove_before=0
remove_after=0
delete_show_after_last_commercial=1
delete_show_before_first_commercial=0
delete_show_before_or_after_current=1
delete_block_after_commercial=0
min_commercial_break_at_start_or_end=5
[USA Specific]
intelligent_brightness=0
black_percentile=0.0073
uniform_percentile=0.005
score_percentile=0.71
[Main Scoring]
length_strict_modifier=3
length_nonstrict_modifier=1.5
combined_length_strict_modifier=2
combined_length_nonstrict_modifier=1.25
ar_wrong_modifier=2
excessive_length_modifier=0.01
dark_block_modifier=0.3
min_schange_modifier=0.5
max_schange_modifier=2
logo_present_modifier=0.5
punish_no_logo=1
[Detailed Scoring]
punish=0
reward=0
punish_threshold=1.3
punish_modifier=2
reward_modifier=0.5
[Logo Finding]
border=10
give_up_logo_search=2000
logo_max_percentage_of_screen=0.1
ticker_tape=0
ignore_side=0
subtitles=0
logo_at_bottom=0
logo_threshold=0.75
logo_filter=5
aggressive_logo_rejection=0
edge_level_threshold=5
edge_radius=2
edge_weight=10
edge_step=1
num_logo_buffers=50
use_existing_logo_file=1
two_pass_logo=1
[Logo Interpretation]
connect_blocks_with_logo=1
logo_percentile=0.92
logo_fraction=0.4
shrink_logo=5
before_logo=0
after_logo=0
where_logo=0
min_black_frames_for_break=1
[Closed Captioning]
ccCheck=0
cc_commercial_type_modifier=4
cc_wrong_type_modifier=2
cc_correct_type_modifier=0.75
[Live TV]
live_tv=1
live_tv_retries=4
dvrms_live_tv_retries=300
standoff=0
dvrmsstandoff=120000
require_div5=0
div5_tolerance=-1
[Output Control]
output_default=1
output_plist_cutlist=0
output_zoomplayer_cutlist=0
output_zoomplayer_chapter=0
output_vcf=0
output_vdr=0
output_projectx=0
output_avisynth=0
output_videoredo=0
videoredo_offset=2
output_btv=0
output_edl=0
output_edlp=0
output_bsplayer=0
output_edlx=0
output_cuttermaran=0
output_mpeg2schnitt=0
output_womble=0
output_mls=0
output_mpgtx=0
output_dvrmstb=1
output_dvrcut=0
output_framearray=1
output_debugwindow=1
output_tuning=0
output_training=0
output_aspect=0
output_demux=0
output_timing=0
delete_logo_file=1
cutscene_frame=0
cutscene_dumpfile=""
cutscene_threshold=10
cutscenefile1=""
cutscenefile2=""
cutscenefile3=""
cutscenefile4=""
cutscenefile5=""
cutscenefile6=""
cutscenefile7=""
cutscenefile8=""
windowtitle="Comskip - %s"
cuttermaran_options="cut=\"true\" unattended=\"true\" muxResult=\"false\" snapToCutPoints=\"true\" closeApp=\"true\""
mpeg2schnitt_options="mpeg2schnitt.exe /S /E /R25  /Z %2 %1"
avisynth_options="LoadPlugin(\"MPEG2Dec3.dll\") \nMPEG2Source(\"%s\")\n"
dvrcut_options="dvrcut \"%s.dvr-ms\" \"%s_clean.dvr-ms\" "
[Sage Workarounds]
sage_framenumber_bug=0
sage_minute_bug=0
enable_mencoder_pts=0
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Re: Trim

Post by erik »

Do notice the
logo_present_modifier=0.5
change which I forgot to mention earlier
Post Reply