更新时间:2021-08-03 15:28:04
封面
书名页
Python Multimedia Beginner's Guide
Credits
About the Author
About the Reviewers
Preface
What this book covers
Who this book is for
Conventions
Time for action – heading
Reader feedback
Customer support
Chapter 1. Python and Multimedia
Multimedia
Multimedia processing
Built-in multimedia support
External multimedia libraries and frameworks
Time for action – a simple application using PyGame
Summary
Chapter 2. Working with Images
Installation prerequisites
Reading and writing images
Time for action – image file converter
Time for action – creating a new image containing some text
Time for action – reading images from archives
Basic image manipulations
Time for action – resizing
Time for action – rotating
Time for action – flipping
Time for action – capture screenshots at intervals
Time for action – cropping an image
Time for action – pasting: mirror the smiley face!
Project: Thumbnail Maker
Time for action – play with Thumbnail Maker application
Time for action – generating the UI code
Time for action – connecting the widgets
Time for action – developing image processing code
Chapter 3. Enhancing Images
Installation and download prerequisites
Adjusting brightness and contrast
Time for action – adjusting brightness and contrast
Tweaking colors
Time for action – swap colors within an image!
Time for action – change the color of a flower
Blending
Time for action – blending two images
Creating transparent images
Time for action – create transparency
Making composites with image mask
Time for action – making composites with image mask
Project: Watermark Maker Tool
Time for action – Watermark Maker Tool
Applying image filters
Time for action – smoothing an image
Time for action – detecting and enhancing edges
Time for action – embossing
Adding a border
Time for action – enclosing a picture in a photoframe
Chapter 4. Fun with Animations
A primer on Pyglet
Animations with Pyglet
Time for action – viewing an existing animation
Time for action – animation using a sequence of images
Time for action – bouncing ball animation
Time for action – a simple bowling animation
Time for action – raindrops animation
Project: drive on a rainy day!
Time for action – drive on a rainy day!
Chapter 5. Working with Audios
A primer on GStreamer
Playing music
Time for action – playing an audio: method 1
Time for action – playing an audio: method 2
Converting audio file format
Time for action – audio file format converter
Extracting part of an audio
Time for action – MP3 cutter!
Recording
Time for action – recording
Chapter 6. Audio Controls and Effects
Controlling playback
Time for action – pause and resume a playing audio stream
Time for action – MP3 cutter from basic principles
Adjusting volume
Time for action – adjusting volume
Audio effects
Time for action – fading effects
Time for action – adding echo effect
Project: combining audio clips
Time for action – creating custom audio by combining clips
Audio mixing
Time for action – mixing audio tracks
Visualizing an audio track