<div id="yiv5079063955yui_3_16_0_1_1468730563025_5841">Hi</div>
<div id="yiv5079063955yui_3_16_0_1_1468730563025_5853">I use live555 to stream webcams with using ffmpeg for encoding them.</div>
<div id="yiv5079063955yui_3_16_0_1_1468730563025_7770">I use project in below link that it uses ffmpeg + live555 for encoding and streaming :</div>
<div id="yiv5079063955yui_3_16_0_1_1468730563025_7771"><a href="https://github.com/alm865/FFMPEG-Live555-H264-H265-Streamer" id="yiv5079063955yui_3_16_0_1_1468730563025_7772" target='_blank'>https://github.com/alm865/FFMPEG-Live555-H264-H265-Streamer</a></div>
<div id="yiv5079063955yui_3_16_0_1_1468730563025_7774"> </div>
<div id="yiv5079063955yui_3_16_0_1_1468730563025_5919">I want to stream multiple webcams at the same time and so, I create new thread for each of them.</div>
<div id="yiv5079063955yui_3_16_0_1_1468730563025_6001">Because of using static variable eventtriggerId , program will be aborted.</div>
<div id="yiv5079063955yui_3_16_0_1_1468730563025_6049">I searched in google and I found that I must convert static var to non-static variable and for each instance of threads ,</div>
<div id="yiv5079063955yui_3_16_0_1_1468730563025_6098">I should use different eventtriggerId .</div>
<div id="yiv5079063955yui_3_16_0_1_1468730563025_6146">The code of DeviceSource.cpp should be changed for this .but I don't know how to change it .</div>
<div id="yiv5079063955yui_3_16_0_1_1468730563025_6285">I have some questions , Please help me :</div>
<div id="yiv5079063955yui_3_16_0_1_1468730563025_6262">1) If I use different eventtriggerId (not equals to zero) , in DeviceSource constructor where code is :</div>
<div id="yiv5079063955yui_3_16_0_1_1468730563025_6336">if (eventTriggerId == 0) {<br> eventTriggerId = envir().taskScheduler().createEventTrigger(deliverFrame0);</div>
<div id="yiv5079063955yui_3_16_0_1_1468730563025_6379">}</div>
<div id="yiv5079063955yui_3_16_0_1_1468730563025_6378">in if statement : Should I use eventtriggerId value that I set for each thread instead zero or it must be zero ?</div>
<div id="yiv5079063955yui_3_16_0_1_1468730563025_6442"> </div>
<div id="yiv5079063955yui_3_16_0_1_1468730563025_7616">2)When I convert static variable eventtriggerId to non-static var , how I get access to it in other class like FFMPEGClass that accessed to it ?</div>
<br>
<div id="yiv5079063955yui_3_16_0_1_1468730563025_7558">Is there a project or help link to expalins details of changing static var eventtriggerId to non-static and other next changes in external thread?</div>
<div id="yiv5079063955yui_3_16_0_1_1468730563025_7557"> </div>
<div id="yiv5079063955yui_3_16_0_1_1468730563025_7556">Thanks</div>
Best Regards