I think this is my first post here. I am looking for a solution to the following problem.
I have an hdpvr device and do some pal recordings with it. Before I encode the .ts files I like to cut commercials etc.
For that reason I use h264ts_cutter or TSPE.
The I get the cut.ts file and load it on my encoder gui which is Staxrip. Staxrip uses DGAVC index (latest version) to demux the ts file and create a dga file.
Everything goes fine but at some point during the x264 encoding (into mkv) I get an error.
The error is exit code 3. This happens only if I try to encode a ts file that was cut with h264ts_cutter or TSPE.
I copy&paste from the log
x264 Encoder failed with exit code 3

avis [info]: 720x480 @ 29.97 fps (120806 frames)
x264 [info]: using SAR=79/55
x264 [info]: using cpu capabilities: MMX2 SSE2Fast FastShuffle SSEMisalign LZCNT
x264 [info]: profile Main, level 3.1
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

This is from ntsc source so initial ftp was 59.940 which by SelectEven() goes to half...

To help you more with this equation I think the problem lies in the DGAVC index in combination with h264ts_cutter or TSPE.

There is another alternative. And this is to disable DGAVC index from staxrip. Then staxrip will use ffdshow and matroska splitter. The problem in this case is that although video will be encoded there will be audio/video sync. If I encode only video and try to mux the mkv file with the ac3 then I will get again audio-video desync which increases progressively.
Have in mind also that in avs script I include SelectEven() to make the 50fps into 25 or 59940 into 29.97...
And something else, if I do not cut the ts file and load it unedited, dgavc works fine, encoding completes successfully and no audio/video desync occurs...

My OS is Win XP Pro sp3.

I'd like to hear any recommendations or suggestions...
Thank you.