Surprise! We've been running on hardware provided by BuyVM for a few months and wanted to show them a little appreciation.
Running a paste site comes with unique challenges, ones that aren't always obvious and hard to control. As such, BuyVM offered us a home where we could worry less about the hosting side of things and focus on maintaining a clean and useful service! Go check them out and show them some love!
Description: FFMpeg Restreaming v1
Submitted on April 7, 2025 at 09:25 PM

New Paste 1 (Bash)


[Unit]
Description=Persistent FFmpeg HLS Stream
After=network.target

[Service]
ExecStart=/usr/bin/ffmpeg -loglevel info -re \
-threads 4 \
-headers "Range: bytes=0-\r\n" \
-user_agent "VLC/3.0.17 LibVLC/3.0.17" \
-protocol_whitelist file,http,https,tcp,tls \
-rw_timeout 5000000 \
-err_detect ignore_err \
-fflags +genpts+discardcorrupt \
-i http://[URL_SOURCE] \
-reorder_queue_size 1024 \
-rtbufsize 512M \
-max_muxing_queue_size 1024 \
-c:v libx264 -preset veryfast -tune zerolatency \
-c:a aac \
-bufsize 512M \
-hls_time 3 \
-hls_list_size 50 \
-hls_flags delete_segments+independent_segments+append_list \
-start_at_zero \
-muxdelay 1 \
/var/www/html/hls/stream.m3u8
Restart=always
RestartSec=3
StandardOutput=journal
StandardError=journal

[Install]
WantedBy=multi-user.target