createwebinar / bbb-download

Produce downloadable material from BigBlueButton recordings
GNU General Public License v2.0
75 stars 47 forks source link

produce downloadable content #4

Open MTaghaddomi opened 4 years ago

MTaghaddomi commented 4 years ago

Where's the mp4 file is saved on the server? I ran this script and records were generated in /download/presentation/{meeting_id} But they are not downloadable. so how to use this script?

tecnomaster commented 4 years ago

Hi fellows,

I got the same question as @MortezaTaghaddomi99 and also I got really surprised as I installed the script and executed:

# bbb-record --rebuildall

And got the following messages:

Rebuilding all recordings
Marking for rebuild 13362b43c6c7a616059bf1687847f256ed4cb4df-1592920917043
removed '/var/bigbluebutton/recording/status/published/13362b43c6c7a616059bf1687847f256ed4cb4df-1592920917043-presentation.done'
Marking for rebuild 9c4b1ead468ad217e15697990496bddba63cc76e-1593109673332
removed '/var/bigbluebutton/recording/status/published/9c4b1ead468ad217e15697990496bddba63cc76e-1593109673332-presentation.done'
Marking for rebuild b3d7c54d6c729b674dfa1cf29b73549df301fa51-1593000258232
removed '/var/bigbluebutton/recording/status/sanity/b3d7c54d6c729b674dfa1cf29b73549df301fa51-1593000258232.done'
removed '/var/bigbluebutton/recording/status/processed/b3d7c54d6c729b674dfa1cf29b73549df301fa51-1593000258232-presentation.fail'
Marking for rebuild c7dd0987a4ff868ea34308cc8b6aeccd53c65da5-1592948420787
removed '/var/bigbluebutton/recording/status/sanity/c7dd0987a4ff868ea34308cc8b6aeccd53c65da5-1592948420787.done'
removed '/var/bigbluebutton/recording/status/processed/c7dd0987a4ff868ea34308cc8b6aeccd53c65da5-1592948420787-presentation.fail'
Marking for rebuild e792f2f08041defecccb6474c3f5c10e230dd0e3-1592920933630
removed '/var/bigbluebutton/recording/status/published/e792f2f08041defecccb6474c3f5c10e230dd0e3-1592920933630-presentation.done'
Marking for rebuild f33f71ac57132ba07224ef895a5aa88f17986bf7-1592918561637
removed '/var/bigbluebutton/recording/status/published/f33f71ac57132ba07224ef895a5aa88f17986bf7-1592918561637-presentation.done'
Marking for rebuild f33f71ac57132ba07224ef895a5aa88f17986bf7-1592925534892
removed '/var/bigbluebutton/recording/status/published/f33f71ac57132ba07224ef895a5aa88f17986bf7-1592925534892-presentation.done'
Marking for rebuild f33f71ac57132ba07224ef895a5aa88f17986bf7-1592935225307
removed '/var/bigbluebutton/recording/status/published/f33f71ac57132ba07224ef895a5aa88f17986bf7-1592935225307-presentation.done'
Marking for rebuild f33f71ac57132ba07224ef895a5aa88f17986bf7-1593089511731
removed '/var/bigbluebutton/recording/status/published/f33f71ac57132ba07224ef895a5aa88f17986bf7-1593089511731-presentation.done'

But now, I can’t see my previous published recordings (in greenlight recording lists) and I don’t know where them are and where are the mp4 files which are supposed to exist after the command running.

Please give us a hep on this!

tecnomaster commented 4 years ago

Ok, fellows ... forget my questions .... all works fine!.

Just to let the future readers know the answers:

Once it delete all the existing recordings ... BBB rebuild them and the download script start the mp4 creation ... at the end you have both, the original published recordings in BBB (greenlight) and the MP4 in the url: https://yourBBBserverURL/download/presentation/{meetingID}/{meetingID}.mp4

Please note that the meetingID is found in the original BBB recording URL in greenlight.

Thanks a lot for this script ... now I just need to add the option to the meeting recording list in greenlight

MTaghaddomi commented 4 years ago

Can you tell me what's the output of this command? Is there that mp4 file in this directory? sudo ls /var/www/bigbluebutton-default/download/presentation/{meeting_id}/

tecnomaster commented 4 years ago

Sure @MortezaTaghaddomi99 .

This is the result in one case:

~# ls -l /var/www/bigbluebutton-default/download/presentation/13362b43c6c7a616059bf1687847f256ed4cb4df-1592920917043/
total 37848
-rw-r--r-- 1 bigbluebutton bigbluebutton 38680644 Jun 28 00:22 13362b43c6c7a616059bf1687847f256ed4cb4df-1592920917043.mp4
-rw-r--r-- 1 bigbluebutton bigbluebutton        2 Jun 28 00:15 captions.json
-rw-r--r-- 1 bigbluebutton bigbluebutton    12281 Jun 28 00:15 cursor.xml
-rw-r--r-- 1 bigbluebutton bigbluebutton       57 Jun 28 00:15 deskshare.xml
-rw-r--r-- 1 bigbluebutton bigbluebutton     2028 Jun 28 00:15 metadata.xml
-rw-r--r-- 1 bigbluebutton bigbluebutton      150 Jun 28 00:15 panzooms.xml
drwxr-xr-x 4 bigbluebutton bigbluebutton     4096 Jun 28 00:15 presentation
-rw-r--r-- 1 bigbluebutton bigbluebutton    27657 Jun 28 00:15 presentation_text.json
-rw-r--r-- 1 bigbluebutton bigbluebutton      627 Jun 28 00:15 shapes.svg
-rw-r--r-- 1 bigbluebutton bigbluebutton       33 Jun 28 00:15 slides_new.xml
drwxr-xr-x 2 bigbluebutton bigbluebutton     4096 Jun 28 00:15 video
root@tecnomeetings:~#

As you can see, there is the mp4 file created few minutes later than the presentation itself.

MTaghaddomi commented 4 years ago

Thanks for sharing. the mp4 file doesn't exist in any of the meetings. Maybe because I've already changed the BBB record format to mp4, but the script doesn't consider this situation.

greattutor2000 commented 2 years ago

mp4 does not exist either.