Chocobozzz / PeerTube

ActivityPub-federated video streaming platform using P2P directly in your web browser
https://joinpeertube.org/
GNU Affero General Public License v3.0
13.07k stars 1.51k forks source link

Live video constantly cuts out in assembly 4.1.1-nightly-2022-04-23 #4936

Closed Alterak closed 2 years ago

Alterak commented 2 years ago

Describe the current behavior Constant errors during live video. In the server settings for live videos, transcoding is disabled. During breaks, the directory with .ts media files disappears, but other directories are available and open at this time. Networking between peertube and storage is stable. Also the connection between obs studio and peertube is stable. My storage is NFS mounted from a file server. All servers are on the same network. The first break occurred immediately after the start of the live broadcast. The second break is about 3 minutes later.

I recorded a video of it happening. https://peervideo.ru/w/sZAbmTLQFSMHX7FniLnujY

Steps to reproduce:

  1. Start a live broadcast
  2. After a while, the broadcast will be interrupted
  3. Will reconnect
  4. The directory with the files will be re-created

Describe the expected behavior There should be no interruptions in the connection.

error[23.04.2022, 16:24:18] Live transcoding error.
{
  "err": {
    "stack": "Error: ffmpeg exited with code 1: frame=10751 fps= 60 q=-1.0 Lsize=N/A time=00:02:59.18 bitrate=N/A speed=1.01x    \nvideo:98792kB audio:136kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown\nConversion failed!\n\n    at ChildProcess.<anonymous> (/var/www/peertube/versions/peertube-nightly-2022-04-23/node_modules/fluent-ffmpeg/lib/processor.js:182:22)\n    at ChildProcess.emit (events.js:400:28)\n    at ChildProcess.emit (domain.js:475:12)\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:282:12)",
    "message": "ffmpeg exited with code 1: frame=10751 fps= 60 q=-1.0 Lsize=N/A time=00:02:59.18 bitrate=N/A speed=1.01x    \nvideo:98792kB audio:136kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown\nConversion failed!\n"
  },
  "stdout": "",
  "stderr": "frame= 8375 fps= 60 q=-1.0 size=N/A time=00:02:19.58 bitrate=N/A speed=1.01x    \nframe= 8410 fps= 60 q=-1.0 size=N/A time=00:02:20.16 bitrate=N/A speed=1.01x    \nframe= 8445 fps= 60 q=-1.0 size=N/A time=00:02:20.74 bitrate=N/A speed=1.01x    \nframe= 8480 fps= 60 q=-1.0 size=N/A time=00:02:21.33 bitrate=N/A speed=1.01x    \n[hls @ 0x5563be0a3040] Opening '/var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000033.ts' for writing\n[hls @ 0x5563be0a3040] Opening '/var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0.m3u8.tmp' for writing\nframe= 8515 fps= 60 q=-1.0 size=N/A time=00:02:21.91 bitrate=N/A speed=1.01x    \nframe= 8544 fps= 60 q=-1.0 size=N/A time=00:02:22.39 bitrate=N/A speed=1.01x    \nframe= 8573 fps= 60 q=-1.0 size=N/A time=00:02:22.88 bitrate=N/A speed=1.01x    \nframe= 8614 fps= 60 q=-1.0 size=N/A time=00:02:23.56 bitrate=N/A speed=1.01x    \nframe= 8649 fps= 60 q=-1.0 size=N/A time=00:02:24.14 bitrate=N/A speed=1.01x    \nframe= 8684 fps= 60 q=-1.0 size=N/A time=00:02:24.73 bitrate=N/A speed=1.01x    \nframe= 8713 fps= 60 q=-1.0 size=N/A time=00:02:25.21 bitrate=N/A speed=1.01x    \n[hls @ 0x5563be0a3040] Opening '/var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000034.ts' for writing\n[hls @ 0x5563be0a3040] Opening '/var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0.m3u8.tmp' for writing\nframe= 8753 fps= 60 q=-1.0 size=N/A time=00:02:25.88 bitrate=N/A speed=1.01x    \nframe= 8788 fps= 60 q=-1.0 size=N/A time=00:02:26.46 bitrate=N/A speed=1.01x    \nframe= 8823 fps= 60 q=-1.0 size=N/A time=00:02:27.04 bitrate=N/A speed=1.01x    \nframe= 8858 fps= 60 q=-1.0 size=N/A time=00:02:27.63 bitrate=N/A speed=1.01x    \nframe= 8893 fps= 60 q=-1.0 size=N/A time=00:02:28.21 bitrate=N/A speed=1.01x    \nframe= 8928 fps= 60 q=-1.0 size=N/A time=00:02:28.79 bitrate=N/A speed=1.01x    \nframe= 8963 fps= 60 q=-1.0 size=N/A time=00:02:29.38 bitrate=N/A speed=1.01x    \nframe= 8998 fps= 60 q=-1.0 size=N/A time=00:02:29.96 bitrate=N/A speed=1.01x    \n[hls @ 0x5563be0a3040] Opening '/var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000035.ts' for writing\n[hls @ 0x5563be0a3040] Opening '/var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0.m3u8.tmp' for writing\nframe= 9033 fps= 60 q=-1.0 size=N/A time=00:02:30.54 bitrate=N/A speed=1.01x    \nframe= 9068 fps= 60 q=-1.0 size=N/A time=00:02:31.13 bitrate=N/A speed=1.01x    \nframe= 9103 fps= 60 q=-1.0 size=N/A time=00:02:31.71 bitrate=N/A speed=1.01x    \nframe= 9138 fps= 60 q=-1.0 size=N/A time=00:02:32.29 bitrate=N/A speed=1.01x    \nframe= 9173 fps= 60 q=-1.0 size=N/A time=00:02:32.88 bitrate=N/A speed=1.01x    \nframe= 9207 fps= 60 q=-1.0 size=N/A time=00:02:33.44 bitrate=N/A speed=1.01x    \nframe= 9242 fps= 60 q=-1.0 size=N/A time=00:02:34.03 bitrate=N/A speed=1.01x    \n[hls @ 0x5563be0a3040] Opening '/var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000036.ts' for writing\n[hls @ 0x5563be0a3040] Opening '/var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0.m3u8.tmp' for writing\nframe= 9277 fps= 60 q=-1.0 size=N/A time=00:02:34.61 bitrate=N/A speed=1.01x    \nframe= 9312 fps= 60 q=-1.0 size=N/A time=00:02:35.19 bitrate=N/A speed=1.01x    \nframe= 9347 fps= 60 q=-1.0 size=N/A time=00:02:35.78 bitrate=N/A speed=1.01x    \nframe= 9382 fps= 60 q=-1.0 size=N/A time=00:02:36.36 bitrate=N/A speed=1.01x    \nframe= 9417 fps= 60 q=-1.0 size=N/A time=00:02:36.94 bitrate=N/A speed=1.01x    \nframe= 9452 fps= 60 q=-1.0 size=N/A time=00:02:37.53 bitrate=N/A speed=1.01x    \nframe= 9487 fps= 60 q=-1.0 size=N/A time=00:02:38.11 bitrate=N/A speed=1.01x    \n[hls @ 0x5563be0a3040] Opening '/var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000037.ts' for writing\n[hls @ 0x5563be0a3040] Opening '/var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0.m3u8.tmp' for writing\nframe= 9522 fps= 60 q=-1.0 size=N/A time=00:02:38.69 bitrate=N/A speed=1.01x    \nframe= 9557 fps= 60 q=-1.0 size=N/A time=00:02:39.28 bitrate=N/A speed=1.01x    \nframe= 9592 fps= 60 q=-1.0 size=N/A time=00:02:39.86 bitrate=N/A speed=1.01x    \nframe= 9627 fps= 60 q=-1.0 size=N/A time=00:02:40.44 bitrate=N/A speed=1.01x    \nframe= 9662 fps= 60 q=-1.0 size=N/A time=00:02:41.03 bitrate=N/A speed=1.01x    \nframe= 9696 fps= 60 q=-1.0 size=N/A time=00:02:41.59 bitrate=N/A speed=1.01x    \nframe= 9731 fps= 60 q=-1.0 size=N/A time=00:02:42.18 bitrate=N/A speed=1.01x    \n[hls @ 0x5563be0a3040] Opening '/var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000038.ts' for writing\n[hls @ 0x5563be0a3040] Opening '/var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0.m3u8.tmp' for writing\nframe= 9766 fps= 60 q=-1.0 size=N/A time=00:02:42.76 bitrate=N/A speed=1.01x    \nframe= 9801 fps= 60 q=-1.0 size=N/A time=00:02:43.34 bitrate=N/A speed=1.01x    \nframe= 9836 fps= 60 q=-1.0 size=N/A time=00:02:43.93 bitrate=N/A speed=1.01x    \nframe= 9871 fps= 60 q=-1.0 size=N/A time=00:02:44.51 bitrate=N/A speed=1.01x    \nframe= 9906 fps= 60 q=-1.0 size=N/A time=00:02:45.09 bitrate=N/A speed=1.01x    \nframe= 9941 fps= 60 q=-1.0 size=N/A time=00:02:45.68 bitrate=N/A speed=1.01x    \nframe= 9976 fps= 60 q=-1.0 size=N/A time=00:02:46.26 bitrate=N/A speed=1.01x    \n[hls @ 0x5563be0a3040] Opening '/var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000039.ts' for writing\n[hls @ 0x5563be0a3040] Opening '/var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0.m3u8.tmp' for writing\nframe=10011 fps= 60 q=-1.0 size=N/A time=00:02:46.84 bitrate=N/A speed=1.01x    \nframe=10046 fps= 60 q=-1.0 size=N/A time=00:02:47.43 bitrate=N/A speed=1.01x    \nframe=10081 fps= 60 q=-1.0 size=N/A time=00:02:48.01 bitrate=N/A speed=1.01x    \nframe=10116 fps= 60 q=-1.0 size=N/A time=00:02:48.59 bitrate=N/A speed=1.01x    \nframe=10151 fps= 60 q=-1.0 size=N/A time=00:02:49.18 bitrate=N/A speed=1.01x    \nframe=10185 fps= 60 q=-1.0 size=N/A time=00:02:49.74 bitrate=N/A speed=1.01x    \nframe=10220 fps= 60 q=-1.0 size=N/A time=00:02:50.33 bitrate=N/A speed=1.01x    \n[hls @ 0x5563be0a3040] Opening '/var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000040.ts' for writing\n[hls @ 0x5563be0a3040] Opening '/var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0.m3u8.tmp' for writing\nframe=10255 fps= 60 q=-1.0 size=N/A time=00:02:50.91 bitrate=N/A speed=1.01x    \nframe=10290 fps= 60 q=-1.0 size=N/A time=00:02:51.49 bitrate=N/A speed=1.01x    \nframe=10325 fps= 60 q=-1.0 size=N/A time=00:02:52.08 bitrate=N/A speed=1.01x    \nframe=10360 fps= 60 q=-1.0 size=N/A time=00:02:52.66 bitrate=N/A speed=1.01x    \nframe=10395 fps= 60 q=-1.0 size=N/A time=00:02:53.24 bitrate=N/A speed=1.01x    \nframe=10430 fps= 60 q=-1.0 size=N/A time=00:02:53.83 bitrate=N/A speed=1.01x    \nframe=10465 fps= 60 q=-1.0 size=N/A time=00:02:54.41 bitrate=N/A speed=1.01x    \nframe=10500 fps= 60 q=-1.0 size=N/A time=00:02:54.99 bitrate=N/A speed=1.01x    \n[hls @ 0x5563be0a3040] Opening '/var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000041.ts' for writing\n[hls @ 0x5563be0a3040] Opening '/var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0.m3u8.tmp' for writing\nframe=10535 fps= 60 q=-1.0 size=N/A time=00:02:55.58 bitrate=N/A speed=1.01x    \nframe=10570 fps= 60 q=-1.0 size=N/A time=00:02:56.16 bitrate=N/A speed=1.01x    \nframe=10599 fps= 60 q=-1.0 size=N/A time=00:02:56.64 bitrate=N/A speed=1.01x    \nframe=10628 fps= 60 q=-1.0 size=N/A time=00:02:57.13 bitrate=N/A speed=   1x    \nframe=10669 fps= 60 q=-1.0 size=N/A time=00:02:57.81 bitrate=N/A speed=1.01x    \nframe=10704 fps= 60 q=-1.0 size=N/A time=00:02:58.39 bitrate=N/A speed=1.01x    \nframe=10738 fps= 60 q=-1.0 size=N/A time=00:02:58.96 bitrate=N/A speed=   1x    \n[hls @ 0x5563be0a3040] Opening '/var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000042.ts' for writing\n[hls @ 0x5563be0a3040] Failed to open file '/var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000042.ts'\nav_interleaved_write_frame(): No such file or directory\n[hls @ 0x5563be0a3040] Opening '/var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000042.ts' for writing\n[hls @ 0x5563be0a3040] Failed to open file '/var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000042.ts'\n[hls muxer @ 0x5563be09d280] failed to delete old segment /var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000026.ts: No such file or directory\n[hls @ 0x5563be0a3040] Opening '/var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0.m3u8.tmp' for writing\n[hls @ 0x5563be0a3040] failed to rename file /var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0.m3u8.tmp to /var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0.m3u8: No such file or directory\nframe=10751 fps= 60 q=-1.0 Lsize=N/A time=00:02:59.18 bitrate=N/A speed=1.01x    \nvideo:98792kB audio:136kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown\nConversion failed!\n",
  "ffmpegShellCommand": "ffmpeg -n 5 /usr/bin/ffmpeg -i rtmp://127.0.0.1:1935/live/2111296f-ed23-40e3-a7f3-d35a0b19af6a -y -threads 8 -c:v copy -c:a copy -map 0:a? -map 0:v? -hls_time 4 -hls_list_size 15 -hls_flags delete_segments+independent_segments+program_date_time -hls_segment_filename /var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/%v-%06d.ts -master_pl_name master.m3u8 -f hls /var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/%v.m3u8",
  "tags": [
    "live",
    "KRD9QR8W",
    "a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b"
  ]
}
error[23.04.2022, 16:24:19] Cannot process segments in /var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b
{
  "err": {
    "stack": "Error: ENOENT: no such file or directory, open '/var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000041.ts'",
    "message": "ENOENT: no such file or directory, open '/var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000041.ts'",
    "errno": -2,
    "code": "ENOENT",
    "syscall": "open",
    "path": "/var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000041.ts"
  },
  "tags": [
    "live",
    "KRD9QR8W",
    "a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b"
  ]
}

If necessary, I will show my OBS settings

1 2 3

Alterak commented 2 years ago

In release 4.1.1, the problem is also present.

Alterak commented 2 years ago

On the test server, I installed the previous version 4.1.0, everything works well there ... at the moment my live video works well for 51 minutes, and the number of segments is already 761. There were no breaks.

Скриншот 01 05 22_19 50 07

Chocobozzz commented 2 years ago

Hello,

This is not a peertube error: ffmpeg crashed:


[hls @ 0x5563be0a3040] Opening '/var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000042.ts' for writing
[hls @ 0x5563be0a3040] Failed to open file '/var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000042.ts'
av_interleaved_write_frame(): No such file or directory
[hls @ 0x5563be0a3040] Opening '/var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000042.ts' for writing
[hls @ 0x5563be0a3040] Failed to open file '/var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000042.ts'
[hls muxer @ 0x5563be09d280] failed to delete old segment /var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000026.ts: No such file or directory
[hls @ 0x5563be0a3040] Opening '/var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0.m3u8.tmp' for writing
[hls @ 0x5563be0a3040] failed to rename file /var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0.m3u8.tmp to /var/www/peertube/storage-fs/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0.m3u8: No such file or directory
frame=10751 fps= 60 q=-1.0 Lsize=N/A time=00:02:59.18 bitrate=N/A speed=1.01x    
video:98792kB audio:136kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!

