Guest User

Untitled

a guest
Oct 18th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. private Process StartFfmpeg(string URL)
  2. {
  3. string args = $"/C youtube-dl --ignore-errors -o - {URL} | ffmpeg -err_detect ignore_err -i pipe:0 -ac 2 -f s16le -ar 48000 pipe:1";
  4. return Process.Start(new ProcessStartInfo
  5. {
  6. FileName = "cmd.exe",
  7. Arguments = args,
  8. UseShellExecute = false,
  9. RedirectStandardOutput = true,
  10. RedirectStandardError = false,
  11. CreateNoWindow = true,
  12. });
  13. }
Add Comment
Please, Sign In to add comment