Advertisement
Guest User

Untitled

a guest
Feb 15th, 2016
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.79 KB | None | 0 0
  1. To test your configuration you can do the following.
  2. For tuning purpose i'm using a Windows machine and download build (0.81.090) here http://www.kaashoek.com/files/
  3. I then backup existing comskip.ini and put my test/tuning comskip.ini that looks like this:
  4. (more info here http://www.kaashoek.com/files/tuning.htm)
  5.  
  6. verbose=10 ; show a lot of extra info, level 5 is also OK, set to 0 to disable
  7. detect_method=47 ; For testing purpose this should be set to 47, 1=black frame, 2=logo, 4=scene change, 8=fuzzy logic, 16=closed captions, 32=aspect ration, 64=silence, 128=cutscenes, 255=all
  8. delete_logo_file=0 ; set to 1 if you want comskip to tidy up after finishing
  9. output_framearray=1 ; Only for tuning (set to 1) Create a big excel file for detailed analysis, set to 0 to disable
  10. output_data=1 ; Only for tuning (set to 1) Create a dump of the user data channel, used for CC and XDS (such as V-Chip info). Can be use together with output_framearray to remote debug CC decoding
  11. output_debugwindow=1 ; Only for tuning (set to 1)
  12. non_uniformity=1000 ; Only for tuning (1000 default 500)
  13. max_volume=1000 ; Only for tuning (1000 default 500)
  14. output_edl=1
  15. edl_skip_field=3 ; 0 - Cut, 1 - Mute, 2 - Scene Marker (if start and end times are specified, the end time is used), 3 - Commercial Break
  16.  
  17. You should use edl_skip_fields=3.
  18. Explanation for edl setting http://kodi.wiki/view/Edit_decision_list
  19.  
  20. Run a sample recording (with commercial and show pieces) and wait until it's finished.
  21.  
  22. When it's finished you quickly can check how it performed by dropping (and releasing the txt file over comskipGUI.exe
  23. This will load your commercial brakes. You can navigate with arrow keys or pgup/pgdn buttons (hit F1 for full key list)
  24. This way you can validate if it's correct.
  25.  
  26. If something is not right, change your comskip.ini configuration using instructions found in previous link and drop your csv file over comskipGUI.exe again to generate new txt/edl file (no need to run full process again)
  27. And validate again.
  28.  
  29. The comskip tuning guide also says to check certain values from generate csv but i never needed to do that.
  30. (Needed for min and max sound, black levels etc.)
  31.  
  32. After some testing and help from Erik (comskip dev) my ini file looks like this (it's this small because all default values will be used if not defined)
  33.  
  34. verbose=0 ; show a lot of extra info, level 5 is also OK, set to 0 to disable
  35. detect_method=111 ; 1=black frame, 2=logo, 4=scene change, 8=fuzzy logic, 16=closed captions, 32=aspect ration, 64=silence, 128=cutscenes, 255=all
  36. delete_logo_file=0 ; set to 1 if you want comskip to tidy up after finishing
  37. output_framearray=0 ; Only for tuning (set to 1) Create a big excel file for detailed analysis, set to 0 to disable
  38. output_data=0 ; Only for tuning (set to 1) Create a dump of the user data channel, used for CC and XDS (such as V-Chip info). Can be use together with output_framearray to remote debug CC decoding
  39. output_debugwindow=0 ; Only for tuning (set to 1)
  40. non_uniformity=500 ; Only for tuning (1000 default 500)
  41. max_volume=500 ; Only for tuning (1000 default 500)
  42. output_edl=1
  43. edl_skip_field=3 ; 0 - Cut, 1 - Mute, 2 - Scene Marker (if start and end times are specified, the end time is used), 3 - Commercial Break
  44.  
  45. As you can see it isn't that different then the default one. If you look close you will see only 1 value being modified and that is the detect_method to 111, this works perfect in my case.
  46.  
  47. Once you have debugged your file and configuration but still have wrong commercial cuts you could ask for help here: http://www.kaashoek.com/comskip/viewtopic.php?f=5&t=34
  48.  
  49. Some extra info can be found in SynoCommunity wiki https://github.com/SynoCommunity/spksrc/wiki/Comskip
  50.  
  51. My current PP script is:
  52. (using this so i can re-use logo files grabbed earlier to speed up proces)
  53. #!/bin/sh
  54.  
  55. # Variables
  56. INPUTVIDEO=$1
  57. CHANNEL=$2
  58.  
  59. TVHEADENDPP="/volume1/@appstore/tvheadend-testing/var/"
  60.  
  61. echo "*****" > ${TVHEADENDPP}/tvheadendpp$$.log
  62. echo "***** INPUT FILE = $INPUTVIDEO *****" >> ${TVHEADENDPP}/tvheadendpp$$.log
  63. echo "***** CHANNEL NAME = $CHANNEL *****" >> ${TVHEADENDPP}/tvheadendpp$$.log
  64. echo "*****" >> ${TVHEADENDPP}/tvheadendpp$$.log
  65.  
  66. COMSKIPPATH="/volume1/@appstore/comskip/bin/comskip"
  67. COMSKIPINI="/volume1/@appstore/comskip/var/comskip.ini"
  68. COMSKIPINI_DEL_LOGO="/volume1/@appstore/comskip/var/comskip-del-logo.ini" #same ini only value delete_logo_file changed to 1, delete_logo_file=1
  69.  
  70. if [ "$CHANNEL" == "RTL 4 HD" ]; then
  71. $COMSKIPPATH --ini=$COMSKIPINI_DEL_LOGO --logo=/volume1/@appstore/tvheadend-testing/var/RTL-4-HD.logo.txt $INPUTVIDEO 2>&1 </dev/null
  72. else
  73. $COMSKIPPATH --ini=$COMSKIPINI $INPUTVIDEO 2>&1 </dev/null
  74. fi[/code]
  75.  
  76. TVHeadend post-processor command used is: /volume1/@appstore/tvheadend-testing/var/tvheadend-pp.sh "%f" "%c"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement