I've decided to share a program I wrote to fix the broken HD transport stream broadcast by SF Bay area PBS station KQED after 8 p.m. The symptom of this problem on the MyHD card is recordings show a black screen for 1 minute (or forever on the most recent MyHD beta driver).
The cause is the PAT map is incorrect, so the card has to do a deep scan of the transport stream to build its own map. My program repairs the PAT by removing bogus entries for the subchannels that aren't broadcast after 8 p.m., and then updates the length of the PAT map and generates a new CRC32 field.
This program runs in a command shell, and only has 1 option: keep subchannel 1, or keep subchannels 1 and 2. Example:
fix-kqed 1 oldfile.tp newfile-hd-only.tp
fix-kqed 2 oldfile.tp newfile-both.tp
My program only changes the PAT map, it doesn't remove any packets. If you want to reduce file size when just keeping subchannel 1, then use NullPacketStripper
to strip out the packets for subchannel 2 (0x20-0x2f).
By downloading this program, you accept the following terms & limitations:[list=1][*]program is distributed "as is" with no warranty[*]program has not been tested with files larger than 4GB--there's a chance it won't work--if in doubt, use NullPacketStripper to break the large file into several smaller pieces <4GB[*]I'm sharing work I've already done--I don't plan to put any more time into this, so do not ask for new features[/list=1]
The attachment is the actual executable, not a zip file, just change the .zip to .exe to run.
Post here if you find this program useful.
fix-kqed.zip 5k . file