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

Is there a way to get the original raw JSON from ffprobe? #480

Open
jasonla opened this issue Nov 9, 2023 · 1 comment
Open

Is there a way to get the original raw JSON from ffprobe? #480

jasonla opened this issue Nov 9, 2023 · 1 comment

Comments

@jasonla
Copy link

jasonla commented Nov 9, 2023

I understand I can get the structured data via this:
await FFProbe.AnalyseAsync(inputPath);

However, in addition to the nicely parsed data, I'd like a copy of the raw JSON outputed by ffprobe as well. Is there a method in the library that allows for this?

@jasonla jasonla changed the title Is there a way to get the raw JSON from ffprobe? Is there a way to get the original raw JSON from ffprobe? Nov 9, 2023
@jasonla
Copy link
Author

jasonla commented Nov 9, 2023

Well, I guess I could always do this:

var data = await FFProbe.AnalyseAsync(inputPath);
var serializedObject = System.Text.Json.JsonSerializer.Serialize(data );

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

1 participant