• Stars
    star
    119
  • Rank 297,930 (Top 6 %)
  • Language
    C
  • Created almost 10 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Examples about video/audio's playing
最简单的多媒体播放的例子
Simplest Media Play

雷霄骅 Lei Xiaohua
[email protected]
中国传媒大学/数字电视技术
Communication University of China / Digital TV Technology
http://blog.csdn.net/leixiaohua1020

本工程包含了使用各种API(Direct3D,OpenGL,GDI,DirectSound,SDL2)播放多媒体例子。
其中音频输入为PCM采样数据。输出至系统的声卡播放出来。
视频输入为YUV/RGB像素数据。输出至显示器上的一个窗口播放出来。
通过本工程的代码初学者可以快速学习使用这几个API播放视频和音频的技术。
一共包括了如下几个子工程:
simplest_audio_play_directsound: 	使用DirectSound播放PCM音频采样数据。
simplest_audio_play_sdl2: 			使用SDL2播放PCM音频采样数据。
simplest_video_play_direct3d: 		使用Direct3D的Surface播放RGB/YUV视频像素数据。
simplest_video_play_direct3d_texture:使用Direct3D的Texture播放RGB视频像素数据。
simplest_video_play_gdi: 			使用GDI播放RGB/YUV视频像素数据。
simplest_video_play_opengl: 		使用OpenGL播放RGB/YUV视频像素数据。
simplest_video_play_opengl_texture:	使用OpenGL的Texture播放YUV视频像素数据。
simplest_video_play_sdl2: 			使用SDL2播放RGB/YUV视频像素数据。


This project contains several examples about video/audio's playing. It uses different
API (Direct3D, OpenGL, GDI, DirectSound, SDL2) to output video/audio to system devices.
In audio examples, input data is PCM raw audio data.
In video examples, input data is YUV/RGB raw pixel data.
Through these examples, the beginner of video/audio programmer can learn the usage of
these API easyly.
It contains following programs:
simplest_audio_play_directsound: 	Play PCM raw audio data using DirectSound.
simplest_audio_play_sdl2: 			Play PCM raw audio data using SDL2.
simplest_video_play_direct3d: 		Play RGB/YUV raw video data using Direct3D's Surface.
simplest_video_play_direct3d_texture:Play RGB raw video data using Direct3D's Texture.
simplest_video_play_gdi: 			Play RGB/YUV raw video data using GDI.
simplest_video_play_opengl: 		Play RGB/YUV raw video data using OpenGL.
simplest_video_play_opengl_texture:	Play YUV raw video data using OpenGL's Texture.
simplest_video_play_sdl2: 			Play RGB/YUV raw video data using SDL2.



More Repositories

1

simplest_ffmpeg_mobile

ffmpeg examples in Android / IOS / WinPhone
C
1,926
star
2

simplest_ffmpeg_player

the simplest video player based on FFmpeg
C
681
star
3

VideoEye

open-source stream analysis software
C++
678
star
4

simplest_mediadata_test

samples to handling multimedia data
C++
542
star
5

simplest_ffmpeg_streamer

Simplest streamer based on FFmpeg
C
429
star
6

simplest_librtmp_example

Examples about usage of libRTMP
C
303
star
7

YUVplayer

Modified from a sourceforge project
C++
205
star
8

h264_analysis

A H.264 stream analysis software based on MFC
C++
182
star
9

simplest_ffmpeg_format

FFmpeg's mux/demux/remux examples
C
164
star
10

simplest_video_website

simplest video website based JavaEE and FFmpeg
Java
162
star
11

simplest_ffmpeg_video_encoder

the simplest video encoder based on FFmpeg
C
155
star
12

simplest_ffmpeg_video_filter

use FFmpeg's AVFilter to add watermark in a video file
C
129
star
13

simplest_flashmedia_example

simple examples about using flash player to play RTMP/HTTP/HLS
JavaScript
125
star
14

simplest_ffmpeg_device

FFmpeg's libavdevice examples
C
116
star
15

simplest_ffmpeg_audio_player

the simplest audio player based on FFmpeg
C
94
star
16

simplest_encoder

Examples about video encoders
C
93
star
17

ffplaymfc

C
79
star
18

leixiaohua1020.github.io

Shell
73
star
19

simplest_libvlc_example

Examples about libVLC
C
70
star
20

simplest_ffmpeg_mem_handler

ffmpeg's example about read/write from memory
C
53
star
21

simplest_directshow_example

Examples about DirectShow
C++
47
star
22

simplest_ffmpeg_audio_encoder

the simplest audio encoder based on FFmpeg
C
47
star
23

TIandSI

C
40
star
24

simplest_ffmpeg_picture_encoder

the simplest picture encoder based on FFmpeg
C
40
star
25

simplest_ffmpeg_swscale

Examples about handle pixel data using libswscale in FFmpeg.
C
36
star
26

simplest_keyframe_extractor

extract keyframe from input video data
C
15
star
27

simplest_ffmpeg_avutil

Examples about using of FFmpeg's libavutil
C
12
star
28

ffmpegmfc

8
star