GNOME Bugzilla – Bug 337183
[matroska] "caps not real subset" when playing audio files
Last modified: 2006-04-10 15:42:35 UTC
Please describe the problem: Trying to playback matroska files with audio result in a warning and no sound in totem and with the playbin. Video on the other hand works with the playbin (and totem). Steps to reproduce: 1. pull the attached test.mkv (5 second ogg vorbis stream in matroska) 2. play it with "gst-launch playbin uri=file:///home/noa/slask/test.mkv" Actual results: no audio, but instead this this message: (gst-launch-0.10:21350): GStreamer-WARNING **: pad matroskademux0:audio_00 returned caps that are not a real subset of its template caps Expected results: audio Does this happen every time? yup Other information: playing the .ogg file (before mkvmerge) works. The same problem is reproducible with mp3 indata (raw .mp3 works, after merging the audio into .mkv the above error message and no sound) vanilla Fedora Core 5 system, gstreamer-0.10.4-1, gstreamer-plugins-good-0.10.2-1
Created attachment 62735 [details] small (5sec) ogg vorbis in matroska (free license, redistributable)
Confirmed, seen it before. I've got a patch for that somewhere locally (that needs some cleaning up).
Nice. I'm interested in testing anything you might have :)
Should be fixed in -good CVS: 2006-04-10 Tim-Philipp Müller <tim at centricular dot net> * gst/matroska/matroska-demux.c: (gst_matroska_demux_base_init), (gst_matroska_demux_handle_seek_event), (gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps), (gst_matroska_demux_subtitle_caps), (gst_matroska_demux_plugin_init): Use static pad templates with ANY caps for audio and video source pads and get rid of a lot of unnecessary (and partially broken) code for the template caps. Clean up caps finding functions. Fixes playback of audio files/streams that do not contain the sample rate and/or number of channels in the audio context (happens a lot with vorbis/mp3 .mka files it seems). Fixes #337183. Also add myself to copyright holders.