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

Managerial Economic notes 1st sem mba
 Managerial Economic notes 1st sem mba  Managerial Economic notes 1st sem mba
Managerial Economic notes 1st sem mba Babasab Patil
 
MARKETING TECHNOLOGY LUMAscape
MARKETING TECHNOLOGY LUMAscapeMARKETING TECHNOLOGY LUMAscape
MARKETING TECHNOLOGY LUMAscapeLUMA Partners
 
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 2016Aurion Learning
 
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...Altimeter, a Prophet Company
 
[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?InterQuest Group
 
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 #3XEDigitalAleyda Solís
 

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 UserGuideMacVide
 
Research on Audio and Video Streaming
Research on Audio and Video StreamingResearch on Audio and Video Streaming
Research on Audio and Video StreamingNyros Technologies
 
Cam Studio Introduction
Cam Studio IntroductionCam Studio Introduction
Cam Studio Introductionbarrymacd
 
Trascrption plusv3
Trascrption plusv3Trascrption plusv3
Trascrption plusv3Ahmed NE
 
Adobe premiere pro brochure
Adobe premiere pro   brochureAdobe premiere pro   brochure
Adobe premiere pro brochureZabeel Institute
 
Video Production Using Open Source Tools
Video Production Using Open Source ToolsVideo Production Using Open Source Tools
Video Production Using Open Source ToolsCrazed Mule
 
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 engEko Supriyadi
 
Starting windows live movie maker
Starting windows live movie makerStarting windows live movie maker
Starting windows live movie makerJay Mark Viloan
 
Pinnacle Video Project 2
Pinnacle Video Project 2Pinnacle Video Project 2
Pinnacle Video Project 2brandonkelly
 
Kristine Nikoghosyan
Kristine NikoghosyanKristine Nikoghosyan
Kristine Nikoghosyankissul
 
Kristine Nikoghosyan
Kristine NikoghosyanKristine Nikoghosyan
Kristine Nikoghosyankissul
 
Uploading from Everio to NIng
Uploading from Everio to NIngUploading from Everio to NIng
Uploading from Everio to NIngBrian Dixon
 
Task 1 editing technology
Task 1   editing technology Task 1   editing technology
Task 1 editing technology alfiewc
 
Vortragturku2
Vortragturku2Vortragturku2
Vortragturku2ukrope
 
Non interactive materials
Non interactive materialsNon interactive materials
Non interactive materialsu082929
 

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

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

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

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áCzechDreamin
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Alison B. Lowndes
 
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...CzechDreamin
 
Optimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityOptimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityScyllaDB
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...UiPathCommunity
 
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...CzechDreamin
 
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 Minutesconfluent
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesThousandEyes
 
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomSalesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomCzechDreamin
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxAbida Shariff
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlPeter Udo Diehl
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Tobias Schneck
 
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)Julian Hyde
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaRTTS
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonDianaGray10
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyJohn Staveley
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIES VE
 
Introduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG EvaluationIntroduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG EvaluationZilliz
 
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀DianaGray10
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backElena Simperl
 

Recently uploaded (20)

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á
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
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...
 
Optimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityOptimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through Observability
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
 
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
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomSalesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 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)
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John Staveley
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and Planning
 
Introduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG EvaluationIntroduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG Evaluation
 
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 

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