sdl android rtp h264,使用RTP协议发送和接收H264的例子(支持解码、播放)

【实例简介】

MFC实现的窗口程序,集成了发送和接收RTP包的功能,接收到的视频用FFmpeg解码并显示出来。该例子代码对应我博客上的一篇文章:https://blog.csdn.net/zhoubotong2012/article/details/86510032

【实例截图】

【核心代码】

PlayH264

└── PlayH264

├── class

│   ├── DirectDraw

│   │   ├── DDrawData.cpp

│   │   ├── DDrawData.h

│   │   ├── DecoderRtp.cpp

│   │   ├── DecoderRtp.h

│   │   ├── Dec.rar

│   │   ├── directdraw.h

│   │   ├── DirectDraw.rar

│   │   ├── yuvdisplay.cpp

│   │   └── yuvdisplay.h

│   └── thread

│   ├── Thread.cpp

│   ├── Thread.h

│   └── TThread.h

├── Debug

│   ├── avcodec-55.dll

│   ├── avdevice-55.dll

│   ├── avfilter-4.dll

│   ├── avformat-55.dll

│   ├── avutil-52.dll

│   ├── PlayStream.exe

│   ├── postproc-52.dll

│   ├── SDL2.dll

│   ├── swresample-0.dll

│   └── swscale-2.dll

├── PlayPs.suo

├── PlayPs.v12.suo

├── PlayStream

│   ├── h264.h

│   ├── include

│   │   ├── inttypes.h

│   │   ├── libavcodec

│   │   │   ├── avcodec.h

│   │   │   ├── avfft.h

│   │   │   ├── dxva2.h

│   │   │   ├── old_codec_ids.h

│   │   │   ├── vaapi.h

│   │   │   ├── vda.h

│   │   │   ├── vdpau.h

│   │   │   ├── version.h

│   │   │   └── xvmc.h

│   │   ├── libavdevice

│   │   │   ├── avdevice.h

│   │   │   └── version.h

│   │   ├── libavfilter

│   │   │   ├── asrc_abuffer.h

│   │   │   ├── avcodec.h

│   │   │   ├── avfiltergraph.h

│   │   │   ├── avfilter.h

│   │   │   ├── buffersink.h

│   │   │   ├── buffersrc.h

│   │   │   └── version.h

│   │   ├── libavformat

│   │   │   ├── avformat.h

│   │   │   ├── avio.h

│   │   │   └── version.h

│   │   ├── libavutil

│   │   │   ├── adler32.h

│   │   │   ├── aes.h

│   │   │   ├── attributes.h

│   │   │   ├── audioconvert.h

│   │   │   ├── audio_fifo.h

│   │   │   ├── avassert.h

│   │   │   ├── avconfig.h

│   │   │   ├── avstring.h

│   │   │   ├── avutil.h

│   │   │   ├── base64.h

│   │   │   ├── blowfish.h

│   │   │   ├── bprint.h

│   │   │   ├── bswap.h

│   │   │   ├── buffer.h

│   │   │   ├── channel_layout.h

│   │   │   ├── common.h

│   │   │   ├── cpu.h

│   │   │   ├── crc.h

│   │   │   ├── dict.h

│   │   │   ├── downmix_info.h

│   │   │   ├── error.h

│   │   │   ├── eval.h

│   │   │   ├── ffversion.h

│   │   │   ├── fifo.h

│   │   │   ├── file.h

│   │   │   ├── frame.h

│   │   │   ├── hmac.h

│   │   │   ├── imgutils.h

│   │   │   ├── intfloat.h

│   │   │   ├── intfloat_readwrite.h

│   │   │   ├── intreadwrite.h

│   │   │   ├── lfg.h

│   │   │   ├── log.h

│   │   │   ├── lzo.h

│   │   │   ├── macros.h

│   │   │   ├── mathematics.h

│   │   │   ├── md5.h

│   │   │   ├── mem.h

│   │   │   ├── murmur3.h

│   │   │   ├── old_pix_fmts.h

│   │   │   ├── opt.h

│   │   │   ├── parseutils.h

│   │   │   ├── pixdesc.h

│   │   │   ├── pixfmt.h

│   │   │   ├── random_seed.h

│   │   │   ├── rational.h

│   │   │   ├── replaygain.h

│   │   │   ├── ripemd.h

│   │   │   ├── samplefmt.h

│   │   │   ├── sha512.h

│   │   │   ├── sha.h

│   │   │   ├── stereo3d.h

│   │   │   ├── timecode.h

│   │   │   ├── time.h

│   │   │   ├── timestamp.h

