SlideShare a Scribd company logo
Video Conversion




    www.prodigyview.com
Overview
Objective
Learn how to convert videos using PVVideo class
Requirements
 Installed version of ffmpeg
 Understanding of ffmpeg from ffmpeg tutorial
 Understanding of the defines
Estimated Time
12 minutes


                     www.prodigyview.com
Follow Along With A Code
          Example
1. Download a copy of the example code at
  www.prodigyview.com/source.

2. Install the system in an environment you feel
  comfortable testing in.

3. Proceed to examples/avi/Video_Conversion.php




                   http://www.prodigyview.com
PVVideo
To begin this tutorial, we are going to initialize the
PVVideo class. Initialization primary purpose to set the
location of the ffmpeg on your server.




                      www.prodigyview.com
Video Conversion
The most basic way of using the PVVideo class is
converting a video. All that is required is the input video
file and the location to output a new video file.


1. Input File to Convert




                           2. Location and name to save the converted file
Options
We will want to add options to our video conversion such
as creating images, delayed start, duration, etc. To utilize
the options, we need to first know the options that can be
passed to FFMPEG. Review and reference them here.

     http://ffmpeg.org/ffmpeg.html#Video-Options

If you are new to ffmpeg, please view the tutorial on using
ffmpeg.




                      www.prodigyview.com
Output Options
An option that is specified in ffmpeg video is -vcodec,
which adds a codec to the conversion of the file. To add
the options to our output file, we prefix the option in an
array with ‘output_’ followed by the ffmpeg option to be
used. Pass the option array to the conversion process.


  FFMPEG vcodec option being applied to the output file




                             The options being applied to the conversion
Delay Start Time
There maybe be instances where you want to delay the
start time of your video. In FFMPEG this would be
accomplished with the –ss option.


  1. Delay start time by 20 seconds




                                      2. Pass options
Making Previews
If we can delay our start time, we can also see for how
long our video runs. In other words, we can make short
snippet and previews of a video. We use the –t option in
ffmpeg.

  1. Delayed start time                 2. Only convert 30 seconds




                           3. Pass options to conversion
Images Output
Up until now, we have dealt with video conversions to other
video formats. We can further manipulate PVVideo options to
convert video files to images. We are going to use the ffmpeg
options, -r, -f, and –vframes.


  1. Limit the number of images created to 20




2. Force to image format             3. Image name with 3 numeric format
Delayed Image Output
For our final demonstration on how to use the options, we
are going to make images with a delay and set amount.
For this last slide, figure out what the options are based
off the previous slides.




                     www.prodigyview.com
More Tutorials
For more tutorials, please visit:

http://www.prodigyview.com/tutorials




                     www.prodigyview.com

More Related Content

Viewers also liked

MARKETING TECHNOLOGY LUMAscape
MARKETING TECHNOLOGY LUMAscapeMARKETING TECHNOLOGY LUMAscape
MARKETING TECHNOLOGY LUMAscape
LUMA Partners
 

Viewers also liked (8)

Managerial Economic notes 1st sem mba
 Managerial Economic notes 1st sem mba  Managerial Economic notes 1st sem mba
Managerial Economic notes 1st sem mba
 
DISPLAY LUMAscape
DISPLAY LUMAscapeDISPLAY LUMAscape
DISPLAY LUMAscape
 
MARKETING TECHNOLOGY LUMAscape
MARKETING TECHNOLOGY LUMAscapeMARKETING TECHNOLOGY LUMAscape
MARKETING TECHNOLOGY LUMAscape
 
10 E-Learning Trends to watch in 2016
10 E-Learning Trends to watch in 201610 E-Learning Trends to watch in 2016
10 E-Learning Trends to watch in 2016
 
The Future of Music: What Every Business Can Learn From The State of The Musi...
The Future of Music: What Every Business Can Learn From The State of The Musi...The Future of Music: What Every Business Can Learn From The State of The Musi...
The Future of Music: What Every Business Can Learn From The State of The Musi...
 
[Infographic] How will Internet of Things (IoT) change the world as we know it?
[Infographic] How will Internet of Things (IoT) change the world as we know it?[Infographic] How will Internet of Things (IoT) change the world as we know it?
[Infographic] How will Internet of Things (IoT) change the world as we know it?
 
Mobile-First SEO - The Marketers Edition #3XEDigital
Mobile-First SEO - The Marketers Edition #3XEDigitalMobile-First SEO - The Marketers Edition #3XEDigital
Mobile-First SEO - The Marketers Edition #3XEDigital
 
Build Features, Not Apps
Build Features, Not AppsBuild Features, Not Apps
Build Features, Not Apps
 

Similar to Video Conversion PHP

MacVide FlashVideo Converter UserGuide
MacVide FlashVideo Converter UserGuideMacVide FlashVideo Converter UserGuide
MacVide FlashVideo Converter UserGuide
MacVide
 
Cam Studio Introduction
Cam Studio IntroductionCam Studio Introduction
Cam Studio Introduction
barrymacd
 
Menerapkan efek khusus pada objek produksi eng
Menerapkan efek khusus pada objek produksi engMenerapkan efek khusus pada objek produksi eng
Menerapkan efek khusus pada objek produksi eng
Eko Supriyadi
 
Kristine Nikoghosyan
Kristine NikoghosyanKristine Nikoghosyan
Kristine Nikoghosyan
kissul
 
Kristine Nikoghosyan
Kristine NikoghosyanKristine Nikoghosyan
Kristine Nikoghosyan
kissul
 
Task 1 editing technology
Task 1   editing technology Task 1   editing technology
Task 1 editing technology
alfiewc
 
Vortragturku2
Vortragturku2Vortragturku2
Vortragturku2
ukrope
 

Similar to Video Conversion PHP (20)

MacVide FlashVideo Converter UserGuide
MacVide FlashVideo Converter UserGuideMacVide FlashVideo Converter UserGuide
MacVide FlashVideo Converter UserGuide
 
Research on Audio and Video Streaming
Research on Audio and Video StreamingResearch on Audio and Video Streaming
Research on Audio and Video Streaming
 
Cam Studio Introduction
Cam Studio IntroductionCam Studio Introduction
Cam Studio Introduction
 
Video formats guide
Video formats guideVideo formats guide
Video formats guide
 
Trascrption plusv3
Trascrption plusv3Trascrption plusv3
Trascrption plusv3
 
Adobe premiere pro brochure
Adobe premiere pro   brochureAdobe premiere pro   brochure
Adobe premiere pro brochure
 
Video Production Using Open Source Tools
Video Production Using Open Source ToolsVideo Production Using Open Source Tools
Video Production Using Open Source Tools
 
Menerapkan efek khusus pada objek produksi eng
Menerapkan efek khusus pada objek produksi engMenerapkan efek khusus pada objek produksi eng
Menerapkan efek khusus pada objek produksi eng
 
Starting windows live movie maker
Starting windows live movie makerStarting windows live movie maker
Starting windows live movie maker
 
Pinnacle Video Project 2
Pinnacle Video Project 2Pinnacle Video Project 2
Pinnacle Video Project 2
 
Kristine Nikoghosyan
Kristine NikoghosyanKristine Nikoghosyan
Kristine Nikoghosyan
 
Kristine Nikoghosyan
Kristine NikoghosyanKristine Nikoghosyan
Kristine Nikoghosyan
 
Uploading from Everio to NIng
Uploading from Everio to NIngUploading from Everio to NIng
Uploading from Everio to NIng
 
Task 1 editing technology
Task 1   editing technology Task 1   editing technology
Task 1 editing technology
 
Understanding flash video
Understanding flash videoUnderstanding flash video
Understanding flash video
 
Audio and Video Streaming
Audio and Video StreamingAudio and Video Streaming
Audio and Video Streaming
 
Vortragturku2
Vortragturku2Vortragturku2
Vortragturku2
 
Non interactive materials
Non interactive materialsNon interactive materials
Non interactive materials
 
Slideshare video production_guide-part2-editing
Slideshare video production_guide-part2-editingSlideshare video production_guide-part2-editing
Slideshare video production_guide-part2-editing
 
Streaming in grails
Streaming in grailsStreaming in grails
Streaming in grails
 

More from ProdigyView

More from ProdigyView (20)

Installing Plug-ins
Installing Plug-insInstalling Plug-ins
Installing Plug-ins
 
Building An Application
Building An ApplicationBuilding An Application
Building An Application
 
Installing Applications
Installing ApplicationsInstalling Applications
Installing Applications
 
Video Content Management
Video Content ManagementVideo Content Management
Video Content Management
 
Audio Content Management
Audio Content ManagementAudio Content Management
Audio Content Management
 
File Content Management
File Content ManagementFile Content Management
File Content Management
 
Email Configuration
Email ConfigurationEmail Configuration
Email Configuration
 
HTML5 Tags and Elements Tutorial
HTML5 Tags and Elements TutorialHTML5 Tags and Elements Tutorial
HTML5 Tags and Elements Tutorial
 
HTML Forms Tutorial
HTML Forms TutorialHTML Forms Tutorial
HTML Forms Tutorial
 
