Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-05-2015, 12:33 PM   #1
Registered: Sep 2008
Posts: 497

Rep: Reputation: 37
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:
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?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Remove line break if next line does not start with "PX" joje47 Programming 8 05-25-2011 09:50 AM
javascript line break secretlydead Programming 1 02-25-2011 10:12 AM
line break on bash script ZAMO Linux - General 5 04-24-2010 01:27 PM
break line into words nushki Programming 16 12-04-2009 10:15 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:41 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration