This is the output I get when running your php script:
Code:
# php flvfixer.php --nometa --in 1a.flv --out fixed.flv --debug
KSV FLV Fixer
Type CurrentTS PreviousTS Size Position
Writing AVC sequence header
VIDEO 0 -1 66 13
Writing AAC sequence header
AUDIO 0 -1 4 94
VIDEO 0 0 52212 113
Fixing video timestamp
VIDEO 0 0 89
VIDEO 8 0 89 52340
Fixing video timestamp
VIDEO 0 8 91
VIDEO 16 8 91 52444
Fixing video timestamp
VIDEO 0 16 92
VIDEO 24 16 92 52550
Fixing video timestamp
VIDEO 0 24 96
VIDEO 32 24 96 52657
Fixing video timestamp
VIDEO 0 32 98
VIDEO 40 32 98 52768
Fixing video timestamp
VIDEO 0 40 125
VIDEO 48 40 125 52881
Fixing video timestamp
VIDEO 0 48 247
VIDEO 56 48 247 53021
Fixing video timestamp
VIDEO 0 56 390
VIDEO 64 56 390 53283
Fixing video timestamp
VIDEO 0 64 765
VIDEO 72 64 765 53688
Fixing video timestamp
VIDEO 0 72 873
VIDEO 80 72 873 54468
Fixing video timestamp
VIDEO 0 80 2197
VIDEO 88 80 2197 55356
Fixing video timestamp
VIDEO 0 88 2313
VIDEO 96 88 2313 57568
Fixing video timestamp
VIDEO 0 96 3001
VIDEO 104 96 3001 59896
Fixing video timestamp
VIDEO 0 104 2810
VIDEO 112 104 2810 62912
Fixing video timestamp
VIDEO 0 112 3379
VIDEO 120 112 3379 65737
Fixing video timestamp
VIDEO 0 120 4011
VIDEO 128 120 4011 69131
Fixing video timestamp
VIDEO 0 128 4121
VIDEO 136 128 4121 73157
Fixing video timestamp
VIDEO 0 136 4063
VIDEO 144 136 4063 77293
Fixing video timestamp
VIDEO 0 144 4930
VIDEO 152 144 4930 81371
Fixing video timestamp
VIDEO 0 152 5275
VIDEO 160 152 5275 86316
Fixing video timestamp
VIDEO 0 160 5443
VIDEO 168 160 5443 91606
Fixing video timestamp
VIDEO 0 168 5492
VIDEO 176 168 5492 97064
Fixing video timestamp
VIDEO 0 176 5662
VIDEO 184 176 5662 102571
Fixing video timestamp
VIDEO 0 184 5826
VIDEO 192 184 5826 108248
Fixing video timestamp
VIDEO 0 192 5861
VIDEO 200 192 5861 114089
Fixing video timestamp
VIDEO 0 200 5996
VIDEO 208 200 5996 119965
Fixing video timestamp
VIDEO 0 208 5731
VIDEO 216 208 5731 125976
Fixing video timestamp
VIDEO 0 216 6348
VIDEO 224 216 6348 131722
Fixing video timestamp
VIDEO 0 224 5897
VIDEO 232 224 5897 138085
Fixing video timestamp
VIDEO 0 232 6402
VIDEO 240 232 6402 143997
Timestamp gap detected: PacketTS=1870706200 LastTS=240 Timeshift=1870705960
Timestamp gap detected: PacketTS=26934631 LastTS=240 Timeshift=26934391
Timestamp gap detected: PacketTS=227358670 LastTS=240 Timeshift=227358430
Broken FLV tag encountered! Aborting further processing.
Processed input file in 2.57 seconds
Finished