Kaffeine can't play ogg streams in mkv files

Bug #227879 reported by Vivien Taillandier
10
Affects Status Importance Assigned to Milestone
xine-lib
Fix Released
Medium
kaffeine (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

System : Ubuntu 8.04 (hardy).

When I try to play an mkv file with an ogg sound stream, the video plays but there is no sound, although the streams are found.
When look at the informations of the file in Kaffeine, I get :
Ogg Vorbis : 0 kb/s.

I muxed the streams with the mkvmerge program, so I guess the container is OK.
When I try the same file but in an ogm container, there is no problem.

I launched kaffeine from terminal but I didn't get any related informations.

Revision history for this message
In , Dusan-pavlik (dusan-pavlik) wrote :

version of xine lib is 1.1.10.1

Revision history for this message
In , Prozzaks (prozzaks) wrote :

I can confirm the problem.

I upgraded to xine-lib 1.1.10 and the audio no longer works if there is a vorbis track in a mkv container.

The problem appears with kaffeine and xine-ui which leads me to beleive that it's not related to the front-end but the lib.

Here is an extract of the output message when playing a problematic file with xine :

gui_xine_open_and_play():
        mrl: 'Montage/[A-F] [Zarxrax] [RVG] Surfing on the Blocks [HQ].mkv',
        sub 'NONE',
        start_pos 0, start_time 0, av_offset 0, spu_offset 0.
xine: found input plugin : file input plugin
xine: found demuxer plugin: matroska demux plugin
demux_matroska: Track 1, V_MS/VFW/FOURCC und
demux_matroska: Track 2, A_VORBIS und

I verified that the file wasn't corrupted by playing it with mplayer. I have many other file that behave the exact same way and they are all mkv containers with vorbis audio tracks. The video always plays correctly regardless of the container and/or codec.

Revision history for this message
In , Z0d5e8n7x (z0d5e8n7x) wrote :

I can confirm this bug.

xine-lib 1.1.10, Debian Lenny, x86.

Revision history for this message
In , Prozzaks (prozzaks) wrote :

Created an attachment (id=19)
A config log file that produced a build with the issue

Revision history for this message
In , Prozzaks (prozzaks) wrote :

To make sure this wasn't related to the compile flags or the patches applied by the Gentoo ebuild, I manually built the package from the tarball and hacked my LD_LIBRARY_PATH so that xine would use the manually built lib (verified with ldd.

The issue was still present. This confirms that it's not a Gentoo specific issue just as the previous comment suggests. ;)

I added the configure log as an attachment to this bug.

Revision history for this message
In , Xanas3712-gmail (xanas3712-gmail) wrote :

Reporting in to say that this bug also occurs in the latest version of xine-lib for ubuntu.

Revision history for this message
In , Darren Salt (dsalt) wrote :

The audio format is being recognised, at least. Partial output (with LOG defined when building the vorbis decoder):

xine: found demuxer plugin: matroska demux plugin
video_out_xcbxv: VO_PROP_INTERLACED(0)
video discontinuity #2, type is 0, disc_off 0
waiting for audio discontinuity #2
audio discontinuity #2, type is 0, disc_off 0
waiting for in_discontinuity update #2
vpts adjusted with prebuffer to 272829
demux_matroska: Track 1, V_MS/VFW/FOURCC
load_plugins: plugin ffmpegvideo will be used for video streamtype 1d.
demux_matroska: Track 2, A_VORBIS
vorbis_decoder: (open_plugin:337) libvorbis decoder instance created
load_plugins: plugin vorbis will be used for audio streamtype 09.
vorbis_decoder: (vorbis_decode_data:177) 3 headers to go
xine_play
ao_flush (loop running: 1)
video_out_xcbxv: VO_PROP_INTERLACED(0)
ffmpeg_video_dec: direct rendering enabled
audio discontinuity #3, type is 3, disc_off 720
waiting for in_discontinuity update #3
video discontinuity #3, type is 3, disc_off 720
vpts adjusted with prebuffer to 281870
vorbis_decoder: (vorbis_decode_data:285) output not open

Lots more "output not open" lines follow. Looks like the key is to do with the header count. "hg annotate" says that commit b7f7e25ed3935c06544e13af2728f5beebf6ef34 is to blame; reverting this commit does indeed fix the problem.

Thibaut?

Revision history for this message
In , Thibaut-mattern (thibaut-mattern) wrote :

Give me a test stream, and I'll fix it.

Revision history for this message
In , Darren Salt (dsalt) wrote :
Revision history for this message
In , Thibaut-mattern (thibaut-mattern) wrote :

I've pushed the bugfix to the 1.1 branch.

Revision history for this message
Vivien Taillandier (vivien) wrote :

System : Ubuntu 8.04 (hardy).

When I try to play an mkv file with an ogg sound stream, the video plays but there is no sound, although the streams are found.
When look at the informations of the file in Kaffeine, I get :
Ogg Vorbis : 0 kb/s.

I muxed the streams with the mkvmerge program, so I guess the container is OK.
When I try the same file but in an ogm container, there is no problem.

I launched kaffeine from terminal but I didn't get any related informations.

Revision history for this message
Colin (colin-) wrote :

I have a similar problem with Vorbis in mkv files. I'm also using Ubuntu 8.04.

In Kaffeine I get: Audio: 0kb/s and no sound is played. In Windows Media Classic I get Audio: Vorbis 48000Hz stereo [Audio] and sound works fine.

Revision history for this message
GrahamGRA (graham-use-linux) wrote :

Similar problem here too. I'm unsure why but no Xine applications can play the audio from these mkv files I have. I beleive it to be ogg vorbis. There two things I have issues with. One is that the video has two audio channels (confusion?) but also that it works fan-daby-abulous in mplayer - which kindly informs me of this:

==========================================================================
Forced audio codec: mad
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->192000)
Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis decoder)
==========================================================================
AO: [pulse] Failed to connect to server: Connection refused
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)

