project-management-only/home-tv-station#9: Cap max bitrate



Issue Information

Issue Type: issue
Status: closed
Reported By: btasker
Assigned To: btasker

Milestone: v0.2
Created: 03-Aug-24 17:40



Description

Some larger video files fail to stream reliably - they get quite jumpy and play unreliably.

Should probably look at having ffmpeg cap its output bitrate.

Needs a bit of prodding to make sure that is the issue

The video currently experiencing it gives the following in ffprobe

Duration: 00:58:40.00, start: 0.000000, bitrate: 2407 kb/s
  Stream [#0](/issue/project-management-only/home-tv-station/0.html):0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 2308 kb/s, 25 fps, 25 tbr, 16k tbn, 50 tbc (default)


Toggle State Changes

Activity


assigned to @btasker

Three new environment vars have been added which can be used to tune this (at a cost of increased CPU usage)

FFMPEG_BITRATE="1500k"
FFMPEG_MAXRATE="2M"
FFMPEG_BUFSIZE="700k"

FFMPEG_BITRATE is the average bitrate to shoot for.

verified

mentioned in commit github-mirror/Home-TV-Station@61367620f2599baee8db4ffd182b12d751d3aa6c

Commit: github-mirror/Home-TV-Station@61367620f2599baee8db4ffd182b12d751d3aa6c 
Author: B Tasker                            
                            
Date: 2024-08-04T09:39:04.000+01:00 

Message

feat: allow bitrate (and max bitrate) to be specified via env vars (project-management-only/home-tv-station#9)

+15 -1 (16 lines changed)
verified

mentioned in commit github-mirror/Home-TV-Station@7dc2ae2a5fc567b0b12b9f9119a8215c93f7c6ec

Commit: github-mirror/Home-TV-Station@7dc2ae2a5fc567b0b12b9f9119a8215c93f7c6ec 
Author: B Tasker                            
                            
Date: 2024-08-04T09:41:49.000+01:00 

Message +15 -0 (15 lines changed)