SlideShare a Scribd company logo
1 of 26
MPEG 2 - Demo Encoder and
Decoder Video
“
P r e s e n t e r : T r o n g - A n B u i
A d v i s o r : P r o f . P e i - J u n L e e
Video Processing and Application Laboratory,
National Chi Nan University, Taiwan
N a t i o n a l S p a c e O r g a n i z a t i o n P r o j e c t
Ta i w a n 2 0 1 7
October 18th , 2017
NCNU, Taiwan
NCNU
ABOUT US
Video Processing and Application Laboratory,
National Chi Nan University, Taiwan
Project
Report
Demo:
MPEG 2 – Video Decoder and Encoder
NCNU
3
OUTLINE
Video Enc oder and D ec oder
Follow Pr oc es s ing
Build Envir onment and platfor m
Sour c e c ode Str uc tur e
Build and R unning
R es ult and Tes ting
Open Sour c e and Shar ing
NCNU
4
OUTLINE
Video Encoder and D ecoder
Follow Pr oc es s ing
Build Envir onment and platfor m
Sour c e c ode Str uc tur e
Build and R unning
R es ult and Tes ting
Open Sour c e and Shar ing
NCNU
5
MPEG-2 E n c o d e r a n d D e c o d e r
Input
NCNU
6
MPEG-2 E n c o d e r a n d D e c o d e r
Encoder
Decoder
Y,U,V
files
Video
bit stream
Video
bit stream
Y,U,V
files
NCNU
7
OUTLINE
Video Encoder and D ecoder
Follow Processing
Build Envir onment and platfor m
Sour c e c ode Str uc tur e
Build and R unning
R es ult and Tes ting
Open Sour c e and Shar ing
NCNU
8
MPEG-2 F o l l o w i n g
Encoderaw files
(y,u,v)
Video
bit stream
(m2v)
Decodenew raw files
(y,u,v)
NCNU
9
OUTLINE
Video Encoder and D ecoder
Follow Processing
B uild Environment and plat f orm
Sour c e c ode Str uc tur e
Build and R unning
R es ult and Tes ting
Open Sour c e and Shar ing
NCNU
10
Build
Environment
C o d i n g L a n g u a g e a n d P l a t f o r m
{ C }
Programing
Basic and strong
language code
Run on: PC, sever,
hardware…
NCNU
11
OUTLINE
Video Encoder and D ecoder
Follow Processing
B uild Environment and plat f orm
Source code St ruct ure
Build and R unning
R es ult and Tes ting
Open Sour c e and Shar ing
NCNU
12
Source
code
S t r u c t u r e
base
src
par
vip_run
doc
make file
verify
source code C programing language
configuration files for encoding
steps and results run the program by following
how to run and setting decoder and encoder
build, clear, verify with make file in Linux
verify and compare the y,u,v files
NCNU
13
OUTLINE
Video Encoder and D ecoder
Follow Processing
B uild Environment and plat f orm
Source code St ruct ure
B uild and R unning
R es ult and Tes ting
Open Sour c e and Shar ing
NCNU
14
Compile B u i l d
make all
Run terminal from base
cd src/mpeg2dec; make 'CC=$(CC)' 
'CFLAGS=$(CFLAGS) $(USE_DISP) $(USE_SHMEM) $(INCLUDEDIR)' 
'LIBS=$(LIBS)' 'LIBRARYDIR=$(LIBRARYDIR)'
cd src/mpeg2enc; make 'CC=$(CC)' 'CFLAGS=$(CFLAGS)'
compile and build application program from c coding files
NCNU
15
Compile R u n n i n g E n c o d i n g
Run terminal from
base/vip_run/NSPOStep/01_Encoder_From_OriginalYUVFiles
./run
Encoder to video (.m2v file) from Y,U,V files in this folder
Y,U,V
files
Video
NCNU
16
Compile R u n n i n g D e c o d i n g
Run terminal from
base/vip_run/NSPOStep/02_Decoder
./run
Decoder to raw files (y,u,v files) from video file in this folder
Video
Y,U,V
files
NCNU
17
OUTLINE
Video Encoder and D ecoder
Follow Processing
B uild Environment and plat f orm
Source code St ruct ure
B uild and R unning
R esult and Test ing
Open Sour c e and Shar ing
NCNU
18
Compile Te s t r e s u l t
Test result following
Encoderaw files
(y,u,v)
video Video
bit stream file
(m2v)
Decode
new raw files
(y,u,v)
Re - Encode
new video
bit stream
(m2v)
Method 1
NCNU
19
Compile Te s t r e s u l t
Run terminal from
base/vip_run/NSPOStep/03_Re-generate
./run
Encoder to video (.m2v file) from Y,U,V files in this folder
Y,U,V
files
Video
compare 2 videos
NCNU
20
Test Result
video new video
M e t h o d 1
NCNU
21
Compile Te s t r e s u l t
Test result following Method 2
Encoderaw files
(y,u,v)
video Video
bit stream file
(m2v)
Decode
new raw files
(y,u,v)
NCNU
22
Test ResultM e t h o d 2
NCNU
23
Test ResultM e t h o d 2
frame PSNR SSIM CORR
0 45.975796 0.999849 0.999849
1 41.889598 0.999613 0.999613
2 43.589393 0.999739 0.999739
3 42.729516 0.999681 0.999681
4 43.198931 0.999713 0.999713
5 43.028686 0.999701 0.999701
6 42.926901 0.999693 0.999693
7 42.876321 0.999688 0.999688
8 42.769623 0.999679 0.999679
9 43.501731 0.999729 0.999729
10 42.814954 0.999683 0.999683
11 42.835131 0.999684 0.999684
12 43.375576 0.999720 0.999720
13 42.628467 0.999668 0.999668
14 42.959773 0.999691 0.999692
15 43.070152 0.999699 0.999699
16 42.551532 0.999660 0.999661
17 42.410728 0.999649 0.999649
18 43.280877 0.999713 0.999713
19 42.529491 0.999662 0.999662
20 42.372863 0.999654 0.999654
21 43.105288 0.999710 0.999710
22 42.617172 0.999680 0.999680
23 42.536375 0.999676 0.999676
24 42.926806 0.999704 0.999704
25 42.396017 0.999666 0.999666
26 42.256007 0.999654 0.999654
27 43.184471 0.999722 0.999722
28 42.190230 0.999652 0.999653
29 42.655385 0.999688 0.999688
AVG 42.90612637 0.999690667 0.999690767
NCNU
24
OUTLINE
Video Encoder and D ecoder
Follow Processing
B uild Environment and plat f orm
Source code St ruct ure
B uild and R unning
R esult and Test ing
Open Source and Sharing
NCNU
25
Source
code
S h a r i n g a n d m o d i f y
Download and source code detail:
https://github.com/trongan93/viplab-videocoding-mpeg2
Modify and sharing by ViP Lab - NCNU
Download from this link or use command line
git clone https://github.com/trongan93/viplab-videocoding-mpeg2.git
NCNU
CONCLUSION
Thanks for your listening!
Q&A

