Hi,

I have a number of VOB files which all feature the same strange behaviour. 
After a certain period, the pts/dts timestamps on the packets reset to almost 
zero.

For example:

933, 375121777, 0000/01/01 00:00:37.512, 373200000, 1921777
934, 375521777, 0000/01/01 00:00:37.552, 373600000, 1921777
935, 375921777, 0000/01/01 00:00:37.592, 374000000, 1921777
936, 4751111, 0000/01/01 00:00:00.475, 374400000, -369648889
937, 5151111, 0000/01/01 00:00:00.515, 374800000, -369648889
938, 5551111, 0000/01/01 00:00:00.555, 375200000, -369648889

The columns are sample index, reported pts (from av_read_frame), formatted pts, 
predicted pts, difference.

The predicted pts is simply the sample index multiplied by 40ms (I'm assuming 
25fps video). Time basis is in 100ns ticks.

The small difference (19221777) is due to the fact that I'm incorrectly 
assuming a zero timestamp for the first frame.

My best guess is that this stream was produced by concatenating two streams, 
and failing to fix up the time stamps. Does that sound reasonable?

Is there any way I can use lavformat/lavutil/lavcodec to correct this problem, 
*without* tracking the sample index myself? (I want to be able to produce 
corrected timestamps following an arbitrary seek.)


Note: When these files are played in something like VLC, the timestamps are 
wrong (VLC's time indication stops incrementing past the 37s point in this 
example.) However, if I use VLC to load the VIDEO_TS folder, the time 
indication is correct. This is probably the wrong mailing list, but: how is VLC 
determining the correct time?

Many thanks,
Rob

Sira Defence & Security Ltd - Registered Office: York House, 74-82 Queen 
Victoria Street, London, EC4N 4SJ - Registered in England and Wales - Company 
number 05589861

CONFIDENTIALITY NOTICE: 

This email message, and any accompanying attachments, is for the sole use of 
the intended
recipient(s) and may contain information that is classed as Company-in 
Confidence.  If you are not the intended recipient, you are notified that any 
use, dissemination, distribution or copying of this message and any 
accompanying attachments, is prohibited. 

If you received this email message in error, please notify us immediately and 
erase all copies of this message and attachments.

Please note that Sira Defence & Security Ltd monitors incoming and outgoing 
mail for compliance with its Email Policy. This will include scanning incoming 
and outgoing emails to detect viruses and any spam mail.
_______________________________________________
libav-user mailing list
libav-user@mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to