SlideShare a Scribd company logo
1
Hands-on Video CourseHands-on Video Course
Yossi Cohen
June 2013
Lecture 2
RAW Video
2
Hands-on Video Course
Overview
Intro to color theory
Image Packing
Ex1- Hands on Image packing
3
Hands-on Video Course
Losless Compression
Model Based Compression
Model
Based
Transform/s
Quantize /
Prioritize Reorder
Entropy
Coding
Sample +Pre
Processing
Bit rate control
4
Hands-on Video Course
COLOR
Representation
Decimation
Conversion
5
Hands-on Video Course
Human Visual System
The human eye has two basic light receptors:
Rods – Light Intensity receptors
Cons – Colored light receptors
6
Hands-on Video Course
Rods and Cons Frequency Reception
7
Hands-on Video Course
4.2 Color Models in Images
Colors spaces are used to store, display, print
images.
Images are represented using different:
Color spaces
Color Depth
Color Decimation Methods
Pixel/Plane Interleaving methods
8
Hands-on Video Course
Color Spaces
 Color Spaces
 RGB – Each pixel is provided coordinates in 3D space.
Coordinates are in Red, Blue and Green. This is how we
perceive color
 YUV – Conversion of the color to a Light (Y) based system.
Y and V are Color Complements
 HSV – Hue, Saturation, Value
 YCbCr and more
9
Hands-on Video Course
RGB->YUV Color Transform
R
G
B
R
B
G
Y
U
V
10
Hands-on Video Course
Color matching
 How can we compare colors
so that the content creators
and consumers know what
they are seeing?
 Many different ways
including CIE chromacity
diagram
11
Hands-on Video Course
Video Color Transforms
 Largely derived from older analog methods of coding
color for TV. Luminance is separated from color
information.
 YIQ is used to transmit TV signals in North America and
Japan.This coding also makes its way into VHS video
tape coding in these countries since video tape
technologies also use YIQ.
 In Europe, video tape uses the PAL or SECAM codings,
which are based on TV that uses a matrix transform
called YUV.
 Finally, digital video mostly uses a matrix transform called
YCbCr that is closely related to YUV
12
Hands-on Video Course
YUV Separation
13
Hands-on Video Course
YUV Color Model
•YUV codes a luminance signal (for gamma-corrected
signals) equal to Y , the “luma".
•Chrominance refers to the difference between a color
and a reference white at the same luminance. (U and V)
The transform is:
14
Hands-on Video Course
YIQ Color Model
YIQ is used in NTSC color TV broadcasting.
Again, gray pixels generate zero (I;Q)
chrominance signal.
I and Q are a rotated version of U and V .
The transform is:
15
Hands-on Video Course
YCbCr Color Model
1. The Rec. 601 standard for digital video uses
another color space YCbCr which closely
related to the YUV transform.
2. The YCbCr transform is used in JPEG image
compression and MPEG video compression.
For 8-bit coding:
16
Hands-on Video Course
Color Decimation
Rods>>Cons
Spatial Representation(Light) >> SR(Color)
Current Representation of light by 3 coordinates
per pixel waste space.
Color Decimation is done only in Light based color
representation (not in RGB)
17
Hands-on Video Course
Color Decimation
YUV 4:4:4 – No Color decimation
Used in studio editing
WiFi Display
YUV 4:2:2 – UV are decimated by two
High end video coding
YUV 4:2:0 – UV pixels are decimated by 4
Standard video coding
UY V
UY V
U
Y
V
18
Hands-on Video Course
Color Packing
We could arrange the “Color” pixels in several
ways:
Packed:
 YUV|YUV|YUV
Planer:
 YYYYYY….UUUUU…..VVVVV
Semi Planer:
 YYYYYYY UVUVUV
19
Hands-on Video Course
Common Color Packing formats
For video coding well use
Progressive input (and not interleaved)
YUV 4:2:0 Decimation
Planer Color Packing (yuv420p / I420)

