[FFmpeg-user] ffmpeg rtmp stream breaks after Delay between the first packet and last packet

owen s owen94012 at gmail.com
Fri Jan 15 11:08:40 EET 2021


I'll update this question

ffmpeg -version
```shell
ffmpeg -version
ffmpeg version 4.3.1-4ubuntu1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 10 (Ubuntu 10.2.0-9ubuntu2)
```

I run this command to use ffmpeg to stream to youtube ;

```shell
ffmpeg -y -threads 12 \
-loop 1 -framerate 30 -re \
-i ./1280x720.jpg \
-i ./audio.mp3 \
-video_size 1280x720 \
-vcodec libx264 -pix_fmt yuv420p \
-b:v 4500k -maxrate 5500k -bufsize 22000k \
-preset ultrafast -crf 23 -tune stillimage \
-b:a 128k -ar 44100 -ac 2 -acodec aac \
-filter_complex "dynaudnorm=f=150:g=15" \
-r 30 -g 60 \
-f flv rtmp://a.rtmp.youtube.com/live2/xxxx 2>&1 | tee _LOG
```

The stream is excellent for 45-53 minutes then i'll get an error like this
from ffmpeg:

```shell
[flv @ 0x56077027cd80] Delay between the first packet and last packet in
the muxing queue is 10034000 > 10000000: forcing output
```

then youtube starts to say, no data being received and the stream will end,
which it does.

This is the full log: http://0x0.st/-zUH.txt


More information about the ffmpeg-user mailing list