Html Tags Tutorial
Html Tags TutorialHtml Tags Tutorial
Html Tags Tutorial
 
Sending Email Basics PHP
Sending Email Basics PHPSending Email Basics PHP
Sending Email Basics PHP
 
Tools ProdigyView
Tools ProdigyViewTools ProdigyView
Tools ProdigyView
 
Custom Validation PHP
Custom Validation PHPCustom Validation PHP
Custom Validation PHP
 
Basic File Cache Tutorial - PHP
Basic File Cache Tutorial - PHPBasic File Cache Tutorial - PHP
Basic File Cache Tutorial - PHP
 
Understanding Web Cache
Understanding Web CacheUnderstanding Web Cache
Understanding Web Cache
 
Javascript And CSS Libraries
Javascript And CSS LibrariesJavascript And CSS Libraries
Javascript And CSS Libraries
 
PHP Libraries
PHP LibrariesPHP Libraries
PHP Libraries
 
SQL Prepared Statements Tutorial
SQL Prepared Statements TutorialSQL Prepared Statements Tutorial
SQL Prepared Statements Tutorial
 
Database Basics
Database BasicsDatabase Basics
Database Basics
 
Implementing the Adapter Design Pattern
Implementing the Adapter Design PatternImplementing the Adapter Design Pattern
Implementing the Adapter Design Pattern
 

Recently uploaded

Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
UXDXConf
 

Recently uploaded (20)

Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
Buy Epson EcoTank L3210 Colour Printer Online.pptx
Buy Epson EcoTank L3210 Colour Printer Online.pptxBuy Epson EcoTank L3210 Colour Printer Online.pptx
Buy Epson EcoTank L3210 Colour Printer Online.pptx
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
 
A Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyA Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System Strategy
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutes
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. Startups
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
 
IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at Comcast
 
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeFree and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
 
Top 10 Symfony Development Companies 2024
Top 10 Symfony Development Companies 2024Top 10 Symfony Development Companies 2024
Top 10 Symfony Development Companies 2024
 
UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2
 

Video Conversion PHP

  • 1. Video Conversion www.prodigyview.com
  • 2. Overview Objective Learn how to convert videos using PVVideo class Requirements  Installed version of ffmpeg  Understanding of ffmpeg from ffmpeg tutorial  Understanding of the defines Estimated Time 12 minutes www.prodigyview.com
  • 3. Follow Along With A Code Example 1. Download a copy of the example code at www.prodigyview.com/source. 2. Install the system in an environment you feel comfortable testing in. 3. Proceed to examples/avi/Video_Conversion.php http://www.prodigyview.com
  • 4. PVVideo To begin this tutorial, we are going to initialize the PVVideo class. Initialization primary purpose to set the location of the ffmpeg on your server. www.prodigyview.com
  • 5. Video Conversion The most basic way of using the PVVideo class is converting a video. All that is required is the input video file and the location to output a new video file. 1. Input File to Convert 2. Location and name to save the converted file
  • 6. Options We will want to add options to our video conversion such as creating images, delayed start, duration, etc. To utilize the options, we need to first know the options that can be passed to FFMPEG. Review and reference them here. http://ffmpeg.org/ffmpeg.html#Video-Options If you are new to ffmpeg, please view the tutorial on using ffmpeg. www.prodigyview.com
  • 7. Output Options An option that is specified in ffmpeg video is -vcodec, which adds a codec to the conversion of the file. To add the options to our output file, we prefix the option in an array with ‘output_’ followed by the ffmpeg option to be used. Pass the option array to the conversion process. FFMPEG vcodec option being applied to the output file The options being applied to the conversion
  • 8. Delay Start Time There maybe be instances where you want to delay the start time of your video. In FFMPEG this would be accomplished with the –ss option. 1. Delay start time by 20 seconds 2. Pass options
  • 9. Making Previews If we can delay our start time, we can also see for how long our video runs. In other words, we can make short snippet and previews of a video. We use the –t option in ffmpeg. 1. Delayed start time 2. Only convert 30 seconds 3. Pass options to conversion
  • 10. Images Output Up until now, we have dealt with video conversions to other video formats. We can further manipulate PVVideo options to convert video files to images. We are going to use the ffmpeg options, -r, -f, and –vframes. 1. Limit the number of images created to 20 2. Force to image format 3. Image name with 3 numeric format
  • 11. Delayed Image Output For our final demonstration on how to use the options, we are going to make images with a delay and set amount. For this last slide, figure out what the options are based off the previous slides. www.prodigyview.com
  • 12. More Tutorials For more tutorials, please visit: http://www.prodigyview.com/tutorials www.prodigyview.com