Would it be possible for you to create a "extended"-avisynth option for comskip where comskip outputs extended info about the video. This could be used after comskip finished and you want to encode the mpg file.
Lets say that comskip knows the size of the blackborder, then we could specify the right syntax to crop the video. The same thing is with the AR and other similar stuff that you could change/remove before encoding.
Over and out
Daju
Extended avisynth option
Comskip reports in the log file the "dominant" aspect ratio,
Is it possible to extract the info from the log file?
It says at the end
and all the changes in aspect ratio are logged in the log file
Is it possible to extract the info from the log file?
It says at the end
Code: Select all
Logo fraction: 0.5659
Maximum volume found: 3030
Average volume: 970
Sound threshold: 500
Silence threshold: 100
Minimum volume found: 0
Average frames with silence: 78
Black threshold: 20
Minimum Black level found: 15
Average brightness: 1064
Uniformity level: 260
Average non uniformity: 446
Maximum gap between logo's: 268
Suggested logo_threshold: 0.7750
Suggested shrink_logo: 5
Max commercial size found: 109
Dominant aspect ratio: 1.2600
Score threshold: 1.0500
Framerate: 25.00
Total commercial length: 0:20:43.00
Code: Select all
Frame: 75287 Ratio: 0.94 MinY: 10 MaxY: 566 MinX: 86 MaxX: 630
Frame: 76038 Ratio: 1.26 MinY: 10 MaxY: 566 MinX: 10 MaxX: 710
Frame: 107318 Ratio: 0.98 MinY: 10 MaxY: 566 MinX: 86 MaxX: 630
Frame: 107563 Ratio: 1.26 MinY: 10 MaxY: 566 MinX: 10 MaxX: 710
Frame: 108597 Ratio: 1.12 MinY: 10 MaxY: 566 MinX: 50 MaxX: 670