PixelFormat 在 ffserver.conf 中被忽略

PixelFormat 在 ffserver.conf 中被忽略

我正在尝试使用 ffmpeg 将我的桌面屏幕传输到电视上的浏览器,因此这是我的 CLI

./ffmpeg -probesize 1000M -framerate 60 -video_size 1680x1050 -f x11grab -i :0.0 -f alsa -i default -c:a aac -c:v libx264 http://localhost:8090/feed1.ffm

这是我的ffserver.conf

<Stream h264>
Format webm
Feed feed1.ffm
VideoCodec libx264
VideoFrameRate 24
VideoBitRate 100
VideoSize 480x272
#AVPresetVideo default
#AVPresetVideo baseline
AVOptionVideo profile main
PixelFormat yuv420p
#
AudioCodec aac
AudioBitRate 32
AudioChannels 2
AudioSampleRate 22050
AVOptionAudio flags +global_header
</Stream>

这是我得到的一个错误

[x11grab @ 0x55ff0e354a00] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
[msmpeg4 @ 0x55ff0e3ab840] rc buffer underflow
[msmpeg4 @ 0x55ff0e3ab840] max bitrate possibly too small or try trellis with large lmax or increase qmax
x264 [error]: baseline profile doesn't support 4:4:4
[libx264 @ 0x55ff0e3b4ca0] Error setting profile baseline.
[libx264 @ 0x55ff0e3b4ca0] Possible profiles: baseline main high high10 high422 high444
Error initializing output stream 0:5 -- Error while opening encoder for output stream #0:5 - maybe incorrect parameters such as bit_rate, rate, width or height
[aac @ 0x55ff0e3b36c0] Qavg: -nan
[alsa @ 0x55ff0e35dc40] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
Conversion failed!

那么我做错了什么?

相关内容