feng99721480
feng99721480
请教下大佬,下面ffmpet命令我在cmd里执行是没问题的,在android里执行就回调IFFmpegListener的onFinish,这是为什么? ffmpeg命令的目的是把rtsp流切片到本地,每个ts以时间戳命名,谢大佬。 private String[] getCutCommand(String rtspAddress, String second, String m3u8Path) { //20201202-0000.ts //ffmpeg -re -i rtsp://192.168.10.13/RK_100000030.sdp -codec copy -f hls -hls_list_size 0 -hls_wrap 10 -hls_time 10 // -use_localtime 1 -hls_flags...
private String[] getPushRTMPAliCommand(String rtspAddress) { //RTSP转RTMP,推流到云端 RxFFmpegCommandList cmdlist = new RxFFmpegCommandList(); cmdlist.append("-i");//输入 cmdlist.append(rtspAddress); //获取视频流的地址:网络摄像头的RTSP地址 cmdlist.append("-vcodec"); //视频编解码器 cmdlist.append("copy"); //流复制 cmdlist.append("-acodec"); //音频编解码器 cmdlist.append("copy"); //流复制 cmdlist.append("-f"); //输出 cmdlist.append("flv"); //格式 cmdlist.append("rtmp://source.unifun.store/insbot/" + robotId); //推送到云服务端,播放地址:rtmp://play.unifun.store/insbot/mssm_live...