diff --git a/src/FFMPEG.jl b/src/FFMPEG.jl index c918d5c..07e37b5 100644 --- a/src/FFMPEG.jl +++ b/src/FFMPEG.jl @@ -91,13 +91,8 @@ built with clang version 6.0.1 (tags/RELEASE_601/final) [...] ``` """ -function exe(args::AbstractString...; command = FFMPEG.ffmpeg) +exe(args::AbstractString...; command = FFMPEG.ffmpeg, collect = false) = exe(Cmd([command, args...]), command=command, collect=collect) - withenv(execenv) do - Base.run(Cmd([command, args...])) - end - -end """ collectexecoutput(exec::Cmd) -> Array of output lines diff --git a/test/runtests.jl b/test/runtests.jl index fddbd83..9429643 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -13,6 +13,7 @@ end @show FFMPEG.versioninfo() @test text_execute(() -> FFMPEG.exe("-version")) @test text_execute(() -> FFMPEG.exe(`-version`)) + @test text_execute(() -> FFMPEG.exe(`-version`, collect=true)) @test text_execute(() -> FFMPEG.ffmpeg_exe(`-version`)) @test text_execute(() -> FFMPEG.ffprobe_exe(`-version`)) @test text_execute(() -> ffmpeg`-version`)