I have this command that is using a unix pipe
system("curl " . escapeshellarg($flv['dl']) . " | ffmpeg -f flv -i - -f mp3 -ab 320k pipe:1");
what could I do to make the same thing happen in windows?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are not concerned with performance, the easiest way to port a unix script to windows is by installing cygwin.
It’s a Unix API emulation layer over Windows likewise Wine emulates win32 on linux.
You could also download windows version of each command line tools
This approach requires to find specific download url for each tool and sometimes even leads you to compile binary from source code ! It is still reasonable when you only need 2 or 3 tools. But otherwise, it is so uncertain and time consuming that you should only consider when performance or low dependancy deployment is an issue.