Convert a PNG to a Raw Framebuffer

IN_FILE=...

OUT_FORMAT="BGR"

OUT_FILE="${IN_FILE%.*}.raw"

gst-launch-1.0 -v filesrc "location=${IN_FILE}" ! \
  decodebin ! \
  videoconvert ! \
  video/x-raw,format=${OUT_FORMAT},framerate=0/1 ! \
  filesink "location=${OUT_FILE}"