I'm confident the pulse audio message doesn't mean anything - mostly because that's the mplayer output in which it happens to work... but the two channels thing is confusing me.

Revision history for this message
Skyminu (leonidmail) wrote :

So in my Kubuntu 8.04. Kaffeine with xine-engine can't play vorbis audio in matroska files. But it can with gstreamer-engine and it can play with xine-engine mp3 audio in matroska. Xine player so can't play vorbis audio in matroska files. I think this is xine-vorbis-matroska bug.
Linux 2.6.24-19-generic #1 SMP Wed Jun 18 14:15:37 UTC 2008 x86_64 GNU/Linux
kaffeine 0.8.6-0ubuntu8
libxine1 1.1.11.1-1ubuntu3

Revision history for this message
sybreon (ssnt2) wrote :

Same problem I'm experiencing. All players that use Xine for playback are unable to play videos with vorbis audio streams in MKV files. It's a shame because I've encoded a lot of my DVDs using ogmrip with vorbis for audio. Works perfectly well with mplayer.

Linux neotoaster 2.6.24-19-generic #1 SMP Fri Jul 11 21:01:46 UTC 2008 x86_64 GNU/Linux
ii libxine1 1.1.11.1-1ubuntu3.1
ii libxine1-all-plugins 1.1.11.1-1ubuntu3.1
ii libxine1-bin 1.1.11.1-1ubuntu3.1
ii libxine1-console 1.1.11.1-1ubuntu3.1
ii libxine1-ffmpeg 1.1.11.1-1ubuntu3.1
ii libxine1-gnome 1.1.11.1-1ubuntu3.1
ii libxine1-misc-plugins 1.1.11.1-1ubuntu3.1
ii libxine1-plugins 1.1.11.1-1ubuntu3.1
ii libxine1-x 1.1.11.1-1ubuntu3.1

Revision history for this message
Walter Huf (hufman) wrote :

The xine project has a bug report for this bug, and also committed a fix for it. Since Hardy is using the 1.1 branch, which the fix was released against, will Hardy users be seeing a fix soon?
http://bugs.xine-project.org/show_bug.cgi?id=43#c10

Changed in xine-lib:
status: Unknown → Fix Released
Revision history for this message
Vivien Taillandier (vivien) wrote :

I tried kaffeine with the xine engine under Intrepid and the ogg streams are played.
Should we mark this bug as "Fix released" ?

Changed in kaffeine:
status: New → Fix Released
Revision history for this message
ntuple (ntuple) wrote :

Sorry for the newbie question but where can I find an update that works for kaffeine 0.8.6 ?

thanks,
Raj

Changed in xine-lib:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.