dandy
30th September 2013, 15:30
hi
first of all - thank you for lav
I have an old machine with a pinacle pctvsat card
for the card I have to build the ds filter chain manually
simplefied
- source filters (card specific and transform)
- mpeg2 demultiplixer (ms)
- audio and video decoder
- renderers
for the mpeg2 demultiplexer I create output pins for sd and hd:
H264VideoFormat : array[0..87] of Byte=(
$00, $00, $00, $00, // .hdr.rcSource.left = 0x00000000
$00, $00, $00, $00, // .hdr.rcSource.top = 0x00000000
$00, $00, $00, $00, // .hdr.rcSource.right = 0x00000000
$00, $00, $00, $00, // .hdr.rcSource.bottom = 0x00000000
$00, $00, $00, $00, // .hdr.rcTarget.left = 0x00000000
$00, $00, $00, $00, // .hdr.rcTarget.top = 0x00000000
$00, $00, $00, $00, // .hdr.rcTarget.right = 0x00000000
$00, $00, $00, $00, // .hdr.rcTarget.bottom = 0x00000000
$00, $00, $00, $00, // .hdr.dwBitRate = 0x00000000
$00, $00, $00, $00, // .hdr.dwBitErrorRate = 0x00000000
$00, $00, $00, $00, $00, $00, $00, $00, // .hdr.AvgTimePerFrame = 0x0000000000000000
$1C, $00, $00, $00, // .hdr.bmiHeader.biSize = 0x00000028
$80, $07, $00, $00, // .hdr.bmiHeader.biWidth = 1920
$38, $04, $00, $00, // .hdr.bmiHeader.biHeight = 1080
$00, $00, // .hdr.bmiHeader.biPlanes = 0x0000
$18, $00, // .hdr.bmiHeader.biBitCount = 0x0000
$41, $56, $43, $31, // .hdr.bmiHeader.biCompression = "AVC1"
$00, $00, $00, $00, // .hdr.bmiHeader.biSizeImage = 0x00000000
$00, $00, $00, $00, // .hdr.bmiHeader.biXPelsPerMeter = 0x00000000
$00, $00, $00, $00, // .hdr.bmiHeader.biYPelsPerMeter = 0x00000000
$00, $00, $00, $00, // .hdr.bmiHeader.biClrUsed = 0x00000000
$00, $00, $00, $00 // .hdr.bmiHeader.biClrImportant = 0x00000000
);
Mpeg2ProgramVideo : array[0..217] of Byte=(
$00, $00, $00, $00, //00 .hdr.rcSource.left = $00000000
$00, $00, $00, $00, //04 .hdr.rcSource.top = $00000000
$D0, $02, $00, $00, //08 .hdr.rcSource.right = $000002d0 //720
$40, $02, $00, $00, //0c .hdr.rcSource.bottom = $00000240 //576
$00, $00, $00, $00, //10 .hdr.rcTarget.left = $00000000
$00, $00, $00, $00, //14 .hdr.rcTarget.top = $00000000
$D0, $02, $00, $00, //18 .hdr.rcTarget.right = $000002d0 //720
$40, $02, $00, $00, //1c .hdr.rcTarget.bottom = $00000240// 576
$00, $09, $3D, $00, //20 .hdr.dwBitRate = $003d0900
$00, $00, $00, $00, //24 .hdr.dwBitErrorRate = $00000000
$80, $1A, $06, $00, $00, $00, $00, $00, //28 .hdr.AvgTimePerFrame = $0000000000051763 ->1000000/ 40000 = 25fps
$00, $00, $00, $00, //2c .hdr.dwInterlaceFlags = $00000000
$00, $00, $00, $00, //30 .hdr.dwCopyProtectFlags = $00000000
$04, $00, $00, $00, //34 .hdr.dwPictAspectRatioX = $00000004
$03, $00, $00, $00, //38 .hdr.dwPictAspectRatioY = $00000003
$00, $00, $00, $00, //3c .hdr.dwReserved1 = $00000000
$00, $00, $00, $00, //40 .hdr.dwReserved2 = $00000000
$28, $00, $00, $00, //44 .hdr.bmiHeader.biSize = $00000028
$D0, $02, $00, $00, //48 .hdr.bmiHeader.biWidth = $000002d0 //720
$40, $02, $00, $00, //4c .hdr.bmiHeader.biHeight = $00000240 //576
$00, $00, //50 .hdr.bmiHeader.biPlanes = $0000
$00, $00, //54 .hdr.bmiHeader.biBitCount = $0000
$00, $00, $00, $00, //58 .hdr.bmiHeader.biCompression = $00000000
$00, $00, $00, $00, //5c .hdr.bmiHeader.biSizeImage = $00000000
$D0, $07, $00, $00, //60 .hdr.bmiHeader.biXPelsPerMeter = $000007d0
$27, $CF, $00, $00, //64 .hdr.bmiHeader.biYPelsPerMeter = $0000cf27
$00, $00, $00, $00, //68 .hdr.bmiHeader.biClrUsed = $00000000
$00, $00, $00, $00, //6c .hdr.bmiHeader.biClrImportant = $00000000
$98, $F4, $06, $00, //70 .dwStartTimeCode = $0006f498
$00, $00, $00, $00, //74 .cbSequenceHeader = $00000000
$02, $00, $00, $00, //78 .dwProfile = $00000002
$02, $00, $00, $00, //7c .dwLevel = $00000002
$00, $00, $00, $00, //80 .Flags = $00000000
$00, $00, $01, $B3, $2D, $01, $E0, $24,
$09, $C4, $23, $81, $10, $11, $11, $12,
$12, $12, $13, $13, $13, $13, $14, $14,
$14, $14, $14, $15, $15, $15, $15, $15,
$15, $16, $16, $16, $16, $16, $16, $16,
$17, $17, $17, $17, $17, $17, $17, $17,
$18, $18, $18, $19, $18, $18, $18, $19,
$1A, $1A, $1A, $1A, $19, $1B, $1B, $1B,
$1B, $1B, $1C, $1C, $1C, $1C, $1E, $1E,
$1E, $1F, $1F, $21, $00, $00, $01, $B5,
$14, $82, $00, $01, $00, $00 );
with ffdshow (old version - rev2547_20081228 / newer don't work) for SD and with CoreAVC for HD all is working well
now: lav is connecting to the demultiplexer (sd or hd output pin) allright - but there is no picture
I don't know if this is of any interest for other people, but perhaps it's easy to fix
and I do want to use lav for viewing tv!
thank you
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.