2016-08-23, 09:14 PM
(This post was last modified: 2016-08-23, 09:58 PM by mvallevand.)
I am playing around with the transcoding service and see this
I can initiate transcoding and play but I don't see how to stop transcoding without manually killing ffmpeg. I though maybe if I didn't lease it would die. but it has been buffering for 5 mnutes with no reading the status is this
Thanks,
Martin
EDIT it looks like I have to issue one lease and then it will fail in 5 or 6 seconds.
Martin
Code:
if (getParameterByName("channel_id", null) != null) {
$("#info").text("Requesting stream for channel. Standby...");
url = finalizeURL(baseNPVRURL + 'services/service?method=channel.transcode.initiate&channel_id=' + getParameterByName("channel_id", null) + '&profile=' + profile + '&random=' + Math.random());
statusCheckURL = finalizeURL(baseNPVRURL + 'services/service?method=channel.transcode.status&format=json');
streamURL = finalizeURL(baseNPVRURL + 'services/service?method=channel.transcode.m3u8&random=' + Math.random());
leaseURL = finalizeURL(baseNPVRURL + 'services/service?method=channel.transcode.lease&format=json');
} else
// handle recording playback
if (getParameterByName("recording_id", null) != null) {
$("#info").text("Requesting stream for recording");
url = finalizeURL(baseNPVRURL + 'services/service?method=recording.transcode.initiate&recording_id=' + getParameterByName("recording_id", null) + '&profile=' + profile + '&random=' + Math.random());
statusCheckURL = finalizeURL(baseNPVRURL + 'services/service?method=recording.transcode.status&format=json');
streamURL = finalizeURL(baseNPVRURL + 'services/service?method=recording.transcode.m3u8&random=' + Math.random());
leaseURL = finalizeURL(baseNPVRURL + 'services/service?method=recording.transcode.lease&format=json');
}
I can initiate transcoding and play but I don't see how to stop transcoding without manually killing ffmpeg. I though maybe if I didn't lease it would die. but it has been buffering for 5 mnutes with no reading the status is this
Code:
{
"status": "Buffering stream. Please Wait... (100%)",
"final": true,
"percentage": 100
}
Thanks,
Martin
EDIT it looks like I have to issue one lease and then it will fail in 5 or 6 seconds.
Martin