FFMPEG On The IBM Cloud - Virginia Tech

2y ago
11 Views
2 Downloads
382.14 KB
15 Pages
Last View : 1m ago
Last Download : 3m ago
Upload by : Abby Duckworth
Transcription

FFMPEG on the IBM CloudTeam 8: Rishi Ishairzay, Puloma De, AndrewHwang

Content Intro to FFMPEG Basics of Video The Server Basics of FFMPEG Little more in-depth with FFMPEG Examples

FFMPEG Stands for Fast Forward MPEG Completely open source Used by thousands of videoenabled websites Supports encoding/modifyingvideo/audio/image formats Extremely thorough set ofoptions

Audio Encoding Audio Sample Rate Audio Bitrate Number of samples per second (e.g. 48 kHz)How much data is used to represent a single second of audio (e.g.128kbps)Audio Codec Specific algorithm to use for representing the audio (e.g. MP3,FLAC, etc.)

Video Encoding Frame Rate Video Dimensions Height and width of each frame in the videoCropping/Padding Amount of frames per secondAmount of pixels to chop off from the edge of the video or amountof pixels to add to the edge of the video.Video Codec Specific algorithm used to represent the data

How we did itGetting FFMPEG installed in 5 steps curl http://ffmpeg.org/releases/ffmpeg-0.10.2.tar.gz tar xz cd ffmpeg-0.10.2/ ./configure --disable-yasm make make installThese steps (and more) have already been done for you on the server.The standard FFMPEG install provides support for basic videoand audio formats. Other codecs are supported throughseparate installations.

Working with FFMPEGBasic Commands ffmpeg –i Input -s Dimensions –b:v Bitrate -codec:v Codec . Bitrate – Video bitrate in kbits/s (e.g. 768kbps)Codec – Video codec (e.g. libxvid) –bt Tolerance -r Frame rate Input – Source video fileDimensions – Width x Height (e.g. 800x600)Tolerance – The acceptable variance in bitrateFrame rate – The frame rate for the output file -codec:a Codec -b:a Bitrate Codec – Audio codec (e.g. mp3)Bitrate – Audio bitrate in kbits/s

Let’s see it in action ffmpeg -i input.mpeg -s 640x266-b:v 512k -bt 240k -codec:vlibx264 -codec:a ac3 -b:a 192k output.avi Takes in input.mpeg Sets the size of the output video to 640x266pxSets the bit rate of the video to 512kbps Allows a fluctuation of 240kbps in video quality, which allows thequality to range from 392kbps (for low action scenes) to 632kbps(for high action scenes) Sets the video codec to libx264Sets the audio codec to ac3 Sets the audio bitrate to 192kbps Outputs file to output.avi

Do it! Before running any commands, switch into your teamdirectory /ffmpeg/teams/ team name Try executing the command with your own input file (or usethe one provided – /ffmpeg/transform.mov) If the directory doesn’t exist, then make it!If you don’t have a sample file to work with, you can download amovie trailer with the command below.curl -A QuickTime -O rmers3/transformers3-sbspot h720p.movShould look something like this:

Congratulations!You just started a video conversion with FFMPEG!You should be seeinga screen like the oneon the right, outlininghow much progresshas been made alongwith the metadataassociated with theinput and outputstreams.P.S. The video you justcreated is the exactformat that iPhonesand iPads are capableof playing.

Let’s access your converted file The nginx web server is installed on the cloud module, youcan access your files by visiting the IP address of the cloudinstance in your browser. If the page doesn’t load then it’s possible nginx isn’t running,you can start nginx with the following command: sudo /usr/local/nginx/sbin/nginx

More advanced options -ss Position -t Duration -vf crop Width : Height : X : Y Set the start position and duration of the output file (used to trim a file,e.g. –ss 00:00:05 –t 00:00:10 which trims from 5 – 15 seconds).Crop a video dimensions starting at (X, Y) with the dimensions Widthx Height-vf pad Width : Height : X : Y : Color Pad a video to fit a size staring at (X, Y) with the dimensions Width xHeight with a color to fill the excess space (in hex). -frames:v Frames The amount of video frames to output

Putting it to use Using a combination of the previous options, you’re capableof performing some advanced operations. The below command grabs a thumbnail from a video at 5seconds and saves it as thumb.jpgffmpeg -i input.mov -ss 00:00:05 -codec:v mjpeg -frames:v 1 -s320x240 thumb.jpgTry it out!

And there’s more! This tutorial has only been a small glimpse of what’s possiblewith FFMPEG. To view all the commands please visit:http://ffmpeg.org/ffmpeg.html You now have the ability to perform basic conversions via thecommand line. FFMPEG is used in production environmentsall over the web – try to do something interesting with it!

Thank you! Created by Rishi Ishairzay (rishair@vt.edu) Puloma De (pulomad@vt.edu)Andrew Hwang (ajhwang@vt.edu)

Let’s see it in action ffmpeg -i input.mpeg -s 640x266-b:v 512k -bt 240k -codec:v libx264 -codec:a ac3 -b:a 192k output.avi Takes in input.mpeg Sets the size of the output video to 640x266px Sets the bit rate of the video to 512kbps Allows a fluctuation of 240kbps in video quality, which allows the quality

Related Documents:

FFmpeg 1. The Software uses FFmpeg under the LGPL 2.1. Licensor does not own FFmpeg. This software uses code of FFmpeg licensed under the LGPLv2.1 and its source can be downloaded here . Customer may copy and distribute verbatim copies of FFmpeg so urce code as it receives it, in any

May 02, 2018 · D. Program Evaluation ͟The organization has provided a description of the framework for how each program will be evaluated. The framework should include all the elements below: ͟The evaluation methods are cost-effective for the organization ͟Quantitative and qualitative data is being collected (at Basics tier, data collection must have begun)

Silat is a combative art of self-defense and survival rooted from Matay archipelago. It was traced at thé early of Langkasuka Kingdom (2nd century CE) till thé reign of Melaka (Malaysia) Sultanate era (13th century). Silat has now evolved to become part of social culture and tradition with thé appearance of a fine physical and spiritual .

On an exceptional basis, Member States may request UNESCO to provide thé candidates with access to thé platform so they can complète thé form by themselves. Thèse requests must be addressed to esd rize unesco. or by 15 A ril 2021 UNESCO will provide thé nomineewith accessto thé platform via their émail address.

̶The leading indicator of employee engagement is based on the quality of the relationship between employee and supervisor Empower your managers! ̶Help them understand the impact on the organization ̶Share important changes, plan options, tasks, and deadlines ̶Provide key messages and talking points ̶Prepare them to answer employee questions

Dr. Sunita Bharatwal** Dr. Pawan Garga*** Abstract Customer satisfaction is derived from thè functionalities and values, a product or Service can provide. The current study aims to segregate thè dimensions of ordine Service quality and gather insights on its impact on web shopping. The trends of purchases have

4 FFmpeg and the ecosystem FFmpeg – Defacto standard for most of the OTT/cloud encoding – Often used with x264, libvpx and other open source libraries – Numerous non-open-source libraries plugins for FFmpeg – Numerous MAM and cloud APIs are just rewrapping FFmpeg Adaptive – HLS input and output support –

format, as the native FFMPEG may not have this feature for legal reasons. On Linux Ubuntu, you may install FFMPEG with: sudo apt-get install ffmpeg Or better, recompile FFMPEG wi