Encoding from FMLE rtmp and HLS

Encoding from FMLE rtmp and HLS

Support ForumCategory: Installation and Basic OperationEncoding from FMLE rtmp and HLS
luuk_jansen asked 10 years ago
I am struggling with getting a stable solution with an ramp stream which I want to encode to two streams and then cheat HLS chunks. I have a master server which receives the ramp stream. The encoding server is started, and start puling in the stream. On the ‘inStreamCodecsUpdated’ API call I then create the encodings stream (2 in the example below). Then I check for the streams to be available, and create the HLS streams. However, as in the example below, they never come available, and the processes are closed. In most other cases, they do become available, but close in 20-30 seconds anyway. What can be the reason for the encoder to stop? On a side question, is there a way in this scenario to get some continuation if there is an interruption in the stream. I have keepAlive set to 0, as it otherwise have to do cleaning jobs on each start/stop but can change that if needed. This is my own log output, hope it makes some kind of sense. I don’t really know how to get useful debug output from the evostreamms: 16:00:50,455 DEBUG ~ Message: serverStarted 16:00:51,407 DEBUG ~ Message: cliResponse 16:00:51,499 DEBUG ~ Message: protocolRegisteredToApp 16:00:51,623 DEBUG ~ Message: cliRequest 16:00:51,708 DEBUG ~ Message: cliRequest 16:00:51,791 DEBUG ~ Message: cliResponse 16:00:51,880 DEBUG ~ Message: cliResponse 16:00:51,971 DEBUG ~ Message: cliRequest 16:00:52,067 DEBUG ~ Message: cliRequest 16:00:52,167 DEBUG ~ Message: cliResponse 16:00:52,253 DEBUG ~ Message: protocolRegisteredToApp 16:00:52,331 DEBUG ~ Message: streamCreated 16:00:52,415 DEBUG ~ Message: streamClosed 16:00:52,491 DEBUG ~ Message: inStreamCreated [color=#FF0000]16:00:52,569 DEBUG ~ Message: inStreamCodecsUpdated 16:00:52,569 DEBUG ~ Codex updated for stream name a72119 !!!! This is the queue for the encoding jobs to be created, I do it here to allow the stream to be settled, instead of doing it directly after calling for the stream pull. 16:00:52,688 DEBUG ~ Setting parked stream MediaFile[21681] to processing 16:00:52,720 DEBUG ~ Setting parked stream MediaFile[21682] to processing[/color] 16:00:52,849 DEBUG ~ Message: inStreamCodecsUpdated 16:00:52,851 DEBUG ~ Codex updated for stream name a72119 16:00:52,927 DEBUG ~ Start encoding job! 16:00:52,961 DEBUG ~ Exception trying to get live encoding jobs on the road java.lang.Exception: No media files PARKED for encoding at controllers.RTMPdInterface.evoWebServices(RTMPdInterface.java:259) at play.mvc.ActionInvoker.invokeWithContinuation(ActionInvoker.java:557) at play.mvc.ActionInvoker.invoke(ActionInvoker.java:508) at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:484) at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:479) at play.mvc.ActionInvoker.invoke(ActionInvoker.java:161) at Invocation.HTTP Request(Play!) 16:00:53,012 DEBUG ~ Am going to connect to the ‘local’ stream rtmp://localhost/live/a72119 16:00:53,017 DEBUG ~ Params1: source=rtmp://localhost/live/a72119 groupName=encoder_21681 videoBitrates=700000,180000 videoSizes=640×360,428×240 destinations=21681,21682 audioBitrates=128000,64000 audioFrequencies=48000,48000 audioChannelsCounts=2,1 keepAlive=0 16:00:53,028 DEBUG ~ Encoder should have been created [color=#FF0000]16:00:53,036 DEBUG ~ Stream a72119 vs 21681 on server ServerNode[5] !!! This means that the only stream in the server is a72119.[/color] 16:00:53,037 DEBUG ~ Stream (21681) not available, wait 1 seconds and try again for 5 time – 0 16:00:53,065 DEBUG ~ Message: protocolRegisteredToApp 16:00:53,154 DEBUG ~ Message: processStarted 16:00:53,154 DEBUG ~ processStarted 16:00:53,154 DEBUG ~ JSON: {"id":55,"payload":{"arguments":"rtmp://localhost/live/a72119 180000 428×240 na 64000 1 48000 na na na na na na -f\ flv\ tcp://localhost:6666/ 21682","configId":3,"customData":123,"fullBinaryPath":"/usr/bin/emsTranscoder.sh","groupName":"encoder_21681","keepAlive":false,"operationType":6},"timestamp":1391353253,"type":"processStarted"} 16:00:53,241 DEBUG ~ Message: cliRequest 16:00:53,330 DEBUG ~ Message: cliResponse 16:00:53,416 DEBUG ~ Message: processStarted 16:00:53,416 DEBUG ~ processStarted 16:00:53,416 DEBUG ~ JSON: {"id":54,"payload":{"arguments":"rtmp://localhost/live/a72119 700000 640×360 na 128000 2 48000 na na na na na na -f\ flv\ tcp://localhost:6666/ 21681","configId":2,"customData":123,"fullBinaryPath":"/usr/bin/emsTranscoder.sh","groupName":"encoder_21681","keepAlive":false,"operationType":6},"timestamp":1391353253,"type":"processStarted"} 16:00:53,506 DEBUG ~ Message: protocolRegisteredToApp 16:00:53,605 DEBUG ~ Message: cliRequest 16:00:53,699 DEBUG ~ Message: cliResponse 16:00:53,775 DEBUG ~ Message: protocolRegisteredToApp 16:00:53,858 DEBUG ~ Message: protocolRegisteredToApp 16:00:53,954 DEBUG ~ Message: streamCreated 16:00:54,034 DEBUG ~ Message: streamCreated 16:00:54,123 DEBUG ~ Message: streamClosed 16:00:54,210 DEBUG ~ Message: streamClosed 16:00:54,309 DEBUG ~ Message: outStreamCreated 16:00:54,394 DEBUG ~ Message: streamCreated 16:00:54,471 DEBUG ~ Message: outStreamCodecsUpdated 16:00:54,546 DEBUG ~ Message: streamClosed 16:00:54,632 DEBUG ~ Message: streamCreated 16:00:54,709 DEBUG ~ Message: outStreamCodecsUpdated 16:00:54,800 DEBUG ~ Message: outStreamCreated 16:00:54,887 DEBUG ~ Message: streamClosed 16:00:54,965 DEBUG ~ Message: protocolRegisteredToApp 16:00:55,041 DEBUG ~ Message: protocolRegisteredToApp 16:00:55,116 DEBUG ~ Message: inStreamCreated 16:00:55,205 DEBUG ~ Message: inStreamCodecsUpdated 16:00:55,206 DEBUG ~ Codex updated for stream name 21682 16:00:55,294 DEBUG ~ Message: inStreamCreated 16:00:55,370 DEBUG ~ Message: inStreamCodecsUpdated 16:00:55,510 DEBUG ~ Codex updated for stream name 21681 16:00:55,547 DEBUG ~ Stream a72119 vs 21681 on server ServerNode[5] 16:00:55,547 DEBUG ~ Stream (21681) not available, wait 1 seconds and try again for 5 time – 1 16:00:55,604 DEBUG ~ Message: protocolUnregisteredFromApp 16:00:55,691 DEBUG ~ Message: protocolUnregisteredFromApp 16:00:55,769 DEBUG ~ ge: inStreamClosed ???? 16:00:55,854 DEBUG ~ M: outStreamClosed ????? 16:00:55,935 DEBUG ~ Message: protocolUnregisteredFromApp 16:00:56,011 DEBUG ~ Message: inStreamClosed 16:00:56,095 DEBUG ~ Message: protocolUnregisteredFromApp 16:00:56,183 DEBUG ~ Message: outStreamClosed 16:00:56,284 DEBUG ~ Message: protocolRegisteredToApp 16:00:56,372 DEBUG ~ Message: protocolRegisteredToApp 16:00:56,449 DEBUG ~ Message: protocolRegisteredToApp 16:00:56,528 DEBUG ~ Message: protocolRegisteredToApp 16:00:56,620 DEBUG ~ Message: cliRequest 16:00:56,710 DEBUG ~ Message: cliResponse 16:00:58,057 DEBUG ~ Stream a72119 vs 21681 on server ServerNode[5] 16:00:58,058 DEBUG ~ Stream (21681) not available, wait 1 seconds and try again for 5 time – 2 16:00:58,076 DEBUG ~ Message: protocolUnregisteredFromApp 16:00:58,166 DEBUG ~ Message: cliRequest 16:00:58,263 DEBUG ~ Message: cliResponse 16:01:00,211 DEBUG ~ Message: protocolUnregisteredFromApp 16:01:00,779 DEBUG ~ Stream a72119 vs 21681 on server ServerNode[5] 16:01:00,780 DEBUG ~ Stream (21681) not available, wait 1 seconds and try again for 5 time – 3 16:01:00,809 DEBUG ~ Message: cliRequest 16:01:00,894 DEBUG ~ Message: cliResponse 16:01:03,284 DEBUG ~ Stream a72119 vs 21681 on server ServerNode[5] 16:01:03,284 DEBUG ~ Stream (21681) not available, wait 1 seconds and try again for 5 time – 4 16:01:03,305 DEBUG ~ Message: cliRequest 16:01:03,391 DEBUG ~ Message: cliResponse 16:01:05,868 DEBUG ~ Stream a72119 vs 21681 on server ServerNode[5] 16:01:05,869 DEBUG ~ Stream (21681) not available, wait 1 seconds and try again for 5 time – 5 16:01:05,897 DEBUG ~ Message: cliRequest 16:01:05,989 DEBUG ~ Message: cliResponse 16:01:08,379 DEBUG ~ Stream a72119 vs 21681 on server ServerNode[5] 16:01:08,379 DEBUG ~ Stream (21681) not available, wait 1 seconds and try again for 5 time – 6 16:01:08,410 DEBUG ~ Message: cliRequest 16:01:08,485 DEBUG ~ Message: cliResponse 16:01:11,016 DEBUG ~ Stream a72119 vs 21681 on server ServerNode[5] 16:01:11,016 DEBUG ~ Stream (21681) not available, wait 1 seconds and try again for 5 time – 7 16:01:11,214 DEBUG ~ Message: cliRequest 16:01:11,304 DEBUG ~ Message: cliResponse 16:01:13,527 DEBUG ~ Stream a72119 vs 21681 on server ServerNode[5] 16:01:13,527 DEBUG ~ Stream (21681) not available, wait 1 seconds and try again for 5 time – 8 16:01:13,555 DEBUG ~ Message: cliRequest 16:01:13,637 DEBUG ~ Message: cliResponse 16:01:16,239 DEBUG ~ Stream a72119 vs 21681 on server ServerNode[5] 16:01:16,239 DEBUG ~ Stream (21681) not available, wait 1 seconds and try again for 5 time – 9 16:01:16,271 DEBUG ~ Message: cliRequest 16:01:16,346 DEBUG ~ Message: cliResponse 16:01:18,749 DEBUG ~ Stream a72119 vs 21681 on server ServerNode[5] 16:01:18,749 DEBUG ~ Stream (21681) not available, wait 1 seconds and try again for 5 time – 10 16:01:18,782 DEBUG ~ Message: cliRequest 16:01:18,871 DEBUG ~ Message: cliResponse [color=#FF0000]16:01:21,252 ERROR ~ There was a problem with with processing/encoding MediaFile[21681] with error Cannot find the incoming stream… 16:01:21,288 ERROR ~ There was a problem with with processing/encoding MediaFile[21682] with error Cannot find the incoming stream… 16:01:21,294 DEBUG ~ Encoding of jobs (2) for article ‘Test’ (Article{id=’72119′, title=’Test’, type=VIDEO, removed=false, published=false, site=Test}) – done![/color] 16:01:21,477 DEBUG ~ Message: protocolRegisteredToApp 16:01:21,569 DEBUG ~ Message: cliRequest 16:01:21,684 DEBUG ~ Message: cliResponse 16:01:21,765 DEBUG ~ Message: cliRequest 16:01:21,852 DEBUG ~ Message: cliResponse 16:01:28,073 DEBUG ~ Message: protocolUnregisteredFromApp 16:01:30,367 DEBUG ~ Message: processStopped 16:01:30,367 DEBUG ~ processStopped 16:01:30,367 DEBUG ~ JSON: {"id":256,"payload":{"arguments":"rtmp://localhost/live/a72119 700000 640×360 na 128000 2 48000 na na na na na na -f\ flv\ tcp://localhost:6666/ 21681","configId":2,"customData":123,"fullBinaryPath":"/usr/bin/emsTranscoder.sh","groupName":"encoder_21681","keepAlive":false,"operationType":6},"timestamp":1391353290,"type":"processStopped"} 16:01:30,481 DEBUG ~ Message: processStopped 16:01:30,481 DEBUG ~ processStopped 16:01:30,482 DEBUG ~ JSON: {"id":257,"payload":{"arguments":"rtmp://localhost/live/a72119 180000 428×240 na 64000 1 48000 na na na na na na -f\ flv\ tcp://localhost:6666/ 21682","configId":3,"customData":123,"fullBinaryPath":"/usr/bin/emsTranscoder.sh","groupName":"encoder_21681","keepAlive":false,"operationType":6},"timestamp":1391353290,"type":"processStopped"} 16:01:31,413 DEBUG ~ Message: protocolUnregisteredFromApp 16:02:36,476 DEBUG ~ Message: protocolRegisteredToApp



Offcanvas

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.