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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.