hardman / awlive Goto Github PK
View Code? Open in Web Editor NEW最简单的iOS 推流代码,视频捕获,软编码(faac,x264),硬编码(aac,h264),横屏直播,美颜,flv编码,rtmp协议,blog内陆续更新代码解析,你想学的知识这里都有,愿意懂直播技术的同学快来看!!
License: Apache License 2.0
最简单的iOS 推流代码,视频捕获,软编码(faac,x264),硬编码(aac,h264),横屏直播,美颜,flv编码,rtmp协议,blog内陆续更新代码解析,你想学的知识这里都有,愿意懂直播技术的同学快来看!!
License: Apache License 2.0
感谢大神无私贡献! 实际学习的时候出现如题现象 6s真机 red5服务
在iOS 10.2 设备上正常, 运行在iOS 13.x的设备上,美颜模式推流编码后的视频变成了条状马赛克, 不使用美颜正常
crash in line 219 in aw_x264.c
建立rtmp失败,一直等待状态,最后报超时错误
楼主你好问一下,怎么不更新了?
我注意到 在使用系统相机的情况下, 需要先将摄像头捕捉到的数据 CVImageBufferRef 转为 NSData(NV12 数据排列格式), 然后在H264 编码时候, 又将 NSData(NV12 数据排列格式) 转为 CVImageBufferRef, 既然这样, 为什么不直接使用 CVImageBufferRef 呢? 求解...
2017-03-06 16:00:52.669313 BroadCast[5955:319877] [OC] rtmp state changed from(aw_rtmp_state_idle), to(aw_rtmp_state_connecting)
2017-03-06 16:00:52.669682 BroadCast[5955:319838] 连接中
ERROR: RTMP_Connect0, failed to connect socket. 65 (No route to host)
aw rtmp closing.......
aw rtmp closed.......
2017-03-06 16:00:52.671246 BroadCast[5955:319877] [OC] rtmp state changed from(aw_rtmp_state_connecting), to(aw_rtmp_state_closed)
2017-03-06 16:00:52.671383 BroadCast[5955:319838] 已关闭
2017-03-06 16:00:52.671538 BroadCast[5955:319877] [OC] rtmp state changed from(aw_rtmp_state_closed), to(aw_rtmp_state_idle)
aw rtmp closing.......
[d] closed rtmp context
2017-03-06 16:00:52.671630 BroadCast[5955:319838] 未连接
2017-03-06 16:00:52.671664 BroadCast[5955:319877] [OC] rtmp state changed from(aw_rtmp_state_idle), to(aw_rtmp_state_error_open)
2017-03-06 16:00:52.671749 BroadCast[5955:319877] [OC] rtmp state changed from(aw_rtmp_state_error_open), to(aw_rtmp_state_idle)
2017-03-06 16:00:52.671768 BroadCast[5955:319838] 连接错误
2017-03-06 16:00:52.671816 BroadCast[5955:319877] [OC] rtmp state changed from(aw_rtmp_state_idle), to(aw_rtmp_state_error_net)
2017-03-06 16:00:52.671875 BroadCast[5955:319838] 未连接
2017-03-06 16:00:52.671906 BroadCast[5955:319877] [OC] rtmp state changed from(aw_rtmp_state_error_net), to(aw_rtmp_state_idle)
2017-03-06 16:00:52.671959 BroadCast[5955:319877] startCapture rtmpOpen error!!! retcode=0
2017-03-06 16:00:52.671997 BroadCast[5955:319838] 网络不给力
aw rtmp closing.......
[d] closed rtmp context
2017-03-06 16:00:52.672059 BroadCast[5955:319838] 未连接
ld: warning: ignoring file /Users/huangchp/Downloads/AWLive-master/clibs/3th-party/libyuv/lib/libyuv.a, missing required architecture x86_64 in file /Users/huangchp/Downloads/AWLive-master/clibs/3th-party/libyuv/lib/libyuv.a (2 slices)
Undefined symbols for architecture x86_64:
"_ARGBToNV12", referenced from:
-[AWGPUImageAVCaptureDataHandler newFrameReadyAtTime:atIndex:] in AWGPUImageAVCapture.o
"_I420ToNV12", referenced from:
-[AWVideoEncoder rotateNV12Data:] in AWVideoEncoder.o
"_NV12ToI420Rotate", referenced from:
-[AWVideoEncoder rotateNV12Data:] in AWVideoEncoder.o
ld: symbol(s) not found for architecture x86_64
多次直播开关按钮后直播会卡顿,请知悉,用instrument检测发现有内存泄漏。
退到后台之后就无法进行推流了 权限都已经添加 for (id currentTarget in targets) targets size一直是1 正常的时候size是2
拉流返回的FLV流,是AAC和H264各自解码,然后播放?还是FLV转MP4等格式播放?
你好
在切换成软编码的后,尝试多次开始直播关闭直播后,在aw_x264.c里面会崩溃在219行的x264_picture_clean(ctx->pic_in);
请知悉。
不断开关直播时,出现的,不是必现的
你好,我近期也在使用ffmpeg+sdl+cocos2dx方案,现在显示视频和播放音频都OK了,但是经常声音有噪音,尤其是播放网络视频网速不好的时候,不知道你有遇到并解决过这类问题吗?
标准的FLV视频还需要设置一个MetaData。在发送sequential header之前可以进行发送,似乎不设置这个,普通的flv播放器会播放不了。
真机6s iOS13.4,本地nginx测试,地址也填了电脑地址
错误:
ERROR: RTMP_Connect0, failed to connect socket. 65 (No route to host)
aw rtmp closing.......
aw rtmp closed.......
2020-04-17 18:49:45.517451+0800 AWLive[24612:3841936] [OC] rtmp state changed from(aw_rtmp_state_connecting), to(aw_rtmp_state_closed)
2020-04-17 18:49:45.518377+0800 AWLive[24612:3841936] [OC] rtmp state changed from(aw_rtmp_state_closed), to(aw_rtmp_state_idle)
aw rtmp closing.......
[d] closed rtmp context
2020-04-17 18:49:45.519529+0800 AWLive[24612:3841936] [OC] rtmp state changed from(aw_rtmp_state_idle), to(aw_rtmp_state_error_open)
2020-04-17 18:49:45.520548+0800 AWLive[24612:3841936] [OC] rtmp state changed from(aw_rtmp_state_error_open), to(aw_rtmp_state_idle)
2020-04-17 18:49:45.521338+0800 AWLive[24612:3841936] [OC] rtmp state changed from(aw_rtmp_state_idle), to(aw_rtmp_state_error_net)
2020-04-17 18:49:45.522171+0800 AWLive[24612:3841936] [OC] rtmp state changed from(aw_rtmp_state_error_net), to(aw_rtmp_state_idle)
2020-04-17 18:49:45.523620+0800 AWLive[24612:3841936] startCapture rtmpOpen error!!! retcode=0
aw rtmp closing.......
[d] closed rtmp context
运行不起啊
@hardman 大神 这个延迟的问题请问有没有什么好的办法解决啊
直播没几秒就卡死不动了。然后使用其他第三方的SDK反而能够正常
设备iPhone X 11.4.1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.