Wednesday, June 29, 2011

Batch converting videos with ffmpeg on Windows

Recently I required edited videos with a specific bitrate. I supplied the video editor with a relevant ffmpeg command to convert his work into the format I need. He asked me how he could batch convert them, and I, a *nix user, was momentarily stumped. Then based on this tutorial, I created a one line batch script that will convert all files of a given type in the current directory:

FOR %%i IN (*.avi) DO ffmpeg -i %%i ... rest of command ... %%i.mpg
I hope this helps someone random on the interwebs!

Wednesday, June 1, 2011

Well, it's been over a month since my last post, so I feel like it's time that I updated a bit. I've run into my expected performance issues with vidpy, and I haven't yet figured out how to get things to work with pygame's yuvoverlay(). For the next two weeks or so the project is on hiatus as I use pygame's built-in movie() module to play back sub-par MPEG1 video for my current (commercial) project, but I hope to bring vidpy into a workable state and thereby push multi-format support into my project during the summer. In the meantime, as a distraction, I've been playing with Android development and HTML5's canvas.

Android is complex and a bit slow, and HTML5 Canvas is VERY slow, but I hope to have some interesting demos or minigames out before the end of the summer. My vacation's just started and it's already moving by too quickly!