首页 星云 工具 资源 星选 资讯 热门工具
:

PDF转图片 完全免费 小红书视频下载 无水印 抖音视频下载 无水印 数字星空

最简单的基于FFMPEG+SDL的音频播放器 2.1

后端 15.96MB 14 需要积分: 1
立即下载

资源介绍:

本程序实现了音频的解码和播放。是最简单的FFmpeg音频解码方面的教程。通过学习本例子可以了解FFmpeg的解码流程。该版本使用SDL 2.0替换了第一个版本中的SDL 1.0。 2.1版本增加了多平台下编译的支持:Windows,MacOS,以及Linux。
最简单的基于FFmpeg的音频播放器 2 (SDL 2.0) Simplest FFmpeg Audio Player 2 (SDL 2.0) 雷霄骅 Lei Xiaohua leixiaohua1020@126.com 中国传媒大学/数字电视技术 Communication University of China / Digital TV Technology http://blog.csdn.net/leixiaohua1020 本程序实现了音频的解码和播放。 是最简单的FFmpeg音频解码方面的教程。 通过学习本例子可以了解FFmpeg的解码流程。 该版本使用SDL 2.0替换了第一个版本中的SDL 1.0。 注意:SDL 2.0中音频解码的API并无变化。唯一变化的地方在于 其回调函数的中的Audio Buffer并没有完全初始化,需要手动初始化。 本例子中即SDL_memset(stream, 0, len); This software decode and play audio streams. This version use SDL 2.0 instead of SDL 1.2 in version 1 Note:The good news for audio is that, with one exception, it's entirely backwards compatible with 1.2. That one really important exception: The audio callback does NOT start with a fully initialized buffer anymore. You must fully write to the buffer in all cases. In this example it is SDL_memset(stream, 0, len);

资源文件列表:

