Hey all,
I’m on a Banana Pi BPI-F3 with latest Bianbu 2.1.2, and currently trying to play back a video (without desktop environment, just KMS) with gstreamer.
I installed:
sudo apt install gstreamer1.0-libav gstreamer1.0-alsa \
gstreamer1.0-plugins-base gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad gstreamer1.0-plugins-base-apps
Video playback does not work:
root@k1:~# gst-play-1.0 https://flutter.github.io/assets-for-api-docs/assets/videos/bee.mp4
Press 'k' to see a list of keyboard shortcuts.
Now playing https://flutter.github.io/assets-for-api-docs/assets/videos/bee.mp4
Redistribute latency...
ERROR Could not get/set settings from/on resource. for https://flutter.github.io/assets-for-api-docs/assets/videos/bee.mp4
ERROR debug information: ../ext/alsa/gstalsasink.c(645): set_hwparams (): /GstPlayBin3:playbin/GstPlaySink:playsink/GstBin:abin/GstAutoAudioSink:audiosink/GstAlsaSink:audiosink-actual-sink-alsa:
Unable to set hw params for playback: Invalid argument
[MPP-DEBUG] 3269:module_init:159 +++++++++++++++ module init, module type = 9
[MPP-DEBUG] 3269:find_v4l2_linlonv5v7_plugin:83 yeah! we have v4l2_linlonv5v7_codec plugin---------------
[MPP-DEBUG] 3269:module_init:199 ++++++++++ V4L2_LINLONV5V7 (/usr/lib/libv4l2_linlonv5v7_codec.so)
[MPP-DEBUG] 3269:module_init:199 ++++++++++ open (/usr/lib/libv4l2_linlonv5v7_codec.so) success !
[MPP-DEBUG] 3269:al_dec_create:337 init create
[MPP-DEBUG] 3269:al_dec_init:398 input para check: foramt:0x34363248 output format:0x3231564e input buffer num:12 output buffer num:8
[MPP-DEBUG] 3269:al_dec_init:421 video fd = 13, device path = '/dev/video0'
[MPP-DEBUG] 3269:createCodec:115 create a codec, width=1280 height=720 align=4 inputtype=2 outputtype=9 inputformat=34363248 outputformat=3231564e inputbufnum=12 outputbufnum=8
[MPP-DEBUG] 3269:createPort:80 create a port, type=2 format_fourcc=875967048
[MPP-DEBUG] 3269:createPort:80 create a port, type=9 format_fourcc=842094158
[MPP-DEBUG] 3269:getTrySetFormat:196 width=1280 height=720 align=4 pixel_format=34363248
[MPP-DEBUG] 3269:printFormat:294 PRINTFORMAT ===== type: 2, format: 875967048, width: 1280, height: 720, bytesperline: 0, sizeimage: 1048576
[MPP-DEBUG] 3269:getTrySetFormat:196 width=1280 height=720 align=4 pixel_format=3231564e
[MPP-DEBUG] 3269:printFormat:283 PRINTFORMAT ===== type: 9, format: 842094158, width: 1280, height: 720, nplanes: 2, bytesperline: [1280 1280 0], sizeimage: [921600 460800 0]
[MPP-DEBUG] 3269:allocateBuffers:340 Request buffers. type:2 count:12(12) memory:1
[MPP-DEBUG] 3269:allocateBuffers:340 Request buffers. type:9 count:8(8) memory:1
[MPP-DEBUG] 3269:streamon:558 Stream on 1747409661950
[MPP-DEBUG] 3269:streamon:558 Stream on 1747409661950
[MPP-DEBUG] 3269:al_dec_init:449 init finish
[MPP-DEBUG] 3257:al_dec_destory:700 destory start
[MPP-ERROR] 3279:runpoll:305 Poll returned error event.
[MPP-DEBUG] 3257:al_dec_destory:702 pthread join finish
[MPP-DEBUG] 3257:al_dec_destory:711 stream off finish
[MPP-DEBUG] 3257:destoryCodec:163 destory input port
[MPP-DEBUG] 3257:allocateBuffers:340 Request buffers. type:2 count:0(0) memory:1
[MPP-DEBUG] 3257:destoryPort:137 free port
[MPP-DEBUG] 3257:destoryCodec:165 destory output port
[MPP-DEBUG] 3257:allocateBuffers:340 Request buffers. type:9 count:0(0) memory:1
[MPP-DEBUG] 3257:destoryPort:137 free port
[MPP-DEBUG] 3257:destoryCodec:167 free codec
[MPP-DEBUG] 3257:al_dec_destory:714 destory codec finish
[MPP-DEBUG] 3257:module_destory:262 +++++++++++++++ module destory
Reached end of play list.
root@k1:~#
any ideas how to fix this?