--- video/transcoders/video_ffmpeg.inc	2011-04-22 07:08:50.000000000 +0200
+++ video/transcoders/video_ffmpeg.inc	2011-04-28 13:40:04.000000000 +0200
@@ -253,7 +253,7 @@
     $ffmpeg_output = $this->get_video_info($video);
     $res = arrcay('width' => 0, 'height' => 0);
     // Get dimensions
-    $regex = preg_match('/([0-9]{1,5})x([0-9]{1,5})/', $ffmpeg_output, $regs);
+    $regex = preg_match('/Stream #.*:.*([0-9]{1,5})x([0-9]{1,5})/', $ffmpeg_output, $regs);
     if (isset($regs[0])) {
       $dimensions = explode("x", $regs[0]);
       $res['width'] = $dimensions[0] ? $dimensions[0] : NULL;
