[FFmpeg-user] MPEG TS output - muxing queue - max_interleave_delta

Matej matej at tam.si
Thu Jul 17 15:41:28 CEST 2014


Hi,

I tried to add -vsync 0 so the full command line was:
/root/ffmpeg/ffmpeg -loglevel debug -max_interleave_delta 15000000
-rtbufsize 128000k -threads 0 -re -i
"udp://@:1300?fifo_size=1000000&overrun_nonfatal=1" -re -i "
http://live.radiohit.si:9560" -codec copy -s 720x576 -q 10 -vsync 0
-shortest -f mpegts udp://192.168.1.150:1236?pkt_size=1316?buffer_size=65535

and the sound started to scratch and eventually stop:

[mpegts @ 0x36e4160] Delay between the first packet and last packet in the
muxing queue is 10004900 > 10000000: forcing output
    Last message repeated 18 times
[mpegts @ 0x36e4160] Delay between the first packet and last packet in the
muxing queue is 10004889 > 10000000: forcing output
[mpegts @ 0x36e4160] Delay between the first packet and last packet in the
muxing queue is 10004889 > 10000000: forcing output
    Last message repeated 2 times
[mpegts @ 0x36e4160] Delay between the first packet and last packet in the
muxing queue is 10004888 > 10000000: forcing output
[mpegts @ 0x36e4160] Delay between the first packet and last packet in the
muxing queue is 10004889 > 10000000: forcing output
    Last message repeated 3 times
[mpegts @ 0x36e4160] Delay between the first packet and last packet in the
muxing queue is 10004900 > 10000000: forcing output
    Last message repeated 10 times
[mpegts @ 0x36e4160] Delay between the first packet and last packet in the
muxing queue is 10004900 > 10000000: forcing output
    Last message repeated 18 times
[mpegts @ 0x36e4160] Delay between the first packet and last packet in the
muxing queue is 10004900 > 10000000: forcing output
    Last message repeated 9 times
[mpegts @ 0x36e4160] Delay between the first packet and last packet in the
muxing queue is 10004889 > 10000000: forcing output
    Last message repeated 3 times
[mpegts @ 0x36e4160] Delay between the first packet and last packet in the
muxing queue is 10004888 > 10000000: forcing output
[mpegts @ 0x36e4160] Delay between the first packet and last packet in the
muxing queue is 10004889 > 10000000: forcing output
    Last message repeated 3 times
[mpegts @ 0x36e4160] Delay between the first packet and last packet in the
muxing queue is 10004900 > 10000000: forcing output
[mpegts @ 0x36e4160] Delay between the first packet and last packet in the
muxing queue is 10004900 > 10000000: forcing output
    Last message repeated 18 times
[mpegts @ 0x36e4160] Delay between the first packet and last packet in the
muxing queue is 10004900 > 10000000: forcing output
    Last message repeated 18 times
[mpegts @ 0x36e4160] Delay between the first packet and last packet in the
muxing queue is 10004900 > 10000000: forcing output
[mpegts @ 0x36e4160] Delay between the first packet and last packet in the
muxing queue is 10004889 > 10000000: forcing output
    Last message repeated 3 times
[mpegts @ 0x36e4160] Delay between the first packet and last packet in the
muxing queue is 10004888 > 10000000: forcing output
[mpegts @ 0x36e4160] Delay between the first packet and last packet in the
muxing queue is 10004889 > 10000000: forcing output
    Last message repeated 3 times
[mpegts @ 0x36e4160] Delay between the first packet and last packet in the
muxing queue is 10004900 > 10000000: forcing output
    Last message repeated 9 times
[mpegts @ 0x36e4160] Delay between the first packet and last packet in the
muxing queue is 10004900 > 10000000: forcing output
    Last message repeated 12 times
frame=77589 fps= 24 q=-1.0 Lsize=  927784kB time=00:54:04.77
bitrate=2342.4kbits/s
video:810940kB audio:38025kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 9.284163%
Input file #0 (udp://@:1300?fifo_size=1000000&overrun_nonfatal=1):
  Input stream #0:0 (video): 77591 packets read (830403542 bytes);
  Total: 77591 packets (830403542 bytes) demuxed
Input file #1 (http://live.radiohit.si:9560):
  Input stream #1:0 (audio): 124214 packets read (38937350 bytes);
  Total: 124214 packets (38937350 bytes) demuxed
Output file #0 (udp://192.168.1.150:1236?pkt_size=1316?buffer_size=65535):
  Output stream #0:0 (video): 77589 packets muxed (830402398 bytes);
  Output stream #0:1 (audio): 124214 packets muxed (38937350 bytes);
  Total: 201803 packets (869339748 bytes) muxed
0 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x3732f80] Statistics: 0 seeks, 763067 writeouts
[AVIOContext @ 0x369b800] Statistics: 906245916 bytes read, 0 seeks
[AVIOContext @ 0x372cea0] Statistics: 38961152 bytes read, 0 seeks
Received signal 2: terminating.



I have also tried to stream this live audio stream as a mpegts with another
parallel ffmpeg process and then add this audio the same way as we add
video (-re -i udp://@:1301), but the same erors (Delay between .... muxing
queue) appear after almost the same time.

Any ideas will be very appreciated.
Matej



On Thu, Jul 17, 2014 at 11:24 AM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:

> Matej <matej <at> tam.si> writes:
>
> > Input #0, mpegts, from 'udp:// <at> :1300':
> >   Duration: N/A, start: 86964.932311, bitrate: N/A
>
> > Input #1, mp3, from 'http://live.radiohit.si:9560':
> >   Duration: N/A, start: 0.000000, bitrate: 96 kb/s
>
> This may be the reason for the problem you see.
> There are some options to ignore timestamps, you
> could try -vsync 0 or maybe the setpts filter.
>
> How is A/V sync supposed to work for these input
> streams (in an abstract wording, not FFmpeg-specific)?
>
> Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list