[FFmpeg-user] Live stream to periscope or youtube doesn't seems to work
lou at lrcd.com
Mon Dec 11 00:27:04 EET 2017
On Sun, Dec 10, 2017, at 10:22 AM, Guilherme Santos wrote:
> Hello, I was wondering why this command couldn't work... I'm trying to
> stream from my aws ubuntu to periscope. check this out:
> $ ffmpeg -threads 0 -y -v verbose -re -f x11grab -video_size 1024x768 -i
> -c:v libx264 -preset ultrafast -crf 3 -c:a aac -b:a 64k -pix_fmt yuv420p
> 15 -g 30 -b:v 2500k -bufsize 512k -f flv
Remove "-threads 0" input option.
Remove "-re" input option. It should not be used with x11grab. From the
documentation: "Should not be used with actual grab devices or live
input streams (where it can cause packet loss)."
Replace "-r 15" output option with "-framerate 15" input option. Verify
that the video service accepts 15 fps (I'm not sure if it will or not).
If not, use a more standard rate, such as 25, and adjust "-g" to be
approximately double your frame rate.
Remove "-crf 3". That's overkill for streaming and is mutually exclusive
Add "-maxrate" option.
Change "-bufsize" to be 1-2x "-maxrate".
Experiment with -b:v, -bufsize, -maxrate to see what works best for you.
> ffmpeg version 2.4.3-1ubuntu1~trusty6 Copyright (c) 2000-2014 the FFmpeg
Ancient and unsupported. Please update. An easy solution is to use a
static build from:
(I can't recall if x11grab is supported by these builds, but I'll assume
More information about the ffmpeg-user