20
Hands-on Video Course
COLOR DECIMATION
PACKING AND CONVERSION
Lab 1
21
Hands-on Video Course
Open the file with YUVPlayer
Just open it as default what do you get?
22
Hands-on Video Course
YUV Player
Did you got this? Why?
1. It seems that YUV file-format does not hold
format information
2. There are many YUV formats
What to do?
23
Hands-on Video Course
Play & Probe file
FFPLAY akiyo_cif.yuv
Cant play missing Image size
FFPlay –s 352x288 akyo_cif.yuv
ffprobe.exe -video_size 352x288 akiyo_cif.yuv
Input #0, rawvideo, from 'akiyo_cif.yuv':
Duration: 00:00:12.00, start: 0.000000, bitrate: 30412 kb/s
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p,
352x288, 30412 kb/s, 25 tbr, 25 tbn, 25 tbc
24Hands-on Video Course
Play & Probe file
FFPLAY akiyo_cif.y4m
FFProbe akiyo_cif.y4m
Input #0, yuv4mpegpipe, from 'akiyo_cif.y4m':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p,
352x288, SAR 128:117 DAR 1408:1053, 29.97 fps, 29.97
tbr, 29.97 tbn, 29.97 tbc
25Hands-on Video Course
Back to YUV Player
Select YUV420
And if we need it in UYVY (YUV422 Packed)
ffmpeg -s 352x288 -i akiyo_cif.yuv -pix_fmt
uyvy422 akiyo_cif_uyvy.yuv
26Hands-on Video Course
Ex 1
Create Akiyo YUV file which is opened using
YUV422 option of YUVPlayer
What is the difference between this 4:2:2 format
and the previous one?
Can we open this format using Y only setting?
If not create a Y only file
Is there an option for a YUV file with headers?
Save akiyo in raw YUV with headers
27Hands-on Video Course
EX1 answers
Check FFMPEG –pix_fmts
ffmpeg -s 352x288 -i akiyo_cif.yuv -pix_fmt
yuv422p akiyo_cif_422p.yuv
ffmpeg -s 352x288 -i akiyo_cif.yuv -pix_fmt gray
akiyo_cif_y.yuv
28Hands-on Video Course
Y4M filel Format
Y4M is a YUV file with a header.
Header states
YUV decimation and packing
Frame resolution
FPS

More Related Content

What's hot (20)

PPT
H.263 Video Codec
Kavisha Miyan
 
PPT
H261
Videoguy
 
PDF
On the Impact of Viewing Distance on Perceived Video Quality
Alpen-Adria-Universität
 
PPTX
Scalable Video Coding Guidelines and Performance Evaluations for Adaptive Me...
mgrafl
 
PPT
MMC MPEG4
Saikrishna Tanguturu
 
PDF
INCEPT: Intra CU Depth Prediction for HEVC
Alpen-Adria-Universität
 
PPTX
HTTP Adaptive Streaming State of the Art and Challenges Ahead
Alpen-Adria-Universität
 
PPT
HEVC / H265 Hands-On course
Yoss Cohen
 
PPTX
Video coding standards ppt
Lokesh Reddy Avula
 
PDF
HEVC overview main
Nirma University
 
PDF
Understanding Quality of Experience of Heuristic-based HTTP Adaptive Bitrate ...
Alpen-Adria-Universität
 
PPTX
Dynamic Adaptive Point Cloud Streaming
Alpen-Adria-Universität
 
PPT
Multimedia
BUDNET
 
PDF
1 state of-the-art and trends in scalable video
Yogananda Patnaik
 
DOCX
Press Release of 131st WG11 (MPEG) Meeting
Alpen-Adria-Universität
 
PDF
HEVC VIDEO CODEC By Vinayagam Mariappan
Vinayagam Mariappan
 
PPTX
Bandwidth Prediction in Low-Latency Chunked Streaming
Alpen-Adria-Universität
 
PPTX
A QoS-Adaptive Framework for Screen Sharing Over Internet
Duc Nguyen
 
PDF
PERFORMANCE EVALUATION OF H.265/MPEG-HEVC, VP9 AND H.264/MPEGAVC VIDEO CODING
ijma
 
PPT
IPTV Codec & Packeting
Kuncoro Wastuwibowo
 
H.263 Video Codec
Kavisha Miyan
 
H261
Videoguy
 
