question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to save video/screenshot

See original GitHub issue

I have a project where I would love to generate quick visualizations of ~100 tomographic scans for a collaborator. Loading and displaying the scans works perfectly with itkwidgets as you can see in the first screenshot.

Clipboard01

I figured this should easily work with this example. On first try I got an error that “the stream is malformed” which led me to submit an issue here. Now, if I try again (with a restarted kernel), I simply get no output and no error) with the cells shown below wich are based on the example above.

Clipboard02

I would be very happy to get pointers on how I can (automatically) save quick 3D previews of my scans…

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
habicommented, Jun 26, 2020

Yes, you can automate the output to file – please take a look at this update for the example: #346 https://github.com/InsightSoftwareConsortium/itkwidgets/pull/346Great, thanks! I’ll look into it early next week, now it’s already weekend (away from my data).

0reactions
habicommented, Nov 20, 2020

I have another datapoint on this: I figured out that using

downsample=3
for whichone, sample in notebook.tqdm(Data.iterrows(),
                                      total=len(Data),
                                      desc='Saving 3D views'):
    image=Reconstructions[whichone][::downsample,::downsample,::downsample].compute()
    viewer= view(numpy.flipud(image),
             ui_collapsed=True,
             rotate=True,
             annotations=False)
    print(Data.Sample[whichone])
    display(viewer)
    recorder = webrtc.ImageRecorder(stream=viewer,
                                    filename=os.path.join(Root,#Data['Folder'][whichone],
                                                          '_' + Data['Sample'][whichone] + '.3D.png'),
                                    autosave=True)
    recorder
    recorder.recording = True
    recorder.recording = False

works nicely on OSX, but neither on Windows 10 nor Linux (both tested with both FireFox and Chrome) I do not get output in the expected folder (os.path.join(Root,'_' + Data['Sample'][whichone] + '.3D.png'), which is defined at the start of the notebook.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I am not able to save a photo from a video - I get this error
You could try pausing the player at the right moment and take a screenshot using Win + Shift + S. However the error...
Read more >
Fix Screen Recording Failed to Save Due to 5823 - Technipages
It occurs when users try to save their screen recordings. The bad news is that error 5823 affects all the video meeting apps...
Read more >
[SOLVED] Why can't I screen record - 2021 Guide - CopyTrans
A screen recording might not be saved if you don't have enough storage on your iOS device. To check the amount of storage...
Read more >
Can't save a video capture. - TechSmith Support
For starters, it would seem to be a big ole honkin bug that it would allow you to capture at that size initially...
Read more >
Screen Recording Failed To Save Error Fix - macReports
Screen Recording Failed To Save Error Fix · 1-Update your iOS device to the latest version of iOS. · 2-Restart your iPhone or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found