I'm pretty sure that https://github.com/Chocobozzz/PeerTube/issues/4902 and this issue comes from your NFS mount point since ffmpeg does heavy IO. So please stop using an NFS mount point, and use the local disk instead. You can also use official remote storage peertube support. If using the local disk does not fix your issue, please comment this ticket.

Alterak commented 2 years ago

I'm pretty sure that #4902 and this issue comes from your NFS mount point since ffmpeg does heavy IO. So please stop using an NFS mount point, and use the local disk instead. You can also use official remote storage peertube support. If using the local disk does not fix your issue, please comment this ticket.

Make a local disk - it did not help. The peertube server is running on my Proxmox virtual machine. The system drive is on an SSD, and for storage I use 2 HDDs (ZFS). I allocated an additional disk for the virtual machine, a 100GB disk, transferred all the data to it (for the test server), this is what happened:

peertube@media:~$ df -h
Файловая система Размер Использовано  Дост Использовано% Cмонтировано в
udev               973M            0  973M            0% /dev
tmpfs              198M         584K  198M            1% /run
/dev/sda2           14G          12G  1,4G           90% /
tmpfs              989M          16K  989M            1% /dev/shm
tmpfs              5,0M            0  5,0M            0% /run/lock
/dev/sda1          511M         3,5M  508M            1% /boot/efi
tmpfs              198M            0  198M            0% /run/user/1001
/dev/sdb1           98G         6,1G   87G            7% /var/www/peertube/storage-disk
peertube@media:~$ lsblk
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda      8:0    0   15G  0 disk
├─sda1   8:1    0  512M  0 part /boot/efi
├─sda2   8:2    0 13,5G  0 part /
└─sda3   8:3    0  976M  0 part [SWAP]
sdb      8:16   0  100G  0 disk
└─sdb1   8:17   0  100G  0 part /var/www/peertube/storage-disk
sr0     11:0    1 1024M  0 rom
peertube@media:~$

I did a lot of tests and I got the error again

Скриншот 02 05 22_15 37 58

I am sure that this is not the problem, because even on version 4.1.0 the live broadcast worked well, there were no breaks. I have live video processing disabled, so ffmpeg is not used.

Chocobozzz commented 2 years ago

ffmpeg is always used for lives for muxing, even if transcoding is not enabled what is the error on server?

Alterak commented 2 years ago

I re-launched the live video. So far, it has been working well for 22 minutes. At the moment it has reached Refetching sha segments for 0-000337.ts. There haven't been any crashes yet.

ffmpeg is always used for lives for muxing, even if transcoding is not enabled what is the error on server?

Here I turned on, but then turned off the processing, maybe I started a new broadcast when the previous segments did not end.

If you enable processing, then even on a local disk it gives errors

error[02.05.2022, 15:36:25] Live transcoding error.
{
  "err": {
    "stack": "Error: ffmpeg exited with code 1: frame=  361 fps= 70 q=-1.0 Lsize=N/A time=00:00:06.01 bitrate=N/A speed=1.16x    \nvideo:4460kB audio:12kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown\nConversion failed!\n\n    at ChildProcess.<anonymous> (/var/www/peertube/versions/peertube-nightly-2022-04-28/node_modules/fluent-ffmpeg/lib/processor.js:182:22)\n    at ChildProcess.emit (node:events:526:28)\n    at ChildProcess.emit (node:domain:475:12)\n    at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)",
    "message": "ffmpeg exited with code 1: frame=  361 fps= 70 q=-1.0 Lsize=N/A time=00:00:06.01 bitrate=N/A speed=1.16x    \nvideo:4460kB audio:12kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown\nConversion failed!\n"
  },
  "stdout": "",
  "stderr": "ffmpeg version 4.3.3-0+deb11u1 Copyright (c) 2000-2021 the FFmpeg developers\n  built with gcc 10 (Debian 10.2.1-6)\n  configuration: --prefix=/usr --extra-version=0+deb11u1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n  libavutil      56. 51.100 / 56. 51.100\n  libavcodec     58. 91.100 / 58. 91.100\n  libavformat    58. 45.100 / 58. 45.100\n  libavdevice    58. 10.100 / 58. 10.100\n  libavfilter     7. 85.100 /  7. 85.100\n  libavresample   4.  0.  0 /  4.  0.  0\n  libswscale      5.  7.100 /  5.  7.100\n  libswresample   3.  7.100 /  3.  7.100\n  libpostproc    55.  7.100 / 55.  7.100\nInput #0, flv, from 'rtmp://127.0.0.1:1937/live/54588ecd-e74c-455d-8bca-026c0182301f':\n  Metadata:\n    fileSize        : 0\n    audiochannels   : 2\n    2.1             : false\n    3.1             : false\n    4.0             : false\n    4.1             : false\n    5.1             : false\n    7.1             : false\n    encoder         : obs-output module (libobs version 27.2.1)\n  Duration: 00:00:00.00, start: 0.000000, bitrate: N/A\n    Stream #0:0: Data: none\n    Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp, 163 kb/s\n    Stream #0:2: Video: h264 (Main), yuv420p(tv, bt709, progressive), 2560x1440 [SAR 1:1 DAR 16:9], 5632 kb/s, 60 fps, 60 tbr, 1k tbn, 120 tbc\nOutput #0, hls, to '/var/www/peertube/storage-disk/streaming-playlists/hls/84c0b431-23de-4870-adca-ca4ac100aac1/%v.m3u8':\n  Metadata:\n    fileSize        : 0\n    audiochannels   : 2\n    2.1             : false\n    3.1             : false\n    4.0             : false\n    4.1             : false\n    5.1             : false\n    7.1             : false\n    encoder         : Lavf58.45.100\n    Stream #0:0: Audio: aac (LC), 44100 Hz, stereo, fltp, 163 kb/s\n    Stream #0:1: Video: h264 (Main), yuv420p(tv, bt709, progressive), 2560x1440 [SAR 1:1 DAR 16:9], q=2-31, 5632 kb/s, 60 fps, 60 tbr, 90k tbn, 60 tbc\nStream mapping:\n  Stream #0:1 -> #0:0 (copy)\n  Stream #0:2 -> #0:1 (copy)\nPress [q] to stop, [?] for help\nframe=   82 fps=0.0 q=-1.0 size=N/A time=00:00:01.36 bitrate=N/A speed=2.72x    \nframe=  117 fps=108 q=-1.0 size=N/A time=00:00:01.94 bitrate=N/A speed=1.79x    \nframe=  152 fps= 91 q=-1.0 size=N/A time=00:00:02.53 bitrate=N/A speed=1.51x    \nframe=  187 fps= 83 q=-1.0 size=N/A time=00:00:03.11 bitrate=N/A speed=1.38x    \nframe=  222 fps= 78 q=-1.0 size=N/A time=00:00:03.69 bitrate=N/A speed= 1.3x    \nframe=  257 fps= 75 q=-1.0 size=N/A time=00:00:04.28 bitrate=N/A speed=1.25x    \nframe=  292 fps= 73 q=-1.0 size=N/A time=00:00:04.86 bitrate=N/A speed=1.22x    \nframe=  327 fps= 71 q=-1.0 size=N/A time=00:00:05.44 bitrate=N/A speed=1.19x    \n[hls @ 0x55b85c075e80] Opening '/var/www/peertube/storage-disk/streaming-playlists/hls/84c0b431-23de-4870-adca-ca4ac100aac1/0-000000.ts' for writing\n[hls @ 0x55b85c075e80] Failed to open file '/var/www/peertube/storage-disk/streaming-playlists/hls/84c0b431-23de-4870-adca-ca4ac100aac1/0-000000.ts'\nav_interleaved_write_frame(): No such file or directory\n[hls @ 0x55b85c075e80] Opening '/var/www/peertube/storage-disk/streaming-playlists/hls/84c0b431-23de-4870-adca-ca4ac100aac1/0-000000.ts' for writing\n[hls @ 0x55b85c075e80] Failed to open file '/var/www/peertube/storage-disk/streaming-playlists/hls/84c0b431-23de-4870-adca-ca4ac100aac1/0-000000.ts'\n[hls @ 0x55b85c075e80] Opening '/var/www/peertube/storage-disk/streaming-playlists/hls/84c0b431-23de-4870-adca-ca4ac100aac1/0.m3u8.tmp' for writing\n[hls @ 0x55b85c075e80] failed to rename file /var/www/peertube/storage-disk/streaming-playlists/hls/84c0b431-23de-4870-adca-ca4ac100aac1/0.m3u8.tmp to /var/www/peertube/storage-disk/streaming-playlists/hls/84c0b431-23de-4870-adca-ca4ac100aac1/0.m3u8: No such file or directory\n[hls @ 0x55b85c075e80] Opening '/var/www/peertube/storage-disk/streaming-playlists/hls/84c0b431-23de-4870-adca-ca4ac100aac1/master.m3u8' for writing\n[hls @ 0x55b85c075e80] Failed to open master play list file '/var/www/peertube/storage-disk/streaming-playlists/hls/84c0b431-23de-4870-adca-ca4ac100aac1/master.m3u8'\n[hls @ 0x55b85c075e80] Master playlist creation failed\nframe=  361 fps= 70 q=-1.0 Lsize=N/A time=00:00:06.01 bitrate=N/A speed=1.16x    \nvideo:4460kB audio:12kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown\nConversion failed!\n",
  "ffmpegShellCommand": "ffmpeg -n 5 /usr/bin/ffmpeg -i rtmp://127.0.0.1:1937/live/54588ecd-e74c-455d-8bca-026c0182301f -y -threads 4 -c:v copy -c:a copy -map 0:a? -map 0:v? -hls_time 4 -hls_list_size 15 -hls_flags delete_segments+independent_segments+program_date_time -hls_segment_filename /var/www/peertube/storage-disk/streaming-playlists/hls/84c0b431-23de-4870-adca-ca4ac100aac1/%v-%06d.ts -master_pl_name master.m3u8 -f hls /var/www/peertube/storage-disk/streaming-playlists/hls/84c0b431-23de-4870-adca-ca4ac100aac1/%v.m3u8",
  "tags": [
    "live",
    "3N9GCAKK",
    "84c0b431-23de-4870-adca-ca4ac100aac1"
  ]
}
Alterak commented 2 years ago

