Hi
I use live555 to stream webcams with using ffmpeg for encoding them.
I use project in below link that it uses ffmpeg + live555 for encoding and streaming :
 
I want to stream multiple webcams at the same time and so, I create new thread  for each of them.
Because of using static variable eventtriggerId , program will be aborted.
I searched in google and I found that I must convert static var to non-static variable and for each instance of threads ,
I should use different eventtriggerId .
The code of DeviceSource.cpp should be changed for this .but I don't know how to change it .
I have some questions , Please help me :
1) If I use different eventtriggerId (not equals to zero) , in DeviceSource constructor where code is :
if (eventTriggerId == 0) {
    eventTriggerId = envir().taskScheduler().createEventTrigger(deliverFrame0);
}
in if statement : Should I use eventtriggerId value that I set for each thread instead zero or it must be zero ?
 
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 ?

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?
 
Thanks
Best Regards
_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to