diff options
Diffstat (limited to '')
| -rw-r--r-- | src/tests/procs.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tests/procs.cpp b/src/tests/procs.cpp index 53e5142..c233040 100644 --- a/src/tests/procs.cpp +++ b/src/tests/procs.cpp | |||
| @@ -4,12 +4,16 @@ | |||
| 4 | 4 | ||
| 5 | int main( int agrc, char *argv[] ) | 5 | int main( int agrc, char *argv[] ) |
| 6 | { | 6 | { |
| 7 | Bu::Process p( argv[1], argv+1 ); | 7 | //Bu::Process p( argv[1], argv+1 ); |
| 8 | Bu::Process p("mplayer", "mplayer", "dvd://", "-framedrop", | ||
| 9 | "-ao", "null", "-nosound", "-vf", "framestep=I,cropdetect" "-sstep", | ||
| 10 | "197", NULL ); | ||
| 8 | 11 | ||
| 9 | char buf[1000]; | 12 | char buf[1000]; |
| 10 | for(;;) | 13 | for(;;) |
| 11 | { | 14 | { |
| 12 | int iSize = p.read( buf, 1000 ); | 15 | int iSize = p.read( buf, 1000 ); |
| 16 | printf("::read=%d::\n", iSize ); | ||
| 13 | if( iSize == 0 ) | 17 | if( iSize == 0 ) |
| 14 | break; | 18 | break; |
| 15 | fwrite( buf, iSize, 1, stdout ); | 19 | fwrite( buf, iSize, 1, stdout ); |
