rogerdpack
rogerdpack

Reputation: 66711

why is streaming to an flv server with ffmpeg only showing black/blank video for clients?

When I stream to an flv server, like flash media server, using ffmpeg, like

 ffmpeg -i input -vcodec libx264 rtmp://hostname/streamname

it turns out black. Why is that?

Upvotes: 0

Views: 1071

Answers (1)

rogerdpack
rogerdpack

Reputation: 66711

Turns out that in "more recent" versions of ffmpeg, the default x264 pixel format is "yuv422p" which isn't supported by most commercial encoders.

Fix: specify -pix_fmt yuv420p or -pix_fmt yuyv422 for the x264 format.

Upvotes: 1

Related Questions