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 567336 - Text file detected as VC1 video
Text file detected as VC1 video
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-libav
0.10.x
Other All
: Normal blocker
: 0.10.7
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-01-11 06:58 UTC by Konstantin Klimentov
Modified: 2009-03-10 20:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
File which is detected as application/x-gst_ff-vc1test (965 bytes, text/plain)
2009-01-12 01:02 UTC, Konstantin Klimentov
  Details
patch to fix vc1test detection in ffmpeg (409 bytes, patch)
2009-01-14 02:02 UTC, David Schleef
committed Details | Review

Description Konstantin Klimentov 2009-01-11 06:58:57 UTC
Please describe the problem:
rhythmbox asks me to find suitable codec for .txt file(as i can see)

Steps to reproduce:
1. Create directory with music files, in which there should be one subdirectory with only .txt files
2. start rhythmbox
3. In preferences set place where your music files are stored and set "Watch my library for new files" to true
4. Restart rhythmbox and start playing any file from your music library

3. 


Actual results:
Rhythmbox shows me "Search for suitable codec?" dialog, and in import errors i see:
file:///home/<username>/music/Nautilus/Texts/Наутилус Помпилиус/1987 - Чужая Земля/01 - Монгольская Степь.txt    The GStreamer plugins to decode "Unknown" files cannot be found
Choosed music file continues to play, after i click cancel - it is still playing.

Expected results:
just playing music

Does this happen every time?
yes

Other information:
Output in shell:
rilium@rilium-lenovo:~$ LANG=C rhythmbox

(rhythmbox:5468): Rhythmbox-WARNING **: Could not open device /dev/radio0
Rhythmbox-Message: Missing plugin: gstreamer|0.10|rhythmbox-metadata|application/x-gst_ff-vc1test decoder|decoder-application/x-gst_ff-vc1test
Rhythmbox-Message: Missing plugin: gstreamer|0.10|rhythmbox-metadata|application/x-gst_ff-vc1test decoder|decoder-application/x-gst_ff-vc1test (ignoring)
Rhythmbox-Message: All missing plugins are blacklisted, doing nothing
Rhythmbox-Message: Missing plugin: gstreamer|0.10|rhythmbox-metadata|application/x-gst_ff-vc1test decoder|decoder-application/x-gst_ff-vc1test (ignoring)
Rhythmbox-Message: All missing plugins are blacklisted, doing nothing
Rhythmbox-Message: Missing plugin: gstreamer|0.10|rhythmbox-metadata|application/x-gst_ff-vc1test decoder|decoder-application/x-gst_ff-vc1test (ignoring)
Rhythmbox-Message: All missing plugins are blacklisted, doing nothing
Rhythmbox-Message: Missing plugin: gstreamer|0.10|rhythmbox-metadata|application/x-gst_ff-vc1test decoder|decoder-application/x-gst_ff-vc1test (ignoring)
Rhythmbox-Message: All missing plugins are blacklisted, doing nothing
Comment 1 Jonathan Matthew 2009-01-11 08:47:28 UTC
The problem is actually that you have some text files that appear (to GStreamer) to be 'application/x-gst_ff-vc1test' files.  If you can attach one, we might be able to figure out how to stop these false positives in the typefind function responsible.
Comment 2 Konstantin Klimentov 2009-01-12 01:02:27 UTC
Created attachment 126240 [details]
File which is detected as application/x-gst_ff-vc1test
Comment 3 Konstantin Klimentov 2009-01-12 01:12:18 UTC
Sorry for changing bug status, i made it by mistake
I attached file, it is encoded in  ISO-8859 and contains text in russian language.

Thank you!
Comment 4 Jonathan Matthew 2009-01-13 01:24:54 UTC
This file is detected as mp3 here (using gstreamer cvs head).
Comment 5 Konstantin Klimentov 2009-01-14 01:27:09 UTC
Maybe this information will be usefull for resolving this issue:

sh$ file ~/music/Nautilus/Texts/Наутилус\ Помпилиус/1987\ -\ Чужая\ Земля/01\ -\ Монгольская\ Степь.txt 
/home/<username>/music/Nautilus/Texts/Наутилус Помпилиус/1987 - Чужая Земля/01 - Монгольская Степь.txt: ISO-8859 text, with CRLF line terminators

dpkg -s file
Package: file
Status: install ok installed
Priority: standard
Section: utils
Installed-Size: 136
Architecture: i386
Version: 4.26-2
Depends: libc6 (>= 2.7-1), libmagic1 (= 4.26-2), zlib1g (>= 1:1.1.4)
Conffiles:
 /etc/magic 272913026300e7ae9b5e2d51f138e674
 /etc/magic.mime 272913026300e7ae9b5e2d51f138e674
....
 Starting with version 4, the file command is not much more than a wrapper
 around the "magic" library.
Homepage: http://www.darwinsys.com/file/

Comment 6 David Schleef 2009-01-14 02:02:42 UTC
Created attachment 126399 [details] [review]
patch to fix vc1test detection in ffmpeg

This is an ffmpeg patch to fix vc1test typefinding.  It currently returns TRUE for every file that has 0xc5 as the fourth byte.  (oops!)  We should probably disable vc1test in the plugin until the snapshot is changed.  It's not a useful format.
Comment 7 Konstantin Klimentov 2009-03-10 14:48:43 UTC
Please, apply at least temporary fix to code, as David Schleef wrote
Comment 8 Edward Hervey 2009-03-10 15:02:25 UTC
We don't fix upstream ffmpeg issues. That bug should go in the ffmpeg bugtracker (https://roundup.mplayerhq.hu/roundup/ffmpeg/).

What we can do for the release is to blacklist that specific typefinder... which is only for vc1 bitstream (aka: insanely rare and only for test purposes afaik).
Comment 9 Edward Hervey 2009-03-10 20:08:58 UTC
commit ca1321b22405d0c5a70ded97d0e30ff6db533894
Author: Edward Hervey <bilboed@bilboed.com>
Date:   Tue Mar 10 21:05:52 2009 +0100

    blacklist bogus demuxer/muxer/typefind. Fixes #567336 and #574814