After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 382269 - Typefind detects mpeg video clip as audio/mpeg
Typefind detects mpeg video clip as audio/mpeg
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
0.10.10
Other Linux
: Normal normal
: 0.10.11
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-12-04 14:36 UTC by Tommi Myöhänen
Modified: 2006-12-04 14:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gsttypefindfunctions.c.diff (788 bytes, patch)
2006-12-04 14:38 UTC, Tommi Myöhänen
none Details | Review

Description Tommi Myöhänen 2006-12-04 14:36:45 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.
Comment 1 Tommi Myöhänen 2006-12-04 14:38:41 UTC
Created attachment 77643 [details] [review]
gsttypefindfunctions.c.diff

patch to decrease audio/mpeg rank
Comment 2 Michael Smith 2006-12-04 14:45:00 UTC
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.