具体代码如下:
child[0] = fork();
if( child[0] > 0 ) { /* parent, success */ msg_type = LIVE_MSG_TYPE9; video_type = VIDEO_TYPE_H264; rtspServerPortNum = 8557; H264VideoBitrate = 12000000; videoRTPPortNum = 6016; audioRTPPortNum = 6028; OverHTTPPortNum = 8304; streamingMode = STREAMING_UNICAST; } else if(child[0] == 0) { /* parent, success */ msg_type = LIVE_MSG_TYPE5; video_type = VIDEO_TYPE_H264; rtspServerPortNum = 8554;
H264VideoBitrate = 12000000; videoRTPPortNum = 6032; audioRTPPortNum = 6034; OverHTTPPortNum = 8304; streamingMode = STREAMING_MULTICAST_SSM; }
xiangyang duan:
回复 Chris Meng:
您好,目前出现了问题是,要是两个进程同时启动,视频画面会经常中断或者停止,要是一路就好使。 是不是共享内存里面存放的话我也需要两路去写,然后live555分两路去取呢。 又没有什么好的建议
Chris Meng:
回复 xiangyang duan:
你好,
码流buffer释放你是怎么做的?