<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1439845957520_19156"><span id="yui_3_16_0_1_1439845957520_19163">I posted this in the wrong list so sorry everyone.</span></div><div> </div><div class="signature">Joolz</div><div class="qtdSeparateBR"><br><br></div> <div style="display: block;" id="yui_3_16_0_1_1439845957520_19170" class="yahoo_quoted"> <div id="yui_3_16_0_1_1439845957520_19169" style="font-family: HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_1_1439845957520_19168" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;"> <div dir="ltr"> <font face="Arial" size="2"> On Monday, 17 August 2015, 12:10, JULIAN GARDNER <joolzg@btinternet.com> wrote:<br> </font> </div> <blockquote id="yui_3_16_0_1_1439845957520_19167" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"> <br><br> <div id="yui_3_16_0_1_1439845957520_19166" class="y_msg_container"><div id="yiv1781334510"><div id="yui_3_16_0_1_1439845957520_19165"><div id="yui_3_16_0_1_1439845957520_19164" style="color:#000;background-color:#fff;font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div>What i am trying to do is to take a full TS, and have a thread read in this stream and pass off X number of programs to different encoding threads.</div><div><br></div><div>My current code base uses this</div><div><br></div><div dir="ltr" id="yiv1781334510yui_3_16_0_1_1439797306811_36801"> avio_open2( &inputSource->fmt_ctx->pb, inputSource->src_filename, AVIO_FLAG_READ, &inputSource->fmt_ctx->interrupt_callback, &d);<br class="yiv1781334510"><br class="yiv1781334510"> /* open input file, and allocate format context */<br class="yiv1781334510"> if (avformat_open_input(&inputSource->fmt_ctx, inputSource->src_filename, NULL, NULL) < 0) {<br class="yiv1781334510"> fprintf(stderr, "%s:Could not open source file %s\n", inputSource->name, inputSource->src_filename);<br class="yiv1781334510"> ret = 1;<br class="yiv1781334510"> goto end;<br class="yiv1781334510"> }<br class="yiv1781334510"></div><div id="yiv1781334510yui_3_16_0_1_1439797306811_36811" dir="ltr"><br></div><div id="yiv1781334510yui_3_16_0_1_1439797306811_36887" dir="ltr">But I have to make sure there is only one program in the stream</div><div id="yiv1781334510yui_3_16_0_1_1439797306811_36888" dir="ltr"><br></div><div id="yiv1781334510yui_3_16_0_1_1439797306811_36889" dir="ltr">I would like to be able to pick 3 or 4 programs from the TS and encode each seperately using my encode thread.</div><div id="yiv1781334510yui_3_16_0_1_1439797306811_36890" dir="ltr"><br></div><div id="yiv1781334510yui_3_16_0_1_1439797306811_36891" dir="ltr">So the question is how do I push in data which is already in the pc and is not a UDP stream or a FILE<br></div><div id="yiv1781334510yui_3_16_0_1_1439797306811_36800"><span></span></div><div id="yiv1781334510yui_3_16_0_1_1439797306811_36799" class="yiv1781334510signature"><div id="yiv1781334510yui_3_16_0_1_1439797306811_36892"><div><br></div><div id="yui_3_16_0_1_1439845957520_19171">Joolz</div></div><div id="yiv1781334510yui_3_16_0_1_1439797306811_36893"><div id="yui_3_16_0_1_1439845957520_19172"><br></div><div id="yui_3_16_0_1_1439845957520_19173"><br></div><div id="yui_3_16_0_1_1439845957520_19174">PS. Also anyone around who can help with the BUG in the examples where you CANNOT change the output audio rate, it has to be the same as the internally generated one or the example crashes.</div></div></div></div></div></div><br><br></div> </blockquote> </div> </div> </div> </div></body></html>