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

Exporting audio and video from PSI store #313

Open
kontogiorgos opened this issue May 3, 2024 · 4 comments
Open

Exporting audio and video from PSI store #313

kontogiorgos opened this issue May 3, 2024 · 4 comments

Comments

@kontogiorgos
Copy link

Hi,

Is there a way to get video and audio serialised in psi store into other formats (.wav, .mpeg, etc.)? I saw the cli tool to get data into csv or json, but I have not seen anything for audio/video data.

Thanks,
Dimos

@danbohus
Copy link
Contributor

danbohus commented May 3, 2024

Yes, you should be able to write a psi audio stream to a wav file using the WaveFileWriter component, and also to write and audio and an image stream to an mpeg using the Mpeg4Writer component. You'd have to write your own little utility tool that does this (i.e. reads the psi audio/image streams from the psi store and writes them to wav/mpeg using these components). Let us know if you run into trouble using these. I think you can find an actual example of exporting to wav and mpeg in the HoloLensCaptureExporter app.

As an aside, it would be great to add this functionality (i.e. of exporting an audio stream to wav or audio+images to mpeg) as an option in PsiStoreTool. If you decide to go that route, we'd welcome a PR on that front :).

@kontogiorgos
Copy link
Author

Got it, thank you Dan!

And yes, I think that PsiStoreTool functionality would be great.

@HannahBruch
Copy link

You'd have to write your own little utility tool that does this (i.e. reads the psi audio/image streams from the psi store and writes them to wav/mpeg using these components).

Hi, I'm running into some issues writing such a tool. What's the best way to read the streams and write them to a file? Am struggling to find any examples

@sandrist
Copy link
Contributor

Take a look for example at the example code snippet under Data Replay. This shows you how to read streams from a store. You could add some lines to this code that instantiate an Mpeg4Writer component, and pipe your streams into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants