Generating YUV test samples with GStreamer

If you need to generate test samples in different YUV formats you can use GStreamer's ffmpegcolorspace plugin like in the following snippet; for instance, in order to get an image in the NV12 raw format you can do:

gst-launch-0.10 -q \
  filesrc location=my_image.jpg ! \
  decodebin2 ! \
  ffmpegcolorspace ! video/x-raw-yuv,format=\(fourcc\)NV12 ! \
  filesink location=my_image_NV12.yuv

obviously you can use FFmpeg directly too.

Here is a script attached for me to use in the future.


CommentiCondividi contenuti

Invia nuovo commento

Il contenuto di questo campo è privato e non verrà mostrato pubblicamente. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
  • Indirizzi web o e-mail vengono trasformati in link automaticamente
  • Elementi HTML permessi: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Linee e paragrafi vanno a capo automaticamente.

Ulteriori informazioni sulle opzioni di formattazione

CAPTCHA
Questa domanda serve a verificare che il form non venga inviato da procedure automatizzate
2
a
E
H
m
y
Enter the code without spaces.