GNOME Bugzilla – Bug 647833
matroskademux: bad at guessing the framerate
Last modified: 2011-04-15 11:31:11 UTC
gst-launch videotestsrc num-buffers=100 ! video/x-raw-yuv,framerate=60/1,width=640,height=360 ! x264enc ! matroskamux ! filesink location=out.mkv Creates a file with framerate 500000000/8333333.
Created attachment 185996 [details] [review] better calculation of framerate in matroskademux This patch first guesses that the framerate is an integer, small fraction, or N/1001, the falls back to previous method.
Comment on attachment 185996 [details] [review] better calculation of framerate in matroskademux Looks good to me but maybe make the array static const and we should probably add this function to libgstvideo after the release.
Comment on attachment 185996 [details] [review] better calculation of framerate in matroskademux Also changed the GST_ERROR into a GST_INFO.