Vietnam Mobile Day 2013: Multimedia FFMPEG

1,134 views
1,020 views

Published on

Bài chia sẻ của anh Trần Quang Long, Phó phòng công nghệ Android công ty Seta tại hội thảo Vietnam Mobile Day 2013 tổ chức tại Hà Nội vào ngày 11/05/2013.

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,134
On SlideShare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
13
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Vietnam Mobile Day 2013: Multimedia FFMPEG

  1. 1. TRẦN QUANG LONG
  2. 2. ProfileHọ tên: Trần Quang LongChức danh: Phó phòng công nghệ AndroidThành tích nổi bật: Phát triển mobile cho các khách hàng lớncủa Mỹ như SK Planet, BFF, ShowBucks...IBM Certification :WebSphere MQ V7.0WebSphere Commerce V6.0WebSphere Application Server Network Deployment V7.0
  3. 3. SETA:CINQ Vietnam, Ltd Thành lập năm 2009 Số lượng nhân viên 170 Thị trường chính: US, Europe, và JP Khách hàng tiêu biểu: SKTelecom, Atlatl, MessageBroadCast, MedTalk, ShowBucks…
  4. 4. What is FFmpeg ? FFmpeg is a command line tool that is composed of a collection offree software / open source libraries. FFmpeg can record, convert and stream digital audio and video innumerous formats. FFmpeg is developed under Linux, but it can compiled under mostoperating systems, including Microsoft Windows Mac Osx.
  5. 5. Why Use FFMPEG? Android multimedia engine provided by Google.
  6. 6. Why Use FFMPEG? Limited codecs available. Fewer resources and the difficulty of coding.
  7. 7. Libraries Libavcodec - containing all the FFmpeg audio/video encoders anddecoders Libavformat - containing demuxers and muxers for audio/videocontainer formats. Libavutil - containing routines common. Libpostproc - containing video postprocessing routines. Libswscale - containing video image scaling routines Libavfilter - substitute for vhook which allows the video to be modifiedor examined between the decoder and the be modified or examinedbetween the decoder and the
  8. 8. Codecs Video Codecs H.261, H.263 and H.264 MPEG-4, RMVB, XVID, MS MPEG-4, VP6, MPEG-1,MPEG-2 Audio Codecs AAC, Vorbis, FLAC, MP3, MP2, WMA
  9. 9. Formats FFMPEG supports numerous formats for encoding and decoding ASF, AVI, FLV, MPEGaudio, MPEG1, MPEG2, MPEG4, Smacker, WAV, raw AC-3, PCM8/16/32 bits, RealMedia, MOV/QuickTime, MonkeysAudio, VOC.... Image : GIF, JPEG, PCX, PNG, RAS, Tga, TIFF... http://ffmpeg.mplayerhq.hu/general.html
  10. 10. Ffmpeg Commands Video and Audio file format conversion ffmpeg -i /tmp/test.mpg /tmp/out.avi Several input files and output files ffmpeg -i /tmp/a.wav -s 640x480 -i /tmp/a.yuv /tmp/a.mpg ffmpeg -i/tmp/a.wav -s 640x480 -i /tmp/a.yuv /tmp/a.mpg Extract images from a video ffmpeg -i foo.avi -r 1 -s WxH -f image2 foo-%03d.jpeg
  11. 11. Transport HTTP/HTTPS RTP/RTSP/RTMP MMS HTTP Live Streaming with multiple bitrate
  12. 12. FFMPEG- JAVA/Android Object-oriented API for Java Retrieving information from video and audio files Frames from movie files as images Used for automatically creating thumbnail images from movies Reporting the duration and bitrate of audio files
  13. 13. SETA mp3 streaming framework The SETA mp3 streaming is an framework wrapper by setacinq Mp3 streaming features Mp3 streaming is a complete, solution to record, convert and stream audio
  14. 14. SETA mp3 streaming framework
  15. 15. SETA mp3 streaming framework
  16. 16. SETA mp3 streaming framework
  17. 17. JNI private native int nativeConnect( String url )throws IOException;
  18. 18. JNI private native int nativeRead( int mms, byte[]b, int off, int len ) throws IOException;
  19. 19. JNI private native void nativeClose( int mms )throws IOException;
  20. 20. THANK YOU! http://www.seta-international.com/

×