ffserver multicast loop problem ... non monotone timestamps

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ffserver multicast loop problem ... non monotone timestamps

Bart-42
Hi,

I've been trying to use ffserver as a multicast server with a config:
---
Port 8090
BindAddress 0.0.0.0
MaxClients 1000
MaxBandwidth 1000
CustomLog -
NoDaemon
<Stream test1-mcast.mpg>
#Format rtp
File "test1.mpts"
MulticastAddress 224.124.0.1
MulticastPort 5000
MulticastTTL 16
#NoLoop
</Stream>
---

Until the first loop of the file everything is ok but after the file
is opened second time ffserver crashes ... I've put two debugging
printf's inside the code:
- one additional in ffserver.c where the file is reopened,
- second uncommented in compute_pkt_fields2

How to repeat:
1. $ ./output_example test1.mpts
2. $ ./ffserver -f ffserver.conf -d

Output log:
---
FFserver version SVN-r11341, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration:
  libavutil version: 49.6.0
  libavcodec version: 51.49.0
  libavformat version: 52.3.0
  built on Dec 28 2007 05:37:19, gcc: 4.1.2 20070626 (Red Hat 4.1.2-14)
ffserver started.
Opened test1.mpts
224.124.0.1:5000 - - [Fri Dec 28 06:50:45 2007] "PLAY test1-mcast.mpg/streamid=0
RTP/MCAST"
224.124.0.1:5002 - - [Fri Dec 28 06:50:45 2007] "PLAY test1-mcast.mpg/streamid=1
RTP/MCAST"
av_write_frame: pts:3600 dts:0 cur_dts:0 b:1 size:3029 st:0
av_write_frame: pts:0 dts:-3600 cur_dts:0 b:1 size:5040 st:0
av_write_frame: pts:3600 dts:0 cur_dts:-3600 b:1 size:3285 st:0
av_write_frame: pts:7200 dts:3600 cur_dts:0 b:1 size:2666 st:0
[CUT]
av_write_frame: pts:441992 dts:441992 cur_dts:439641 b:0 size:209 st:0
av_write_frame: pts:444343 dts:444343 cur_dts:441992 b:0 size:209 st:0
av_write_frame: pts:446694 dts:446694 cur_dts:444343 b:0 size:209 st:0
av_write_frame: pts:449045 dts:449045 cur_dts:446694 b:0 size:209 st:0
av_write_frame: pts:-9223372036854775808 dts:439200 cur_dts:435600 b:1 size:1325
st:0
Opened test1.mpts
av_write_frame: pts:3600 dts:0 cur_dts:439200 b:1 size:3029 st:0
error, non monotone timestamps 439200 >= 0
av_write_frame: pts:0 dts:-3600 cur_dts:439200 b:1 size:5040 st:0
error, non monotone timestamps 439200 >= -3600
av_write_frame: pts:3600 dts:0 cur_dts:439200 b:1 size:3285 st:0
error, non monotone timestamps 439200 >= 0
av_write_frame: pts:7200 dts:3600 cur_dts:439200 b:1 size:2666 st:0
---



_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: ffserver multicast loop problem ... non monotone timestamps

Bart-42

>
> Until the first loop of the file everything is ok but after the file
> is opened second time ffserver crashes ... I've put two debugging
> printf's inside the code:
> - one additional in ffserver.c where the file is reopened,
> - second uncommented in compute_pkt_fields2
>

I should have been more clear on that: after ffserver opens the file
second time it does not actually crash but it starts to print these
"error, non monotone timestamps" and it stops sending packets to
the network (it's not that they are bad - tcpdump shows that
the traffic is completelly stopped).

Bests,
--
Bart

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user