Answers.Body: <p>Use this filter expression:</p>
  
  <pre><code>"drawtext=enable='between(t,2.5,6.5)':fontsize=50:fontcolor=Green:fontfile='ariblk.ttf': \
  text='textline1':x=min(4*(tw\+10)-(abs(4-2*(t-2.5)))*(tw+10)-tw\,10):y=h-th-130"
  </code></pre>
  
  <p>The above is for the first line. I've changed the values/expression for the <code>enable</code> and <code>x</code>parameters. The movement starts at 2.5 seconds, settles at 3s, stays till 6s and then disappears by 6.5</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-27T07:15:20.840Z
Answers.Text: This worked perfectly :) Added the expression to all lines. Now i am trying to add drawbox that should go under text like from http://video.stackexchange.com/questions/15551/ffmpeg-drawtext-filter-create-transparent-background-with-text but when i add the expression i get error "too many inputs specified for the "drawtext" filter. Maybe i write this problem to new question ?
Answers.UserDisplayName: Azz Kawa
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-27T07:24:03.600Z
Answers.Text: Yes, make it a new question and include the full command you're using.
Answers.UserDisplayName: Gyan
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-27T09:29:15.967Z
Answers.Text: Here it is: http://video.stackexchange.com/questions/17522/add-transparent-background-to-ffmpeg-with-text-over-it
Answers.UserDisplayName: Azz Kawa
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-27T17:15:40.063Z
Answers.Text: Sorry, miscklicked !
Answers.UserDisplayName: Azz Kawa
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-26T16:53:56.383Z
Answers.LastActivityDate: 2016-01-26T16:53:56.383Z
Answers.UserDisplayName: Gyan
Body: <p>I am using this line which works fine for showing text in 3 lines starting at 0.3sec, ending at 0.6 sec. in bottom left corner.</p>
  
  <p>I would like to add scroll in and scroll out effect in ffmpeg.</p>
  
  <p>Both in and out should be fast, lets say .05sec.</p>
  
  <p>Scroll in should end in position like its written in code, remaining there for those 3 sec, then scrolling out.</p>
  
  <p>ffmpeg -i scrollin.mp4 -vf "[in]drawtext=enable='between(t,3,6)':fontsize=50:fontcolor=Green:fontfile='ariblk.ttf':text='textline1':x=10:y=h-th-130, drawtext=enable='between(t,3,6)':fontsize=50:fontcolor=White:fontfile='ariblk.ttf':text='textline2':x=10:y=h-th-75, drawtext=enable='between(t,3,6)':fontsize=50:fontcolor=White:fontfile='ariblk.ttf':text='textline3':x=10:y=h-th-20[out]" -codec:a copy scrollout.mp4</p>
  
Tags: <ffmpeg>
Title: Scroll text left to right and back
UserDisplayName: Azz Kawa
ThreadText: # Scroll text left to right and back
  
  (Asked by: username_0 on 2016-01-26)
  
  I am using this line which works fine for showing text in 3 lines starting at 0.3sec, ending at 0.6 sec. in bottom left corner.
  
  I would like to add scroll in and scroll out effect in ffmpeg.
  
  Both in and out should be fast, lets say .05sec.
  
  Scroll in should end in position like its written in code, remaining there for those 3 sec, then scrolling out.
  
  ffmpeg -i scrollin.mp4 -vf "[in]drawtext=enable='between(t,3,6)':fontsize=50:fontcolor=Green:fontfile='ariblk.ttf':text='textline1':x=10:y=h-th-130, drawtext=enable='between(t,3,6)':fontsize=50:fontcolor=White:fontfile='ariblk.ttf':text='textline2':x=10:y=h-th-75, drawtext=enable='between(t,3,6)':fontsize=50:fontcolor=White:fontfile='ariblk.ttf':text='textline3':x=10:y=h-th-20[out]" -codec:a copy scrollout.mp4
  
  **Tags:** ffmpeg
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-01-26. Score: 4 | Accepted answer
  
  Use this filter expression:
  
  ```
  "drawtext=enable='between(t,2.5,6.5)':fontsize=50:fontcolor=Green:fontfile='ariblk.ttf': \
  text='textline1':x=min(4*(tw\+10)-(abs(4-2*(t-2.5)))*(tw+10)-tw\,10):y=h-th-130"
  
  ```
  
  The above is for the first line. I've changed the values/expression for the `enable` and `x`parameters. The movement starts at 2.5 seconds, settles at 3s, stays till 6s and then disappears by 6.5
  
  > **Comments:**
  > **username_0**: This worked perfectly :) Added the expression to all lines. Now i am trying to add drawbox that should go under text like from http://video.stackexchange.com/questions/15551/ffmpeg-drawtext-filter-create-transparent-background-with-text but when i add the expression i get error "too many inputs specified for the "drawtext" filter. Maybe i write this problem to new question ?  
  > **username_1**: Yes, make it a new question and include the full command you're using.  
  > **username_0**: Here it is: http://video.stackexchange.com/questions/17522/add-transparent-background-to-ffmpeg-with-text-over-it  
  > **username_0**: Sorry, miscklicked !  
  
  ---
  
  