On the Impact of Viewing Distance on Perceived Video Quality
Alpen-Adria-Universität
 
Scalable Video Coding Guidelines and Performance Evaluations for Adaptive Me...
mgrafl
 
INCEPT: Intra CU Depth Prediction for HEVC
Alpen-Adria-Universität
 
HTTP Adaptive Streaming State of the Art and Challenges Ahead
Alpen-Adria-Universität
 
HEVC / H265 Hands-On course
Yoss Cohen
 
Video coding standards ppt
Lokesh Reddy Avula
 
HEVC overview main
Nirma University
 
Understanding Quality of Experience of Heuristic-based HTTP Adaptive Bitrate ...
Alpen-Adria-Universität
 
Dynamic Adaptive Point Cloud Streaming
Alpen-Adria-Universität
 
Multimedia
BUDNET
 
1 state of-the-art and trends in scalable video
Yogananda Patnaik
 
Press Release of 131st WG11 (MPEG) Meeting
Alpen-Adria-Universität
 
HEVC VIDEO CODEC By Vinayagam Mariappan
Vinayagam Mariappan
 
Bandwidth Prediction in Low-Latency Chunked Streaming
Alpen-Adria-Universität
 
A QoS-Adaptive Framework for Screen Sharing Over Internet
Duc Nguyen
 
PERFORMANCE EVALUATION OF H.265/MPEG-HEVC, VP9 AND H.264/MPEGAVC VIDEO CODING
ijma
 
IPTV Codec & Packeting
Kuncoro Wastuwibowo
 

Viewers also liked (20)

PPTX
色彩模型 Color Models
YKLee3434
 
PPT
Introduction to HEVC
Yoss Cohen
 
PPTX
YUV, Y CB CR and Subsampling
University of Sunderland
 
PDF
Audio video system slides, Microphone loudspeaker, Aduio devices slides, AVS ...
dreamygyz
 
PPTX
Understanding video technologies
fionayoung
 
PPTX
Television basic understanding
Nithin Kalorth, PhD
 
PPTX
GSM Architecture
Pratik Gupta
 
PPT
Audio Video Engineering
Yogesh kanade
 
PPTX
Video technology
Simon Wright
 
PPTX
Introduction to Video Signals
Devashish Raval
 
PPT
Ch 6 introduction to television
kapil raviya
 
PDF
Colout TV Fundamentals
Madhumita Tamhane
 
PPT
Television Basics
Nishith Kumar
 
PPTX
Multimedia fundamentals
Prithvi Raj M
 
PDF
Chapter 1 - Multimedia Fundamentals
Pratik Pradhan
 
PPTX
Television Receiver
Devashish Raval
 
PPT
GSM Architecture
koonlay
 
PPT
GSM Presentation
Dheeraj Raja
 
PPT
Television ppt
Anirban Mandal
 
PPTX
Multimedia presentation
kamalesh2015
 
色彩模型 Color Models
YKLee3434
 
Introduction to HEVC
Yoss Cohen
 
YUV, Y CB CR and Subsampling
University of Sunderland
 
Audio video system slides, Microphone loudspeaker, Aduio devices slides, AVS ...
dreamygyz
 
Understanding video technologies
fionayoung
 
Television basic understanding
Nithin Kalorth, PhD
 
GSM Architecture
Pratik Gupta
 
Audio Video Engineering
Yogesh kanade
 
Video technology
Simon Wright
 
Introduction to Video Signals
Devashish Raval
 
Ch 6 introduction to television
kapil raviya
 
Colout TV Fundamentals
Madhumita Tamhane
 
Television Basics
Nishith Kumar
 
Multimedia fundamentals
Prithvi Raj M
 
Chapter 1 - Multimedia Fundamentals
Pratik Pradhan
 
Television Receiver
Devashish Raval
 
GSM Architecture
koonlay
 
GSM Presentation
Dheeraj Raja
 
Television ppt
Anirban Mandal
 
Multimedia presentation
kamalesh2015
 
Ad

Similar to Hands-on Video Course - "RAW Video" (20)

PDF
video compression
aniruddh Tyagi
 
PDF
video compression
aniruddh Tyagi
 
