Answers.Body: <p>Use one <a href="https://ffmpeg.org/ffmpeg-filters.html#Filtergraph-syntax-1" rel="nofollow noreferrer">filtergraph</a> and join <a href="https://ffmpeg.org/ffmpeg.html#Simple-filtergraphs" rel="nofollow noreferrer">simple filters</a> with a comma:</p>
  
  <pre><code>-filter:v "filter1,filter2,filter3"
  </code></pre>
  
  <p>Your scale isn't doing anything. For example, a 320x240 input with <code>scale=in_w:in_h</code> is the same as <code>scale=320:240</code>.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-10T18:40:27.013Z
Answers.LastActivityDate: 2019-01-10T18:40:27.013Z
Answers.UserDisplayName: llogan
Body: <p>I'm using Windows and batch converting some SD captures that are 544x576, I want to deinterlace them and scale them to show at the proper aspect ratio. When I use the following command:</p>
  
  <p><code>FOR /F "tokens=*" %%G IN ('dir /s/b *.576p.mkv') DO c:\bin\ffmpeg.exe -i "%%~fG" -y -filter:v yadif -filter:v scale=in_w:in_h,setsar=1.4118/1 -c:v libx264 -crf 18 -level 3.1 -preset slow -c:a copy "%%~dpnG.out.mkv"</code></p>
  
  <p>The resultant file is still clearly interlaced, but the video specs show as progressive. Any ideas what would cause this? I'm having to do it in two stages using:</p>
  
  <p><code>FOR /F "tokens=*" %%G IN ('dir /s/b *.576p.mkv') DO c:\bin\ffmpeg.exe -i "%%~fG" -y -filter:v yadif  -c:v libx264 -crf 17 -level 3.1 -preset slow -c:a copy "%%~dpnG.di.mkv"</code></p>
  
  <p>then </p>
  
  <p><code>FOR /F "tokens=*" %%G IN ('dir /s/b *.576p.di.mkv') DO c:\bin\ffmpeg.exe -i "%%~fG" -y -filter:v scale=in_w:in_h,setsar=1.4118/1 -c:v libx264 -crf 17 -level 3.1 -preset slow -c:a copy "%%~dpnG.x264.mkv"</code></p>
  
  <p>..which is sub-optimal as it would do two separate encodes. However the .di.mkv file is not interlaced (looking at the video with left to right motion there's no combing present)</p>
  
  <p>What would cause the first (yadif) filter to be ignored?</p>
  
  <p>Many thanks!</p>
  
Tags: <ffmpeg>
Title: ffmpeg.exe ignores yadif filter when using >1 filter on the command line
UserDisplayName: Bobby Tables
ThreadText: # ffmpeg.exe ignores yadif filter when using >1 filter on the command line
  
  (Asked by: username_0 on 2019-01-10)
  
  I'm using Windows and batch converting some SD captures that are 544x576, I want to deinterlace them and scale them to show at the proper aspect ratio. When I use the following command:
  
  `FOR /F "tokens=*" %%G IN ('dir /s/b *.576p.mkv') DO c:\bin\ffmpeg.exe -i "%%~fG" -y -filter:v yadif -filter:v scale=in_w:in_h,setsar=1.4118/1 -c:v libx264 -crf 18 -level 3.1 -preset slow -c:a copy "%%~dpnG.out.mkv"`
  
  The resultant file is still clearly interlaced, but the video specs show as progressive. Any ideas what would cause this? I'm having to do it in two stages using:
  
  `FOR /F "tokens=*" %%G IN ('dir /s/b *.576p.mkv') DO c:\bin\ffmpeg.exe -i "%%~fG" -y -filter:v yadif -c:v libx264 -crf 17 -level 3.1 -preset slow -c:a copy "%%~dpnG.di.mkv"`
  
  then
  
  `FOR /F "tokens=*" %%G IN ('dir /s/b *.576p.di.mkv') DO c:\bin\ffmpeg.exe -i "%%~fG" -y -filter:v scale=in_w:in_h,setsar=1.4118/1 -c:v libx264 -crf 17 -level 3.1 -preset slow -c:a copy "%%~dpnG.x264.mkv"`
  
  ..which is sub-optimal as it would do two separate encodes. However the .di.mkv file is not interlaced (looking at the video with left to right motion there's no combing present)
  
  What would cause the first (yadif) filter to be ignored?
  
  Many thanks!
  
  **Tags:** ffmpeg
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-01-10. Score: 1
  
  Use one [filtergraph](https://ffmpeg.org/ffmpeg-filters.html#Filtergraph-syntax-1) and join [simple filters](https://ffmpeg.org/ffmpeg.html#Simple-filtergraphs) with a comma:
  
  ```
  -filter:v "filter1,filter2,filter3"
  
  ```
  
  Your scale isn't doing anything. For example, a 320x240 input with `scale=in_w:in_h` is the same as `scale=320:240`.
  
  
  ---
  
  