title: Convert compressed swf to mp4
body: <p>I'm looking for a batch script to convert swf to mp4, lossless. I tried using both ffmpeg and handbrake, but apparently swf is compressed and I can't convert them this way. </p>
  
  <pre><code>ffmpeg -i input -c:v libx264 -preset ultrafast -qp 0 output.mkv
  
  HandBrakeCLI -i source -o destination
  </code></pre>
  
  <p>I know I acn use a tool like xilisoft, but I've more than 3000 videos and would need to run this automatically. Is there a script/ algorithm that can help me automate this process?</p>