Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't download my record #39

Open
1 task done
boubakerBS opened this issue May 6, 2024 · 10 comments
Open
1 task done

I can't download my record #39

boubakerBS opened this issue May 6, 2024 · 10 comments
Labels
bug Something isn't working

Comments

@boubakerBS
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Bug description

image
if i click download for the second record ( the browser page is crashed

Steps To Reproduce

jimage
if i click download for the second record ( the browser page is crashed

Environment including version

- Beesy: v0.0.14 
- OS: Linux
- Browser: chromed

Attachments

No response

@boubakerBS boubakerBS added the bug Something isn't working label May 6, 2024
@piyu-sh
Copy link
Contributor

piyu-sh commented May 6, 2024

Hey @boubakerBS , thanks for raising an issue.

  • First of all, don't delete the recording from that page, if its there we can atleast try to help
  • Secondly, can you please create a recording of the following steps with a screen recorder or phone camera and share here ?
    • open devtools on that page by right clicking and click inspect
    • then open the console
    • then click download for the file for which it is not working, there should be some error that should show up in console

@Noah-Nelson
Copy link

Hello! I might be encountering the same issue.

  • Chromebook (Lenovo ThinkPad C13 Yoga) with ChromeOS v 124.0.6367.219
  • Beesy v 0.0.14
  • Console error says missing duration

IMPORTANT: I forgot to stop the recording before ending the call. Seems a likely source of the problem for me.

Screen capture of download with console output:
Screen recording 2024-05-23 11.12.45 AM.webm

Possibly related, either the Beesy: Recordings tab or sometimes this tab (GitHub) would crash with this or a similar error message if I navigate away from the tab while it is trying to download:
Screenshot 2024-05-23 11 14 09 AM

@piyu-sh
Copy link
Contributor

piyu-sh commented May 25, 2024

Hi @Noah-Nelson ,

Thanks for adding a detailed comment, it really helped.
To clarify a few things:

  • Console error says missing duration - You can ignore this warning, it comes up even if video is downloaded
  • I forgot to stop the recording before ending the call - Even if you forgot to stop, Beesy still saves the recording in recording tab, so you're safe there, but yes the video size is huge because of that probably
  • Possibly related, either the Beesy: Recordings tab or sometimes this tab (GitHub) would crash - yes this might be a problem

So the issue most probably is that the video file is huge, almost 1.5gb and your system is running out of ram when Beesy is trying to process that video in memory that's why the tab crashes when you're trying to download.

Could you please share a few details

  • Have you deleted that video from recording tab ? If not, we can still help you retrieve it
  • How much ram does your system has ?
  • Could you try downloading that video by closing all other programs on your system and all other tabs in the browser ? So the only thing open on your system when that download is running should be chrome with this tab.

@Noah-Nelson
Copy link

Noah-Nelson commented May 28, 2024 via email

@piyu-sh
Copy link
Contributor

piyu-sh commented May 29, 2024

Hey @Noah-Nelson ,

Great that you haven't deleted it, let me help you download your recording first.

  1. Go to the recordings page and open devtools by right clicking anywhere and then clicking 'Inspect' in the context menu
  2. Click on the console panel
  3. Now copy paste this code into that console
(async function downloadFile(fileName){
  const opfsHandle = await navigator.storage.getDirectory()
  const recDir = await opfsHandle.getDirectoryHandle('beesy_recordings')
  const fileToDownloadHandle = await recDir.getFileHandle(fileName);
  const fileToDownload = await fileToDownloadHandle.getFile()
  const ab = await fileToDownload.arrayBuffer();
  const blb = new Blob([ab], {
    type: 'video/webm',
  });
  chrome.downloads.download({url: URL.createObjectURL(blb), filename: fileName});
  
})('your_filename_here')
  1. Replace 'your_filename_here' in above code with the filename you want to download e.g. 'beesy_recording-2024_04_03_16_46_43-rcs_bqux_qhd.webm'
  2. And then press enter, hopefully the recording should start downloading in a minute or so considering its a huge file.

Let me know how it goes.

@Noah-Nelson
Copy link

Noah-Nelson commented May 30, 2024 via email

@piyu-sh
Copy link
Contributor

piyu-sh commented May 31, 2024

Great that you were able to download it ! @Noah-Nelson

The recording you downloaded might not be seekable in media player(i.e. you would not see the timestamps while playing it).
This is due to browser limitations. To fix this, could you please try to use below option in Beesy settings ?

Screenshot 2024-06-01 005731

If the browser tab still crashes while fixing this, let me know.

And to your ques:

  1. Might be wrong, but I think recordings didn't download because chrome was running out of memory while processing the video. As I mentioned above the video you downloaded wouldn't have timestamps, to fix that we run an operation in memory and that might have caused it to crash.
  2. You can try playing with the video config/audio config settings in Beesy to see if some format is taking up less size. But if you try those, I'd strongly suggest trying them out on non important meetings first so you can see if it's the right setting for you.

Rest assured, we'll also be thinking of how to tackle this issue.

@arunpr90
Copy link

Hey @Noah-Nelson ,

Great that you haven't deleted it, let me help you download your recording first.

  1. Go to the recordings page and open devtools by right clicking anywhere and then clicking 'Inspect' in the context menu
  2. Click on the console panel
  3. Now copy paste this code into that console
(async function downloadFile(fileName){
  const opfsHandle = await navigator.storage.getDirectory()
  const recDir = await opfsHandle.getDirectoryHandle('beesy_recordings')
  const fileToDownloadHandle = await recDir.getFileHandle(fileName);
  const fileToDownload = await fileToDownloadHandle.getFile()
  const ab = await fileToDownload.arrayBuffer();
  const blb = new Blob([ab], {
    type: 'video/webm',
  });
  chrome.downloads.download({url: URL.createObjectURL(blb), filename: fileName});
  
})('your_filename_here')
  1. Replace 'your_filename_here' in above code with the filename you want to download e.g. 'beesy_recording-2024_04_03_16_46_43-rcs_bqux_qhd.webm'
  2. And then press enter, hopefully the recording should start downloading in a minute or so considering its a huge file.

Let me know how it goes.

It's working for files than 300mb but now working for files more than 500mb.

When i try to download, the browser stops working / freezer.

@piyu-sh piyu-sh mentioned this issue Aug 19, 2024
1 task
@piyu-sh
Copy link
Contributor

piyu-sh commented Aug 19, 2024

hey @arunpr90 , sorry for the late reply, could you please help us with a few things ?

  • are you still facing this issue ?
  • how much ram does your system have ?
  • also when you say the system froze, how long was it frozen, or did the browser just closed ?

@nishant12
Copy link

nishant12 commented Oct 20, 2024

Hey @Noah-Nelson ,

Great that you haven't deleted it, let me help you download your recording first.

  1. Go to the recordings page and open devtools by right clicking anywhere and then clicking 'Inspect' in the context menu
  2. Click on the console panel
  3. Now copy paste this code into that console
(async function downloadFile(fileName){
  const opfsHandle = await navigator.storage.getDirectory()
  const recDir = await opfsHandle.getDirectoryHandle('beesy_recordings')
  const fileToDownloadHandle = await recDir.getFileHandle(fileName);
  const fileToDownload = await fileToDownloadHandle.getFile()
  const ab = await fileToDownload.arrayBuffer();
  const blb = new Blob([ab], {
    type: 'video/webm',
  });
  chrome.downloads.download({url: URL.createObjectURL(blb), filename: fileName});
  
})('your_filename_here')
  1. Replace 'your_filename_here' in above code with the filename you want to download e.g. 'beesy_recording-2024_04_03_16_46_43-rcs_bqux_qhd.webm'
  2. And then press enter, hopefully the recording should start downloading in a minute or so considering its a huge file.

Let me know how it goes.

hi @piyu-sh I am facing the same issue with mp4, the file size 929MB. Page crashes and runs out of memory. Laptop has 16GB of RAM. I tried downloading multiple times and just kept the one tab running on chrome, it still failed. Also, it did not download the meeting automatically once the meeting ended.

webm works smoothly for longer meetings.

Please add this code in README. I was going to raise an issue but saw an open issue, code helped me out to download the meeting in webm. Thank you!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants