[FFmpeg-user] Support request - configuring ffmpeg for YouTube Live 60fps

Roger Pack rogerdpack2 at gmail.com
Sat Jun 9 17:08:56 EEST 2018


On 4/25/18, Stuart Porter <stuart.porter at ctvc.co.uk> wrote:
> Hi there,
>
> Firstly, forgive any rookie mistakes – I’m new here and not a seasoned
> support blog user. Neither am I a developer of any sort.
>
> I’m working with a developer though and we are trying to configure ffmpeg
> to stream live from a video capture device capturing at 60fps (AverMedia
> Live Gamer HD2) with audio, to YouTube Live using rtmp. The machine I want
> to stream from is Windows7 64-bit with Intel Core i5-6400 CPU @ 2.70GHz
>
> I’m happy to use either h264 or vp9 codec. And have tried configuring
> numerous examples taken from previous posts but nothing works.
>
> e.g. for VP9 I have tried
>
>  ffmpeg -f dshow -video_size 1920x1080 -r 60 -i video="AVerMedia Live Gamer
> HD 2":audio="Line (3- AVerMedia Live Gamer H" -r 30 -g 60 -s 1920x1080
> -quality good -speed 5 -threads 16 -row-mt 1 -tile-columns 3
> -frame-parallel 1 -qmin 4 -qmax 48 -b:v 7800k -c:v libvpx-vp9 -b:a 128k
> -c:a libopus -f webm rtmp://a.rtmp.youtube.com/live2/[my key]
>
> results in a string of failures such as
>
> [dshow @ 00000000003d4dc0] real-time buffer [AVerMedia Live Gamer HD 2]
> [video input] too full or near too full (272% of size: 3041280 [rtbufsize
> parameter])! frame dropped!
>
> We have tried adjusting the quality, speed, framerate and bandwidth but get
> very similar results each time.

vpx is I think not a "fast" encoder making it tricky to get up to
realtime.  Typically people use libx264 preset ultrafast or what not
to save on encode speed (or, as you mentioned, adjust framerate, frame
size, etc.)
Or maybe vpx has some ultrafast preset option, dunno.
GL!


More information about the ffmpeg-user mailing list