Bug 95090 - WISH: selection for audio and text streams
Summary: WISH: selection for audio and text streams
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmplayer
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: unspecified
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: Koos Vriezen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-13 18:35 UTC by Iuri Fiedoruk
Modified: 2025-06-09 21:04 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
the default kmplayer running the file. (2.14 KB, text/plain)
2005-10-27 13:54 UTC, anupam.srivastava
Details
the file when english subtitle are selected (2.21 KB, text/plain)
2005-10-27 13:56 UTC, anupam.srivastava
Details
the command used to view english subtitles and japanese audio track. (2.50 KB, text/plain)
2005-10-27 13:57 UTC, anupam.srivastava
Details
mplayer command run by kmplayer (2.54 KB, text/plain)
2005-10-27 17:37 UTC, anupam.srivastava
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Iuri Fiedoruk 2004-12-13 18:35:26 UTC
Version:            (using KDE KDE 3.3.2)
Installed from:    SuSE RPMs

I wish it was possible fot files that have multiple audio or text that kmplayer was able to present a selection of subtitles and languages.
BSPlayer, a nice video player for windows have this feature, see http://www.bsplayer.org/
Comment 1 anupam.srivastava 2005-10-26 22:50:09 UTC
The relevant mplayer command is this:
mplayer -aid 1 -sid 0 file.ogm

This will play the second audio track and will not show the subtitles.
Comment 2 anupam.srivastava 2005-10-26 22:57:29 UTC
Sorry for reposting again... I forgot to mention something:
This feature will be best represnted as a menu entry, may be under View. An entry named 'Audio track>' and another as 'Video track>' should show all the available streams (and an option to show none of them). If important, I can create a mockup for this feature.

I doubt this but probably the mplayer defaults are -aid 0 -sid 1 
Comment 3 Koos Vriezen 2005-10-26 23:04:48 UTC
I've already added this feature in 0.9.1-rc1. If you wait a few days, the 0.9.1 stable should be released. (and then I close this one, if you don't or tell me not to)
Comment 4 anupam.srivastava 2005-10-27 09:10:43 UTC
Oh.. I see it in the Changelog:
"- Support for audio/subtitles within a stream. A language button will be added
  when detected which has submenus for the languages. GStreamer only subtitles
  with an external url ATM."

I am using 0.9.1-rc1 to play a .ogm file having multiple streams, but I am unable to find any Language button or submenu. Is it my unability to find or is there a bug? If there is, should I file a new bug?
Comment 5 Koos Vriezen 2005-10-27 12:05:56 UTC
There should be a button added between the record button and the position slider. When hovered with the mouse, it popsup a menu. Oh, not for gst yet.
If not, then I would be interested in the MPlayer's output (with the -identify option). Currently kmplayer uses:
  ID_AUDIO_ID=0
  ID_AID_0_LANG=eng
and
  ID_SUBTITLE_ID=3
  ID_SID_3_LANG=eng
to build this menu.
Comment 6 anupam.srivastava 2005-10-27 13:54:51 UTC
Created attachment 13173 [details]
the default kmplayer running the file.
Comment 7 anupam.srivastava 2005-10-27 13:55:54 UTC
Thanks. I found the button. But I have another problem now.
The .ogm file is having two tracks of audio:
ID_AID_0_LANG=English
ID_AID_1_LANG=Japanese
And there is an english subtitle:
ID_SID_0_LANG=English

