hello!
When I write this line of code in the cmd:
nc ip 5000 | mplayer -fps 60 -cache 1024 -
I get a stream video running in mplayer from my raspberry pi server.
I want to do the same from a Qt app.
this is what i wrote but doesn't work:
QProcess *process1;
QProcess *process2;
process1 = new QProcess(0);
process2 = new QProcess(0);
process1->setStandardOutputProcess(process2);
QStringList args1;
QStringList args2;
args1 += "89.139.168.89 5001";
args2 += "-fps 60 -cache 1024 -";
process1->start("C:\\Program Files (x86)\\MPlayer for Windows\\nc.exe",args1);
process2->start("C:\\Program Files (x86)\\MPlayer for Windows\\mplayer.exe",args2);
anyone can tell me what is wrong here please?
thanks.
Bookmarks