PDF
video compression
Aniruddh Tyagi
 
PPTX
Scct2013 topic4 video
Anies Syahieda
 
PPTX
Chapter four.pptx
TadeseBeyene
 
PPTX
Chapter fourvvvvvvvbbhhgggghhhhhhheryuuuhh
TadeseBeyene
 
PDF
VIDEO CODECS
Vinayagam Mariappan
 
PPT
Lec2
Kh Ravy
 
PPT
Chapter 3- Media Representation and Formats.ppt
VasanthiMuniasamy2
 
PPTX
Particle filter and cam shift approach for motion detection
kalyanibedekar
 
PDF
TAAI 2016 Keynote Talk: It is all about AI
Yi-Shin Chen
 
PDF
To Understand Video
adil raja
 
DOCX
Video
Parag Gupta
 
PPTX
simple video compression
LaLit DuBey
 
PPT
Video Data
Sanea
 
DOCX
E4 ident video analysis
Luke Finlay
 
PPT
Applying Media Content Analysis to the Production of Musical Videos as Summar...
Chris Huang
 
PPTX
chapter5.pptx
AparnaDas827261
 
video compression
aniruddh Tyagi
 
video compression
aniruddh Tyagi
 
video compression
Aniruddh Tyagi
 
Scct2013 topic4 video
Anies Syahieda
 
Chapter four.pptx
TadeseBeyene
 
Chapter fourvvvvvvvbbhhgggghhhhhhheryuuuhh
TadeseBeyene
 
VIDEO CODECS
Vinayagam Mariappan
 
Lec2
Kh Ravy
 
Chapter 3- Media Representation and Formats.ppt
VasanthiMuniasamy2
 
Particle filter and cam shift approach for motion detection
kalyanibedekar
 
TAAI 2016 Keynote Talk: It is all about AI
Yi-Shin Chen
 
To Understand Video
adil raja
 
simple video compression
LaLit DuBey
 
Video Data
Sanea
 
E4 ident video analysis
Luke Finlay
 
Applying Media Content Analysis to the Production of Musical Videos as Summar...
Chris Huang
 
chapter5.pptx
AparnaDas827261
 
Ad

More from Yoss Cohen (20)

PPTX
Underwater robotics simulation with isaac sim
Yoss Cohen
 
PPTX
Infrared simulation and processing on Nvidia platforms
Yoss Cohen
 
PPTX
open platform for swarm training
Yoss Cohen
 
PDF
Deep Learning - system view
Yoss Cohen
 
PDF
Dspip deep learning syllabus
Yoss Cohen
 
PPT
IoT consideration selection
Yoss Cohen
 
PPT
IoT evolution
Yoss Cohen
 
DOC
Nvidia jetson nano bringup
Yoss Cohen
 
PPT
Autonomous car teleportation architecture
Yoss Cohen
 
PPT
Motion estimation overview
Yoss Cohen
 
PPT
Computer Vision - Image Filters
Yoss Cohen
 
PPT
Intro to machine learning with scikit learn
Yoss Cohen
 
PPT
DASH and HTTP2.0
Yoss Cohen
 
PPT
HEVC Definitions and high-level syntax
Yoss Cohen
 
PPT
FFMPEG on android
Yoss Cohen
 
PPT
Web video standards
Yoss Cohen
 
PDF
Product wise computer vision development
Yoss Cohen
 
PPTX
3D Video Programming for Android
Yoss Cohen
 
PDF
Analog Video
Yoss Cohen
 
PPTX
WiFi Display
Yoss Cohen
 
Underwater robotics simulation with isaac sim
Yoss Cohen
 
Infrared simulation and processing on Nvidia platforms
Yoss Cohen
 
open platform for swarm training
Yoss Cohen
 
Deep Learning - system view
Yoss Cohen
 
Dspip deep learning syllabus
Yoss Cohen
 
IoT consideration selection
Yoss Cohen
 
IoT evolution
Yoss Cohen
 
Nvidia jetson nano bringup
Yoss Cohen
 
Autonomous car teleportation architecture
Yoss Cohen
 
Motion estimation overview
Yoss Cohen
 
Computer Vision - Image Filters
Yoss Cohen
 
