Am 10.02.2011 01:59, schrieb Tobias Grimm:
> Am Montag, den 10.01.2011, 20:19 +0100 schrieb Tobias Grimm:
>> It shouldn't be too hard to scan a *.ts-File for discontinuity errors,
>> but I would like to make VDR detect this while recording and somehow set
>> a flag, so I can see if a recording might have errors.
On the outer TS layer, you can check for TS packet structure ("skipping
bytes to sync on next TS packet") and TS discontinuity, thats probably
all. However this gives quite good hints on data loss and buffer overruns.
On PES layer, there's not much to check, and everything below PES layer
is encoding specific and would require mpeg2 / mpeg-audio / ac3 / h264
specific scans, that are more complicated.
Also, I wouldn't be surprised if there are errors close to the beginning
/ ending of a recording, that you may have to ignore.
vdr mailing list