[Pkg-scicomp-devel] opencv/trunk/debian

Sam Hocevar sam at zoy.org
Mon Mar 10 16:42:48 UTC 2008


SVN commit 2251 by sho:

  * debian/patches/100_ffmpeg_updates.diff:
    + Updated patch. Getting and setting framerate in FFmpeg streams now
      works properly again. Thanks to Eric Beets for half the fix.


 M  +5 -1      opencv/trunk/debian/changelog  
 M  +8 -10     opencv/trunk/debian/patches/100_ffmpeg_updates.diff  


--- opencv/trunk/debian/changelog #2250:2251
@@ -11,8 +11,12 @@
     + Set policy to 3.7.3.
     + Use Vcs-Svn: instead of XS-Vcs-Svn: fields.
 
- -- Sam Hocevar (Debian packages) <sam+deb at zoy.org>  Mon, 10 Mar 2008 16:41:05 +0000
+  * debian/patches/100_ffmpeg_updates.diff:
+    + Updated patch. Getting and setting framerate in FFmpeg streams now
+      works properly again. Thanks to Eric Beets for half the fix.
 
+ -- Sam Hocevar (Debian packages) <sam+deb at zoy.org>  Mon, 10 Mar 2008 16:41:56 +0000
+
 opencv (1.0.0-3) unstable; urgency=low
 
   * debian/control:
--- opencv/trunk/debian/patches/100_ffmpeg_updates.diff #2250:2251
@@ -40,32 +40,30 @@
      return &capture->frame;
  }
  
-@@ -1349,12 +1349,14 @@
+@@ -1349,12 +1349,12 @@
      case CV_CAP_PROP_FRAME_HEIGHT:
          return capture->frame.height;
      break;
-+#if 0
      case CV_CAP_PROP_FPS:
 -        return (double)capture->video_st->codec.frame_rate
 -        / (double)capture->video_st->codec.frame_rate_base;
-+        return (double)capture->video_st->codec->frame_rate
-+        / (double)capture->video_st->codec->frame_rate_base;
++        return (double)capture->video_st->time_base.num
++        / (double)capture->video_st->time_base.den;
      break;
-+#endif
      case CV_CAP_PROP_FOURCC:
 -        return (double)capture->video_st->codec.codec_tag;
 +        return (double)capture->video_st->codec->codec_tag;
      break;
      }
      return 0;
-@@ -1601,8 +1603,10 @@
+@@ -1601,8 +1603,8 @@
      writer->context->bit_rate         = 400000;      // TODO: BITRATE SETTINGS!
      writer->context->width            = frameSize.width;  
      writer->context->height           = frameSize.height;
-+#if 0
-     writer->context->frame_rate       = static_cast<int> (fps);
-     writer->context->frame_rate_base  =  1;
-+#endif
+-    writer->context->frame_rate       = static_cast<int> (fps);
+-    writer->context->frame_rate_base  =  1;
++    writer->context->time_base.num    = static_cast<int> (fps * 36000);
++    writer->context->time_base.den    =  36000;
      writer->context->gop_size         = 10;
      writer->context->max_b_frames     =  0;          // TODO: WHAT TO DO WITH B-FRAMES IN OTHER CODECS?
      



More information about the Pkg-scicomp-devel mailing list