<div dir="ltr"><div>Hello.<br></div>I work for video streamer for android.<br clear="all"><div><div>For now I just read file and send it in network.<br><br>                if (stream.stream->codec->coded_frame->key_frame)<br>
                    p.flags |= AV_PKT_FLAG_KEY;<br><br>                if (got_packet_ptr) {<br><br>                    p.dts = av_rescale_q_rnd(p.dts,<br>                            stream.output_format_context->streams[0]->codec->time_base,<br>
                            stream.output_format_context->streams[0]->time_base,<br>                            AV_ROUND_NEAR_INF|AV_ROUND_PASS_MINMAX);<br>                    p.pts = av_rescale_q_rnd(p.pts,<br>                            stream.output_format_context->streams[0]->codec->time_base,<br>
                            stream.output_format_context->streams[0]->time_base,<br>                            AV_ROUND_NEAR_INF|AV_ROUND_PASS_MINMAX);<br>                    p.duration = av_rescale_q(p.duration,<br>
                                 stream.output_format_context->streams[0]->codec->time_base,<br>                                 stream.output_format_context->streams[0]->time_base);<br><br>                    av_interleaved_write_frame(stream.output_format_context, &p);<br>
                    av_frame_free(&frame);<br>                    av_free_packet(&p);<br>                }<br>            }<br><br></div><div>But this occupies the entire channel it works, but it occupies the entire network channel.<br>
<span id="result_box" class="" lang="en"><span class=""></span></span></div><div>What can I do with sending for decrease network lodaing..<br></div><div>What I do wrong?<br></div><div>-- <br>Regards,<br>Dmitry
</div></div></div>