[FFmpeg-user] Live stream to periscope or youtube doesn't seems to work

Lou Logan lou at lrcd.com
Mon Dec 11 05:15:50 EET 2017


On Sun, Dec 10, 2017, at 03:58 PM, Guilherme Santos wrote:
>
> ~/ffmpeg-git-20171206-32bit-static$ ./ffmpeg  -f x11grab  -video_size
> 1024x768 -i :1  -c:v libx264 -preset medium -crf 28 -pix_fmt yuv420p -r
> 30
> -g 60  -b:v 2M -maxrate 2M -bufsize 1M  -f flv rtmp://
> or.pscp.tv:80/x/avadqqzw8nyv

Can you not use the 64-bit version?

-crf and -b:v are mutually exclusive rate control methods, as mentioned
previously. Use one but not both. In your case -b:v is being ignored.

Remove -r 30 and replace it with -framerate 30 input option as I
mentioned previously. This will prevent the unnecessary duplication of
frames as it will use -framerate 25 for the x11grab input by default if
you don't change it. Adding -r 30 makes it convert from 25 to 30 by
duplicating frames.

> [x11grab @ 0xc3e16a0] 16 bits per pixel screen is not implemented. Update
> your FFmpeg version to the newest one from Git. If the problem still
> occurs, it means that your file has a feature which has not been
> implemented.

I guess this is the problem. Output to a local file and try to play it.
Probably garbage output.

>     Stream #0:0: Video: rawvideo (RGB[16] / 0x10424752), rgb565le,
> 1024x768, 29.97 fps, 29.97 tbr, 1000k tbn, 1000k tbc

rgb565le. Mine is bgr0. What's your display server?


More information about the ffmpeg-user mailing list