Batch – Using ffmpeg to create DNxHD quicktimes

Recently been going over my reel footage and decided it was time to convert everything into the same format, rather than have a collection of different AVI and MOV files all with different codecs.

I decided to go with Avid DNxHD36 as it plays and edits nicely on my machine.

I’m using the following windows batch file to drag n’ drop the files I want converted onto. They then go to a folder for sorting.

@echo off
if [%1]==[] goto :eof
:loop
ffmpeg -i %1 -vf "scale=1920:1080" -vcodec dnxhd -r 23.976 -b:v 36M "d:/media/dynamic/%~n1.mov"
shift
if not [%1]==[] goto loop

Works pretty good, only issue is it only works for footage which is or is-supposed-to-playback-as 16:9.

2 thoughts on “Batch – Using ffmpeg to create DNxHD quicktimes”

  1. Hi Will, I was trying to see if I can email you, but couldn’t find an address so this would have to do. I was looking for a way to script something that would make Maya bake udim tiles and was trawling through the net to see if I could find out how to start. Google threw up your bakeUDimTiles script and I followed the link. I’m actually not sure if it’s meant to be seen in public, because it went to your directory rather than a link on some page.

    But in any case, I was studying your script to see if I could understand what you were doing. It took me a couple of days, but when the last piece of the puzzle fell into place, I could only admire what your script did. It would never have occurred to me to mathematically tell Maya to recognize the tiles and to bake all that out, again mathematically, because my maths suck haha. Should have paid more attention in class…

    I’ve only less than miserable skills in scripting, but I really like your code. It’s clean and compact. Again, I do not know if you meant your code to be seen publicly, and I’m sorry if I stepped over any line. I did learn a lot though, so thank you for that at least.

    Have a nice day!

Leave a Reply

Your email address will not be published. Required fields are marked *