More Related Content

Similar to MPEG 2 - Presentation and Demo

Introduction to Transcoding: Tools and Processes
Introduction to Transcoding: Tools and ProcessesIntroduction to Transcoding: Tools and Processes
Introduction to Transcoding: Tools and Processes
PrestoCentre
 

Similar to MPEG 2 - Presentation and Demo (20)

44CON 2014 - Stupid PCIe Tricks, Joe Fitzpatrick
44CON 2014 - Stupid PCIe Tricks, Joe Fitzpatrick44CON 2014 - Stupid PCIe Tricks, Joe Fitzpatrick
44CON 2014 - Stupid PCIe Tricks, Joe Fitzpatrick
 
A Hybrid DWT-SVD Method for Digital Video Watermarking Using Random Frame Sel...
A Hybrid DWT-SVD Method for Digital Video Watermarking Using Random Frame Sel...A Hybrid DWT-SVD Method for Digital Video Watermarking Using Random Frame Sel...
A Hybrid DWT-SVD Method for Digital Video Watermarking Using Random Frame Sel...
 
OpenCV 2.2.0 for Android
OpenCV 2.2.0 for AndroidOpenCV 2.2.0 for Android
OpenCV 2.2.0 for Android
 
Accelerated Windows Memory Dump Analysis
Accelerated Windows Memory Dump AnalysisAccelerated Windows Memory Dump Analysis
Accelerated Windows Memory Dump Analysis
 
Machine Learning approaches at video compression
Machine Learning approaches at video compression Machine Learning approaches at video compression
Machine Learning approaches at video compression
 
Security Monitoring with eBPF
Security Monitoring with eBPFSecurity Monitoring with eBPF
Security Monitoring with eBPF
 
Optimizing the Audio Decoding Based Upon Hardware Capability: An Android NUPl...
Optimizing the Audio Decoding Based Upon Hardware Capability: An Android NUPl...Optimizing the Audio Decoding Based Upon Hardware Capability: An Android NUPl...
Optimizing the Audio Decoding Based Upon Hardware Capability: An Android NUPl...
 
