[FFmpeg-devel] NUT and no PTS

Luca Barbato lu_zero
Tue Oct 12 10:30:13 CEST 2010

On 10/12/2010 10:21 AM, Michael Niedermayer wrote:
> On Tue, Oct 12, 2010 at 09:09:17AM +0200, Luca Abeni wrote:
>> In few words, the problem happens when I try to mux an AVPacket having
>> pts == AV_NOPTS_VALUE (see the end of this email for a way to reproduce
>> this problem).
>> The error is due to the check
>> 	    if(pkt->pts<  0)
>> 	        return -1;
>> at line 637 of nutenc.c, which is triggered by AV_NOPTS_VALUE.
>> So, my questions:
>> 1) Is this a bug, or I am not supposed to pass  AV_NOPTS_VALUE as pts?
>>     (other formats, such as MPEG TS, do not show this problem)
> muxing packets with unknown timestamps is not supported by ffmpegs muxer API

I thought there was some code in libavformat that tries to guess the pts 
in a number of ways, I had been bitten by it since I was feeding it with 
misleading data once.



Luca Barbato

More information about the ffmpeg-devel mailing list