[FFmpeg-devel] FW: Recording RTSP stream / av_interleaved_write_frame(): Invalid argument

aviad rozenhek aviadr1 at gmail.com
Wed Apr 4 18:47:58 CEST 2012


On Wed, Apr 4, 2012 at 13:24, juha s. <salmjuh at hotmail.com> wrote:

>
> Hi
>
>
> I updated to new version, but still this problem occurs time to time. Hope
> some one find these log of invalid files useful for solving the problem.
> Here is one invalid files log:
>


> [...]
> [mp4 @ 0x2809240] Application provided invalid, non monotonically
> increasing dts to muxer in stream 1: 199680 >= 199212
> av_interleaved_write_frame(): Invalid argument
> root at CVod1:/DVB#
>
>
>
when streaming using RTSP, the separate RTP streams have timestamps
starting from different offsets, so at the beginning of the stream
timestamps are quite meaningless.
After the first RR packet is sent, these offsets can be synced and
meaningful timestamps can be issued.

my idea for fixing this bug, is to output avpacket(s) from avformat with
dts=pts=AV_NOPTS_VALUE until the timestamps become synched across the
streams, and only then set the dts and pts.



-- 
Aviad Rozenhek


More information about the ffmpeg-devel mailing list