Created
November 24, 2015 04:59
-
-
Save ssbb/7ce15e410d15954b346e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmd := exec.Command("ffprobe", "-i", "pipe:0", "-show_format", | |
"-print_format", "json", "-show_streams", "-probesize", "32") | |
stdin, err := cmd.StdinPipe() | |
if err != nil { | |
log.Fatal(stdin) | |
} | |
stdin.Write(data) | |
stdin.Close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment