Networked Media Tank
Check & Repair Tool for Transport Streams of DVB/HDTV Recordings (TS-Doctor) - Printable Version

+- Networked Media Tank (
+-- Forum: Community Jukebox, Themes, & UserApps Section (/forumdisplay.php?fid=106)
+--- Forum: 200/300/400 Series - Development and User Apps (/forumdisplay.php?fid=121)
+---- Forum: 100 Series - Development and User Apps (/forumdisplay.php?fid=33)
+---- Thread: Check & Repair Tool for Transport Streams of DVB/HDTV Recordings (TS-Doctor) (/showthread.php?tid=5624)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

Check & Repair Tool for Transport Streams of DVB/HDTV Recordings (TS-Doctor) - Cypheros - 07-08-2008 11:18 AM

Hi folks,

over the last year I filled my harddisks with Mpeg2 and H264 movies I streamed with my Technisat DVB-S2 card and DVBViewer.

I can play the streams on my PC but only a few of them working on my PH.

MPEG2 streams can be fixed with projectx but not H264.
Tested alot of tools like remuxers and fixers but none worked perfect. Most of the time audio and video getting asynch or the tools not even accepting the stream.

I worked over a half year learning about MPEG, H264 and DVB stream to find the reason for the problems!
The PATs and the PMTs are not recognized by the PH (and some of the DVB fixing tools) because they are containing invalid entries (PIDs). DVBViewer, like other DVB recording software filtering out some of the streams (unwanted audio streams for example) but leaving the PATs and the PMTs untouched. For 100% compatiblity the PATs and the PMTs should only have valid entries that can be found in the transport stream.

So I have written a little tool to correct the PATs and the PMTs, filtering out unneeded packets, seeding PATs and PMTs into the stream for compliance, checking CRC and continuety and cutting the stream at every point you want. The stream will not be remuxed, only cutted, corrected and checked! So the precise timing between audio and video is not at risk!

After this process the stream should work without problems on the PH and maybe other ts capable hardware player.
Have also tested the tool with DBOX2 recordings and ended with 100% working ts.

At the moment there are only error messages in the log if a CRC error or a continuety error occurs.

From 1. of march 2010 the TS-Doctor will be Shareware.
[But you are free to test the trial version for 30 days without any limitations.]

Current version: 1.2.82 [04/24/2013]


[Image: tsdoctor_big_eng.png]


- werner - 07-08-2008 11:25 AM

nice tool we use right now this tool

7. Transportstream for NetworkPlayer
Description: Transport Stream Re-muxer with blu-ray/Sat/OTA and now MPG/VOB/EVOB stream support. Ability to trim streams at the beginning and/or the end, Ability to pick and choose elementary streams to be kept, Ability to remux PCR-less streams, Ability to remux program streams (MPG/VOB/EVOB) into TS/M2TS, Ability to demux elementary streams as well as subtitle streams compatible with SUPreader (right click the selected stream with the mouse)
Status: v 0.80 (09.05.2008) + Sourcecode
v 0.82 (25.05.200
- Streamhandling changed
v 0.81 (25.05.200
- Streamhandling changed
- Bugfix Progressbar
v 0.80 (09.05.2008)
- Console (try Ts4Np ? to open)
- Trim/Cut changed (Start and end times are now from the beginning of the file calculated)
v 0.72 (06.05.2008)
- Fixed PES Packet Lenght
v 0.71 (30.04.2008)
- Fixed Lengh of GOP after Crop
v 0.70 (27.04.2008)
- Option Crop h.264 (1088 -> 1080)
v 0.61 (25.04.2008)
- Bug Fix h.264-Video Video-Range
v 0.60 (23.04.2008)
- Change in AC3-Detection
- Add Option to change Video-Range at h.264-Video
- Change Name to Transportstream for NetworkPlayer to continue discussions with confusion exclude TsMuxer / TsConverter.
v 0.51 (16.04.2008)
- SIT-PID was incorrectly entered in PAT
v 0.5 (14.04.2008)
- Change in PCR-Calculating.
Time display and jumping should now cell
- Change Name to TsConverter to continue discussions with confusion exclude TsMuxer.

- Cypheros - 07-08-2008 11:42 AM

Hi werner,

as I started the development of my tool, there was nothing like that. Is it working perfect on H264 DVB-streams?

Many tools messing around with the timings(PCR/PTS/DTS) and you are ending with studdering or asynchon audio and video.

Have you experiences with this tool regarding DVB?


- werner - 07-08-2008 11:45 AM

i fixed als my dvb records with it an they working now perfect on the PCH Smile maybe you should give it an try

- werner - 07-08-2008 11:48 AM

oh you are german also hehe i'm from austria Smile in the german forum maybe you wanna look there also is kaba he mades that that we can use our records for free Wink

regards werner

- Cypheros - 07-08-2008 12:07 PM


for this tool. It's nice and has some interesting features but my first try on a MPEG2 stream ended like this:
[Image: tsnp_error.jpg]

Sorry, have a german XP!
I will check the results of another stream with H264 content.


- werner - 07-08-2008 12:09 PM

my native language is german if you wanna talk german then come to the german forum

- Cypheros - 07-08-2008 12:17 PM

OK werner. Bin drin :wink:

- werner - 07-08-2008 12:19 PM

ok dann kannst du dort ja gleich mal dort posten hehehe ebenfalls wegen deinem tool da die probleme hauptsaechlich europaer betrifft

- n8gray - 07-10-2008 02:42 AM

Switching back to English for a moment, does anybody know of a Linux tool that can fix TS streams as part of a post-recording script on a myth backend?

- spawn - 07-10-2008 06:19 AM

I do alot of DVB-C recordings with DVBviewer/FireDTV - and did a few testruns on a couple of files (720p h264/ac3.ts)

The TSdoctor seem to handle them very nicely - cleaned up the PAT and PMT entries and removed some Double PES frames resulting in a nice playable TS

Will be doing more testing after work - but so far - very pleased with this tool.

Thank you Cypheros 8)

- Cypheros - 07-10-2008 09:49 AM

Thanks spawn for your kind words Smile

- spawn - 07-10-2008 02:18 PM

ps: naturally the eycandy of the sleek interface doesnt hurt either :wink: - and I also like the loginfo

- emveepee - 07-11-2008 03:34 AM

I wasn't as lucky, I got a Trial expired message. Back to TS4NP for now

Edit: Why does everyone feel they have to compress binaries?


- Cypheros - 07-11-2008 07:57 AM

Sorry emveepee,

that's the anti debug code I use to protect the application. If you try to unpack and disassemble the code or mess around with the registry you will get a "trial expired" message. :wink:

In the next beta version I will disable the trial limit! Smile

Sorry for the inconvenience!