|
|
|
|
|
by crypt0lution
1526 days ago
|
|
I originally wanted to use json for parsing, however the unmarshalling would have required a large struct with fields for all the metadata ffprobe outputs. I thought that using "-print_format compact" resulted in a simpler parsing approach. Correct me if I'm wrong there, I'm still relatively new to Go. Thanks for sharing the link to your project. I'll try to implement the stdout buffering with "bytes" rather than doing it manually. |
|
https://golangbyexample.com/json-to-map-golang/