GNOME Bugzilla – Bug 360552
[riff] [avi] extracts non-UTF8 metadata
Last modified: 2006-11-27 11:58:45 UTC
Version: 2.16.2 What were you doing when the application crashed? Distribution: Ubuntu 6.10 (edgy) Gnome Release: 2.16.1 2006-10-02 (Ubuntu) BugBuddy Version: 2.16.0
This is gdb backtrace log.
+ Trace 75174
This is Movie clip info via mplayer output. (encoding charset is shift-jis) VIDEO: [DX50] 640x440 24bpp 23.976 fps 1373.6 kbps (167.7 kbyte/s) Clip info: Source: MBS Name: コードギアス 反逆のルルーシュ 第01話 「魔神が生まれた日」 Genre: anime Software: VirtualDubMod 1.5.10.2 (build 2542/release) Comments: 映像:DivX640 qt=2.8 i-link TScap 音声:Lame mp3 48kHz 160kbps Artist: aaLPbRVQ8B
Could you attach the first couple of megabytes from the video, so that I can reproduce the problem myself?
You can get a movie clip for reproducing this problem. http://ftp.mizi.com/~ganadist/cg_sample.avi
http://ftp.mizi.com/~ganadist/cg_sample.avi it play good
It really doesn't like the title: ./totem-video-indexer cg_sample.avi (<unknown>:6046): GStreamer-WARNING **: Trying to set string field 'title' on structure, but string is not valid UTF-8. Please file a bug. (<unknown>:6046): GStreamer-WARNING **: Trying to set string field 'comment' on structure, but string is not valid UTF-8. Please file a bug. (<unknown>:6046): GStreamer-WARNING **: Trying to set string field 'title' on structure, but string is not valid UTF-8. Please file a bug. (<unknown>:6046): GStreamer-WARNING **: Trying to set string field 'comment' on structure, but string is not valid UTF-8. Please file a bug. TOTEM_INFO_TITLE=�R�[�h�M�A�X ���t�̃����[�V�� ��01�b �u���_�����܂ꂽ� TOTEM_INFO_ARTIST=aaLPbRVQ8B TOTEM_INFO_DURATION=19 TOTEM_INFO_HAS_VIDEO=True TOTEM_INFO_VIDEO_CODEC=DivX MPEG-4 Version 5 TOTEM_INFO_HAS_AUDIO=True TOTEM_INFO_AUDIO_CODEC=MPEG-1 layer 3 Eek.
Committed a workaround to HEAD and 2.16 branch: 2006-10-25 Tim-Philipp Müller <tim at centricular dot net> * src/backend/bacon-video-widget-gst-0.10.c: (bacon_video_widget_get_metadata_string): Make extra sure we only return valid UTF-8 strings as metadata, since g_markup_escape_text() tends to just crash if the input is not valid UTF-8 (see #360552). Ultimately needs fixing in GStreamer => moving
2006-10-26 Tim-Philipp Müller <tim at centricular dot net> * gst/gststructure.c: (gst_structure_id_set_value): If someone tries to set a non-UTF8 string field on a structure, don't just print a warning, but also ignore the request and do not change/add that field to the structure. * tests/check/gst/gsttag.c: (GST_START_TEST), (gst_tag_suite): Test for the above. 2006-10-26 Tim-Philipp Müller <tim at centricular dot net> * gst-libs/gst/riff/riff-read.c: (freeform_string_to_utf8), (gst_riff_parse_info): If strings in INFO chunk are not UTF-8, do something similar to what we do for ID3v1 tags: check a number of environment variables (GST_AVI_TAG_ENCODING, GST_RIFF_TAG_ENCODING, GST_TAG_ENCODING) for character sets to try, otherwise try the current locale and/or fall back on ISO-8859-1. Fixes #360552. $ GST_TAG_ENCODING=shift-jis gst-launch-0.10 playbin uri=file:///home/tim//cg_sample.avi -t FOUND TAG : found by element "avidemux0". ISRC: MBS title: コードギアス 反逆のルルーシュ 第01話 「魔神が生まれた日」 genre: anime encoder: VirtualDubMod 1.5.10.2 (build 2542/release) comment: 映像:DivX640 qt=2.8 i-link TScap 音声:Lame mp3 48kHz 160kbps artist: aaLPbRVQ8B
*** Bug 379477 has been marked as a duplicate of this bug. ***