Closed AlexKordic closed 1 month ago
Closing this since transcoder2 was removed in https://github.com/livepeer/lpms/pull/410
also I am not sure about this sample - this is HEVC with a leading CRA slice (not an IDR), which is followed by a frame that references the previous segment. As such this segment is not a closed GOP and not decodable on its own. That points to a problem with the segmenter, since for our purposes we need segments that can be decoded independently.
Fixing scenario where input stream contains B-frames. Because we process video segments individually, often multiple transcoders process different segments in parallel, several-frame-long gap is produced on segment boundary.
Here is input segment timing example:
This fix adjusts timestamps so first frame of output stream starts from 5.967s instead from 6.000s.
How to test
cd ffmpeg
go test . -v -count 1 -tags nvidia -run TestTranscoder_offsetStartPTS
ffprobe
should be on thePATH
for unit test to work.