LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-05-2015, 11:33 AM   #1
tonj
Member
 
Registered: Sep 2008
Posts: 491

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


Reply


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 08:50 AM
javascript line break secretlydead Programming 1 02-25-2011 09:12 AM
line break on bash script ZAMO Linux - General 5 04-24-2010 12:27 PM
break line into words nushki Programming 16 12-04-2009 09:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:13 AM.

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