Всем привет!
Возникла проблема при работе с gstreamer + vaapih264enc Делаю так
GST_DEBUG=2 gst-launch-1.0 -v ximagesrc ! video/x-raw,framerate=30/1,width=2770,height=768 ! vaapipostproc width=2770 height=768 ! video/x-raw,format=I420,width=2770,height=768 ! vaapih264enc bitrate=6000 keyframe-period=10 rate-control=cbr tune=0 ! video/x-h264,stream-format=byte-stream,profile=high,width=2770,height=768 ! mpegtsmux alignment=7 pat-interval=40000 ! udpsink host=224.1.1.1 port=1234
Вывод http://paste.org.ru/?b3vs1d
Проблема в том что кодер не вставляет в поток информацию о кодеке.
ffplay -probesize 500000 udp://224.1.1.1:1234
Вывод
[h264 @ 0x7fd9ec0252a0] non-existing PPS 0 referenced [h264 @ 0x7fd9ec0252a0] decode_slice_header error [h264 @ 0x7fd9ec0252a0] no frame! [mpegts @ 0x7fd9ec000920] decoding for stream 0 failed [mpegts @ 0x7fd9ec000920] Could not find codec parameters for stream 0 (Video: h264 (HDMV / 0x564D4448), none): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options udp://224.1.1.1:1234: could not find codec parameters
Что я делаю не так?
PS:почему то LORCODE не работает спойлер :(