Welcome to Firefly
Switch language
Firefly Docsss
Last Updated: 2026-08-27 07:36:09

Save Raw Data

General GStreamer Usage

4.5 Save Raw Data

filesrc reads data from a file, while filesink saves data to a file:

gst-launch-1.0 filesrc location=input.bin \
  ! filesink location=output.bin

When processing a raw YUV stream, each buffer should normally correspond to one frame. For 640×320 NV12, one frame is 640 × 320 × 1.5 = 307200 bytes:

gst-launch-1.0 filesrc location=input_nv12.yuv blocksize=307200 \
  ! 'video/x-raw,format=NV12,width=640,height=320,framerate=30/1' \
  ! fakesink

On this page