Hiho, as announced some days ago I tested transcode's remote control / preview window feature on CVS HEAD. Unfortunately my tests failed at an early point. The first command is recognized, then no more commands are accepted, no more output arrives on the socket.
To make testing the socket stuff easier I wrote a tiny Perl module and a
corresponding command line frontend: Video::TranscodeRC and
transcode-rc.
transcode-rc simply connects transcode and passes all data entered on
stdin to the socket. Depending on the verbosity level, it prints
everything received from transcode's stdout and the socket.
Additionaly it offers a simple batch mode which makes writing test
scripts easy. When I execute the shipped test script with transcode
1.0.2 I get this output:
% bin/transcode-rc -i test.avi -b batch.txt -v 1
BATCH: sleep 1
OK: preview pause
BATCH: load invert
BATCH: enable invert
BATCH: preview draw
BATCH: sleep 2
OK: load invert
OK: enable invert
OK: preview draw
BATCH: preview pause
BATCH: sleep 4
OK: preview pause
BATCH: exit
CLOSED: socket
Successfully executed commands:
preview pause
load invert
enable invert
preview draw
preview pause
The same batch file executed with transcode CVS HEAD fails badly. Just
the first "preview pause" is accepted. Everything else silently ignored.
To see how transcode-rc and the batch mode work, just execute
transcode-rc without any arguments.
Attached you find a tarball with the early 0.01 distribution. Code is
nearly not documented yet and not tested in deep, but should be fairly
usable. You need to have AnyEvent and either the Glib or Event Perl
modules installed.
You can use bin/transcode-rc without "make install" from the build
directory.
I hope this stuff helps debugging. If you need any further assistance,
don't hesitate to ask me.
Regards,
Jörn
--
LINUX - Linux Is Not gnU linuX
Video-TranscodeRC-0.01.tar.gz
Description: GNU Zip compressed data
pgpwMEHtoKuja.pgp
Description: PGP signature