Optimizing the Audio Decoding Based Upon Hardware Capability: An Android NUPl...
Optimizing the Audio Decoding Based Upon Hardware Capability: An Android NUPl...Optimizing the Audio Decoding Based Upon Hardware Capability: An Android NUPl...
Optimizing the Audio Decoding Based Upon Hardware Capability: An Android NUPl...
 
Video compressiontechniques&standards lamamahmoud_report#2
Video compressiontechniques&standards lamamahmoud_report#2Video compressiontechniques&standards lamamahmoud_report#2
Video compressiontechniques&standards lamamahmoud_report#2
 
MPEG Compression Standards
MPEG Compression StandardsMPEG Compression Standards
MPEG Compression Standards
 
Multi media unit-3.doc
Multi media unit-3.docMulti media unit-3.doc
Multi media unit-3.doc
 
Dvd circulation
Dvd circulationDvd circulation
Dvd circulation
 
Arduino: Starter kit for arduino(manual de usuario)
Arduino: Starter kit for arduino(manual de usuario)Arduino: Starter kit for arduino(manual de usuario)
Arduino: Starter kit for arduino(manual de usuario)
 
Porting VLC on Android - DroidCon Paris 2014
Porting VLC on Android - DroidCon Paris 2014Porting VLC on Android - DroidCon Paris 2014
Porting VLC on Android - DroidCon Paris 2014
 
Fpga video capturing
Fpga video capturingFpga video capturing
Fpga video capturing
 
Mp3 player project presentation
Mp3 player project presentationMp3 player project presentation
Mp3 player project presentation
 
kripashree
kripashreekripashree
kripashree
 
Dsp lab manual 15 11-2016
Dsp lab manual 15 11-2016Dsp lab manual 15 11-2016
Dsp lab manual 15 11-2016
 
Opencv
OpencvOpencv
Opencv
 
Introduction to Transcoding: Tools and Processes
Introduction to Transcoding: Tools and ProcessesIntroduction to Transcoding: Tools and Processes
Introduction to Transcoding: Tools and Processes
 

Recently uploaded

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Recently uploaded (20)

Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 

