aau-zid / BigBlueButton-liveStreaming

Streams a given BBB Meeting to an RTMP Server.
GNU General Public License v3.0
200 stars 159 forks source link

How to create a dev environment #134

Closed Mte90 closed 3 years ago

Mte90 commented 3 years ago

There is a way to develop in this project without requiring to record a video?

I am just looking to understand if there is a way to simplify the development on this projects without run docker, ffmpeg and so on.

mtsonline commented 3 years ago

could you explain further, what you want to do?

Mte90 commented 3 years ago

I want to fix the ticket I opened. As I see now to do changes on this tool I need docker and to see if the code worked I need to record with ffmpeg. This is not very helpful to test changes so I was looking if there was a more simple way to contribute it as developer on this.

mtsonline commented 3 years ago

what ticket are you refering to? I am not sure I fully understand what you want to do. Without docker you would have to install a lot of tools manually, how should this help? Without ffmpeg how would you stream? What is your goal, exactly as possible?

Mte90 commented 3 years ago

Sure :-)

https://github.com/aau-zid/BigBlueButton-liveStreaming/issues/95 https://github.com/aau-zid/BigBlueButton-liveStreaming/issues/127

As you can see they are ticket about the stuff showed on BBB and recorded with ffmpeg. So to me they are just css tricks to enable but if I need docker to connect to an external instance and record a video it is kind of a long process to debug them.

Also if there is something simpler I can do also other improvements etc.

mtsonline commented 3 years ago

ah, now I understand better what your problem is. :-)

good, a few thoughts on that:

hope this helps a bit ...? cheers

Mte90 commented 3 years ago

So to understand:

So I think that I need a new python script to do all of that.

mtsonline commented 3 years ago

why don't you want to use the dockericed setup? if you checkout the git repo and use the docker-compose example with build instead of the image one, you just can edit the lines locally in the python file. after changing just restart the docker with build flag docker-compose stop docker-compose up --build -d and the changes should be reflected.

I do not see a need for a separate dev environment

Mte90 commented 3 years ago

I see that this stream.py file calls ffmpeg so I need to do some changes. Anyway I don't use Docker and I prefer to have everything on the machine to speed up also.

I will keep you updated about my progress.

mtsonline commented 3 years ago

without ffmpeg the whole tool would do nothing?!? What do you want to do without it? you would not get any file to store or stream to send via the network?

If you do not use docker you will never have the same versions of all components for each user and this may cause issues.

looking forward to your experiences and feedback good luck

Mte90 commented 3 years ago

Just in case for someone else that is looking to this.

On stream.py on the stream method you can add a code like this:


    global browser
    browser.save_screenshot("./screenshot.png")
    time.sleep(5)
    browser.save_screenshot("./screenshot2.png")

So you will get some screenshots