Video Conversion    www.prodigyview.com
OverviewObjectiveLearn how to convert videos using PVVideo classRequirements Installed version of ffmpeg Understanding o...
Follow Along With A Code          Example1. Download a copy of the example code at  www.prodigyview.com/source.2. Install ...
PVVideoTo begin this tutorial, we are going to initialize thePVVideo class. Initialization primary purpose to set thelocat...
Video ConversionThe most basic way of using the PVVideo class isconverting a video. All that is required is the input vide...
OptionsWe will want to add options to our video conversion suchas creating images, delayed start, duration, etc. To utiliz...
Output OptionsAn option that is specified in ffmpeg video is -vcodec,which adds a codec to the conversion of the file. To ...
Delay Start TimeThere maybe be instances where you want to delay thestart time of your video. In FFMPEG this would beaccom...
Making PreviewsIf we can delay our start time, we can also see for howlong our video runs. In other words, we can make sho...
Images OutputUp until now, we have dealt with video conversions to othervideo formats. We can further manipulate PVVideo o...
Delayed Image OutputFor our final demonstration on how to use the options, weare going to make images with a delay and set...
More TutorialsFor more tutorials, please visit:http://www.prodigyview.com/tutorials                     www.prodigyview.com
Upcoming SlideShare
Loading in …5
×

Video Conversion PHP

3,132 views

Published on

Learn how to use the video conversion in ProdigyView. In this video learn about delayed start times, setting duration, and images from videos.

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
3,132
On SlideShare
0
From Embeds
0
Number of Embeds
33
Actions
Shares
0
Downloads
33
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Video Conversion PHP

  1. 1. Video Conversion www.prodigyview.com
  2. 2. OverviewObjectiveLearn how to convert videos using PVVideo classRequirements Installed version of ffmpeg Understanding of ffmpeg from ffmpeg tutorial Understanding of the definesEstimated Time12 minutes www.prodigyview.com
  3. 3. Follow Along With A Code Example1. 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. 4. PVVideoTo begin this tutorial, we are going to initialize thePVVideo class. Initialization primary purpose to set thelocation of the ffmpeg on your server. www.prodigyview.com
  5. 5. Video ConversionThe most basic way of using the PVVideo class isconverting a video. All that is required is the input videofile and the location to output a new video file.1. Input File to Convert 2. Location and name to save the converted file
  6. 6. OptionsWe will want to add options to our video conversion suchas creating images, delayed start, duration, etc. To utilizethe options, we need to first know the options that can bepassed to FFMPEG. Review and reference them here. http://ffmpeg.org/ffmpeg.html#Video-OptionsIf you are new to ffmpeg, please view the tutorial on usingffmpeg. www.prodigyview.com
  7. 7. Output OptionsAn option that is specified in ffmpeg video is -vcodec,which adds a codec to the conversion of the file. To addthe options to our output file, we prefix the option in anarray with ‘output_’ followed by the ffmpeg option to beused. 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. 8. Delay Start TimeThere maybe be instances where you want to delay thestart time of your video. In FFMPEG this would beaccomplished with the –ss option. 1. Delay start time by 20 seconds 2. Pass options
  9. 9. Making PreviewsIf we can delay our start time, we can also see for howlong our video runs. In other words, we can make shortsnippet and previews of a video. We use the –t option inffmpeg. 1. Delayed start time 2. Only convert 30 seconds 3. Pass options to conversion
  10. 10. Images OutputUp until now, we have dealt with video conversions to othervideo formats. We can further manipulate PVVideo options toconvert video files to images. We are going to use the ffmpegoptions, -r, -f, and –vframes. 1. Limit the number of images created to 202. Force to image format 3. Image name with 3 numeric format
  11. 11. Delayed Image OutputFor our final demonstration on how to use the options, weare going to make images with a delay and set amount.For this last slide, figure out what the options are basedoff the previous slides. www.prodigyview.com
  12. 12. More TutorialsFor more tutorials, please visit:http://www.prodigyview.com/tutorials www.prodigyview.com

×