Intro to machine learning with scikit learn
Yoss Cohen
 
DASH and HTTP2.0
Yoss Cohen
 
HEVC Definitions and high-level syntax
Yoss Cohen
 
FFMPEG on android
Yoss Cohen
 
Web video standards
Yoss Cohen
 
Product wise computer vision development
Yoss Cohen
 
3D Video Programming for Android
Yoss Cohen
 
Analog Video
Yoss Cohen
 
WiFi Display
Yoss Cohen
 

Recently uploaded (20)

PPTX
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
PPTX
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
PPTX
AI Code Generation Risks (Ramkumar Dilli, CIO, Myridius)
Priyanka Aash
 
PPTX
Simple and concise overview about Quantum computing..pptx
mughal641
 
PDF
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
PDF
introduction to computer hardware and sofeware
chauhanshraddha2007
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 
PPTX
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
PDF
RAT Builders - How to Catch Them All [DeepSec 2024]
malmoeb
 
PDF
The Future of Artificial Intelligence (AI)
Mukul
 
PPTX
The Future of AI & Machine Learning.pptx
pritsen4700
 
PDF
Researching The Best Chat SDK Providers in 2025
Ray Fields
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PPTX
Farrell_Programming Logic and Design slides_10e_ch02_PowerPoint.pptx
bashnahara11
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PPTX
Agile Chennai 18-19 July 2025 | Workshop - Enhancing Agile Collaboration with...
AgileNetwork
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
AI Code Generation Risks (Ramkumar Dilli, CIO, Myridius)
Priyanka Aash
 
Simple and concise overview about Quantum computing..pptx
mughal641
 
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
introduction to computer hardware and sofeware
chauhanshraddha2007
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
RAT Builders - How to Catch Them All [DeepSec 2024]
malmoeb
 
The Future of Artificial Intelligence (AI)
Mukul
 
The Future of AI & Machine Learning.pptx
pritsen4700
 
Researching The Best Chat SDK Providers in 2025
Ray Fields
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
Farrell_Programming Logic and Design slides_10e_ch02_PowerPoint.pptx
bashnahara11
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Agile Chennai 18-19 July 2025 | Workshop - Enhancing Agile Collaboration with...
AgileNetwork
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 

