cajax / yami Goto Github PK
View Code? Open in Web Editor NEWMediainfo wrapper for Golang
License: MIT License
Mediainfo wrapper for Golang
License: MIT License
Add type Text as constant to your lib. Example:
Text #1
ID : 4
Format : PGS
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 2 h 20 min
Bit rate : 43.6 kb/s
Count of elements : 4708
Stream size : 44.0 MiB (0%)
Language : German
Default : No
Forced : No
I got an error when call yami.GetMediaInfo(): strconv.ParseFloat: parsing "UTC 2020-05-08 08:00:26": invalid syntax.
followed the source code, I found in yami/types.go, "DurationStart" and "DurationEnd" are declared in wrong type, they are string instead of float64
mediainfo -f --Output=XML --Inform='file:///mi/mediainfo_fields.txt' /clip.mp4
Running this from CLI works but unable to pass the Inform argument with yami.GetMediaInfo()
yami.GetMediaInfo(inputFile, 30*time.Second, "--Inform='file:///mi/mediainfo_fields.txt'")
Error:
{"level":"FATAL","ts":"2021-12-08T18:57:26.678Z","msg":"error getting mediainfo output","error":"EOF"}
Could you please advise if filtering down to only parse required fields is supported and how can we use the --Inform flag to pass to mediaInfo call as argument.
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.