LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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: 546

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:
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



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:09 PM.

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
Open Source Consulting | Domain Registration