基于 FFMPEG 的 Android RTMP 流推和拉取示例

提供了基于 FFMPEG 库的 Android RTMP 流推和拉取示例代码。该代码改编自雷大师开源项目,并结合了 NDK 的最新版本,为开发者提供一个简单明了的示例,展示如何使用 FFMPEG 实现 RTMP 流媒体处理。

在推流方面,重点介绍了编码和推流的基本流程,而拉流方面则主要关注解码和显示。对于希望更深入了解 FFMPEG 抛出错误机制的开发者,也提供了相关的解析。此外,还提供了示例代码,可帮助开发者将数据传输给 FFMPEG 进行处理,并了解 FFMPEG 的错误处理机制。

本示例代码帮助开发者快速上手 RTMP 流媒体处理,并为进一步探索和定制提供基础。

folder
Android ffmpeg rtmp stream推和收,简单示例 预估大小:216个文件
file
.DS_Store 6KB
file
styles.xml 324B
file
main.xml 254B
file
styles.xml 381B
file
ic_launcher.png 13KB
file
ic_launcher.png 21KB
file
ic_launcher.png 46KB
file
strings.xml 234B
file
styles.xml 680B
file
dimens.xml 213B
file
dimens.xml 269B
file
ic_launcher.png 6KB
file
dimens.xml 196B
file
activity_main.xml 2KB
file
proguard-project.txt 781B
file
.DS_Store 6KB
file
ic_launcher-web.png 212KB
file
.DS_Store 6KB
file
.DS_Store 6KB
file
libswscale-3.so 320KB
file
config.h 57KB
file
libavfilter-5.so 834KB
file
include_extra.zip 12KB
file
libavdevice-56.so 98KB
file
cmdutils.h 19KB
file
ffmpeg_opt.c 123KB
file
libavutil-54.so 242KB
file
ffmpeg.h 16KB
file
ffmpeg_filter.c 37KB
file
ffmpeg_jni.c 20KB
file
ffmpeg_mod.c 146KB
file
cmdutils_common_opts.h 3KB
file
version.h 3KB
file
avfilter.h 56KB
file
buffersink.h 7KB
file
avfiltergraph.h 975B
file
buffersrc.h 5KB
file
asrc_abuffer.h 3KB
file
avcodec.h 2KB
file
getopt.c 2KB
file
strtod.c 3KB
file
w32pthreads.h 9KB
file
os2threads.h 4KB
file
va_copy.h 1KB
file
strtod.d 175B
file
strtod.o 2KB
file
version.h 2KB
file
swresample.h 19KB
file
version.h 2KB
file
swscale.h 12KB
file
version.h 2KB
file
avdevice.h 18KB
file
version.h 2KB
file
avresample.h 19KB
file
version.h 2KB
file
postprocess.h 3KB
file
md5.h 2KB
file
version.h 4KB
file
rational.h 4KB
file
avassert.h 2KB
file
parseutils.h 7KB
file
timestamp.h 3KB
file
audio_fifo.h 4KB
file
old_pix_fmts.h 14KB
file
hash.h 4KB
file
murmur3.h 1KB
file
base64.h 2KB
file
pixfmt.h 33KB
file
bswap.h 3KB
file
aes.h 2KB
file
random_seed.h 1KB
file
file.h 2KB
file
dict.h 8KB
file
macros.h 1KB
file
display.h 3KB
file
imgutils.h 8KB
file
samplefmt.h 10KB
file
fifo.h 5KB
file
stereo3d.h 4KB
file
blowfish.h 2KB
file
cast5.h 2KB
file
common.h 14KB
file
buffer.h 10KB
file
eval.h 5KB
file
pixdesc.h 15KB
file
intreadwrite.h 18KB
file
hmac.h 3KB
file
twofish.h 2KB
file
replaygain.h 2KB
file
timecode.h 5KB
file
mem.h 14KB
file
crc.h 3KB
file
frame.h 23KB
file
avstring.h 13KB
file
ripemd.h 2KB
file
intfloat.h 2KB
file
avutil.h 8KB
file
xtea.h 2KB
file
pixelutils.h 2KB
file
motion_vector.h 2KB
file
error.h 5KB
file
channel_layout.h 9KB
file
sha512.h 2KB
file
ffversion.h 117B
file
cpu.h 5KB
file
bprint.h 8KB
file
sha.h 2KB
file
attributes.h 4KB
file
log.h 10KB
file
libm.h 4KB
file
threadmessage.h 3KB
file
opt.h 37KB
file
lzo.h 2KB
file
lfg.h 2KB
file
adler32.h 2KB
file
downmix_info.h 3KB
file
camellia.h 2KB
file
mathematics.h 5KB
file
avconfig.h 211B
file
time.h 2KB
file
audioconvert.h 82B
file
version.h 2KB
file
ffm.h 2KB
file
network.h 7KB
file
avformat.h 100KB
file
avio.h 19KB
file
os_support.h 6KB
file
url.h 10KB
file
version.h 6KB
file
xvmc.h 6KB
file
dxva2.h 2KB
file
vorbis_parser.h 2KB
file
vaapi.h 4KB
file
avfft.h 3KB
file
old_codec_ids.h 10KB
file
vda.h 5KB
file
qsv.h 1KB
file
avcodec.h 177KB
file
vdpau.h 8KB
file
dv_profile.h 4KB
file
Android.mk 1KB
file
libavcodec-56.so 6.28MB
file
cmdutils.c 69KB
file
libswresample-1.so 109KB
file
Application.mk 70B
file
libavformat-56.so 1.23MB
file
libpostproc-53.so 60KB
file
.DS_Store 6KB
file
org.eclipse.jdt.core.prefs 173B
file
FfmpegIF.java 559B
file
AudioRecorder22.java 2KB
file
AudioPublisher.java 4KB
file
AudioRecorder6.java 5KB
file
VideoRecorder.java 7KB
file
AudioPlayer2.java 1KB
file
AudioRecorder5.java 2KB
file
AudioRecorder3.java 3KB
file
AudioRecorder.java 4KB
file
AudioRecorder2.java 2KB
file
AudioRecorder4.java 2KB
file
MainActivity.java 14KB
file
IVideoPlayerCallback.java 134B
file
FWAudioRecordService.java 3KB
file
AudioRecorder8.java 2KB
file
AudioConfig.java 1KB
file
IAudioPlayerCallback.java 134B
file
MemoryFileUtil.java 679B
file
AudioPlayer1.java 3KB
file
FWThread.java 2KB
file
FWMediaService.java 1KB
file
IVideoPlayerCallback.java 145B
file
FWAudioRecorder.java 6KB
file
IAudioPlayerCallback.java 145B
file
AudioRecordConfig.java 2KB
file
FWAudioPlayer.java 3KB
file
FWRtmpService.java 322B
file
IFWMediaErrorHandler.java 119B
file
CountingInputStream.java 4KB
file
ProxyOutputStream.java 5KB
file
ProxyInputStream.java 7KB
file
CountingOutputStream.java 3KB
file
HttpResponse.java 2KB
file
HttpResponseStartLine.java 2KB
file
HttpMethod.java 546B
file
HttpVersion.java 303B
file
HttpChunk.java 2KB
file
HttpRequestStartLine.java 2KB
file
HttpRequest.java 3KB
file
HttpSocket.java 7KB
file
HttpHeaderEntity.java 2KB
file
HttpConstants.java 29KB
file
HttpTransaction.java 5KB
file
HttpStreamUtils.java 3KB
file
TextUtil.java 3KB
file
HttpHeader.java 7KB
file
FWMobException.java 398B
file
FWLogLevel.java 428B
file
FWLogger.java 3KB
file
HttpService.java 7KB
file
.project 1KB
file
.cproject 4KB
file
Thumbs.db 91KB
file
.classpath 466B
file
.gitignore 9B
file
project.properties 563B
file
AndroidManifest.xml 1KB
file
libswscale-3.so 249KB
file
libavfilter-5.so 672KB
file
libavdevice-56.so 46KB
file
libavutil-54.so 165KB
file
libavcodec-56.so 5.67MB
file
libswresample-1.so 61KB
file
libavformat-56.so 1011KB
file
libFWMediaService.so 166KB
file
libpostproc-53.so 29KB
file
.DS_Store 6KB
...
zip 文件大小:10.33MB