cajax / yami

Mediainfo wrapper for Golang
MIT License
9 stars 4 forks source link

Error trying to use the Inform argument with mediainfo #6

Open vish91 opened 2 years ago

vish91 commented 2 years ago

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