│   │   │   ├── version.h

│   │   │   └── xtea.h

│   │   ├── libpostproc

│   │   │   ├── postprocess.h

│   │   │   └── version.h

│   │   ├── libswresample

│   │   │   ├── swresample.h

│   │   │   └── version.h

│   │   ├── libswscale

│   │   │   ├── swscale.h

│   │   │   └── version.h

│   │   ├── _mingw.h

│   │   ├── SDL2

│   │   │   ├── begin_code.h

│   │   │   ├── close_code.h

│   │   │   ├── SDL_assert.h

│   │   │   ├── SDL_atomic.h

│   │   │   ├── SDL_audio.h

│   │   │   ├── SDL_bits.h

│   │   │   ├── SDL_blendmode.h

│   │   │   ├── SDL_clipboard.h

│   │   │   ├── SDL_config.h

│   │   │   ├── SDL_cpuinfo.h

│   │   │   ├── SDL_endian.h

│   │   │   ├── SDL_error.h

│   │   │   ├── SDL_events.h

│   │   │   ├── SDL_filesystem.h

│   │   │   ├── SDL_gamecontroller.h

│   │   │   ├── SDL_gesture.h

│   │   │   ├── SDL.h

│   │   │   ├── SDL_haptic.h

│   │   │   ├── SDL_hints.h

│   │   │   ├── SDL_joystick.h

│   │   │   ├── SDL_keyboard.h

│   │   │   ├── SDL_keycode.h

│   │   │   ├── SDL_loadso.h

│   │   │   ├── SDL_log.h

│   │   │   ├── SDL_main.h

│   │   │   ├── SDL_messagebox.h

│   │   │   ├── SDL_mouse.h

│   │   │   ├── SDL_mutex.h

│   │   │   ├── SDL_name.h

│   │   │   ├── SDL_opengles2.h

│   │   │   ├── SDL_opengles.h

│   │   │   ├── SDL_opengl.h

│   │   │   ├── SDL_pixels.h

│   │   │   ├── SDL_platform.h

│   │   │   ├── SDL_power.h

│   │   │   ├── SDL_quit.h

│   │   │   ├── SDL_rect.h

│   │   │   ├── SDL_render.h

│   │   │   ├── SDL_revision.h

│   │   │   ├── SDL_rwops.h

│   │   │   ├── SDL_scancode.h

│   │   │   ├── SDL_shape.h

│   │   │   ├── SDL_stdinc.h

│   │   │   ├── SDL_surface.h

│   │   │   ├── SDL_system.h

│   │   │   ├── SDL_syswm.h

│   │   │   ├── SDL_test_assert.h

│   │   │   ├── SDL_test_common.h

│   │   │   ├── SDL_test_compare.h

│   │   │   ├── SDL_test_crc32.h

│   │   │   ├── SDL_test_font.h

│   │   │   ├── SDL_test_fuzzer.h

│   │   │   ├── SDL_test.h

│   │   │   ├── SDL_test_harness.h

│   │   │   ├── SDL_test_images.h

│   │   │   ├── SDL_test_log.h

│   │   │   ├── SDL_test_md5.h

│   │   │   ├── SDL_test_random.h

│   │   │   ├── SDL_thread.h

│   │   │   ├── SDL_timer.h

│   │   │   ├── SDL_touch.h

│   │   │   ├── SDL_types.h

│   │   │   ├── SDL_version.h

│   │   │   └── SDL_video.h

│   │   └── stdint.h

│   ├── lib

│   │   ├── avcodec.lib

│   │   ├── avdevice.lib

│   │   ├── avfilter.lib

│   │   ├── avformat.lib

│   │   ├── avutil.lib

│   │   ├── postproc.lib

│   │   ├── SDL2.lib

│   │   ├── SDL2main.lib

│   │   ├── swresample.lib

│   │   └── swscale.lib

│   ├── NALDecoder.cpp

│   ├── PlayPs.aps

│   ├── PlayPs.cpp

│   ├── PlayPs.h

│   ├── PlayPs.rc

│   ├── PlayPs.vcxproj

│   ├── PlayPs.vcxproj.filters

│   ├── PlayPs.vcxproj.user

│   ├── PlayStreamDlg.cpp

│   ├── PlayStreamDlg.h

│   ├── ReadMe.txt

│   ├── res

│   │   ├── PlayPs.ico

│   │   └── PlayPs.rc2

│   ├── resource.h

│   ├── stdafx.cpp

│   ├── stdafx.h

│   └── targetver.h

├── PlayStream.sln

└── Release

└── PlayStream.exe

19 directories, 205 files

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值