shloyer / gnome-mplayer

Automatically exported from code.google.com/p/gnome-mplayer
GNU General Public License v2.0
0 stars 0 forks source link

Missing controls: Jump to prev/next chapter #60

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
gnome-mplayer is lacking controls to jump to previous (key: !)/next(key: @)
chapter in dvd and "normal" movie mode (eg. MKV files).

Original issue reported on code.google.com by 25He...@googlemail.com on 11 Sep 2008 at 10:28

GoogleCodeExporter commented 8 years ago
I've added this for DVDs and DVDs with menus. If you could send me the output 
of 

mplayer -identify [some mkv file] -frames 0

Of a file that contains chapters, so that I can make sure my code picks it up.

Original comment by kdeko...@gmail.com on 12 Sep 2008 at 6:01

GoogleCodeExporter commented 8 years ago
Here's your info (Jumping to the chapter marks works perfect via !/@ with that 
file,
only the controls are missing):

MPlayer dev-SVN-r27566 (C) 2000-2008 MPlayer Team
CPU: Mobile AMD Sempron(tm) 3100+                (Family: 15, Model: 28, 
Stepping: 0)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2

Playing somefile.mkv.
ID_SUBTITLE_ID=0
ID_SID_0_LANG=scr
[mkv] Track ID 1: subtitles (S_VOBSUB), -sid 0, -slang scr
ID_SUBTITLE_ID=1
ID_SID_1_LANG=eng
[mkv] Track ID 2: subtitles (S_VOBSUB), -sid 1, -slang eng
ID_SUBTITLE_ID=2
ID_SID_2_LANG=ger
[mkv] Track ID 3: subtitles (S_VOBSUB), -sid 2, -slang ger
ID_SUBTITLE_ID=3
ID_SID_3_LANG=gre
[mkv] Track ID 4: subtitles (S_VOBSUB), -sid 3, -slang gre
ID_SUBTITLE_ID=4
ID_SID_4_LANG=heb
[mkv] Track ID 5: subtitles (S_VOBSUB), -sid 4, -slang heb
ID_SUBTITLE_ID=5
ID_SID_5_LANG=ice
[mkv] Track ID 6: subtitles (S_VOBSUB), -sid 5, -slang ice
ID_SUBTITLE_ID=6
ID_SID_6_LANG=ita
[mkv] Track ID 7: subtitles (S_VOBSUB), -sid 6, -slang ita
ID_SUBTITLE_ID=7
ID_SID_7_LANG=por
[mkv] Track ID 8: subtitles (S_VOBSUB), -sid 7, -slang por
ID_SUBTITLE_ID=8
ID_SID_8_LANG=rus
[mkv] Track ID 9: subtitles (S_VOBSUB), -sid 8, -slang rus
ID_SUBTITLE_ID=9
ID_SID_9_LANG=slv
[mkv] Track ID 10: subtitles (S_VOBSUB), -sid 9, -slang slv
ID_SUBTITLE_ID=10
ID_SID_10_NAME=Forced Subtitles
ID_SID_10_LANG=ger
[mkv] Track ID 11: subtitles (S_VOBSUB) "Forced Subtitles", -sid 10, -slang ger
ID_SUBTITLE_ID=11
ID_SID_11_NAME=Forced Subtitles
ID_SID_11_LANG=ita
[mkv] Track ID 12: subtitles (S_VOBSUB) "Forced Subtitles", -sid 11, -slang ita
ID_SUBTITLE_ID=12
ID_SID_12_NAME=Forced Subtitles
ID_SID_12_LANG=rus
[mkv] Track ID 13: subtitles (S_VOBSUB) "Forced Subtitles", -sid 12, -slang rus
ID_SUBTITLE_ID=13
ID_SID_13_NAME=Director's Commentary
ID_SID_13_LANG=ger
[mkv] Track ID 14: subtitles (S_VOBSUB) "Director's Commentary", -sid 13, 
-slang ger
ID_SUBTITLE_ID=14
ID_SID_14_NAME=Director's Commentary
ID_SID_14_LANG=ita
[mkv] Track ID 15: subtitles (S_VOBSUB) "Director's Commentary", -sid 14, 
-slang ita
ID_SUBTITLE_ID=15
ID_SID_15_NAME=Director's Commentary
ID_SID_15_LANG=rus
[mkv] Track ID 16: subtitles (S_VOBSUB) "Director's Commentary", -sid 15, 
-slang rus
ID_VIDEO_ID=0
[mkv] Track ID 17: video (V_MPEG4/ISO/AVC), -vid 0
ID_AUDIO_ID=0
ID_AID_0_LANG=ger
[mkv] Track ID 18: audio (A_AC3), -aid 0, -alang ger
ID_AUDIO_ID=1
ID_AID_1_LANG=eng
[mkv] Track ID 19: audio (A_AC3), -aid 1, -alang eng
ID_AUDIO_ID=2
ID_AID_2_NAME=Director's Commentary
ID_AID_2_LANG=eng
[mkv] Track ID 20: audio (A_AC3) "Director's Commentary", -aid 2, -alang eng
[mkv] Will play video track 17.
Matroska file format detected.
VIDEO:  [avc1]  720x400  24bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
ID_FILENAME=somefile.mkv
ID_DEMUXER=mkv
ID_VIDEO_FORMAT=avc1
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=720
ID_VIDEO_HEIGHT=400
ID_VIDEO_FPS=25.000
ID_VIDEO_ASPECT=1.8000
ID_AUDIO_FORMAT=8192
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=6
ID_LENGTH=5110.56
ID_SEEKABLE=1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
ID_VIDEO_CODEC=ffh264
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
ID_AUDIO_BITRATE=384000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
[AO ESD] latency: [server: 0.24s, net: 0.00s] (adjust 0.24s)
AO: [esd] 48000Hz 2ch s16le (2 bytes per sample)
ID_AUDIO_CODEC=a52
Starting playback...