simplest_ffmpeg_audio_player_2.1.zip 大约有196个文件
  1. .gitignore 28B
  2. ReadMe.txt 1.1KB
  3. simplest_ffmpeg_audio_player/
  4. simplest_ffmpeg_audio_player/.gitignore 67B
  5. simplest_ffmpeg_audio_player/ReadMe.txt 1.01KB
  6. simplest_ffmpeg_audio_player/SDL2.dll 983.5KB
  7. simplest_ffmpeg_audio_player/WavinFlag.aac 3.37MB
  8. simplest_ffmpeg_audio_player/avcodec-55.dll 18.06MB
  9. simplest_ffmpeg_audio_player/avdevice-55.dll 1.28MB
  10. simplest_ffmpeg_audio_player/avfilter-4.dll 1.94MB
  11. simplest_ffmpeg_audio_player/avformat-55.dll 5.1MB
  12. simplest_ffmpeg_audio_player/avutil-52.dll 408.5KB
  13. simplest_ffmpeg_audio_player/compile_cl.bat 682B
  14. simplest_ffmpeg_audio_player/compile_gcc.sh 473B
  15. simplest_ffmpeg_audio_player/compile_mingw.sh 504B
  16. simplest_ffmpeg_audio_player/include/
  17. simplest_ffmpeg_audio_player/include/SDL2/
  18. simplest_ffmpeg_audio_player/include/SDL2/SDL.h 5.25KB
  19. simplest_ffmpeg_audio_player/include/SDL2/SDL_assert.h 10.46KB
  20. simplest_ffmpeg_audio_player/include/SDL2/SDL_atomic.h 8.8KB
  21. simplest_ffmpeg_audio_player/include/SDL2/SDL_audio.h 19.65KB
  22. simplest_ffmpeg_audio_player/include/SDL2/SDL_bits.h 2.47KB
  23. simplest_ffmpeg_audio_player/include/SDL2/SDL_blendmode.h 2.2KB
  24. simplest_ffmpeg_audio_player/include/SDL2/SDL_clipboard.h 1.92KB
  25. simplest_ffmpeg_audio_player/include/SDL2/SDL_config.h 5.36KB
  26. simplest_ffmpeg_audio_player/include/SDL2/SDL_cpuinfo.h 3.96KB
  27. simplest_ffmpeg_audio_player/include/SDL2/SDL_endian.h 5.81KB
  28. simplest_ffmpeg_audio_player/include/SDL2/SDL_error.h 2.17KB
  29. simplest_ffmpeg_audio_player/include/SDL2/SDL_events.h 25.5KB
  30. simplest_ffmpeg_audio_player/include/SDL2/SDL_filesystem.h 5.13KB
  31. simplest_ffmpeg_audio_player/include/SDL2/SDL_gamecontroller.h 10.25KB
  32. simplest_ffmpeg_audio_player/include/SDL2/SDL_gesture.h 2.11KB
  33. simplest_ffmpeg_audio_player/include/SDL2/SDL_haptic.h 37.59KB
  34. simplest_ffmpeg_audio_player/include/SDL2/SDL_hints.h 19.29KB
  35. simplest_ffmpeg_audio_player/include/SDL2/SDL_joystick.h 7.96KB
  36. simplest_ffmpeg_audio_player/include/SDL2/SDL_keyboard.h 6.28KB
  37. simplest_ffmpeg_audio_player/include/SDL2/SDL_keycode.h 14.5KB
  38. simplest_ffmpeg_audio_player/include/SDL2/SDL_loadso.h 2.8KB
  39. simplest_ffmpeg_audio_player/include/SDL2/SDL_log.h 5.93KB
  40. simplest_ffmpeg_audio_player/include/SDL2/SDL_main.h 4.35KB
  41. simplest_ffmpeg_audio_player/include/SDL2/SDL_messagebox.h 4.5KB
  42. simplest_ffmpeg_audio_player/include/SDL2/SDL_mouse.h 7.25KB
  43. simplest_ffmpeg_audio_player/include/SDL2/SDL_mutex.h 6.51KB
  44. simplest_ffmpeg_audio_player/include/SDL2/SDL_name.h 1.13KB
  45. simplest_ffmpeg_audio_player/include/SDL2/SDL_opengl.h 621.67KB
  46. simplest_ffmpeg_audio_player/include/SDL2/SDL_opengles.h 1.2KB
  47. simplest_ffmpeg_audio_player/include/SDL2/SDL_opengles2.h 128.56KB
  48. simplest_ffmpeg_audio_player/include/SDL2/SDL_pixels.h 14.73KB
  49. simplest_ffmpeg_audio_player/include/SDL2/SDL_platform.h 4.33KB
  50. simplest_ffmpeg_audio_player/include/SDL2/SDL_power.h 2.41KB
  51. simplest_ffmpeg_audio_player/include/SDL2/SDL_quit.h 2.06KB
  52. simplest_ffmpeg_audio_player/include/SDL2/SDL_rect.h 4.03KB
  53. simplest_ffmpeg_audio_player/include/SDL2/SDL_render.h 32.42KB
  54. simplest_ffmpeg_audio_player/include/SDL2/SDL_revision.h 77B
  55. simplest_ffmpeg_audio_player/include/SDL2/SDL_rwops.h 7.07KB
  56. simplest_ffmpeg_audio_player/include/SDL2/SDL_scancode.h 14.6KB
  57. simplest_ffmpeg_audio_player/include/SDL2/SDL_shape.h 5.55KB
  58. simplest_ffmpeg_audio_player/include/SDL2/SDL_stdinc.h 13.79KB
  59. simplest_ffmpeg_audio_player/include/SDL2/SDL_surface.h 18.1KB
  60. simplest_ffmpeg_audio_player/include/SDL2/SDL_system.h 6.75KB
  61. simplest_ffmpeg_audio_player/include/SDL2/SDL_syswm.h 6.96KB
  62. simplest_ffmpeg_audio_player/include/SDL2/SDL_test.h 1.92KB
  63. simplest_ffmpeg_audio_player/include/SDL2/SDL_test_assert.h 3.01KB
  64. simplest_ffmpeg_audio_player/include/SDL2/SDL_test_common.h 4.79KB
  65. simplest_ffmpeg_audio_player/include/SDL2/SDL_test_compare.h 2.06KB
  66. simplest_ffmpeg_audio_player/include/SDL2/SDL_test_crc32.h 3.31KB
  67. simplest_ffmpeg_audio_player/include/SDL2/SDL_test_font.h 2.28KB
  68. simplest_ffmpeg_audio_player/include/SDL2/SDL_test_fuzzer.h 12.76KB
  69. simplest_ffmpeg_audio_player/include/SDL2/SDL_test_harness.h 4.15KB
  70. simplest_ffmpeg_audio_player/include/SDL2/SDL_test_images.h 2.12KB
  71. simplest_ffmpeg_audio_player/include/SDL2/SDL_test_log.h 1.81KB
  72. simplest_ffmpeg_audio_player/include/SDL2/SDL_test_md5.h 4.52KB
  73. simplest_ffmpeg_audio_player/include/SDL2/SDL_test_random.h 3.08KB
  74. simplest_ffmpeg_audio_player/include/SDL2/SDL_thread.h 9.87KB
  75. simplest_ffmpeg_audio_player/include/SDL2/SDL_timer.h 3.38KB
  76. simplest_ffmpeg_audio_player/include/SDL2/SDL_touch.h 2.28KB
  77. simplest_ffmpeg_audio_player/include/SDL2/SDL_types.h 1.01KB
  78. simplest_ffmpeg_audio_player/include/SDL2/SDL_version.h 5.04KB
  79. simplest_ffmpeg_audio_player/include/SDL2/SDL_video.h 32.53KB
  80. simplest_ffmpeg_audio_player/include/SDL2/begin_code.h 4.04KB
  81. simplest_ffmpeg_audio_player/include/SDL2/close_code.h 1.38KB
  82. simplest_ffmpeg_audio_player/include/_mingw.h 7.79KB
  83. simplest_ffmpeg_audio_player/include/inttypes.h 5.59KB
  84. simplest_ffmpeg_audio_player/include/libavcodec/
  85. simplest_ffmpeg_audio_player/include/libavcodec/avcodec.h 171.5KB
  86. simplest_ffmpeg_audio_player/include/libavcodec/avfft.h 3.04KB
  87. simplest_ffmpeg_audio_player/include/libavcodec/dxva2.h 2.34KB
  88. simplest_ffmpeg_audio_player/include/libavcodec/old_codec_ids.h 10.4KB
  89. simplest_ffmpeg_audio_player/include/libavcodec/vaapi.h 3.91KB
  90. simplest_ffmpeg_audio_player/include/libavcodec/vda.h 4KB
  91. simplest_ffmpeg_audio_player/include/libavcodec/vdpau.h 6.05KB
  92. simplest_ffmpeg_audio_player/include/libavcodec/version.h 5.46KB
  93. simplest_ffmpeg_audio_player/include/libavcodec/xvmc.h 5.92KB
  94. simplest_ffmpeg_audio_player/include/libavdevice/
  95. simplest_ffmpeg_audio_player/include/libavdevice/avdevice.h 16.25KB
  96. simplest_ffmpeg_audio_player/include/libavdevice/version.h 1.82KB
  97. simplest_ffmpeg_audio_player/include/libavfilter/
  98. simplest_ffmpeg_audio_player/include/libavfilter/asrc_abuffer.h 3.24KB
  99. simplest_ffmpeg_audio_player/include/libavfilter/avcodec.h 3.7KB
  100. simplest_ffmpeg_audio_player/include/libavfilter/avfilter.h 55.55KB
  101. simplest_ffmpeg_audio_player/include/libavfilter/avfiltergraph.h 975B
  102. simplest_ffmpeg_audio_player/include/libavfilter/buffersink.h 7.36KB
  103. simplest_ffmpeg_audio_player/include/libavfilter/buffersrc.h 4.78KB
  104. simplest_ffmpeg_audio_player/include/libavfilter/version.h 3.42KB
  105. simplest_ffmpeg_audio_player/include/libavformat/
  106. simplest_ffmpeg_audio_player/include/libavformat/avformat.h 96.65KB
  107. simplest_ffmpeg_audio_player/include/libavformat/avio.h 17.58KB
  108. simplest_ffmpeg_audio_player/include/libavformat/version.h 2.76KB
  109. simplest_ffmpeg_audio_player/include/libavutil/
  110. simplest_ffmpeg_audio_player/include/libavutil/adler32.h 1.55KB
  111. simplest_ffmpeg_audio_player/include/libavutil/aes.h 1.79KB
  112. simplest_ffmpeg_audio_player/include/libavutil/attributes.h 4.13KB
  113. simplest_ffmpeg_audio_player/include/libavutil/audio_fifo.h 4.31KB
  114. simplest_ffmpeg_audio_player/include/libavutil/audioconvert.h 82B
  115. simplest_ffmpeg_audio_player/include/libavutil/avassert.h 2.06KB
  116. simplest_ffmpeg_audio_player/include/libavutil/avconfig.h 211B
  117. simplest_ffmpeg_audio_player/include/libavutil/avstring.h 12.18KB
  118. simplest_ffmpeg_audio_player/include/libavutil/avutil.h 8.36KB
  119. simplest_ffmpeg_audio_player/include/libavutil/base64.h 2.03KB
  120. simplest_ffmpeg_audio_player/include/libavutil/blowfish.h 2.26KB
  121. simplest_ffmpeg_audio_player/include/libavutil/bprint.h 7.55KB
  122. simplest_ffmpeg_audio_player/include/libavutil/bswap.h 2.83KB
  123. simplest_ffmpeg_audio_player/include/libavutil/buffer.h 9.54KB
  124. simplest_ffmpeg_audio_player/include/libavutil/channel_layout.h 8.88KB
  125. simplest_ffmpeg_audio_player/include/libavutil/common.h 13.65KB
  126. simplest_ffmpeg_audio_player/include/libavutil/cpu.h 4.62KB
  127. simplest_ffmpeg_audio_player/include/libavutil/crc.h 2.72KB
  128. simplest_ffmpeg_audio_player/include/libavutil/dict.h 6.37KB
  129. simplest_ffmpeg_audio_player/include/libavutil/downmix_info.h 3.09KB
  130. simplest_ffmpeg_audio_player/include/libavutil/error.h 4.65KB
  131. simplest_ffmpeg_audio_player/include/libavutil/eval.h 5.18KB
  132. simplest_ffmpeg_audio_player/include/libavutil/ffversion.h 128B
  133. simplest_ffmpeg_audio_player/include/libavutil/fifo.h 4.55KB
  134. simplest_ffmpeg_audio_player/include/libavutil/file.h 2.35KB
  135. simplest_ffmpeg_audio_player/include/libavutil/frame.h 22.5KB
  136. simplest_ffmpeg_audio_player/include/libavutil/hmac.h 2.8KB
  137. simplest_ffmpeg_audio_player/include/libavutil/imgutils.h 7.66KB
  138. simplest_ffmpeg_audio_player/include/libavutil/intfloat.h 1.69KB
  139. simplest_ffmpeg_audio_player/include/libavutil/intfloat_readwrite.h 1.52KB
  140. simplest_ffmpeg_audio_player/include/libavutil/intreadwrite.h 17.56KB
  141. simplest_ffmpeg_audio_player/include/libavutil/lfg.h 1.94KB
  142. simplest_ffmpeg_audio_player/include/libavutil/log.h 9.78KB
  143. simplest_ffmpeg_audio_player/include/libavutil/lzo.h 2KB
  144. simplest_ffmpeg_audio_player/include/libavutil/macros.h 1.17KB
  145. simplest_ffmpeg_audio_player/include/libavutil/mathematics.h 5.06KB
  146. simplest_ffmpeg_audio_player/include/libavutil/md5.h 1.92KB
  147. simplest_ffmpeg_audio_player/include/libavutil/mem.h 14.03KB
  148. simplest_ffmpeg_audio_player/include/libavutil/murmur3.h 1.19KB
  149. simplest_ffmpeg_audio_player/include/libavutil/old_pix_fmts.h 14.07KB
  150. simplest_ffmpeg_audio_player/include/libavutil/opt.h 34.09KB
  151. simplest_ffmpeg_audio_player/include/libavutil/parseutils.h 7.08KB
  152. simplest_ffmpeg_audio_player/include/libavutil/pixdesc.h 12.93KB
  153. simplest_ffmpeg_audio_player/include/libavutil/pixfmt.h 27.57KB
  154. simplest_ffmpeg_audio_player/include/libavutil/random_seed.h 1.37KB
  155. simplest_ffmpeg_audio_player/include/libavutil/rational.h 4.09KB
  156. simplest_ffmpeg_audio_player/include/libavutil/replaygain.h 1.57KB
  157. simplest_ffmpeg_audio_player/include/libavutil/ripemd.h 1.98KB
  158. simplest_ffmpeg_audio_player/include/libavutil/samplefmt.h 9.85KB
  159. simplest_ffmpeg_audio_player/include/libavutil/sha.h 1.9KB
  160. simplest_ffmpeg_audio_player/include/libavutil/sha512.h 1.98KB
  161. simplest_ffmpeg_audio_player/include/libavutil/stereo3d.h 3.53KB
  162. simplest_ffmpeg_audio_player/include/libavutil/time.h 1.25KB
  163. simplest_ffmpeg_audio_player/include/libavutil/timecode.h 5.2KB
  164. simplest_ffmpeg_audio_player/include/libavutil/timestamp.h 2.55KB
  165. simplest_ffmpeg_audio_player/include/libavutil/version.h 4.38KB
  166. simplest_ffmpeg_audio_player/include/libavutil/xtea.h 1.82KB
  167. simplest_ffmpeg_audio_player/include/libpostproc/
  168. simplest_ffmpeg_audio_player/include/libpostproc/postprocess.h 2.82KB
  169. simplest_ffmpeg_audio_player/include/libpostproc/version.h 1.64KB
  170. simplest_ffmpeg_audio_player/include/libswresample/
  171. simplest_ffmpeg_audio_player/include/libswresample/swresample.h 11.54KB
  172. simplest_ffmpeg_audio_player/include/libswresample/version.h 1.65KB
  173. simplest_ffmpeg_audio_player/include/libswscale/
  174. simplest_ffmpeg_audio_player/include/libswscale/swscale.h 11.97KB
  175. simplest_ffmpeg_audio_player/include/libswscale/version.h 2.07KB
  176. simplest_ffmpeg_audio_player/include/stdint.h 5.72KB
  177. simplest_ffmpeg_audio_player/lib/
  178. simplest_ffmpeg_audio_player/lib/SDL2.lib 113.67KB
  179. simplest_ffmpeg_audio_player/lib/SDL2main.lib 39.59KB
  180. simplest_ffmpeg_audio_player/lib/avcodec.lib 218.52KB
  181. simplest_ffmpeg_audio_player/lib/avdevice.lib 9.22KB
  182. simplest_ffmpeg_audio_player/lib/avfilter.lib 66.06KB
  183. simplest_ffmpeg_audio_player/lib/avformat.lib 122.13KB
  184. simplest_ffmpeg_audio_player/lib/avutil.lib 320.93KB
  185. simplest_ffmpeg_audio_player/lib/postproc.lib 8.03KB
  186. simplest_ffmpeg_audio_player/lib/swresample.lib 75.54KB
  187. simplest_ffmpeg_audio_player/lib/swscale.lib 27.8KB
  188. simplest_ffmpeg_audio_player/output.pk 6.75KB
  189. simplest_ffmpeg_audio_player/simplest_ffmpeg_audio_player.cpp 7.42KB
  190. simplest_ffmpeg_audio_player/simplest_ffmpeg_audio_player.vcxproj 4.92KB
  191. simplest_ffmpeg_audio_player/simplest_ffmpeg_audio_player.vcxproj.filters 1008B
  192. simplest_ffmpeg_audio_player/simplest_ffmpeg_audio_player.vcxproj.user 141B
  193. simplest_ffmpeg_audio_player/swresample-0.dll 269.5KB
  194. simplest_ffmpeg_audio_player/swscale-2.dll 424KB
  195. simplest_ffmpeg_audio_player2.sln 931B
  196. simplest_ffmpeg_audio_player2.suo 18.5KB
