Closed pietrop closed 8 years ago
hey
thanks for the report, is it possible for you to share Clip15.mov? this would make it easier for me to look into this.
ben
thanks, will look into this today!
On 02 Nov 2015, at 16:02, Pietro notifications@github.com wrote:
Hi Ben, Here it is https://www.wetransfer.com/downloads/f72f327de947c6c19c4385360a2911c820151102204022/400428076a26f5e525b244739a57b0bd20151102204022/660f3f https://www.wetransfer.com/downloads/f72f327de947c6c19c4385360a2911c820151102204022/400428076a26f5e525b244739a57b0bd20151102204022/660f3f Thanks
Pietro
— Reply to this email directly or view it on GitHub https://github.com/beanieboi/ffprober/issues/55#issuecomment-153155550.
Thanks Ben,
Meanwhile I figured out I can get to reel_name
with a system call to ffprobe, but I'd rather use ffprober to keep it simple if there's a way..
require 'json'
clip_name="Clip15.mov"
# REEL_NAME
# use system call to save output of ffprobe as json | from https://gist.github.com/nrk/2286511
ffprobe_json = `ffprobe -v quiet -print_format json -show_format -show_streams '#{clip_name}'`
#transform json into ruby hash from https://hackhands.com/ruby-read-json-file-hash/
data_hash = JSON.parse(ffprobe_json)
# access reel_name value in ruby hash / ffprobe json
reel_name = data_hash['streams'][2]["tags"]["reel_name"]
puts "reel_name: "+reel_name
hey,
could you check out the data-streams
branch?
i added support for data streams there. i need to add some tests before i will merge it, but it works locally for me.
access the reel name
ffprobe.data_streams.first.tags[:reel_name]
please let me know what you think
thanks, I'll try it out, any ideas on an ETA for when is this branch going to be merged with the main one?
just pushed some tests, will release later today
the release is out, thanks for the report. will close this now
that's great! thank you!
you're welcome!
What would be the best way to get direct access to the
reel
metadata? I can see it in the Ffprober objectreel_name=>"NO NAME"
but not quiet sure how to access it..any suggestions much appreciated