GNOME Bugzilla – Bug 382269
Typefind detects mpeg video clip as audio/mpeg
Last modified: 2006-12-04 14:45:00 UTC
$ gst-typefind-0.10 squirrell.mpeg squirrell.mpeg - audio/mpeg, mpegversion=(int)1, layer=(int)2 http://rclsgi.eng.ohio-state.edu/~hawn/multi_media/video_clips/squirrell.mpeg The problem is that typefinders for both video/mpeg1 and audio/mpeg return 99 probability and audio/mpeg is chosen, because it is alphabetically before video/mpeg1. One workaround to this would be to decrease audio/mpeg typefind rank from GST_RANK_PRIMARY to GST_RANK_SECONDARY, so video/mpeg1 would be tested and detected first.
Created attachment 77643 [details] [review] gsttypefindfunctions.c.diff patch to decrease audio/mpeg rank
The mp3 typefinder has been drastically improved in cvs already, and now this is correctly detected as video/mpeg. Dropping the rank isn't neccesary.