SlideShare uma empresa Scribd logo
1 de 12
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

Mais conteúdo relacionado

Destaque

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

Destaque (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
 

Semelhante a 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
 

Semelhante a 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
 

Mais de ProdigyView

Mais de 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
 

Último

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
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
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 

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