Hands-on Video Course - "RAW Video"

  • 1. 1 Hands-on Video CourseHands-on Video Course Yossi Cohen June 2013 Lecture 2 RAW Video
  • 2. 2 Hands-on Video Course Overview Intro to color theory Image Packing Ex1- Hands on Image packing
  • 3. 3 Hands-on Video Course Losless Compression Model Based Compression Model Based Transform/s Quantize / Prioritize Reorder Entropy Coding Sample +Pre Processing Bit rate control
  • 5. 5 Hands-on Video Course Human Visual System The human eye has two basic light receptors: Rods – Light Intensity receptors Cons – Colored light receptors
  • 6. 6 Hands-on Video Course Rods and Cons Frequency Reception
  • 7. 7 Hands-on Video Course 4.2 Color Models in Images Colors spaces are used to store, display, print images. Images are represented using different: Color spaces Color Depth Color Decimation Methods Pixel/Plane Interleaving methods
  • 8. 8 Hands-on Video Course Color Spaces  Color Spaces  RGB – Each pixel is provided coordinates in 3D space. Coordinates are in Red, Blue and Green. This is how we perceive color  YUV – Conversion of the color to a Light (Y) based system. Y and V are Color Complements  HSV – Hue, Saturation, Value  YCbCr and more
  • 9. 9 Hands-on Video Course RGB->YUV Color Transform R G B R B G Y U V
  • 10. 10 Hands-on Video Course Color matching  How can we compare colors so that the content creators and consumers know what they are seeing?  Many different ways including CIE chromacity diagram
  • 11. 11 Hands-on Video Course Video Color Transforms  Largely derived from older analog methods of coding color for TV. Luminance is separated from color information.  YIQ is used to transmit TV signals in North America and Japan.This coding also makes its way into VHS video tape coding in these countries since video tape technologies also use YIQ.  In Europe, video tape uses the PAL or SECAM codings, which are based on TV that uses a matrix transform called YUV.  Finally, digital video mostly uses a matrix transform called YCbCr that is closely related to YUV
  • 13. 13 Hands-on Video Course YUV Color Model •YUV codes a luminance signal (for gamma-corrected signals) equal to Y , the “luma". •Chrominance refers to the difference between a color and a reference white at the same luminance. (U and V) The transform is:
  • 14. 14 Hands-on Video Course YIQ Color Model YIQ is used in NTSC color TV broadcasting. Again, gray pixels generate zero (I;Q) chrominance signal. I and Q are a rotated version of U and V . The transform is:
  • 15. 15 Hands-on Video Course YCbCr Color Model 1. The Rec. 601 standard for digital video uses another color space YCbCr which closely related to the YUV transform. 2. The YCbCr transform is used in JPEG image compression and MPEG video compression. For 8-bit coding:
  • 16. 16 Hands-on Video Course Color Decimation Rods>>Cons Spatial Representation(Light) >> SR(Color) Current Representation of light by 3 coordinates per pixel waste space. Color Decimation is done only in Light based color representation (not in RGB)
  • 17. 17 Hands-on Video Course Color Decimation YUV 4:4:4 – No Color decimation Used in studio editing WiFi Display YUV 4:2:2 – UV are decimated by two High end video coding YUV 4:2:0 – UV pixels are decimated by 4 Standard video coding UY V UY V U Y V
  • 18. 18 Hands-on Video Course Color Packing We could arrange the “Color” pixels in several ways: Packed:  YUV|YUV|YUV Planer:  YYYYYY….UUUUU…..VVVVV Semi Planer:  YYYYYYY UVUVUV
  • 19. 19 Hands-on Video Course Common Color Packing formats For video coding well use Progressive input (and not interleaved) YUV 4:2:0 Decimation Planer Color Packing (yuv420p / I420) 
  • 20. 20 Hands-on Video Course COLOR DECIMATION PACKING AND CONVERSION Lab 1
  • 21. 21 Hands-on Video Course Open the file with YUVPlayer Just open it as default what do you get?
  • 22. 22 Hands-on Video Course YUV Player Did you got this? Why? 1. It seems that YUV file-format does not hold format information 2. There are many YUV formats What to do?
  • 23. 23 Hands-on Video Course Play & Probe file FFPLAY akiyo_cif.yuv Cant play missing Image size FFPlay –s 352x288 akyo_cif.yuv ffprobe.exe -video_size 352x288 akiyo_cif.yuv Input #0, rawvideo, from 'akiyo_cif.yuv': Duration: 00:00:12.00, start: 0.000000, bitrate: 30412 kb/s Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 352x288, 30412 kb/s, 25 tbr, 25 tbn, 25 tbc
  • 24. 24Hands-on Video Course Play & Probe file FFPLAY akiyo_cif.y4m FFProbe akiyo_cif.y4m Input #0, yuv4mpegpipe, from 'akiyo_cif.y4m': Duration: N/A, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 352x288, SAR 128:117 DAR 1408:1053, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc
  • 25. 25Hands-on Video Course Back to YUV Player Select YUV420 And if we need it in UYVY (YUV422 Packed) ffmpeg -s 352x288 -i akiyo_cif.yuv -pix_fmt uyvy422 akiyo_cif_uyvy.yuv
  • 26. 26Hands-on Video Course Ex 1 Create Akiyo YUV file which is opened using YUV422 option of YUVPlayer What is the difference between this 4:2:2 format and the previous one? Can we open this format using Y only setting? If not create a Y only file Is there an option for a YUV file with headers? Save akiyo in raw YUV with headers
  • 27. 27Hands-on Video Course EX1 answers Check FFMPEG –pix_fmts ffmpeg -s 352x288 -i akiyo_cif.yuv -pix_fmt yuv422p akiyo_cif_422p.yuv ffmpeg -s 352x288 -i akiyo_cif.yuv -pix_fmt gray akiyo_cif_y.yuv
  • 28. 28Hands-on Video Course Y4M filel Format Y4M is a YUV file with a header. Header states YUV decimation and packing Frame resolution FPS