When I connected a local drive, the live video no longer cuts out. You were right.

Alterak commented 2 years ago

I'm pretty sure that #4902 and this issue comes from your NFS mount point since ffmpeg does heavy IO

Hello, the peertube version is nightly-2022-05-10 worked well. Today I put a version of peertube-nightly-2022-05-14 and the mistake began to repeat itself again

error[14.05.2022, 21:04:30] Live transcoding error.
{
  "err": {
    "stack": "Error: ffmpeg exited with code 1: frame=12362 fps= 60 q=-1.0 Lsize=N/A time=00:03:26.03 bitrate=N/A speed=   1x    \nvideo:163811kB audio:53kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown\nConversion failed!\n\n    at ChildProcess.<anonymous> (/var/www/peertube/versions/peertube-nightly-2022-05-14/node_modules/fluent-ffmpeg/lib/processor.js:182:22)\n    at ChildProcess.emit (events.js:400:28)\n    at ChildProcess.emit (domain.js:475:12)\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:282:12)",
    "message": "ffmpeg exited with code 1: frame=12362 fps= 60 q=-1.0 Lsize=N/A time=00:03:26.03 bitrate=N/A speed=   1x    \nvideo:163811kB audio:53kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown\nConversion failed!\n"
  },
  "stdout": "",
  "stderr": "frame=10001 fps= 60 q=-1.0 size=N/A time=00:02:46.68 bitrate=N/A speed=1.01x    \nframe=10036 fps= 60 q=-1.0 size=N/A time=00:02:47.26 bitrate=N/A speed=1.01x    \nframe=10071 fps= 60 q=-1.0 size=N/A time=00:02:47.84 bitrate=N/A speed=1.01x    \nframe=10106 fps= 60 q=-1.0 size=N/A time=00:02:48.43 bitrate=N/A speed=1.01x    \nframe=10141 fps= 60 q=-1.0 size=N/A time=00:02:49.01 bitrate=N/A speed=1.01x    \nframe=10170 fps= 60 q=-1.0 size=N/A time=00:02:49.49 bitrate=N/A speed=1.01x    \n[hls @ 0x5560fbbc0400] Opening '/data/peervideo/storage/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000041.ts' for writing\n[hls @ 0x5560fbbc0400] Opening '/data/peervideo/storage/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0.m3u8.tmp' for writing\nframe=10205 fps= 60 q=-1.0 size=N/A time=00:02:50.08 bitrate=N/A speed=1.01x    \nframe=10240 fps= 60 q=-1.0 size=N/A time=00:02:50.66 bitrate=N/A speed=1.01x    \nframe=10275 fps= 60 q=-1.0 size=N/A time=00:02:51.24 bitrate=N/A speed=1.01x    \nframe=10310 fps= 60 q=-1.0 size=N/A time=00:02:51.83 bitrate=N/A speed=1.01x    \nframe=10345 fps= 60 q=-1.0 size=N/A time=00:02:52.41 bitrate=N/A speed=1.01x    \nframe=10380 fps= 60 q=-1.0 size=N/A time=00:02:52.99 bitrate=N/A speed=1.01x    \nframe=10415 fps= 60 q=-1.0 size=N/A time=00:02:53.58 bitrate=N/A speed=1.01x    \n[hls @ 0x5560fbbc0400] Opening '/data/peervideo/storage/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000042.ts' for writing\n[hls @ 0x5560fbbc0400] Opening '/data/peervideo/storage/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0.m3u8.tmp' for writing\nframe=10450 fps= 60 q=-1.0 size=N/A time=00:02:54.16 bitrate=N/A speed=1.01x    \nframe=10485 fps= 60 q=-1.0 size=N/A time=00:02:54.74 bitrate=N/A speed=1.01x    \nframe=10520 fps= 60 q=-1.0 size=N/A time=00:02:55.33 bitrate=N/A speed=1.01x    \nframe=10555 fps= 60 q=-1.0 size=N/A time=00:02:55.91 bitrate=N/A speed=1.01x    \nframe=10589 fps= 60 q=-1.0 size=N/A time=00:02:56.48 bitrate=N/A speed=1.01x    \nframe=10624 fps= 60 q=-1.0 size=N/A time=00:02:57.06 bitrate=N/A speed=1.01x    \nframe=10659 fps= 60 q=-1.0 size=N/A time=00:02:57.64 bitrate=N/A speed=1.01x    \n[hls @ 0x5560fbbc0400] Opening '/data/peervideo/storage/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000043.ts' for writing\n[hls @ 0x5560fbbc0400] Opening '/data/peervideo/storage/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0.m3u8.tmp' for writing\nframe=10694 fps= 60 q=-1.0 size=N/A time=00:02:58.23 bitrate=N/A speed=1.01x    \nframe=10729 fps= 60 q=-1.0 size=N/A time=00:02:58.81 bitrate=N/A speed=1.01x    \nframe=10764 fps= 60 q=-1.0 size=N/A time=00:02:59.39 bitrate=N/A speed=1.01x    \nframe=10799 fps= 60 q=-1.0 size=N/A time=00:02:59.98 bitrate=N/A speed=1.01x    \nframe=10834 fps= 60 q=-1.0 size=N/A time=00:03:00.56 bitrate=N/A speed=1.01x    \nframe=10869 fps= 60 q=-1.0 size=N/A time=00:03:01.14 bitrate=N/A speed=1.01x    \nframe=10904 fps= 60 q=-1.0 size=N/A time=00:03:01.73 bitrate=N/A speed=1.01x    \n[hls @ 0x5560fbbc0400] Opening '/data/peervideo/storage/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000044.ts' for writing\n[hls @ 0x5560fbbc0400] Opening '/data/peervideo/storage/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0.m3u8.tmp' for writing\nframe=10939 fps= 60 q=-1.0 size=N/A time=00:03:02.31 bitrate=N/A speed=1.01x    \nframe=10974 fps= 60 q=-1.0 size=N/A time=00:03:02.89 bitrate=N/A speed=1.01x    \nframe=11009 fps= 60 q=-1.0 size=N/A time=00:03:03.48 bitrate=N/A speed=1.01x    \nframe=11044 fps= 60 q=-1.0 size=N/A time=00:03:04.06 bitrate=N/A speed=1.01x    \nframe=11078 fps= 60 q=-1.0 size=N/A time=00:03:04.63 bitrate=N/A speed=1.01x    \nframe=11113 fps= 60 q=-1.0 size=N/A time=00:03:05.21 bitrate=N/A speed=1.01x    \nframe=11148 fps= 60 q=-1.0 size=N/A time=00:03:05.79 bitrate=N/A speed=1.01x    \n[hls @ 0x5560fbbc0400] Opening '/data/peervideo/storage/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000045.ts' for writing\n[hls @ 0x5560fbbc0400] Opening '/data/peervideo/storage/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0.m3u8.tmp' for writing\nframe=11183 fps= 60 q=-1.0 size=N/A time=00:03:06.38 bitrate=N/A speed=1.01x    \nframe=11218 fps= 60 q=-1.0 size=N/A time=00:03:06.96 bitrate=N/A speed=1.01x    \nframe=11253 fps= 60 q=-1.0 size=N/A time=00:03:07.54 bitrate=N/A speed=1.01x    \nframe=11288 fps= 60 q=-1.0 size=N/A time=00:03:08.13 bitrate=N/A speed=1.01x    \nframe=11323 fps= 60 q=-1.0 size=N/A time=00:03:08.71 bitrate=N/A speed=1.01x    \nframe=11358 fps= 60 q=-1.0 size=N/A time=00:03:09.29 bitrate=N/A speed=1.01x    \nframe=11393 fps= 60 q=-1.0 size=N/A time=00:03:09.88 bitrate=N/A speed=1.01x    \n[hls @ 0x5560fbbc0400] Opening '/data/peervideo/storage/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000046.ts' for writing\n[hls @ 0x5560fbbc0400] Opening '/data/peervideo/storage/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0.m3u8.tmp' for writing\nframe=11428 fps= 60 q=-1.0 size=N/A time=00:03:10.46 bitrate=N/A speed=1.01x    \nframe=11463 fps= 60 q=-1.0 size=N/A time=00:03:11.04 bitrate=N/A speed=1.01x    \nframe=11498 fps= 60 q=-1.0 size=N/A time=00:03:11.63 bitrate=N/A speed=1.01x    \nframe=11533 fps= 60 q=-1.0 size=N/A time=00:03:12.21 bitrate=N/A speed=   1x    \nframe=11567 fps= 60 q=-1.0 size=N/A time=00:03:12.78 bitrate=N/A speed=   1x    \nframe=11602 fps= 60 q=-1.0 size=N/A time=00:03:13.36 bitrate=N/A speed=   1x    \nframe=11637 fps= 60 q=-1.0 size=N/A time=00:03:13.94 bitrate=N/A speed=   1x    \n[hls @ 0x5560fbbc0400] Opening '/data/peervideo/storage/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000047.ts' for writing\n[hls @ 0x5560fbbc0400] Opening '/data/peervideo/storage/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0.m3u8.tmp' for writing\nframe=11672 fps= 60 q=-1.0 size=N/A time=00:03:14.53 bitrate=N/A speed=   1x    \nframe=11707 fps= 60 q=-1.0 size=N/A time=00:03:15.11 bitrate=N/A speed=   1x    \nframe=11736 fps= 60 q=-1.0 size=N/A time=00:03:15.59 bitrate=N/A speed=   1x    \nframe=11771 fps= 60 q=-1.0 size=N/A time=00:03:16.18 bitrate=N/A speed=   1x    \nframe=11806 fps= 60 q=-1.0 size=N/A time=00:03:16.76 bitrate=N/A speed=   1x    \nframe=11841 fps= 60 q=-1.0 size=N/A time=00:03:17.34 bitrate=N/A speed=   1x    \nframe=11876 fps= 60 q=-1.0 size=N/A time=00:03:17.93 bitrate=N/A speed=   1x    \n[hls @ 0x5560fbbc0400] Opening '/data/peervideo/storage/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000048.ts' for writing\n[hls @ 0x5560fbbc0400] Opening '/data/peervideo/storage/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0.m3u8.tmp' for writing\nframe=11911 fps= 60 q=-1.0 size=N/A time=00:03:18.51 bitrate=N/A speed=   1x    \nframe=11946 fps= 60 q=-1.0 size=N/A time=00:03:19.09 bitrate=N/A speed=   1x    \nframe=11981 fps= 60 q=-1.0 size=N/A time=00:03:19.68 bitrate=N/A speed=   1x    \nframe=12016 fps= 60 q=-1.0 size=N/A time=00:03:20.26 bitrate=N/A speed=   1x    \nframe=12051 fps= 60 q=-1.0 size=N/A time=00:03:20.84 bitrate=N/A speed=   1x    \nframe=12086 fps= 60 q=-1.0 size=N/A time=00:03:21.43 bitrate=N/A speed=   1x    \nframe=12121 fps= 60 q=-1.0 size=N/A time=00:03:22.01 bitrate=N/A speed=   1x    \n[hls @ 0x5560fbbc0400] Opening '/data/peervideo/storage/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000049.ts' for writing\n[hls @ 0x5560fbbc0400] Opening '/data/peervideo/storage/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0.m3u8.tmp' for writing\nframe=12155 fps= 60 q=-1.0 size=N/A time=00:03:22.58 bitrate=N/A speed=   1x    \nframe=12190 fps= 60 q=-1.0 size=N/A time=00:03:23.16 bitrate=N/A speed=   1x    \nframe=12225 fps= 60 q=-1.0 size=N/A time=00:03:23.74 bitrate=N/A speed=   1x    \nframe=12260 fps= 60 q=-1.0 size=N/A time=00:03:24.33 bitrate=N/A speed=   1x    \nframe=12289 fps= 60 q=-1.0 size=N/A time=00:03:24.81 bitrate=N/A speed=   1x    \nframe=12324 fps= 60 q=-1.0 size=N/A time=00:03:25.39 bitrate=N/A speed=   1x    \nframe=12359 fps= 60 q=-1.0 size=N/A time=00:03:25.98 bitrate=N/A speed=   1x    \n[hls @ 0x5560fbbc0400] Opening '/data/peervideo/storage/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000050.ts' for writing\n[hls @ 0x5560fbbc0400] Failed to open file '/data/peervideo/storage/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000050.ts'\nav_interleaved_write_frame(): No such file or directory\n[hls @ 0x5560fbbc0400] Opening '/data/peervideo/storage/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000050.ts' for writing\n[hls @ 0x5560fbbc0400] Failed to open file '/data/peervideo/storage/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000050.ts'\n[hls muxer @ 0x5560fb94f880] failed to delete old segment /data/peervideo/storage/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000034.ts: No such file or directory\n[hls @ 0x5560fbbc0400] Opening '/data/peervideo/storage/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0.m3u8.tmp' for writing\n[hls @ 0x5560fbbc0400] failed to rename file /data/peervideo/storage/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0.m3u8.tmp to /data/peervideo/storage/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0.m3u8: No such file or directory\nframe=12362 fps= 60 q=-1.0 Lsize=N/A time=00:03:26.03 bitrate=N/A speed=   1x    \nvideo:163811kB audio:53kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown\nConversion failed!\n",
  "ffmpegShellCommand": "ffmpeg -n 5 /usr/bin/ffmpeg -i rtmp://127.0.0.1:1935/live/2111296f-ed23-40e3-a7f3-d35a0b19af6a -y -threads 8 -c:v copy -c:a copy -map 0:a? -map 0:v? -hls_time 4 -hls_list_size 15 -hls_flags delete_segments+independent_segments+program_date_time -hls_segment_filename /data/peervideo/storage/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/%v-%06d.ts -master_pl_name master.m3u8 -f hls /data/peervideo/storage/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/%v.m3u8",
  "tags": [
    "live",
    "U9SYY9U3",
    "a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b"
  ]
}
error[14.05.2022, 21:04:31] Cannot process segments in /data/peervideo/storage/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b
{
  "err": {
    "stack": "Error: ENOENT: no such file or directory, open '/data/peervideo/storage/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000049.ts'",
    "message": "ENOENT: no such file or directory, open '/data/peervideo/storage/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000049.ts'",
    "errno": -2,
    "code": "ENOENT",
    "syscall": "open",
    "path": "/data/peervideo/storage/streaming-playlists/hls/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b/0-000049.ts"
  },
  "tags": [
    "live",
    "U9SYY9U3",
    "a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b"
  ]
}

