Answers.Body: <p>Use</p>
  
  <pre><code>[0:v]split=2[vblur][vmain];\
  [vblur]scale=640:360:force_original_aspect_ratio=increase,boxblur=5,crop=640:360[vblurred];\
  [vmain]scale=640:360:force_original_aspect_ratio=decrease[vmain];\
  [vblurred][vmain]overlay=(W-w)/2:(H-h)/2[out]
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-11T13:24:31.323Z
Answers.Text: I found another solution but yours is better in result, and much more beautiful! Thanks!
Answers.UserDisplayName: GFCoder977
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-11T11:40:07.680Z
Answers.LastActivityDate: 2018-06-11T11:40:07.680Z
Answers.UserDisplayName: Gyan
Body: <p>I 'd like to create a 16/9 video from an image that is not exactly 16/9; 
  I can add black lines aside, to fit 16/9, but I'd like to create a background with same image, with a boxblur applied; the result will be the original image, fit at 16/9, with the same image, blurry, visible instead of blank side lines.</p>
  
  <p>I'm trying to do with split filter, something similar to this:</p>
  
  <pre><code>[0:v]split=2[v0i][v1i];\
  [v0i]scale=iw*3:ih*3,boxblur=5[v0f];\
  [v1i][v0f]overlay=(W-w/2):(H-h)/2[v0];\
  [v0]\
  scale=iw*min(640/iw\,360/ih):ih*min(640/iw\,360/ih),
  pad=640:360:(640-iw)/2:(360-ih)/2\
  [v00];\
  </code></pre>
  
  <p>but I think I miss something ... can someone help me? thanks ...</p>
  
Tags: <ffmpeg>
Title: Video from image with same image as background
UserDisplayName: GFCoder977
ThreadText: # Video from image with same image as background
  
  (Asked by: username_0 on 2018-06-11)
  
  I 'd like to create a 16/9 video from an image that is not exactly 16/9;
  I can add black lines aside, to fit 16/9, but I'd like to create a background with same image, with a boxblur applied; the result will be the original image, fit at 16/9, with the same image, blurry, visible instead of blank side lines.
  
  I'm trying to do with split filter, something similar to this:
  
  ```
  [0:v]split=2[v0i][v1i];\
  [v0i]scale=iw*3:ih*3,boxblur=5[v0f];\
  [v1i][v0f]overlay=(W-w/2):(H-h)/2[v0];\
  [v0]\
  scale=iw*min(640/iw\,360/ih):ih*min(640/iw\,360/ih),
  pad=640:360:(640-iw)/2:(360-ih)/2\
  [v00];\
  
  ```
  
  but I think I miss something ... can someone help me? thanks ...
  
  **Tags:** ffmpeg
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-06-11. Score: 1
  
  Use
  
  ```
  [0:v]split=2[vblur][vmain];\
  [vblur]scale=640:360:force_original_aspect_ratio=increase,boxblur=5,crop=640:360[vblurred];\
  [vmain]scale=640:360:force_original_aspect_ratio=decrease[vmain];\
  [vblurred][vmain]overlay=(W-w)/2:(H-h)/2[out]
  
  ```
  
  > **Comments:**
  > **username_0**: I found another solution but yours is better in result, and much more beautiful! Thanks!  
  
  ---
  
  