MPEG 2 - Presentation and Demo

  • 1. MPEG 2 - Demo Encoder and Decoder Video “ P r e s e n t e r : T r o n g - A n B u i A d v i s o r : P r o f . P e i - J u n L e e Video Processing and Application Laboratory, National Chi Nan University, Taiwan N a t i o n a l S p a c e O r g a n i z a t i o n P r o j e c t Ta i w a n 2 0 1 7 October 18th , 2017 NCNU, Taiwan
  • 2. NCNU ABOUT US Video Processing and Application Laboratory, National Chi Nan University, Taiwan Project Report Demo: MPEG 2 – Video Decoder and Encoder
  • 3. NCNU 3 OUTLINE Video Enc oder and D ec oder Follow Pr oc es s ing Build Envir onment and platfor m Sour c e c ode Str uc tur e Build and R unning R es ult and Tes ting Open Sour c e and Shar ing
  • 4. NCNU 4 OUTLINE Video Encoder and D ecoder Follow Pr oc es s ing Build Envir onment and platfor m Sour c e c ode Str uc tur e Build and R unning R es ult and Tes ting Open Sour c e and Shar ing
  • 5. NCNU 5 MPEG-2 E n c o d e r a n d D e c o d e r Input
  • 6. NCNU 6 MPEG-2 E n c o d e r a n d D e c o d e r Encoder Decoder Y,U,V files Video bit stream Video bit stream Y,U,V files
  • 7. NCNU 7 OUTLINE Video Encoder and D ecoder Follow Processing Build Envir onment and platfor m Sour c e c ode Str uc tur e Build and R unning R es ult and Tes ting Open Sour c e and Shar ing
  • 8. NCNU 8 MPEG-2 F o l l o w i n g Encoderaw files (y,u,v) Video bit stream (m2v) Decodenew raw files (y,u,v)
  • 9. NCNU 9 OUTLINE Video Encoder and D ecoder Follow Processing B uild Environment and plat f orm Sour c e c ode Str uc tur e Build and R unning R es ult and Tes ting Open Sour c e and Shar ing
  • 10. NCNU 10 Build Environment C o d i n g L a n g u a g e a n d P l a t f o r m { C } Programing Basic and strong language code Run on: PC, sever, hardware…
  • 11. NCNU 11 OUTLINE Video Encoder and D ecoder Follow Processing B uild Environment and plat f orm Source code St ruct ure Build and R unning R es ult and Tes ting Open Sour c e and Shar ing
  • 12. NCNU 12 Source code S t r u c t u r e base src par vip_run doc make file verify source code C programing language configuration files for encoding steps and results run the program by following how to run and setting decoder and encoder build, clear, verify with make file in Linux verify and compare the y,u,v files
  • 13. NCNU 13 OUTLINE Video Encoder and D ecoder Follow Processing B uild Environment and plat f orm Source code St ruct ure B uild and R unning R es ult and Tes ting Open Sour c e and Shar ing
  • 14. NCNU 14 Compile B u i l d make all Run terminal from base cd src/mpeg2dec; make 'CC=$(CC)' 'CFLAGS=$(CFLAGS) $(USE_DISP) $(USE_SHMEM) $(INCLUDEDIR)' 'LIBS=$(LIBS)' 'LIBRARYDIR=$(LIBRARYDIR)' cd src/mpeg2enc; make 'CC=$(CC)' 'CFLAGS=$(CFLAGS)' compile and build application program from c coding files
  • 15. NCNU 15 Compile R u n n i n g E n c o d i n g Run terminal from base/vip_run/NSPOStep/01_Encoder_From_OriginalYUVFiles ./run Encoder to video (.m2v file) from Y,U,V files in this folder Y,U,V files Video
  • 16. NCNU 16 Compile R u n n i n g D e c o d i n g Run terminal from base/vip_run/NSPOStep/02_Decoder ./run Decoder to raw files (y,u,v files) from video file in this folder Video Y,U,V files
  • 17. NCNU 17 OUTLINE Video Encoder and D ecoder Follow Processing B uild Environment and plat f orm Source code St ruct ure B uild and R unning R esult and Test ing Open Sour c e and Shar ing
  • 18. NCNU 18 Compile Te s t r e s u l t Test result following Encoderaw files (y,u,v) video Video bit stream file (m2v) Decode new raw files (y,u,v) Re - Encode new video bit stream (m2v) Method 1
  • 19. NCNU 19 Compile Te s t r e s u l t Run terminal from base/vip_run/NSPOStep/03_Re-generate ./run Encoder to video (.m2v file) from Y,U,V files in this folder Y,U,V files Video compare 2 videos
  • 20. NCNU 20 Test Result video new video M e t h o d 1
  • 21. NCNU 21 Compile Te s t r e s u l t Test result following Method 2 Encoderaw files (y,u,v) video Video bit stream file (m2v) Decode new raw files (y,u,v)
  • 23. NCNU 23 Test ResultM e t h o d 2 frame PSNR SSIM CORR 0 45.975796 0.999849 0.999849 1 41.889598 0.999613 0.999613 2 43.589393 0.999739 0.999739 3 42.729516 0.999681 0.999681 4 43.198931 0.999713 0.999713 5 43.028686 0.999701 0.999701 6 42.926901 0.999693 0.999693 7 42.876321 0.999688 0.999688 8 42.769623 0.999679 0.999679 9 43.501731 0.999729 0.999729 10 42.814954 0.999683 0.999683 11 42.835131 0.999684 0.999684 12 43.375576 0.999720 0.999720 13 42.628467 0.999668 0.999668 14 42.959773 0.999691 0.999692 15 43.070152 0.999699 0.999699 16 42.551532 0.999660 0.999661 17 42.410728 0.999649 0.999649 18 43.280877 0.999713 0.999713 19 42.529491 0.999662 0.999662 20 42.372863 0.999654 0.999654 21 43.105288 0.999710 0.999710 22 42.617172 0.999680 0.999680 23 42.536375 0.999676 0.999676 24 42.926806 0.999704 0.999704 25 42.396017 0.999666 0.999666 26 42.256007 0.999654 0.999654 27 43.184471 0.999722 0.999722 28 42.190230 0.999652 0.999653 29 42.655385 0.999688 0.999688 AVG 42.90612637 0.999690667 0.999690767
  • 24. NCNU 24 OUTLINE Video Encoder and D ecoder Follow Processing B uild Environment and plat f orm Source code St ruct ure B uild and R unning R esult and Test ing Open Source and Sharing
  • 25. NCNU 25 Source code S h a r i n g a n d m o d i f y Download and source code detail: https://github.com/trongan93/viplab-videocoding-mpeg2 Modify and sharing by ViP Lab - NCNU Download from this link or use command line git clone https://github.com/trongan93/viplab-videocoding-mpeg2.git