0评论
提交 加载更多评论
其他资源 一个C++做MYSQL开发的精简开发包
一个C++做MYSQL开发的精简开发包
ActiveAndroid
ActiveAndroid 是轻量级持久性框架,简化了与SQLite数据库操作。
usb_driver.zip
Android usb_driver ,解决设备端口不对, adb fastboot 无法连接问题
Java互联网实时聊天系统源码.zip
Java互联网实时聊天系统源码.zip
CSerialPortV3.0.3串口类最新修正版2018-06-21
1.增加信号与槽机制传输数据 add sigslot.h to send data 2.修复handle初始化问题,全部初始化为INVALID_HANDLE_VALUE modify handle init INVALID_HANDLE_VALUE 3.修复串口打开失败,再次成功打开串口后,不能正常读写问题 fix can not read and write when the port open failed 其他: 博客:blog.csdn.net/itas109 Email:itas109@qq.com
Keil5 C51安装包.zip
下载了keil5之后 安装C51包就可以写单片机程序了
crm项目
crm项目文档,培训教程
macos下的串口调试工具下载
自己写的MacOS下的串口调试工具 ,基于开源库ORSSerialPort。 支持16进制显示,以及字符串GBK或者UTF显示。 已废弃,app store 上已经有人开发出了更好用的app: https://apps.apple.com/cn/app/id1530756768