Terminate transcode job
Hi,
I’m trying to remove some transcode jobs from the "pullPushSetup.xml" config file using the HTTP API provided on the dafault port 7777.
As far as I know, to remove a transcode job, I only need to call the method "removeconfig" with a parameter "groupName=XXX" that specifies the group (or the single) transcode to remove.
I have different parallel transcode jobs (each with: different resolution, different avpreset, different groupName, …) over the same input stream.
Once I try to close some of this transcode processes, the EMS crashes and shows this error in the console:
......sourcesthelibsrcnetioiocpiohandlermanager.cpp:129 Handlers count changed: 28->27 IOHT_TCP_CARRIER
......sourcesthelibsrcnetioiocpiohandlermanager.cpp:129 Handlers count changed: 27->26 IOHT_TCP_CARRIER
......sourcesthelibsrcnetioiocpiohandlermanager.cpp:120 Handlers count changed: 26->27 IOHT_TCP_CARRIER
......sourcesthelibsrcnetioiocptcpacceptor.cpp:230 Inbound connection accepted: (Far: 192.168.1.30:50242; Near:
192.168.1.27:7777) CTCP(1044) <-> TCP(209) <-> IHTT(210) <-> H4C(211) <-> [IJSONCLI(212)]
......sourcesapplicationsevoroutersrcprotocolsclicliappprotocolhandler.cpp:606 command: removeconfig
av_interleaved_write_frame(): Unknown error
......sourcesthelibsrcapplicationbaseclientapplication.cpp:291 Protocol (Far: 192.168.1.30:50242; Near: 192.168.1
.27:7777) CTCP(1044) <-> TCP(209) <-> IHTT(210) <-> H4C(211) <-> [IJSONCLI(212)] unregistered from application: evostrea
mms
......sourcesthelibsrcnetioiocpiohandlermanager.cpp:129 Handlers count changed: 27->26 IOHT_TCP_CARRIER
......sourcesthelibsrcnetioiocptcpcarrier.cpp:105 Unable to read data from connection: (Far: 192.168.1.27:52411;
Near: 192.168.1.27:1935) CTCP(556) <-> [TCP(13)] <-> IR(14). WSAGetLastError returned: 10054
......sourcesthelibsrcnetioiocptcpcarrier.cpp:193 Unable to call WSASend. Error was: 10054
......sourcesthelibsrcnetioiocptcpcarrier.cpp:140 Unable to write data on connection: (Far: 192.168.1.27:52411;
Near: 192.168.1.27:1935) CTCP(556) <-> [TCP(13)] <-> IR(14). Signaling upper protocols failed
......sourcesthelibsrcnetioiocptcpcarrier.cpp:193 Unable to call WSASend. Error was: 10054
......sourcesthelibsrcprotocolsrtmpstreamingoutnetrtmpstream.cpp:639 Unable to send data
......sourcesthelibsrcprotocolsrtmpstreamingoutnetrtmpstream.cpp:459 Unable to chunk and send data
......sourcesthelibsrcapplicationbaseclientapplication.cpp:303 Stream ONR(3) with name `00-40-8C-AF-DB-B7` from p
rotocol IR(14) unregistered from origin application `evostreamms`
......sourcesthelibsrcapplicationbaseclientapplication.cpp:291 Protocol (Far: 192.168.1.27:52411; Near: 192.168.1
.27:1935) CTCP(556) <-> TCP(13) <-> [IR(14)] unregistered from application: evostreamms
......sourcesthelibsrcnetioiocpiohandlermanager.cpp:120 Handlers count changed: 26->27 IOHT_TCP_CARRIER
......sourcesthelibsrcnetioiocptcpacceptor.cpp:230 Inbound connection accepted: (Far: 192.168.1.30:50243; Near:
192.168.1.27:7777) CTCP(1084) <-> TCP(213) <-> IHTT(214) <-> H4C(215) <-> [IJSONCLI(216)]
......sourcesthelibsrcnetioiocpiohandlermanager.cpp:129 Handlers count changed: 27->26 IOHT_TCP_CARRIER
......sourcesapplicationsevoroutersrcprotocolsclicliappprotocolhandler.cpp:606 command: shutdownstream
......sourcesthelibsrcapplicationbaseclientapplication.cpp:303 Stream INLFLV(7) with name `00-40-8C-AF-DB-B7_1Q_1
280x720` from protocol ILFL(30) unregistered from origin application `evostreamms`
......sourcesthelibsrcprotocolsliveflvbaseliveflvappprotocolhandler.cpp:58 protocol (Far: 127.0.0.1:52417; Near:
127.0.0.1:6666) CTCP(612) <-> TCP(29) <-> [ILFL(30)] unregistered from app evostreamms
......sourcesthelibsrcapplicationbaseclientapplication.cpp:291 Protocol (Far: 127.0.0.1:52417; Near: 127.0.0.1:66
66) CTCP(612) <-> TCP(29) <-> [ILFL(30)] unregistered from application: evostreamms
......sourcesthelibsrcapplicationbaseclientapplication.cpp:291 Protocol (Far: 192.168.1.30:50243; Near: 192.168.1
.27:7777) CTCP(1084) <-> TCP(213) <-> IHTT(214) <-> H4C(215) <-> [IJSONCLI(216)] unregistered from application: evostrea
mms
......sourcesthelibsrcnetioiocpiohandlermanager.cpp:129 Handlers count changed: 26->25 IOHT_TCP_CARRIER
......sourcesthelibsrcnetioiocpiohandlermanager.cpp:129 Handlers count changed: 25->24 IOHT_TCP_CARRIER
......sourcesthelibsrcnetioiocpiohandlermanager.cpp:120 Handlers count changed: 24->25 IOHT_TCP_CARRIER
av_interleaved_write_frame(): Unknown error
......sourcesthelibsrcnetioiocptcpacceptor.cpp:230 Inbound connection accepted: (Far: 192.168.1.30:50244; Near:
192.168.1.27:7777) CTCP(1044) <-> TCP(217) <-> IHTT(218) <-> H4C(219) <-> [IJSONCLI(220)]
......sourcesthelibsrcnetioiocptcpcarrier.cpp:105 Unable to read data from connection: (Far: 192.168.1.27:52410;
Near: 192.168.1.27:1935) CTCP(512) <-> [TCP(15)] <-> IR(16). WSAGetLastError returned: 10054
......sourcesthelibsrcnetioiocptcpcarrier.cpp:193 Unable to call WSASend. Error was: 10054
......sourcesthelibsrcnetioiocptcpcarrier.cpp:140 Unable to write data on connection: (Far: 192.168.1.27:52410;
Near: 192.168.1.27:1935) CTCP(512) <-> [TCP(15)] <-> IR(16). Signaling upper protocols failed
......sourcesthelibsrcnetioiocptcpcarrier.cpp:193 Unable to call WSASend. Error was: 10054
......sourcesthelibsrcprotocolsrtmpstreamingoutnetrtmpstream.cpp:639 Unable to send data
......sourcesthelibsrcprotocolsrtmpstreamingoutnetrtmpstream.cpp:459 Unable to chunk and send data
......sourcesthelibsrcapplicationbaseclientapplication.cpp:303 Stream ONR(4) with name `00-40-8C-AF-DB-B7` from p
rotocol IR(16) unregistered from origin application `evostreamms`
......sourcesthelibsrcapplicationbaseclientapplication.cpp:291 Protocol (Far: 192.168.1.27:52410; Near: 192.168.1
.27:1935) CTCP(512) <-> TCP(15) <-> [IR(16)] unregistered from application: evostreamms
......sourcesapplicationsevoroutersrcprotocolsclicliappprotocolhandler.cpp:606 command: removeconfig
......sourcescommonsrcplatformwindowswin32platform.cpp:539 Cannot terminate process id = 6520
av_interleaved_write_frame(): Unknown error
av_interleaved_write_frame(): Unknown error
av_interleaved_write_frame(): Unknown error
This is a snippet of the log file before the crash happened:
1410348859:4:......sourcesthelibsrcnetioiocpiohandlermanager.cpp:129:IOHandlerManager::UnRegisterIOHandler:Handlers count changed: 26->25 IOHT_TCP_CARRIER
1410348859:4:......sourcesthelibsrcnetioiocpiohandlermanager.cpp:129:IOHandlerManager::UnRegisterIOHandler:Handlers count changed: 25->24 IOHT_TCP_CARRIER
1410348859:4:......sourcesthelibsrcnetioiocpiohandlermanager.cpp:120:IOHandlerManager::RegisterIOHandler:Handlers count changed: 24->25 IOHT_TCP_CARRIER
1410348859:3:......sourcesthelibsrcnetioiocptcpacceptor.cpp:230:TCPAcceptor::Accept:Inbound connection accepted: (Far: 192.168.1.30:50244; Near: 192.168.1.27:7777) CTCP(1044) <-> TCP(217) <-> IHTT(218) <-> H4C(219) <-> [IJSONCLI(220)]
1410348859:0:......sourcesthelibsrcnetioiocptcpcarrier.cpp:105:TCPCarrier::OnEvent:Unable to read data from connection: (Far: 192.168.1.27:52410; Near: 192.168.1.27:1935) CTCP(512) <-> [TCP(15)] <-> IR(16). WSAGetLastError returned: 10054
1410348859:0:......sourcesthelibsrcnetioiocptcpcarrier.cpp:193:TCPCarrier::SignalOutputData:Unable to call WSASend. Error was: 10054
1410348859:0:......sourcesthelibsrcnetioiocptcpcarrier.cpp:140:TCPCarrier::OnEvent:Unable to write data on connection: (Far: 192.168.1.27:52410; Near: 192.168.1.27:1935) CTCP(512) <-> [TCP(15)] <-> IR(16). Signaling upper protocols failed
1410348859:0:......sourcesthelibsrcnetioiocptcpcarrier.cpp:193:TCPCarrier::SignalOutputData:Unable to call WSASend. Error was: 10054
1410348859:0:......sourcesthelibsrcprotocolsrtmpstreamingoutnetrtmpstream.cpp:639:OutNetRTMPStream::ChunkAndSend:Unable to send data
1410348860:0:......sourcesthelibsrcprotocolsrtmpstreamingoutnetrtmpstream.cpp:459:OutNetRTMPStream::InternalFeedData:Unable to chunk and send data
1410348860:3:......sourcesthelibsrcapplicationbaseclientapplication.cpp:303:BaseClientApplication::SignalStreamUnRegistered:Stream ONR(4) with name `00-40-8C-AF-DB-B7` from protocol IR(16) unregistered from origin application `evostreamms`
1410348860:6:......sourcesthelibsrcapplicationbaseclientapplication.cpp:291:BaseClientApplication::UnRegisterProtocol:Protocol (Far: 192.168.1.27:52410; Near: 192.168.1.27:1935) CTCP(512) <-> TCP(15) <-> [IR(16)] unregistered from application: evostreamms
1410348860:3:......sourcesapplicationsevoroutersrcprotocolsclicliappprotocolhandler.cpp:606:app_evorouter::CLIAppProtocolHandler::ProcessMessage:command: removeconfig
1410348860:0:......sourcescommonsrcplatformwindowswin32platform.cpp:539:killProcess:Cannot terminate process id = 6520
Am I doing something wrong ❓
Cheers,
Mattia