vietnam mobile day 2013: multimedia ffmpeg

20
Multimedia FFMPEG TRẦN QUANG LONG

Upload: gamelandvn

Post on 17-May-2015

928 views

Category:

Technology


0 download

DESCRIPTION

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.

TRANSCRIPT

Page 1: Vietnam Mobile Day 2013: Multimedia FFMPEG

Multimedia FFMPEGTRẦN QUANG LONG

Page 2: Vietnam Mobile Day 2013: Multimedia FFMPEG

ProfileHọ tên: Trần Quang Long

Chức danh: Phó phòng công nghệ Android

Thành tích nổi bật: Phát triển mobile cho các khách hàng lớn của Mỹ như SK Planet, BFF, ShowBucks...

IBM Certification : WebSphere MQ V7.0 WebSphere Commerce V6.0WebSphere Application Server Network Deployment V7.0

Page 3: Vietnam Mobile Day 2013: Multimedia FFMPEG

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: SK Telecom, Atlatl, MessageBroadCast,

MedTalk, ShowBucks…

Page 4: Vietnam Mobile Day 2013: Multimedia FFMPEG

What is FFmpeg ? FFmpeg is a command line tool that is composed of a collection of

free software / open source libraries. FFmpeg can record, convert and stream digital audio and video in

numerous formats. FFmpeg is developed under Linux, but it can compiled under most

operating systems, including Microsoft Windows Mac Osx.

Page 5: Vietnam Mobile Day 2013: Multimedia FFMPEG

Why Use FFMPEG? Android multimedia engine provided by Google.

Page 6: Vietnam Mobile Day 2013: Multimedia FFMPEG

Why Use FFMPEG? Limited codecs available. Fewer resources and the difficulty of coding.

Page 7: Vietnam Mobile Day 2013: Multimedia FFMPEG

Libraries Libavcodec - containing all the FFmpeg audio/video encoders and decoders Libavformat - containing demuxers and muxers for audio/video container

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 modified or

examined between the decoder and the be modified or examined between the decoder and the

Page 8: Vietnam Mobile Day 2013: Multimedia FFMPEG

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

Page 9: Vietnam Mobile Day 2013: Multimedia FFMPEG

Formats FFMPEG supports numerous formats for encoding and decoding ASF, AVI, FLV, MPEG audio, MPEG1, MPEG2, MPEG4, Smacker,

WAV, raw AC-3, PCM 8/16/32 bits, RealMedia, MOV/QuickTime, Monkey's Audio, VOC....

Image : GIF, JPEG, PCX, PNG, RAS, Tga, TIFF... http://ffmpeg.mplayerhq.hu/general.html

Page 10: Vietnam Mobile Day 2013: Multimedia FFMPEG

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

Page 11: Vietnam Mobile Day 2013: Multimedia FFMPEG

Transport HTTP/HTTPS RTP/RTSP/RTMP MMS HTTP Live Streaming with multiple bitrate

Page 12: Vietnam Mobile Day 2013: Multimedia FFMPEG

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

Page 13: Vietnam Mobile Day 2013: Multimedia FFMPEG

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

Page 14: Vietnam Mobile Day 2013: Multimedia FFMPEG

SETA mp3 streaming framework

Page 15: Vietnam Mobile Day 2013: Multimedia FFMPEG

SETA mp3 streaming framework

Page 16: Vietnam Mobile Day 2013: Multimedia FFMPEG

SETA mp3 streaming framework

Page 17: Vietnam Mobile Day 2013: Multimedia FFMPEG

JNI

private native int nativeConnect( String url ) throws IOException;

Page 18: Vietnam Mobile Day 2013: Multimedia FFMPEG

JNI

private native int nativeRead( int mms, byte[] b, int off, int len ) throws IOException;

Page 19: Vietnam Mobile Day 2013: Multimedia FFMPEG

JNI

private native void nativeClose( int mms ) throws IOException;

Page 20: Vietnam Mobile Day 2013: Multimedia FFMPEG

THANK YOU!

http://www.seta-international.com/