diff options
Diffstat (limited to 'readme.rst')
-rw-r--r-- | readme.rst | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -69,6 +69,15 @@ Then run again `teaqueue`:: program to convert your videos. The important point is the script should be able to be interruptible without interrupting the underlying job. +.. code:: shell + + #!/bin/sh + flock -x /var/lock/transcode_my_file.sh.lock ffmpeg -i "$1" -arg -arg & + +The first `ffmpeg` command will go to background then, the second will wait +until the first `ffmpeg` finishes. If the `teaqueue` command is interrupted, +it can be run again without effectively interrupting the current `ffmpeg` job. + History ======= |