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

Slides:



Advertisements
Similar presentations
3.01B Multimedia Systems 3.01 Explore multimedia systems, elements and presentations.
Advertisements

3.01B Multimedia Systems 3.01 Explore multimedia systems and elements.
Chapter 10 Video.
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.
MP 1: Audio/ Video Recorder and Player CS414: Multimedia System Instructor: Klara Nahrstedt February 1 st, 2012.
Video transmission using USRP
 Multimedia is everything you can hear or see: texts, books, pictures, music, sounds, CDs, videos, DVDs, Records, Films, and more.  Multimedia comes.
INF Web Design Using Multimedia on the Web Video - Part 1.
Microsense Webcast Streaming Solutions
Tutorial 7 Working with Multimedia. XP Objectives Explore various multimedia applications on the Web Learn about sound file formats and properties Embed.
Week 8 - Tutorial Interactive Digital Moving Image Production | CU3003NI | - Pratik Man Singh Pradhan.
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.
Embedding Windows Media Player Controls First, you need to add the Developer Tab in PowerPoint. 1. Click on File and choose Options. 2. In the categories.
Chapter 11 Adding Media and Interactivity. Flash is a software program that allows you to create low-bandwidth, high-quality animations and interactive.
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.
Copyright © Texas Education Agency, All rights reserved.1 Inside the Computer Case Multimedia Sound Card & Video Card.
Tutorial 7 Working with Multimedia. XP Introducing Multimedia Bandwidth is a measure of the amount of data that can be sent through a communication pipeline.
Embedded Streaming Media with GStreamer and BeagleBoard
CIS 102Introduction to Hardware and Software Chapter 2 Input and Output part 3 output devices.
© 2011 The McGraw-Hill Companies, Inc. All rights reserved Chapter 6: Video.
 Refers to sampling the gray/color level in the picture at MXN (M number of rows and N number of columns )array of points.  Once points are sampled,
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.
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.
ScreenPlay TV Link Training By Erik Collett
HTML Use of Multimedia on web page. HTML Media Q. How to call Image file in our web page ? A. That is the easy syntax for defining an image. 2.
XP Tutorial 8New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Using Multimedia on the Web Enhancing a Web Site with Sound, Video, and.
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.
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.
Podcasting in teaching & learning
Introduction to the Media Kit Matt Wronkiewicz Be Users Group at UIUC.
Media Types Information Systems can contain the following types of media: Sound, graphics, video & text.
MP 2: Audio/ Video Streaming CS414: Multimedia System Instructor: Klara Nahrstedt March 16, 2012.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 3 – Digital Audio Representation Klara Nahrstedt Spring 2014.
Oman College of Management and Technology Course – MM Topic 7 Production and Distribution of Multimedia Titles CS/MIS Department.
California State University, LA Presented by Amanda Steven StevenAamirObaid.
Introduction to Quality of Service Klara Nahrstedt CS 538.
Video 2 Subject:T0934 / Multimedia Programming Foundation Session:11 Tahun:2009 Versi:1/0.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 19 – Multimedia Transport Subsystem (Part 2) + Midterm Review Klara Nahrstedt Spring 2014.
Tutorial 7 Adding Behaviors and Rich Media. Objectives Session 7.1 – Learn about behaviors – Add behaviors to a page – Add a custom script to a page Session.
CHAPTER 8 Multimedia 1. Using Multimedia ❖ Multimedia: the combination of text, sound, and video to express an idea or convey a message. ❖ Podcasts: a.
© University of Reading 2006www.reading.ac. uk 18 June 2016 Streaming and Podcasting Laura Bennetto and Guy Pursey.
MP4 help session Hoang Nguyen. Outline Scenarios Media Synchronization requirement FF/RWND vs. Seek Media synchronization GUI Demo steps (posted next.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 4 – Visual Perception and Digital Image Representation Klara Nahrstedt Spring 2014.
Klara Nahrstedt Spring 2012
Chapter 6: Video.
Tutorial 7 Working with Multimedia
Working with Multimedia
Lesson 5: Multimedia on the Web
Presentation transcript:

MP 1: Audio/ Video Recorder and Player CS414: Multimedia System Instructor: Klara Nahrstedt February 7 th, 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 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 element property –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

Environment and Equipment Choose what ever language you like, Gstreamer is compatible with most popular languages C/C++JAVA stSDK/Tutorials r-java/ Up-to-date detailed tutorials, step- by-step runnable sample codes  Brief introduction, few samples  Requires external GUI libraries: GTK+(used in the tutorial site), Qt (very powerful) Built-in GUI libraries Not supported by EWS (installation of external lib) Supported by EWS

Environment and Equipment If you choose to use EWS.. – group directories – /team/cs414/G# (# is your group number) If you choose to use your own machines.. – Windows/Mac – Android/iOS Feel free to use your own camera/mic, or you can borrow two logitech cameras (with mic embedded) from Engineering IT (Barb Leisner)