[FFmpeg-devel] NUT and no PTS

Michael Niedermayer michaelni
Tue Oct 12 10:21:02 CEST 2010

On Tue, Oct 12, 2010 at 09:09:17AM +0200, Luca Abeni wrote:
> Hi all,
> I am seeing problems ("av_interleaved_write_frame(): Operation not permitted"
> but this is clearly a bogus message ;-) when muxing NUT files, and I'd like
> to fix this issue, but I need some input/suggestions...
> 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

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Democracy is the form of government in which you can choose your dictator
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20101012/5a1ed580/attachment.pgp>

More information about the ffmpeg-devel mailing list