slampunk / ghettostudio

MIT License
6 stars 2 forks source link

Integration issue #2

Open Lyliian opened 5 years ago

Lyliian commented 5 years ago

Hello,

i am trying to use your Ghettostudio in our university as a webrtc recorder integrated with Opencast. But i have a problem with socketio. Do we need a server.js file ? I am a bit lost with socketio because i never used this before. I have a second question, when i am trying to upload a video record by ghettostudio, Opencast tell my that the duration isn't set. Do you know which file i have to modify for set this duration ?

Best regards,

Lylian Blaud.

slampunk commented 5 years ago

Hi Lylian

Sorry for the late reply; for some reason I have not received notification in my mailbox.

  1. Short story: socket.io is not necessary for the site to work with Opencast.

Long story: Socket.io is used to manage connections between devices so that WebRTC connections can be created. Since Opencast does not support WebRTC (last I checked), the socket.io component is not necessary for Opencast.

  1. Browser recordings do not have the header that contain the video's duration (this is due to how the MediaRecorder API works). However, you can create Opencast workflows that sidestep this issue (see the inspect operation).

Either way, I'll have a look at a workable OC workflow (with one of these browser recorded videos) and post the results here for you.

Are you using LTI between Opencast and your LMS? I plan to make a PR to Opencast to have this tool work via LTI (timeframe unknown, unfortunately).

slampunk commented 5 years ago

@Lyliian I had a look: the default fast workflow completed successfully when using the browser generated videos.

My setup:

CentOS 7.1
FFmpeg 3.4.5
Java 1.8.0_181
Opencast dev (7-SNAPSHOT)

If you still cannot complete a workflow, could you upload the the relevant log output to say pastebin (and add the link here thereafter)?

Lyliian commented 5 years ago

@slampunk I tried to use the same default fast workflow when using the browser generated videos. This one completed successfully but it's impossible to read the video. Opencast don't find any track.

image

slampunk commented 5 years ago

@Lyliian which version of Opencast and FFmpeg are you using? You say

This one completed successfully but it's impossible to read the video.

Do you mean the workflow completed successfully?

Its best if you can provide OC logs for the workflow so that we can thoroughly investigate why your OC has problems with the browser recorded videos.