Sign up here and you can log into the forum!

XSL Support for templates

Support forum for the great ThumbGen software

Re: XSL Support for templates   

Postby kanel » Sun Feb 17, 2013 6:06 am

Hi,

I have about 400 movies with info shown from Media Info listed below in the example.

They all have the following in common:

General
Format : MPEG-TS
Video
Format : MPEG Video
Format version : Version 2
Scan type : Interlaced
Audio
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 2

ThumbGen make these selections:
Resolution = 576p (should be 576i)
Format = mpeg4 (should be mpeg2)
Audio = unknown (should be mp2)

I can trick the program into using 576i logo instead of 576p and mpeg logo instead of mpeg4 by renaming the image files used to generate the sheets.
But since audio is defined as "unknown", I can not do the "rename image file" trick to get audio logo in the sheets.

ThumbGen does not select correct info, so I hope the usage of XSL could do the trick. I have zero knowledge in XSL coding.

Is there someone skilled in XSL who could make a script that choose correct media info values as listed above and select 576i, mpeg2 and mp2 logo images?

Code: Select all
General
ID                                       : 1 (0x1)
Complete name                            : Q:\FILM\-THRILLER-\Arachnophobia\Arachnophobia.ts
Format                                   : MPEG-TS
File size                                : 3.07 GiB
Duration                                 : 1h 44mn
Overall bit rate mode                    : Variable
Overall bit rate                         : 4 193 Kbps

Video
ID                                       : 522 (0x20A)
Menu ID                                  : 1 (0x1)
Format                                   : MPEG Video
Format version                           : Version 2
Format profile                           : Main@Main
Format settings, BVOP                    : Yes
Format settings, Matrix                  : Custom
Codec ID                                 : 2
Duration                                 : 1h 44mn
Bit rate mode                            : Variable
Bit rate                                 : 3 727 Kbps
Maximum bit rate                         : 10 000 Kbps
Width                                    : 720 pixels
Height                                   : 576 pixels
Display aspect ratio                     : 16:9
Active Format Description                : Full frame 16:9 image
Frame rate                               : 25.000 fps
Standard                                 : PAL
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Interlaced
Scan order                               : Top Field First
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.359
Stream size                              : 2.73 GiB (89%)

Audio
ID                                       : 664 (0x298)
Menu ID                                  : 1 (0x1)
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 2
Codec ID                                 : 3
Duration                                 : 1h 44mn
Bit rate mode                            : Constant
Bit rate                                 : 256 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Delay relative to video                  : 1ms
Stream size                              : 192 MiB (6%)
Language                                 : English
kanel
n00b
 
Posts: 1
Joined: Sun Feb 17, 2013 5:27 am

Re: XSL to show empty.png if the%SUBTITLES4% token is empty   

Postby pityrules » Sun Feb 24, 2013 4:32 am

These are awesome tips, just what I will be looking for once I get more proficient as it mentions thing that I already wish I could alter - eg getting rid of certain fields if no information is displayed.
Thanks for all the good work!
pityrules
WDTVer
 
Posts: 20
Joined: Wed Feb 20, 2013 10:03 am

Previous

Return to ThumbGen

Who is online

Users browsing this forum: No registered users and 2 guests