This gist illustrates three problems:
- Using
decodebin
insists on producing NV12_32L32 instead of NV12, needing a slow conversion or failing to play without that. Directly connectingv4l2slh264dec
tokmssink
does negotiate NV12 correctly. - Using
playbin
is slow for an unknown reason. Producing the same pipeline (but flat) runs ok. - Using
playbin3
runs ok for some files, but for other files it runs for 1-2 seconds and then hangs.decodebin3
is ok for these files.
It seems that decodebin3
does work for all files, so I'll probaly build something with that (but it is still experimental, so maybe this should be fixed in the default versions too?).
Most tests using the https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/1080/Big_Buck_Bunny_1080_10s_5MB.mp4 file from https://test-videos.co.uk/bigbuckbunny/mp4-h264