VRD6 Join of three H264 ts segments - last segment missing in output ts file (solved)

hvda

Member
When testing (*) VRD6 version 6.61.3.821 'join' of three segments from two small (30 sec and 15 sec duration) H264 video files (transport stream), I got a transport stream output file with the last (third) segment missing.
Same result (last segment not in output) if 'join' was done after a VRD Quick Fix of the two H264 video files input files.
But : the same 'join' (with same H264 video files and same segments cut from these video files) works OK with my VRD5.4.84.771 : all three segments are present in the 'joined' transport stream output file.

Possibly VRD6 is strugling with PTS time stamps (many lines in the VRD6 Log file like 'Multiple samples not in range at Orig PTS: 13320.01, count: 5' when handling the third segment of the join) whereas VRD5 has no problems with these PTS time stamps.

If you want, I can upload the 2 small H264 transport stream files (27 MByte and 12 MByte) I used for this 'join' test + the 3 Vprj project files (they define the segments to join) and eventually the VRD6 output ts file (20 MByte).

(*) In fact : I was trying to produce small test files in order to document another problem I encountered when joining 3 H264 ts segments : when playing (MPC-HC, VLC) the joined ouput ts file, there is a small freeze (+/- 1 sec) at the last frame of segment #2.
However, first of all I would prefer a solution to the VRD6 'missing segment in join' problem before I eventually start a thread on this 'freeze in joined output ts' problem.

Thanks in advance for spending your time on this request.
 

Dan203

Senior Developer
Staff member
Those two issues could be related. The pause at the end of segment #2 could indicate an issue with the first frames in segment #3, and if you chopped segment #3 down to 15 seconds for the test then it could be all bad frames.

What happens if you just open segment #3 in the VideoReDo UI? Does it open? Are all the frames there? Do you notice any visual distortion of the frames at the beginning?
 

hvda

Member
Hello Dan,
I did as you asked : I saved segment#3 (starts with an I frame) as a separate H264 ts output file : it opens just fine in VideoRedo 6; all the frames are there (of course VRD6 transformed the original initial frame sequence 'I-B-B-B-B-B-B-B-P' to 'IDR-P-P-P-P-P-P-P-P' in the output) ; there is no visual distortion of any of the frames at the beginning.
Remember also :
- VideoRedo 5.4.84.771 does the same identical join of the three segments perfectly well.
- Does the many lines in the VRD6 Log file like 'Multiple samples not in range at Orig PTS: 13320.01, count: 5' when handling the third segment of the join not give some indication ?

As for the second issue ('short freeze at end of joined segment') : this happens sometimes when I have to join multiple segments of two ts recordings (about 3 GByte each) . But I did not yet manage to produce small enough samples out of the initial recordings that document the problem : the problem wasn't there any more with those small samples. So that has to wait until I have good documentation material.
 

Dan203

Senior Developer
Staff member
Hello Dan,
I did as you asked : I saved segment#3 (starts with an I frame) as a separate H264 ts output file : it opens just fine in VideoRedo 6; all the frames are there (of course VRD6 transformed the original initial frame sequence 'I-B-B-B-B-B-B-B-P' to 'IDR-P-P-P-P-P-P-P-P' in the output) ; there is no visual distortion of any of the frames at the beginning.
Remember also :
- VideoRedo 5.4.84.771 does the same identical join of the three segments perfectly well.
- Does the many lines in the VRD6 Log file like 'Multiple samples not in range at Orig PTS: 13320.01, count: 5' when handling the third segment of the join not give some indication ?

As for the second issue ('short freeze at end of joined segment') : this happens sometimes when I have to join multiple segments of two ts recordings (about 3 GByte each) . But I did not yet manage to produce small enough samples out of the initial recordings that document the problem : the problem wasn't there any more with those small samples. So that has to wait until I have good documentation material.
Send your log file to support AT videoredo.com and we'll take a look
 

hvda

Member
VRD log file uploaded to support on dec 9th 2020, together with the related short ts input source files, the VRD project files and the resulting ts output files (output for both the VRD6 'join = not OK, and the VRD5 'join' = OK).
 

hvda

Member
Did join test with released VRD 6.62.4-827 version (with same input files and same VRD project files as those uploaded to support on dec 9th 2020). Result : same problem as described before in this thread = segment#3 missing in output ts.
 

Dan203

Senior Developer
Staff member
hello Dan,

Did you had the opportunity to take a look at the test files I sent to support on december 13th 2020 ?
Hmmm.... I never saw them in my queue. DanR might have taken over the ticket though. I'll have to look at the support system and see what happened.
 

Danr

Administrator
Staff member
Do you have a ticket id? If not, resubmit the log and the issue. Also, have you tried build 828 as there was a joiner fix:

Joiner: Bad joins if the longest file being joined is shorter in duration than other joined files & scenes exceed that duration.
 

hvda

Member
Do you have a ticket id? If not, resubmit the log and the issue. Also, have you tried build 828 as there was a joiner fix:

Joiner: Bad joins if the longest file being joined is shorter in duration than other joined files & scenes exceed that duration.
Tried the new beta VRD 6-62-4-828a : solves the join problem. Thank you very much. This thread can now be closed.
For your information : Ticket id: LHB-72467-959 (e-mail from support@videoredo.com dec 9th 2020); anyway : no need I resubmit log and test files.
 
Top Bottom