Exiting... (End of file)

Original comment by 25He...@googlemail.com on 12 Sep 2008 at 6:13

GoogleCodeExporter commented 8 years ago
I don't see anything in there, that says that the file has chapters. If it 
doesn't
report them, then I can't detect them.

Original comment by kdeko...@gmail.com on 12 Sep 2008 at 6:43

GoogleCodeExporter commented 8 years ago
Yap, noticed that, too. Hitting the keyboard shortcuts on a non chaptered file
doesn't effect playback, thou maybe it's a solution to offer chapter controls 
as some
settings switch (something like "Always show chapter controls").

Original comment by 25He...@googlemail.com on 12 Sep 2008 at 10:07

GoogleCodeExporter commented 8 years ago
The problem, with the chapter controls, is that those controls also are used to
advance to the next media file when there are multiple items on the playlist. 
So from
a coding standpoint, I really need to know if there are chapters or not. And if 
you
have a single item on the playlist, I don;t show the previous and next (chapter 
/
file) buttons.. So there are some definite interface issues.

Original comment by kdeko...@gmail.com on 14 Sep 2008 at 1:30

GoogleCodeExporter commented 8 years ago

Original comment by kdeko...@gmail.com on 14 Sep 2008 at 2:06

GoogleCodeExporter commented 8 years ago
Submitted a patch to mplayer 
http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2008-September/058567.html

If this patch is accepted and I think it should be, in addition to some 
additional
things I have committed to the gnome-mplayer code, this should be working for 
MKV
files now.

Original comment by kdeko...@gmail.com on 16 Sep 2008 at 6:37

GoogleCodeExporter commented 8 years ago
Hi, what actually is supposed to be the state of DVD chapter controls?
For me it only navigates DVD "titles" - not "chapters", which would be rather 
nice to
be able to navigate as well :)
Ideally for DVD navigation I think you'd want a cascading drop-down or 
right-click
menu like gmplayer, but I guess it depends how far you want to go with this 
sort of
thing - you could add an eject button and a setting to choose which optical 
drive to
use if there is more than one and all sorts of other things.
Another thing that would be nice is the ability to add something to the 
playlist when
you use File-Open, instead of just replacing the playlist.

Original comment by Alister....@gmail.com on 8 Nov 2008 at 4:17

GoogleCodeExporter commented 8 years ago
OK, sorry - it seems I was using a strange disc.  I must usually use the 
right-click
menu to select chapters in gmplayer, because that works on this disc, but the >|
button doesn't.

Original comment by Alister....@gmail.com on 8 Nov 2008 at 5:56