The storage is located on a local disk. Live video processing is completely disabled.

I put the nightly version back on-2022-05-10 the live video has stopped being cut off, but such errors constantly appear in the logs

error[14.05.2022, 21:22:13] Cannot execute job 371815 in queue activitypub-http-unicast.
{
  "payload": {
    "uri": "https://peertube.bgzashtita.es/inbox",
    "signatureActorId": 1,
    "body": {
      "to": [
        "https://www.w3.org/ns/activitystreams#Public",
        "https://peervideo.ru/video-channels/games/followers",
        "https://peervideo.ru/accounts/peertube/followers",
        "https://peervideo.ru/accounts/onix/followers"
      ],
      "cc": [],
      "id": "https://peervideo.ru/accounts/peertube/views/videos/238571/629730d257db12a0856d8e6fdefaf2d1506960b66f250975b68246cdcf8009e4",
      "type": "View",
      "actor": "https://peervideo.ru/accounts/peertube",
      "object": "https://peervideo.ru/videos/watch/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b",
      "expires": "2022-05-14T18:23:06.338Z"
    },
    "contextType": "View"
  },
  "err": {
    "stack": "RequestError: Timeout awaiting 'request' for 7000ms\n    at ClientRequest.<anonymous> (/var/www/peertube/versions/peertube-nightly-2022-05-10/node_modules/got/dist/source/core/index.js:962:65)\n    at Object.onceWrapper (events.js:520:26)\n    at ClientRequest.emit (events.js:412:35)\n    at ClientRequest.emit (domain.js:475:12)\n    at ClientRequest.origin.emit (/var/www/peertube/versions/peertube-nightly-2022-05-10/node_modules/@szmarczak/http-timer/dist/source/index.js:43:20)\n    at TLSSocket.socketErrorListener (_http_client.js:475:9)\n    at TLSSocket.emit (events.js:400:28)\n    at TLSSocket.emit (domain.js:475:12)\n    at emitErrorNT (internal/streams/destroy.js:106:8)\n    at emitErrorCloseNT (internal/streams/destroy.js:74:3)\n    at processTicksAndRejections (internal/process/task_queues.js:82:21)\n    at Timeout.timeoutHandler [as _onTimeout] (/var/www/peertube/versions/peertube-nightly-2022-05-10/node_modules/got/dist/source/core/utils/timed-out.js:36:25)\n    at listOnTimeout (internal/timers.js:559:11)\n    at processTimers (internal/timers.js:500:7)",
    "message": "Timeout awaiting 'request' for 7000ms",
    "name": "TimeoutError"
  }
}
error[14.05.2022, 21:23:18] Cannot execute job 371819 in queue activitypub-http-unicast.
{
  "payload": {
    "uri": "https://peertube.bgzashtita.es/inbox",
    "signatureActorId": 1,
    "body": {
      "to": [
        "https://www.w3.org/ns/activitystreams#Public",
        "https://peervideo.ru/video-channels/games/followers",
        "https://peervideo.ru/accounts/peertube/followers",
        "https://peervideo.ru/accounts/onix/followers"
      ],
      "cc": [],
      "id": "https://peervideo.ru/accounts/peertube/views/videos/238571/629730d257db12a0856d8e6fdefaf2d1506960b66f250975b68246cdcf8009e4",
      "type": "View",
      "actor": "https://peervideo.ru/accounts/peertube",
      "object": "https://peervideo.ru/videos/watch/a1ea93fc-570a-4bfb-8cd8-adb2ce7fa40b",
      "expires": "2022-05-14T18:24:11.341Z"
    },
    "contextType": "View"
  },
  "err": {
    "stack": "RequestError: Timeout awaiting 'request' for 7000ms\n    at ClientRequest.<anonymous> (/var/www/peertube/versions/peertube-nightly-2022-05-10/node_modules/got/dist/source/core/index.js:962:65)\n    at Object.onceWrapper (events.js:520:26)\n    at ClientRequest.emit (events.js:412:35)\n    at ClientRequest.emit (domain.js:475:12)\n    at ClientRequest.origin.emit (/var/www/peertube/versions/peertube-nightly-2022-05-10/node_modules/@szmarczak/http-timer/dist/source/index.js:43:20)\n    at TLSSocket.socketErrorListener (_http_client.js:475:9)\n    at TLSSocket.emit (events.js:400:28)\n    at TLSSocket.emit (domain.js:475:12)\n    at emitErrorNT (internal/streams/destroy.js:106:8)\n    at emitErrorCloseNT (internal/streams/destroy.js:74:3)\n    at processTicksAndRejections (internal/process/task_queues.js:82:21)\n    at Timeout.timeoutHandler [as _onTimeout] (/var/www/peertube/versions/peertube-nightly-2022-05-10/node_modules/got/dist/source/core/utils/timed-out.js:36:25)\n    at listOnTimeout (internal/timers.js:559:11)\n    at processTimers (internal/timers.js:500:7)",
    "message": "Timeout awaiting 'request' for 7000ms",
    "name": "TimeoutError"
  }
}