The windows judgment PTS and DTS are normal

       Recently found ourselves writing ts stream on the iPhone can not even put the time in dealing with HLS stream, in order to respond quickly to this issue, there is no reason to get to the bottom but uses the ffmpeg library to put our ts sub bit stream, converts each frame into a group ts file, so the problem is solved. However, we found out a new problem: the code stream after many FFmpeg elapsed, only the two data transfer, both the first I-frame and the following P-frame, then the data is gone. But our ts stream directly into elecard which can be directly put too. At that time we suspected of triggering the bug ts stream ffmpeg what the cause could not turn out. The concept of this bug is deep-seated bug that some data, such as in some of the data layer or pes es layer in question. So on a variety of input and output file comparison, also always find the reason. Finally, a flash of a moment tool PTS and DTS timestamps only to find our mistakes, not increasing but the cycle appears, so that led to this problem. In the analysis method recorded:

      1, if the stream is ts, tools EasyICE. This tool is a very powerful tool for analyzing ts can get all the detailed data ts, but also for PTS, DTS, PCR can be obviously displayed. At that time I put our ts files opened after discovered this:

You can see from the above picture, DTS and PTS itself is indeed a problem.

2, to analyze the use of ffprobe

ffmpeg following tools ffprobe still very powerful. Using the following command ffprobe.exe 1.ts -show_frames -of xml> 1.xml the corresponding data can be generated xml, the effect is as follows:

Thus, fundamental analysis and the results of EasyICE same. Description PTS and DTS is problematic.

Well, today, right here.

Published 16 original articles · won praise 2 · Views 2374

Guess you like

Origin blog.csdn.net/u011553313/article/details/104667334
DTS