Now, the language button is showing only English as an option for "Audio Languages". :-( 
Also, there is no option to not show the subtitle once it is selected. (though this I can do by restarting the file manually)
Comment 8 anupam.srivastava 2005-10-27 13:56:34 UTC
Created attachment 13174 [details]
the file when english subtitle are selected
Comment 9 anupam.srivastava 2005-10-27 13:57:34 UTC
Created attachment 13175 [details]
the command used to view english subtitles and japanese audio track.
Comment 10 Koos Vriezen 2005-10-27 15:22:10 UTC
I'm sorry, but the attachments are of no use for me. The reason is that the important lines are removed here.
You should look at the output from MPlayer run at the console w/ the -identify option.
Btw. how does this all run with the xine backend?
Comment 11 anupam.srivastava 2005-10-27 16:38:31 UTC
Yeah I thought that they will be of no use to you... anyway.
The Xine engine is working fine. It is showing both English and Japanese audio tracks. The problem persists with Mplayer though.
Comment 12 anupam.srivastava 2005-10-27 16:42:06 UTC
And I am sorry for not providing the correct information. Please tell me the exact command to run. I will be looking for some small file with multiple tracks which reproduces the problem meanwhile.
Comment 13 Koos Vriezen 2005-10-27 17:22:24 UTC
Just launch kmplayer from konsole (type 'kmplayer' and then enter). Then start your movie. You will see the full mplayer command that is executed by kmplayer. Now run exactly that command directly from konsole, but either remove the '-wid 12345' option or leave it but then you must have the *same* kmplayer still open and not running (because '-wid 12345' will try to embed in that window).
Oh, and you may want to add '-quiet' to not get the runtime status.
Comment 14 anupam.srivastava 2005-10-27 17:37:37 UTC
Created attachment 13177 [details]
mplayer command run by kmplayer

I am attaching the output of the command kmplayer uses. It is using English
audio track and no subtitle as expected.
Comment 15 Koos Vriezen 2005-10-27 18:25:28 UTC
Yeah, well I only see, so one audio and one subtitle.
ID_AID_0_LANG=English
ID_SID_0_LANG=English

There are two ID though
ID_AUDIO_ID=0/1
but there is no naming for it. Where is the
ID_AID_1_LANG=Japanese
?
Comment 16 anupam.srivastava 2005-10-27 19:01:05 UTC
Well, here is the snapshot for Xine engine playing the same file:
http://home.iitk.ac.in/~anupamsr/snapshot1.png
If it is some error of mplayer, then I will file a bug in mplayer.
Comment 17 Koos Vriezen 2005-10-27 20:47:38 UTC
Don't know, at #7 you said there was a 
 ID_AID_1_LANG=Japanese
so from where did you get that line? And what does gmplayer do with that file?
Comment 18 anupam.srivastava 2005-10-27 21:22:08 UTC
Well, I got it from this command:
gmplayer -aid 1 -sid 0 -identify Rurouni_Kenshin_TV_44.ogm
The output is:
<snip>
Playing /home/rogue/rk/Rurouni_Kenshin_TV_44.ogm.
ID_VIDEO_ID=0
[Ogg] stream 0: video (FOURCC DX50), -vid 0
ID_AUDIO_ID=0
[Ogg] stream 1: audio (Vorbis), -aid 0
ID_AUDIO_ID=1
[Ogg] stream 2: audio (Vorbis), -aid 1
[Ogg] stream 3: subtitles (SRT-like text subtitles), -sid 0
ID_SUBTITLE_ID=0
Ogg file format detected.
VIDEO:  [DX50]  640x480  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening audio decoder: [libvorbis] Ogg/Vorbis audio decoder
ID_AID_1_LANG=Japanese
ID_SID_0_LANG=English
[Ogg] Language for -sid 0 is '-slang "English"'
AUDIO: 48000 Hz, 2 ch, s16le, 104.0 kbit/6.77% (ratio: 13000->192000)
Selected audio codec: [vorbis] afm:libvorbis (OggVorbis Audio Decoder)
==========================================================================
ID_FILENAME=/home/rogue/rk/Rurouni_Kenshin_TV_44.ogm
ID_VIDEO_FORMAT=DX50
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=640
ID_VIDEO_HEIGHT=480
ID_VIDEO_FPS=23.976
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_CODEC=vorbis
ID_AUDIO_FORMAT=vrbs
ID_AUDIO_BITRATE=104000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
ID_LENGTH=1545
==========================================================================
</snip>
Comment 19 Koos Vriezen 2005-10-27 22:01:30 UTC
Hmm, with '-aid 1' there is no
 ID_AID_0_LANG=English
line anymore. I think its time to check the MPlayer's mailing lists about this indeed ...
Comment 20 Jason W 2007-06-27 09:15:00 UTC
Has there been any resolution with this?  I have the same issue with OGM files.  Only one language shows (there are two) and there is no option for no subtitles.

Using the xine backend, both languages show (seemingly an mplayer issue then), but there is still no option to use no subtitles (there is such an option in kaffeine), so that I would consider to be a KMplayer bug, and hopefully fixable somehow.
Comment 21 Christoph Cullmann 2025-06-09 21:04:58 UTC
This project is unfortunately no longer maintained.

If a new maintainer wants to step up and take care, the project is archived here:

https://invent.kde.org/multimedia/kmplayer

You can just clone it in your private namespace on invent.kde.org and if you have started to work on it and fixed/implemented something get it reviewed and the project unarchived.

Sorry for the inconveniences.