MP 1: Audio/ Video Recorder and Player CS414: Multimedia System Instructor: Klara Nahrstedt February 1 st, 2012.

Slides:



Advertisements
Similar presentations
Chapter 10 Video.
Advertisements

GStreamer as multimedia framework in Android: a new alternative.
CS335 Principles of Multimedia Systems Audio Hao Jiang Computer Science Department Boston College Oct. 11, 2007.
Embedded Streaming Media with GStreamer and BeagleBoard ESC-228 Presented by Santiago Nunez santiago.nunez (at) ridgerun.com.
Using Multimedia on the Web Enhancing a Web Site with Sound, Video, and Applets.
CNIT 132 – Week 9 Multimedia. Working with Multimedia Bandwidth is a measure of the amount of data that can be sent through a communication pipeline each.
Section 9.1 Identify multimedia design guidelines Identify sources of multimedia files Explain the ethical use of multimedia files Describe multimedia.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 14 – Introduction to Multimedia Resource Management Klara Nahrstedt Spring 2012.
Video transmission using USRP
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 15 –QoS Admission, QoS Negotiation, and Establishment of AV Connections Klara Nahrstedt.
EE442—Multimedia Networking Jane Dong California State University, Los Angeles.
Using Digital Video in the Classroom Kevin O’Rourke Associate Production Coordinator Distance Learning and Video Production Center Kevin O’Rourke Associate.
SCA Introduction to Multimedia
Digital Video 1.
Intro Alexei Miagkov: researching GUI networking sound aspects of Java Walter Kammerer: researching networking concepts documenting real-time media concepts.
Tutorial 7 Working with Multimedia. XP Objectives Explore various multimedia applications on the Web Learn about sound file formats and properties Embed.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 34 – Media Server (Part 3) Klara Nahrstedt Spring 2012.
MP 1: Audio/ Video Recorder and Player CS414: Multimedia System Instructor: Klara Nahrstedt February 7 th, 2012.
Flash Video Flash ActionScript 3.0 Introduction to Thomas Lövgren, Flash developer
1 Video and Audio Over The Net Mahdi ZandakbariVesal Hajiabbas.
Video Data Topic 4: Multimedia Technology. What is Video? A video is just a collection of bit-mapped images that when played quickly one after another.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 32 – Media Server (Part 2) Klara Nahrstedt Spring 2012.
CS640: Introduction to Computer Networks
CS 218 F 2003 Nov 3 lecture:  Streaming video/audio  Adaptive encoding (eg, layered encoding)  TCP friendliness References: r J. Padhye, V.Firoiu, D.
CIS679: RTP and RTCP r Review of Last Lecture r Streaming from Web Server r RTP and RTCP.
Video Data Topic 4: Multimedia Technology. What is Video? A video is just a collection of bit-mapped images that when played quickly one after another.
GStreamer: What is Gstreamer, What is new and simple video editing
Embedded Streaming Media with GStreamer and BeagleBoard
Building Scalable and High Efficient Java Multimedia Collaboration Wenjun Wu, Tao Huang, Geoffrey Fox Community Grids Computing Laboratory, Indiana University,
DirectShow.
© 2011 The McGraw-Hill Companies, Inc. All rights reserved Chapter 6: Video.
Tutorial 7 Working with Multimedia. XP Objectives Explore various multimedia applications on the Web Learn about sound file formats and properties Embed.
Multimedia and The Web.
ScreenPlay Director Training By Erik Collett
XP Tutorial 8New Perspectives on HTML and XHTML, Comprehensive 1 Using Multimedia on the Web Enhancing a Web Site with Sound, Video, and Applets Tutorial.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 29 – Buffer Management (Part 2) Klara Nahrstedt Spring 2012.
Tutorial 7 Working with Multimedia
Tutorial 7 Designing a Multimedia Web Site
Tutorial 7 Working with Multimedia. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Explore various multimedia applications.
Tutorial 7 Working with Multimedia. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Explore various multimedia applications.
MP 2: Audio/ Video Streaming
MP3: Multi-view Surveillance System Instructor: Klara Nahrstedt April 20, 2012 CS414.
4/7 Multimedia Roll call Video Lecture: –multimedia sound –multimedia video Image courtesy of
MULTIMEDIA INPUT / OUTPUT TECHNOLOGIES
Sound DirectMusic & DirectSound. DirectShow Video Formats DirectShow is an open architecture, it can support any format as long as there are filters to.
Lab Assignment 15/ INF5060: Multimedia data communication using network processors.
MP design and implementation CS414: Multimedia System Instructor: Klara Nahrstedt April 13, 2012.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 18 – Multimedia Transport (Part 1) Klara Nahrstedt Spring 2014.
Klara Nahrstedt Spring 2012
Introduction to the Media Kit Matt Wronkiewicz Be Users Group at UIUC.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 20 – Multimedia Session Protocols Klara Nahrstedt Spring 2012.
Media Types Information Systems can contain the following types of media: Sound, graphics, video & text.
Dasar-Dasar Multimedia
MP 2: Audio/ Video Streaming CS414: Multimedia System Instructor: Klara Nahrstedt March 16, 2012.
Video Data Topic 4: Multimedia Technology. Learning Objectives Hardware required to capture Digital video How video files are stored Factors affecting.
Audio Streaming © Nanda Ganesan, Ph.D.. Audio File Features Audio file is a record of captured sound that can be played back –The WAV File is an example.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 3 – Digital Audio Representation Klara Nahrstedt Spring 2014.
MP3: Multi-Source Streaming System Instructor: Klara Nahrstedt April 18, 2014 CS414.
MUSIC GENRE JUKEBOX. CLIENT SPECIFICATIONS Audio Player Create, delete, and modify play lists Play, pause, stop, skip, fast forward, and rewind Send Streaming.
California State University, LA Presented by Amanda Steven StevenAamirObaid.
Introduction to Quality of Service Klara Nahrstedt CS 538.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 19 – Multimedia Transport Subsystem (Part 2) + Midterm Review Klara Nahrstedt Spring 2014.
Introduction to MPEG  Moving Pictures Experts Group,  Geneva based working group under the ISO/IEC standards.  In charge of developing standards for.
Streaming MPEG-4 with Linux Lee Keun O RT-LAB. Content ■ Reference ■ Darwin streaming server ■ MPEG4IP (mp4live) ■ Problems.
MP4 help session Hoang Nguyen. Outline Scenarios Media Synchronization requirement FF/RWND vs. Seek Media synchronization GUI Demo steps (posted next.
Klara Nahrstedt Spring 2012
Overview What is Multimedia? Characteristics of multimedia
Working with Multimedia
Chapter 10 Video.
Presentation transcript:

MP 1: Audio/ Video Recorder and Player CS414: Multimedia System Instructor: Klara Nahrstedt February 1 st, 2012

Learning Goals Capturing a video and audio using a webcam Storing the audio and video data in PC using compression Playing a video from the stored file with fast forward, rewind, pause and play functionalities Playing an audio from the stored file Comparing the media frames across different compression

Covered Aspects of Multimedia Image/Video Capture Media Server Storage Transmission Compression Processing Audio/Video Presentation Playback Audio/Video Perception/ Playback Audio Information Representation Transmission Audio Capture A/V Playback Image/Video Information Representation

System Architecture Image/Video Capture Compression Processing Audio Information Representation Audio Capture Image/Video Information Representation Audio/Video Perception/ Playback

Capture System Modules and Data Flow: Recording Filter Encoder Store Player Thread Webcam Thread Encode Store Muxer … You need to create separate threads Muxer is optional. You may need it to run the video file using standard player Frame rate, resolution type Encode …

System Modules and Data Flow: Playback Capture Decode Player Media File Capture Decode Demuxer … Display the video on your GUI and place the audio data to the sound card Demuxer is optional. You may need it run standard video files from Internet type Rate control Decode …

System Modules and Data Flow: Monitoring in Recording Capture Filter Encode Store Player Thread Monitoring Point Monitoring Component Webcam Thread Store the monitoring output to a file [Optional] You may draw chart showing [time vs. compression ratio (r)], [time vs. compression time (t)] and [time vs. frame size (s)] [bonus point] – X-axis: Time in 5 second interval – Y-axis: Average values (of r, s or t) in last 5 seconds

System Modules and Data Flow: Monitoring in Playback Capture Decode Player Monitoring Component Thread Media File Thread Monitoring Point Store the monitoring output to a file [Optional] You may draw plot showing [time vs. decompression time (d)] [bonus point] [Hint: Try JFreeChart library] – X-axis: Time in 5 second interval – Y-axis: Average values (of d) in last 5 seconds

gstreamer Architecture Goal: create a multimedia application using gstreamer gstreamer uses 3 rd party plugins for processing (over 150) gstreamer Core Framework Multimedia Application Encoder Decoder Muxer Sink source Demuxer 3 rd Party plugins

How does it work (1) ? You need to create element for each system modules Elements are equipped with Pads: source and sink pads Sink Source gstreamer-java elements The number of source and sink pad varies depending on the element type You can add/ create additional sink or source pad

Creating gstreamer elements Java code example to create an element –Elements element_name = ElementFactory.make (“plugin name”, “your defined name”) Java code example to set property of the element –element_name.set (“property”, “value”); Capture source Filter Sink Src filter Encode Sink Src encoder Muxer Sink Src muxer Store Sink sink Src Sink

How does it work (2) ? You need to link the elements – Linking define whom is receiving and sending data to whom – This is similar to linking the system modules Capture Filter Src Sink Src Media Source Media Filter

gstreamer-java pipeline Java example code for creating, and linking a pipeline –Pipeline pipe= new Pipeline(“test”); –pipe.addMany(source, filter,encoder, muxer,sink); –Element.linkMany(source, filter,encoder, muxer,sink); –pipe.play(); Capture Filter Encode Store Webcam Src Sink Src Sink Src Media Source Media Filter Media Encoder Sink Src Media Muxer Sink Media Sink

How to create multiple pipelining Several pipelines from the same source or towards same sink – Example: recording and playback at the same time Capture Filter Encoder Store Player Thread Webcam Thread Sink Src Sink Src Sink Src Media Source Media Filter Media Encoder Sink Src Media Muxer Sink Media Sink Src

How to create multiple pipelining You can create additional pads You can use tee elements Use queue elements after tee Sink Src Sink Src source encoder Sink Src muxer Sink Media Sink Sink Src filter Sink Src tee Src queue2 queue1 Sink Src Sink Src

How to redirect frames to application How to deliver a frame to your application Use appsink element Src Sink Src Sink Src Media Source Media Filter Media Encoder Sink Src AppSink Java example code for getting frames from AppSink –AppSink appsink = (AppSink) ElementFactory.make(“appsink”, null); –appsink.set(“emit-signal”, true); –appsink.setSync(false); Emit Signals

Some gstreamer plugins Video webcam source: v4l2src Audio webcam source: alsasrc Video or Audio file source: filesrc Video Encoder: ffenc_mpeg4 (mpeg4), jpegenc (mjpeg), … Video Decoder: ffdec_mpeg4 (mpeg4), jpegdec (mjpeg), … Audio Encoder: vorbisenc, alawenc, mulawenc Audio Decoder: vorbisdec, alawdec, mulawdec Muxer [optional]: avimux (avi), matroskamux(mkv), … Demuxer [optional]: avidemux (avi), Audio sink: alsasink

Evaluations Required Points: 100, Optional Points: 20 Points are will be considered based on live demo and interview performance

Group Directory A shortcut link in desktop and home directory – cs414_Gn.work [note: n= your group number] You can directly access – /team/cs414/Gn [note: n= your group number] You are allowed to use any languages (C/C++/java) You are allowed to you’re your own laptop any OS