bearxuqian / tstools

Automatically exported from code.google.com/p/tstools
0 stars 0 forks source link

generated ts file unplayable #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
0. pick a simple valid ts file (test.ts)
1. es2ts: generate a es file from test.ts: test.es
2. ts2es: generate test-es.ts from test.ts
3. test-es.ts is not playable any more

What is the expected output? What do you see instead?
The regenerated ts file should be playable (and functionally equivalent to the 
original ts file)

What version of the product are you using? On what operating system?
1.11, Windows

Please provide any additional information below.
Sample ts file (cut from Apple example). Small, only 193 packets.

Original issue reported on code.google.com by jfgao...@gmail.com on 27 Nov 2011 at 2:37

Attachments:

GoogleCodeExporter commented 9 years ago
Sorry, there are typos. Here are the steps:

0. pick a simple valid ts file (test.ts)
1. generate a es file from test.ts
    ts2es test.ts test.es
2. es2ts: generate ts from test.es
    es2ts test.es test-es.ts
3. play the generate ts file: test-es.ts 
4. it is not playable 

Original comment by jfgao...@gmail.com on 27 Nov 2011 at 2:43

GoogleCodeExporter commented 9 years ago
I've seen the same issue and have dug through the stream and found that the PES 
header does not have a PTS or DTS set and there is no mpeg-2 ts PCR packet.  
I've assumed but not verified that this is at least one of the problems.

Original comment by petersen...@gmail.com on 15 Aug 2013 at 10:32