licode icon indicating copy to clipboard operation
licode copied to clipboard

Screenshare Recording not working

Open nvazquezg opened this issue 8 years ago • 3 comments

Description We've defined a Stream to share the screen using the example available in licode-demos project here

Everything works fine with stream publishing and subscribing, but when we try to record it, there are no files generated in the recordings path. If we record any other stream without screen, it generates a file in the recordings path.

Steps to reproduce the issue:

  1. Start a stream sharing any screen:
myScreen = Erizo.Stream({screen: true, video: {mandatory: {maxWidth: 1280, maxHeight: 720}}, attributes: {name: 'Pantalla Compartida'}});
  1. Start a recording of that stream:
room.startRecording(myScreen, function(recordingId, error) {
  if (recordingId === undefined){
    console.log("Error", error);
  } else {
    console.log("Recording started, the id of the recording is ", recordingId);
  }
});   
  1. Check the Erizo logs to see if there are any errors. There are no errors:
2018-04-27 14:18:18.608  - INFO: ErizoController - Client - message: startRecorder, state: RECORD_REQUESTED, streamId: 844640738440604800, url: /opt/recordings/240347646479480700.mkv
2018-04-27 14:18:18.609  - INFO: RoomController - message: addExternalOuput, streamId: 844640738440604800, url:/opt/recordings/240347646479480700.mkv
2018-04-27 14:18:18.610  - INFO: ErizoController - Client - message: startRecorder, state: RECORD_STARTED, streamId: 844640738440604800, url: /opt/recordings/240347646479480700.mkv
[erizo-7c4b79ff-95e9-ea22-e2ef-cceae2c69b6b] 2018-04-27 14:18:18.613  - INFO: Publisher - message: Adding ExternalOutput, id: /opt/recordings/240347646479480700.mkv_844640738440604800, url: /opt/recordings/240347646479480700.mkv
  1. Stop the recording if you like, it doesn't make any difference. There are no errors:
2018-04-27 14:19:27.266  - INFO: ErizoController - Client - message: startRecorder, state: RECORD_STOPPED, streamId: 240347646479480700, url: /opt/recordings/240347646479480700.mkv
2018-04-27 14:19:27.266  - INFO: RoomController - removeExternalOutput, url: /opt/recordings/240347646479480700.mkv
[erizo-7c4b79ff-95e9-ea22-e2ef-cceae2c69b6b] 2018-04-27 14:19:27.272  - INFO: ErizoJSController - message: Stopping ExternalOutput, id: /opt/recordings/240347646479480700.mkv_844640738440604800
[erizo-7c4b79ff-95e9-ea22-e2ef-cceae2c69b6b] 2018-04-27 14:19:27.276  - INFO: Publisher - message: Removing ExternalOutput, url: /opt/recordings/240347646479480700.mkv

Describe the results you received: The recording file '/opt/recordings/240347646479480700.mkv' does not exist.

Describe the results you expected: A recording file '/opt/recordings/240347646479480700.mkv' with the contents of the screen.

Additional information you deem important (e.g. issue happens only occasionally): Happens every time.

Licode commit/release where the issue is happening 6a6d1612471e8a534a0df210a42fcecce434af08 84faaa053ce1e293ff8353d74782744343e84dfd 7c5945c5e4580907e1846dc4b8c3eae30a432cca

Additional environment details (Local, AWS, Docker, etc.): Local

nvazquezg avatar Apr 27 '18 12:04 nvazquezg

The same exact problem happens using VP8 and H264 as the video encoding in the room.

nvazquezg avatar May 18 '18 12:05 nvazquezg

Same here.

footniko avatar Oct 10 '18 09:10 footniko

this issue still exist in master branch. Licode team @jcague @lodoyun please fix this issue this would be great help to community !! as already working feature is break .Also some times videos are recorded as audio only could please tell me the reason for this I have time and I know rtp and packetization stuff so I can look into it.

peererror avatar Apr 13 '19 20:04 peererror