Kurento Room recording no video, only audio

491 views
Skip to first unread message

Zeba Momin

unread,
Jan 25, 2017, 6:58:00 AM1/25/17
to kurento
Hi,
I am trying to add Room recording feature to KRS.
I am doing that using composite.
When a new Room is created, I create the setup for Room recording.
1. Create composite:
        this.composite = new Composite.Builder(pipeline).build();
2. Create Room Hubport:
this.dummyHubPort = new HubPort.Builder(this.composite).build();
3.Create RecorderEndpoint for Room:
        MediaProfileSpecType type = MediaProfileSpecType.WEBM;

this.recorder = new RecorderEndpoint.Builder(composite.getMediaPipeline(), RECORDER_FILE_PATH)
.withMediaProfile(type).build();
        this.dummyHubPort.connect(recorder);
4. And then start Room recording:
        this.recorder.record();

This happens in Room() constructor.

Then when a Participant joins Room, I create a Participant HubPort using Room's Composite in the constructor for Participant() and connect it to Participant's PublisherEndpoint
       this.hubPort = new HubPort.Builder(room.getComposite()).build();
publisher.connect(hubPort);

This gives me and empty, 0 bytes WEBM file.

Whereas, if I change the MediaProfileSpecType for the RecorderEndpoint to
      MediaProfileSpecType type = MediaProfileSpecType.WEBM_AUDIO_ONLY;
Then I get a WEBM file with Room audio recorded correctly (tested with 2 Participants in a Room)

The client I am using to test my code changes is the KRS client web app.

Please suggest what needs to be done for recording Participant audio AND Video in Composite for a Room.

Thanking in anticipation of a helpful response.

Regards.

Dobes Vandermeer

unread,
Jan 25, 2017, 4:49:46 PM1/25/17
to kurento

I'm not sure if this helps, but I remember reading in the recorder documentation that it only starts to record when it receives all the required streams.  Is it possible the recorder is still waiting for a video feed?  I don't see anything you have obviously missed, though.

Thabungba Meetei

unread,
Jan 27, 2017, 8:32:11 AM1/27/17
to kurento
- Ensure your video stream is flowing in. Check your kurento-logs, if everything is Ok, you must see MEDIA FLOWING IN VIDEO, MEDIA FLOWING IN AUDIO. 
- Ensure local streams are properly transmitted. chrom://webrtc-internals will help
- Which version of Kurento is used, Try the nightly builds as well.
- If you had not switch off your system, you may also get this error.

I had the same issue & I am sure one of the above will be your reason

Zeba Momin

unread,
Jan 30, 2017, 5:37:22 AM1/30/17
to kurento
Thank you for your valuable reply!
We have checked an ongoing Meeting and have observed that MEDIA FLOWING IN VIDEO is missing in the Room.
What are the possible reasons causing this?
I have also observed in server logs
"Request [ICE_CANDIDATE] endpoint=qwer152 candidate=candidate:2301678419 1 tcp 1518149375 192.168.0.101 9 typ host tcptype active generation 0 ufrag pjFY network-id 1 network-cost 10 sdpMLineIdx=0 sdpMid=audio (3ac49a2j5ovoma0aq1jb0is1ro)"
Here as we see  sdpMid=audio ; does that mean client is streaming audio only and no video?
I am using KRS web client.
Also, I tried recording single participant without using composite and got good results; i.e. WEBM file created with single participant audio and video.
It seems issue is with using Composite.
Reply all
Reply to author
Forward
0 new messages