-
Notifications
You must be signed in to change notification settings - Fork 13
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
New API: exe, @ffmpeg_env, ffmpeg_exe, ffprobe_exe #1
Conversation
Have tested locally, so I'm pretty sure this branch works. @ianshmean @SimonDanisch any feedback? |
How about a slightly shorter set of macros:
I guess it would be good to accept both command strings and strings |
Also, in the past, ffmpeg output has changed to different std's so VideoIO uses: function collectexecoutput(exec::Cmd)
out = Pipe(); err = Pipe()
p = Base.open(pipeline(ignorestatus(exec), stdout=out, stderr=err))
close(out.in); close(err.in)
err_s = readlines(err); out_s = readlines(out)
return (length(out_s) > length(err_s)) ? out_s : err_s
end Maybe that's worth incorporating into the macros? |
Could we do |
I like that |
Wait, that would mean the |
Yeah, just realized that :(. The macro thing will be an annoying API in my opinion, though... |
Could do Edit: |
I think dropping an |
@ianshmean done... |
In this new regime, I find the |
Will do! Edit: Actually, I'll probably rename it to |
macro ffmpeg(args)
return quote
withenv(FFMPEG.execenv) do
$(args)
end
end
end