Lunch and Learn - FFmpeg

4,065 views

Published on

What is FFmpeg and what you can do with it.
You can create your own video sharing website (like youtube)

Published in: Technology, Education
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
4,065
On SlideShare
0
From Embeds
0
Number of Embeds
23
Actions
Shares
0
Downloads
61
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Lunch and Learn - FFmpeg

  1. 1. Lunch and Learn FFmpeg Solution to record, convert and stream audio video uudashr@gmail.com
  2. 2. Video ● Picture can express a thousand words ● How about video? ● Ffmpeg – Audio/Video conversion tool – Incudes libavcodec, the leading open source codec library
  3. 3. Why FFmpeg? ● Open Source ● http://www.ffmpeg.org/ ● http://ffmpegx.com/ (GUI-based ffmpeg for mac os x) ● Can be used as command-line tool ● Can be used as library (.so or .dll) – Java Native Interface (JNI) – Java Native Access (JNA)
  4. 4. ffmpegX
  5. 5. What can FFmpeg do? ● Video conversion – Store data on standard format – Compress the video to smaller size – Provide data to browser with standard format ● Extract video frame – Thumbnail creation
  6. 6. Usage ● File conversion – ffmpeg -i [videofile] -acodec mp3 -ar 22050 -ab 32 -f flv -s 320x240 [flashfile.flv] ● Extract video frame – ffmpeg -y -i [videofile] -vframes 1 -ss 00:00:02 -an -vcodec png -f rawvideo -s 320x240 [thumbnailimage.png] – ffmpeg -itoffset -4 -i [videofile] -vcodec mjpeg -vframes 1 -an -f rawvideo 320x240 [thumbnailimage.jpg]
  7. 7. Common Video Formats ● avi ● flv ● mov ● wmv ● 3gp ● 3gp2
  8. 8. Related Work ● Video thumbnail creation – Upload video to server – Frame extraction – Save image path to Database – Upload to Amazon (or keep it on server)
  9. 9. Possibilities ● Convert video to standard format – Save spaces ● Player consideration – Video player using flash ● Custom (create your own flash video player) ● FlowPlayer http://flowplayer.org (GPL 3) – Why Flash? Most of browser has Flash plugins ● You can make youtube like site :-D
  10. 10. Thank you

×