LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   correct way to line break filtergraph line (https://www.linuxquestions.org/questions/linux-software-2/correct-way-to-line-break-filtergraph-line-4175555336/)

tonj 10-05-2015 11:33 AM

correct way to line break filtergraph line
 
I tried this query on the ffmpeg forum but was told to try a different forum. I have a script with an ffmpeg command in it but i can't work out how to line-break the -vf filtergraph line. This is the command:
Code:

SCRIPT="ffmpeg \
-i 'rtsp://<ip-camera>:554/mpeg4/media.amp?resolution=640x480' \
-vf drawtext="fontfile=/home/packages/fonts/arial.ttf:x=20:y=220:text='%{localtime}':fontcolor=white:fontsize=10",drawtext="fontfile=/home/packages/fonts/arial.ttf:textfile=/home/overlay.txt:fontcolor=white:fontsize=12:x=160:y=30:reload=1" \
-y -f flv -s 640x480 -r 10 -b:v 256k -y \
-loglevel error 'rtmp://<rtmp-svr-ip>:1935/live/livestream1'"

the first two and the last two lines break ok and the command works fine but if I try to break the -vf line the command no longer works and I get errrors. What's the corrct way to break this line?


All times are GMT -5. The time now is 10:13 PM.